The integral \(\int_{-1}^{2} \log_e \left( x + \sqrt{x^2 + 1} \right) \, dx\) is solved using logarithmic properties and integration by parts. The steps are as follows:
Using hyperbolic identities:
The limits are converted from \(x\) to \(t\):
The integral is evaluated:
The evaluated boundaries are calculated:
Values are computed using \(\text{arcsinh}(x) = \log_e(x + \sqrt{x^2 + 1})\):
Substituting these values yields:
Final computation by substituting values:
The value of the integral is \(\sqrt{2} - \sqrt{5} + \log_e \left( \frac{9 + 4\sqrt{5}}{1 + \sqrt{2}} \right).\)
If the value of the integral
\[ \int_{-\frac{\pi}{2}}^{\frac{\pi}{2}} \left( \frac{x^2 \cos x}{1 + \pi^x} + \frac{1 + \sin^2 x}{1 + e^{\sin^x 2023}} \right) dx = \frac{\pi}{4} (\pi + a) - 2, \]
then the value of \(a\) is: