All Exams Test series for 1 year @ ₹349 only
Question

What is \(\mathop \smallint \nolimits_0^{\rm{\pi }} {{\rm{e}}^{\rm{x}}}\sin {\rm{x}}\) dx equal to?

This question was previously asked in
NDA I 2018 GAT Previous Year Paper (22-Apr-2018)
The correct answer is \(\frac{{{{\rm{e}}^{\rm{\pi }}} + 1}}{2}\)

Evaluating the Definite Integral of e<sup>x</sup> sin(x)

We are asked to evaluate the definite integral: \(\mathop \smallint \nolimits_0^{\rm{\pi }} {{\rm{e}}^{\rm{x}}}\sin {\rm{x}}\,{\rm{dx}}\).

This integral is of the form \(\int e^{ax} \sin(bx) \, dx\) and can be solved using the method of integration by parts. The formula for integration by parts is:

\( \int u \, dv = uv - \int v \, du \)

We will apply integration by parts twice.

Let our integral be \(I\):

\( I = \int_{0}^{\pi} e^x \sin x \, dx \)

For the first application of integration by parts, let:

  • \(u = \sin x\)
  • \(dv = e^x \, dx\)

Then, we find \(du\) and \(v\):

  • \(du = \cos x \, dx\)
  • \(v = \int e^x \, dx = e^x\)

Applying the integration by parts formula:

\( I = \left[ e^x \sin x \right]_0^{\pi} - \int_{0}^{\pi} e^x \cos x \, dx \)

Now, we need to evaluate the new integral \(\int_{0}^{\pi} e^x \cos x \, dx\). Let's call this integral \(J\).

\( J = \int_{0}^{\pi} e^x \cos x \, dx \)

We apply integration by parts again for \(J\). Let:

  • \(u = \cos x\)
  • \(dv = e^x \, dx\)

Then, we find \(du\) and \(v\):

  • \(du = -\sin x \, dx\)
  • \(v = \int e^x \, dx = e^x\)

Applying the integration by parts formula for \(J\):

\( J = \left[ e^x \cos x \right]_0^{\pi} - \int_{0}^{\pi} e^x (-\sin x) \, dx \)

\( J = \left[ e^x \cos x \right]_0^{\pi} + \int_{0}^{\pi} e^x \sin x \, dx \)

Notice that the integral on the right side is our original integral \(I\). So, we can write:

\( J = \left[ e^x \cos x \right]_0^{\pi} + I \)

Now substitute this expression for \(J\) back into the equation for \(I\):

\( I = \left[ e^x \sin x \right]_0^{\pi} - \left( \left[ e^x \cos x \right]_0^{\pi} + I \right) \)

\( I = \left[ e^x \sin x \right]_0^{\pi} - \left[ e^x \cos x \right]_0^{\pi} - I \)

Add \(I\) to both sides:

\( 2I = \left[ e^x \sin x - e^x \cos x \right]_0^{\pi} \)

\( 2I = \left[ e^x (\sin x - \cos x) \right]_0^{\pi} \)

Now, we evaluate the expression at the limits of integration, \(\pi\) and \(0\).

At the upper limit \(\pi\):

\( e^{\pi} (\sin \pi - \cos \pi) = e^{\pi} (0 - (-1)) = e^{\pi} (1) = e^{\pi} \)

At the lower limit \(0\):

\( e^0 (\sin 0 - \cos 0) = 1 (0 - 1) = 1 (-1) = -1 \)

Subtracting the value at the lower limit from the value at the upper limit:

\( 2I = e^{\pi} - (-1) = e^{\pi} + 1 \)

Finally, solve for \(I\):

\( I = \frac{e^{\pi} + 1}{2} \)

Thus, the value of the definite integral is \(\frac{e^{\pi} + 1}{2}\).

Revision Table: Key Values

Trigonometric Function Value at \(x=0\) Value at \(x=\pi\)
\(\sin x\) \(\sin 0 = 0\) \(\sin \pi = 0\)
\(\cos x\) \(\cos 0 = 1\) \(\cos \pi = -1\)
\(e^x\) \(e^0 = 1\) \(e^\pi\)

Additional Information: Standard Integral Formulas

Integrals of the form \(\int e^{ax} \sin(bx) \, dx\) and \(\int e^{ax} \cos(bx) \, dx\) are common and have standard formulas derived using integration by parts twice. The formulas are:

  • \( \int e^{ax} \sin(bx) \, dx = \frac{e^{ax}}{a^2 + b^2} (a \sin(bx) - b \cos(bx)) + C \)
  • \( \int e^{ax} \cos(bx) \, dx = \frac{e^{ax}}{a^2 + b^2} (a \cos(bx) + b \sin(bx)) + C \)

In our problem, we have \(\int e^x \sin x \, dx\), which corresponds to the first formula with \(a=1\) and \(b=1\). Using the formula directly for the indefinite integral:

\( \int e^x \sin x \, dx = \frac{e^{1x}}{1^2 + 1^2} (1 \sin(1x) - 1 \cos(1x)) + C \)

\( \int e^x \sin x \, dx = \frac{e^x}{1 + 1} (\sin x - \cos x) + C \)

\( \int e^x \sin x \, dx = \frac{e^x (\sin x - \cos x)}{2} + C \)

This matches the indefinite integral we found earlier through direct application of integration by parts. To find the definite integral, we evaluate this result at the limits:

\( \left[ \frac{e^x (\sin x - \cos x)}{2} \right]_0^{\pi} = \frac{e^{\pi}(\sin \pi - \cos \pi)}{2} - \frac{e^0(\sin 0 - \cos 0)}{2} \)

\( = \frac{e^{\pi}(0 - (-1))}{2} - \frac{1(0 - 1)}{2} \)

\( = \frac{e^{\pi}(1)}{2} - \frac{1(-1)}{2} \)

\( = \frac{e^{\pi}}{2} - \left(-\frac{1}{2}\right) = \frac{e^{\pi}}{2} + \frac{1}{2} = \frac{e^{\pi} + 1}{2} \)

Using the standard formula confirms our result obtained by applying integration by parts step-by-step.

Was this answer helpful?

Similar Questions

  1. What is \(\int^{\frac{\pi}{4}}_0 \frac{dx}{(\sin x + \cos x)^2}\)  equal to?

  2. If f(x) = 2 x, then what is \(\int^{10}_2\frac{f'(x)}{f(x)}dx\)  equal to?

  3. What is \(\int_0^{\frac{\pi}{2}} \frac{a + \sin x}{2a + \sin x + \cos x} dx\) equal to ?
  4. What is the value of \(\rm \displaystyle\int_0^{\pi/4}(\tan^3 x + \tan x)dx \ ?\)

  5. What is \(\mathop \smallint \nolimits_0^1 {\rm{x}}{(1 - {\rm{x}})^9}{\rm{dx}}\) equal to?

  6. What is the value of \( \smallint \nolimits_{ - {\rm{\pi }}/4}^{{\rm{\pi }}/4} \left( {\sin {\rm{x}} - \tan {\rm{x}}} \right){\rm{dx}}?\)

  7. What is \(\mathop \smallint \limits_0^{2{\rm{\pi }}} \sqrt {1 + \sin \frac{{\rm{x}}}{2}} {\rm{dx\;}}\) equal to?

  8. The value of \(\mathop \smallint \limits_0^{\frac{{\rm{\pi }}}{4}} \sqrt {\tan {\rm{x\;}}} {\rm{dx}} + \mathop \smallint \limits_0^{\frac{{\rm{\pi }}}{4}} \sqrt {\cot {\rm{x}}} {\rm{dx}}\) is equal to

  9. What is \(\smallint \nolimits_0^{\frac{{\rm{\pi }}}{2}} \frac{{{\rm{d\theta }}}}{{1 + \cos {\rm{\theta }}}}{\rm{\;}}\) equal to?

  10. Let \(f\left( x \right)\) be a function such that

    \(f\left( {\frac{1}{x}} \right)\; + \;{x^3}f\left( x \right)\)  = 0, what is \(\mathop \smallint \limits_{ - 1}^1 f\left( x \right)dx\)  equal to?


Important Questions from Definite Integrals

  1. Let $$f(t) = \begin{cases} 1, & t \in [0, 2] \\ -t + 3, & t \in [2, 3] \\ 0, & \text{otherwise} \end{cases}$$ Then $$\int_{-\infty}^{\infty} f(\tau) d\tau = \_\_\_\_\_.$$ (rounded off to one decimal place)

  2. Let $f(x)$ be a continuous function defined in $[0,2] \to \mathbb{R}$ and satisfying the equation
    $$\int_{0}^{2} f(x)[x - f(x)] dx = \frac{2}{3}$$
    The value of $f(1)$ is
  3. The integral $$\frac{1}{\pi} \int_0^\infty \frac{x^{2026}}{(1 + x^{2026})(1 + x^2)} dx$$ evaluates to _________ 

    (Round off to two decimal places)

  4. The value of $\int_0^{\pi/2} \log (\cos x) \text{ dx}$ is
  5. The value of $\int_0^4 \sqrt{16-x^2} \text{ } dx$ is
Need Expert Advice?
Test Series
NDA img
Defence
NDA 2026 Mock Test Series (Latest Pattern)
526 Tests 1 Tests Free
1205 Attempts
4.7(163)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App