© All Rights reserved @ LearnWithDash
Step-by-Step Solution
Step 1: Understand the problem
We need to evaluate the definite integral
$ \int_{-\pi/2}^{\pi/2} \bigl(\lfloor x \rfloor - \sin x\bigr)\,dx $,
where $ \lfloor x \rfloor $ denotes the greatest integer less than or equal to $ x $ (also called the floor function).
Step 2: Rewrite the integral using properties of the floor function
Notice that the floor function has the property:
$ \lfloor x \rfloor + \lfloor -x \rfloor =
\begin{cases}
-1 & \text{if } x \notin \mathbb{Z},\\
0 & \text{if } x \in \mathbb{Z}.
\end{cases}
$
Similarly,
$ \lfloor -\sin x \rfloor + \lfloor \sin x \rfloor $
can also combine in a way that simplifies if $ \sin x $ is not an integer.
One approach is to split the integral at 0 and add symmetrical parts. Observe that for $ x $ in $ \bigl[-\frac{\pi}{2}, \frac{\pi}{2}\bigr] $, the possible values of $ \lfloor x \rfloor $ are $ -1 $ for $ -\frac{\pi}{2} \le x < 0 $ and $ 0 $ for $ 0 \le x \le \frac{\pi}{2} $. Similarly for $ \sin x $, its floor will be either $ 0 $ or $ -1 $, depending on whether $ \sin x $ is positive or negative (and not equal to an integer).
Step 3: Symmetry consideration and splitting the integral
We note an interesting symmetry:
For $ x $ in $ [0, \frac{\pi}{2}] $, $ \lfloor x \rfloor = 0 $ and $ \lfloor \sin x \rfloor = 0 $ (since $ 0 \le \sin x \le 1 $, and $ \sin x $ never actually reaches 1 except at $ \frac{\pi}{2} $, but that still yields the floor $ 0 $).
For $ x $ in $ \bigl[-\frac{\pi}{2}, 0\bigr) $, $ \lfloor x \rfloor = -1 $ and $ \sin x \le 0 $, so $ \lfloor \sin x \rfloor $ is either $ 0 $ (if $ \sin x > -1 $) or $ -1 $ (if $ \sin x = -1 $ at $ x = -\frac{\pi}{2} $, but that single point does not affect the integral). Overall, it will often be $ -1 $ only at the endpoint or not at all, so effectively it is $ 0 $ or $ -1 $ in the interval.
A known approach is to pair up the integrals from $ -\frac{\pi}{2} $ to 0 and from 0 to $ \frac{\pi}{2} $ to exploit the floor function identities:
$
\lfloor x \rfloor - \sin x + \lfloor -x \rfloor + \sin(-x) = \lfloor x \rfloor + \lfloor -x \rfloor - \bigl(\sin x - \sin(-x)\bigr).
$
But since $ \sin(-x) = -\sin x $, we often consider expressions like
$ \lfloor x \rfloor + \lfloor -x \rfloor $
and
$ \lfloor -\sin x \rfloor + \lfloor \sin x \rfloor
$
together. This is how the given simplification in the reference solution arises.
Step 4: Combine terms as given in the reference
From the hint provided, the integral can be re-expressed as:
$ I = \int_{-\pi/2}^{\pi/2} \bigl(\lfloor x \rfloor - \sin x \bigr)\,dx
= \int_{-\pi/2}^{\pi/2} \bigl(\lfloor x \rfloor + \lfloor -\sin x \rfloor\bigr)\,dx.
$
Then, grouping the integral from 0 to $ \frac{\pi}{2} $ and $ -\frac{\pi}{2} $ to 0 and considering floor function identities yields:
$ I = \int_{0}^{\pi/2} \Bigl(\lfloor x \rfloor + \lfloor -\sin x \rfloor + \lfloor -x \rfloor + \lfloor \sin x \rfloor\Bigr) \,dx.
$
Within $ [0, \frac{\pi}{2}] $, we have $ \lfloor x \rfloor = 0 $ and $ \lfloor \sin x \rfloor = 0 $. Also, $ \lfloor -x \rfloor = -1 $ (since $ x $ is in the open interval $ (0, \frac{\pi}{2}) $, the floor of $ -x $ is $ -1 $ there), and $ \lfloor -\sin x \rfloor = -1 $ (because $ 0 < \sin x \le 1 $ in this interval).
Hence, for each $ x $ in $ (0, \frac{\pi}{2}) $:
$ \lfloor x \rfloor + \lfloor -\sin x \rfloor + \lfloor -x \rfloor + \lfloor \sin x \rfloor = 0 + (-1) + (-1) + 0 = -2.
$
Step 5: Compute the resulting definite integral
Therefore,
$ I = \int_{0}^{\pi/2} (-2)\,dx = -2 \times \left(\frac{\pi}{2} - 0\right) = -\pi.
$
Since we considered symmetry, the conclusion is that:
$ \int_{-\pi/2}^{\pi/2} \bigl(\lfloor x \rfloor - \sin x\bigr)\,dx = -\pi.
$
Step 6: Final answer
The value of the integral is
$ -\pi.
$