To solve the given integral \(I = \int_{e^{-\pi/2}}^{e^{\pi/2}} \left( \sin^2(\log(x)) + \sin(\log(x^2)) \right) \, dx\), we first need to simplify the expression inside the integral.
Let's break it down:
- First, consider \(\sin(\log(x^2))\). Note that \(\log(x^2) = 2\log(x)\), so \(\sin(\log(x^2)) = \sin(2\log(x))\).
- Using the trigonometric identity \(\sin(2\theta) = 2\sin(\theta)\cos(\theta)\), we can write: \(\sin(2\log(x)) = 2\sin(\log(x))\cos(\log(x))\).
- Now combined, the integral becomes: \(I = \int_{e^{-\pi/2}}^{e^{\pi/2}} \left( \sin^2(\log(x)) + 2\sin(\log(x))\cos(\log(x)) \right) \, dx\)
- Combine terms: \(\sin^2(\log(x)) + 2\sin(\log(x))\cos(\log(x)) = (\sin(\log(x)) + \cos(\log(x)))^2\)
- Our integral simplifies to: \(I = \int_{e^{-\pi/2}}^{e^{\pi/2}} (\sin(\log(x)) + \cos(\log(x)))^2 \, dx\)
Next, we will use a substitution to simplify this integral:
- Let \(u = \log(x)\). Then \(du = \frac{1}{x} \, dx\), so \(dx = x \, du\). Also note that as \(x\) goes from \(e^{-\pi/2}\) to \(e^{\pi/2}\), \(u\) goes from \(-\pi/2\) to \(\pi/2\).
- Rewrite the integral in terms of \(u\): \(I = \int_{-\pi/2}^{\pi/2} (\sin(u) + \cos(u))^2 e^u \, du\)
- Expand and simplify: \((\sin(u) + \cos(u))^2 = \sin^2(u) + 2\sin(u)\cos(u) + \cos^2(u)\) Using \(\sin^2(u) + \cos^2(u) = 1\), this becomes: \(1 + 2\sin(u)\cos(u)\).
- So the integral becomes: \(I = \int_{-\pi/2}^{\pi/2} \left(1 + 2\sin(u)\cos(u)\right)e^u \, du\)
- Break this integral into parts: \(I = \int_{-\pi/2}^{\pi/2} e^u \, du + 2\int_{-\pi/2}^{\pi/2} \sin(u)\cos(u) e^u \, du\)
Evaluate each part separately:
- The first integral: \(\int_{-\pi/2}^{\pi/2} e^u \, du = \left[ e^u \right]_{-\pi/2}^{\pi/2} = e^{\pi/2} - e^{-\pi/2}\)
- The second integral: \(\int_{-\pi/2}^{\pi/2} \sin(u)\cos(u) e^u \, du = 0\) due to the symmetry of \(\sin(u)\cos(u)\) around \(u = 0\)
Thus, combining the results:
\(I = e^{\pi/2} - e^{-\pi/2} + 2 \times 0 = e^{\pi/2} - e^{-\pi/2}\)
Therefore, the value of \(I\) is \(e^{\pi/2} - e^{-\pi/2}\).