SOLVER7 Study. Nothing Else.
2023 Board Paper Q31(a)

Evaluate : \(\int^{\small\dfrac{\pi}{2}}_0\ e^x sin\ x \ dx \)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine trying to untangle two ropes that keep looping around each other. The functions \( e^x \) and \( \sin x \) are like that — they keep returning no matter how many times you work with them. We use a clever trick called integration by parts twice. Like a boomerang, the original problem comes back, and we treat it as an unknown. We then solve for it like a simple equation, and finally check the answer between two boundary points.

Answer: \[\int_0^{\frac{\pi}{2}} e^x \sin x \, dx = \frac{1}{2}\left( e^{\pi/2} + 1 \right)\]

📖 Definite Integral of e^x sin x

Detailed Explanation

When we integrate a product of two functions that both keep reappearing after differentiation or integration — such as \( e^x \) and \( \sin x \) — we use integration by parts. The special feature here is that after applying integration by parts twice, the original integral reappears on the right-hand side. We then treat the integral as an unknown quantity, move it to the left side, and solve for it algebraically. Once we obtain the indefinite integral (antiderivative), we apply the limits using the Fundamental Theorem of Calculus.

Formula Used

Integration by parts: \[\int u\, v \, dx = u \int v \, dx - \int \left( \frac{du}{dx} \int v \, dx \right) dx\] Standard result: \[\int e^x \sin x \, dx = \frac{e^x}{2}(\sin x - \cos x) + C\]

Solution

  1. Step 1: Let us first find the indefinite integral. Call it \( I \): \[I = \int e^x \sin x \, dx\] We will use integration by parts, taking \( u = \sin x \) and \( dv = e^x \, dx \).
  2. Step 2: Apply integration by parts once. With \( u = \sin x \) so \( du = \cos x \, dx \), and \( \int e^x \, dx = e^x \): \[I = e^x \sin x - \int e^x \cos x \, dx\] The new integral still has a product, so we apply integration by parts again.
  3. Step 3: Apply integration by parts to \( \int e^x \cos x \, dx \) with \( u = \cos x \) so \( du = -\sin x \, dx \): \[\int e^x \cos x \, dx = e^x \cos x + \int e^x \sin x \, dx\] Notice the original integral \( I \) has reappeared.
  4. Step 4: Substitute this back into the expression for \( I \): \[I = e^x \sin x - \left( e^x \cos x + I \right)\] Simplify: \[I = e^x \sin x - e^x \cos x - I\]
  5. Step 5: Bring \( I \) to the left side and solve algebraically: \[2I = e^x (\sin x - \cos x)\] Hence \[I = \frac{e^x}{2}(\sin x - \cos x)\]
  6. Step 6: Now apply the limits from \( 0 \) to \( \frac{\pi}{2} \): \[\int_0^{\frac{\pi}{2}} e^x \sin x \, dx = \left[ \frac{e^x}{2}(\sin x - \cos x) \right]_0^{\frac{\pi}{2}}\]
  7. Step 7: Evaluate at the upper limit \( x = \frac{\pi}{2} \), where \( \sin \frac{\pi}{2} = 1 \) and \( \cos \frac{\pi}{2} = 0 \): \[\frac{e^{\pi/2}}{2}(1 - 0) = \frac{e^{\pi/2}}{2}\] Evaluate at the lower limit \( x = 0 \), where \( \sin 0 = 0 \) and \( \cos 0 = 1 \): \[\frac{e^{0}}{2}(0 - 1) = -\frac{1}{2}\]
  8. Step 8: Subtract the lower limit value from the upper limit value: \[\frac{e^{\pi/2}}{2} - \left( -\frac{1}{2} \right) = \frac{e^{\pi/2}}{2} + \frac{1}{2}\]

Final Answer

\[\int_0^{\frac{\pi}{2}} e^x \sin x \, dx = \frac{1}{2}\left( e^{\pi/2} + 1 \right)\]

Common Mistake

A very common error is applying integration by parts inconsistently — for example, differentiating \( \sin x \) in the first step but then differentiating \( e^x \) in the second step. This causes the integral to cancel out to \( 0 = 0 \) and gives no result. Always keep the same type of function (either always the trigonometric or always the exponential) as \( u \) throughout both applications so that the original integral reappears correctly.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Name the integral and choose parts: Let \( I = \int e^x \sin x \, dx \). Choose \( u = \sin x \) (so \( du = \cos x \, dx \)) and \( dv = e^x \, dx \) (so \( v = e^x \)). — Reason: We pick \( \sin x \) as \( u \) because differentiating it changes it to \( \cos x \), making progress after two rounds.
  2. Step 2: Apply integration by parts the first time: Substituting into the formula \( \int u \, dv = uv - \int v \, du \) gives: \[ I = e^x \sin x - \int e^x \cos x \, dx \] — Reason: This reduces the problem from integrating \( e^x \sin x \) to integrating \( e^x \cos x \), which has the same structure and can be handled the same way.
  3. Step 3: Apply integration by parts a second time: For the remaining integral, let \( u = \cos x \) (so \( du = -\sin x \, dx \)) and \( dv = e^x \, dx \) (so \( v = e^x \)): \[ \int e^x \cos x \, dx = e^x \cos x - \int e^x (-\sin x) \, dx = e^x \cos x + \int e^x \sin x \, dx \] — Reason: Applying parts again transforms \( \int e^x \cos x \, dx \) and, crucially, brings back \( \int e^x \sin x \, dx \), which equals \( I \).
  4. Step 4: Substitute back and collect \( I \) on one side: Replace \( \int e^x \cos x \, dx \) in Step 2 with the result from Step 3: \[ I = e^x \sin x - \left( e^x \cos x + I \right) \] This simplifies to \[ I = e^x \sin x - e^x \cos x - I \] Adding \( I \) to both sides: \[ 2I = e^x \sin x - e^x \cos x \] — Reason: Treating \( I \) as an unknown and collecting it on the left side turns the equation into a simple linear equation.
  5. Step 5: Solve for the indefinite integral: Dividing both sides by 2 and adding the constant of integration: \[ I = \frac{e^x}{2}(\sin x - \cos x) + C \] — Reason: This gives us the antiderivative, which we can now use to evaluate the definite integral over any interval.
  6. Step 6: Apply the limits from 0 to \( \tfrac{\pi}{2} \): Using the Fundamental Theorem of Calculus, substitute the upper limit \( x = \frac{\pi}{2} \) and lower limit \( x = 0 \): \[ \left[ \frac{e^x}{2}(\sin x - \cos x) \right]_0^{\pi/2} = \frac{e^{\pi/2}}{2}\!\left(\sin\frac{\pi}{2} - \cos\frac{\pi}{2}\right) - \frac{e^0}{2}(\sin 0 - \cos 0) \] Since \( \sin\frac{\pi}{2} = 1 \), \( \cos\frac{\pi}{2} = 0 \), \( \sin 0 = 0 \), \( \cos 0 = 1 \), and \( e^0 = 1 \), this becomes: \[ = \frac{e^{\pi/2}}{2}(1 - 0) - \frac{1}{2}(0 - 1) = \frac{e^{\pi/2}}{2} + \frac{1}{2} \] — Reason: Plugging in the exact trigonometric values at the two boundary points simplifies the expression to a clean numerical result.

Final Answer

\[\int_0^{\frac{\pi}{2}} e^x \sin x \, dx = \frac{1}{2}\left( e^{\pi/2} + 1 \right)\]

Common Mistake

One common mistake: forgetting the negative sign when differentiating \( \cos x \) — writing \( d(\cos x) = \sin x \, dx \) instead of \( d(\cos x) = -\sin x \, dx \) — which makes the original integral disappear instead of reappear, preventing the algebraic solve.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \( I = \int e^x \sin x \, dx \). Apply integration by parts twice (taking \( \sin x \) and then \( \cos x \) as \( u \)) to get: \[I = e^x \sin x - e^x \cos x - I\]
  2. Step 2: Solve for \( I \): \[2I = e^x(\sin x - \cos x) \implies I = \frac{e^x}{2}(\sin x - \cos x) + C\]
  3. Step 3: Apply limits \( 0 \) to \( \frac{\pi}{2} \): \[\int_0^{\frac{\pi}{2}} e^x \sin x \, dx = \left[\frac{e^x}{2}(\sin x - \cos x)\right]_0^{\frac{\pi}{2}} = \frac{e^{\pi/2}}{2}(1 - 0) - \frac{e^0}{2}(0 - 1) = \frac{e^{\pi/2}}{2} + \frac{1}{2}\]

Answer: \[\int_0^{\frac{\pi}{2}} e^x \sin x \, dx = \frac{1}{2}\left( e^{\pi/2} + 1 \right)\]

➕ More Examples

More Examples

Example 1

Question: Evaluate: \[ \int_0^{\pi/2} e^x \cos x \, dx \]

Solution: Let \( I = \int_0^{\pi/2} e^x \cos x \, dx \). Apply integration by parts: take \( u = \cos x \) and \( dv = e^x \, dx \), so \( du = -\sin x \, dx \) and \( v = e^x \). \[ I = \left[ e^x \cos x \right]_0^{\pi/2} + \int_0^{\pi/2} e^x \sin x \, dx \] Evaluating the boundary term: at \( x = \pi/2 \), \( e^{\pi/2} \cos(\pi/2) = e^{\pi/2} \cdot 0 = 0 \); at \( x = 0 \), \( e^0 \cos 0 = 1 \). So \[ I = (0 - 1) + \int_0^{\pi/2} e^x \sin x \, dx = -1 + I_2 \] where \( I_2 = \int_0^{\pi/2} e^x \sin x \, dx \). Now apply integration by parts to \( I_2 \): take \( u = \sin x \) and \( dv = e^x \, dx \), so \( du = \cos x \, dx \) and \( v = e^x \). \[ I_2 = \left[ e^x \sin x \right]_0^{\pi/2} - \int_0^{\pi/2} e^x \cos x \, dx \] Evaluating the boundary term: at \( x = \pi/2 \), \( e^{\pi/2} \sin(\pi/2) = e^{\pi/2} \); at \( x = 0 \), \( e^0 \sin 0 = 0 \). So \[ I_2 = e^{\pi/2} - I \] Substituting back: \[ I = -1 + e^{\pi/2} - I \] \[ 2I = e^{\pi/2} - 1 \] \[ I = \frac{e^{\pi/2} - 1}{2} \]

Answer: \[ \int_0^{\pi/2} e^x \cos x \, dx = \frac{e^{\pi/2} - 1}{2} \]

Example 2

Question: Evaluate: \[ \int_0^{\pi} e^{2x} \sin x \, dx \]

Solution: Let \( I = \int_0^{\pi} e^{2x} \sin x \, dx \). Apply integration by parts: take \( u = \sin x \) and \( dv = e^{2x} \, dx \), so \( du = \cos x \, dx \) and \( v = \frac{e^{2x}}{2} \). \[ I = \left[ \frac{e^{2x} \sin x}{2} \right]_0^{\pi} - \int_0^{\pi} \frac{e^{2x}}{2} \cos x \, dx \] Evaluating the boundary term: at \( x = \pi \), \( \frac{e^{2\pi} \sin \pi}{2} = 0 \); at \( x = 0 \), \( \frac{e^{0} \sin 0}{2} = 0 \). So \[ I = 0 - \frac{1}{2} \int_0^{\pi} e^{2x} \cos x \, dx = -\frac{1}{2} I_2 \] where \( I_2 = \int_0^{\pi} e^{2x} \cos x \, dx \). Apply integration by parts to \( I_2 \): take \( u = \cos x \) and \( dv = e^{2x} \, dx \), so \( du = -\sin x \, dx \) and \( v = \frac{e^{2x}}{2} \). \[ I_2 = \left[ \frac{e^{2x} \cos x}{2} \right]_0^{\pi} + \int_0^{\pi} \frac{e^{2x}}{2} \sin x \, dx \] Evaluating the boundary term: at \( x = \pi \), \( \frac{e^{2\pi} \cos \pi}{2} = -\frac{e^{2\pi}}{2} \); at \( x = 0 \), \( \frac{e^{0} \cos 0}{2} = \frac{1}{2} \). So \[ I_2 = \left( -\frac{e^{2\pi}}{2} - \frac{1}{2} \right) + \frac{1}{2} I \] Substituting \( I_2 \) back into the expression for \( I \): \[ I = -\frac{1}{2} \left( -\frac{e^{2\pi} + 1}{2} + \frac{I}{2} \right) \] \[ I = \frac{e^{2\pi} + 1}{4} - \frac{I}{4} \] \[ I + \frac{I}{4} = \frac{e^{2\pi} + 1}{4} \] \[ \frac{5I}{4} = \frac{e^{2\pi} + 1}{4} \] \[ I = \frac{e^{2\pi} + 1}{5} \]

Answer: \[ \int_0^{\pi} e^{2x} \sin x \, dx = \frac{e^{2\pi} + 1}{5} \]

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate: \[\int_0^{\pi} e^x \cos x \, dx\]

Solution

  1. Step 1: Set up Integration by Parts (First Application): Let \( I = \int_0^{\pi} e^x \cos x \, dx \). Choose \( u = \cos x \) and \( dv = e^x \, dx \), so \( du = -\sin x \, dx \) and \( v = e^x \). Applying integration by parts: \[I = \left[ e^x \cos x \right]_0^{\pi} + \int_0^{\pi} e^x \sin x \, dx\]
  2. Step 2: Evaluate the Boundary Term: Evaluate \( \left[ e^x \cos x \right]_0^{\pi} \): \[= e^{\pi} \cos \pi - e^0 \cos 0 = e^{\pi}(-1) - (1)(1) = -e^{\pi} - 1\] So: \[I = (-e^{\pi} - 1) + \int_0^{\pi} e^x \sin x \, dx\]
  3. Step 3: Apply Integration by Parts Again to the Remaining Integral: Let \( J = \int_0^{\pi} e^x \sin x \, dx \). Choose \( u = \sin x \) and \( dv = e^x \, dx \), so \( du = \cos x \, dx \) and \( v = e^x \). Applying integration by parts: \[J = \left[ e^x \sin x \right]_0^{\pi} - \int_0^{\pi} e^x \cos x \, dx\] Evaluate \( \left[ e^x \sin x \right]_0^{\pi} \): \[= e^{\pi} \sin \pi - e^0 \sin 0 = e^{\pi}(0) - (1)(0) = 0\] So: \[J = 0 - I = -I\]
  4. Step 4: Substitute Back and Solve for I: Substituting \( J = -I \) into the expression from Step 2: \[I = (-e^{\pi} - 1) + (-I)\] \[I = -e^{\pi} - 1 - I\] Adding \( I \) to both sides: \[2I = -e^{\pi} - 1\] \[I = \frac{-(e^{\pi} + 1)}{2}\]
  5. Step 5: Write the Final Answer: Therefore: \[\int_0^{\pi} e^x \cos x \, dx = -\frac{(e^{\pi} + 1)}{2}\]

Answer: \[\int_0^{\pi} e^x \cos x \, dx = -\frac{(e^{\pi} + 1)}{2}\]

Everything you get with Solver7

More questions in Integrals

Chapter 7 Examples Q1(i) 65/2/2 2023 / Section A Q1 Chapter 7 Examples Q1(ii) 65/2/1 2022 / Section A Q2(a) Chapter 7 Examples Q1(iii) 65/2/1 2022 / Section A Q2(b) Chapter 7 Examples Q2(i) Chapter 7 Examples Q2(ii) 65/1/1 2023 / Section A Q5 Chapter 7 Examples Q2(iii) 65/1/1 2023 / Section A Q6 65/1/1 2024 / Section A Q6 65/2/1 2024 / Section A Q6 65/3/1 2023 / Section A Q6 65/3/1 2024 / Section A Q6 Chapter 7 Examples Q3(i) 65/3/1 2023 / Section A Q7 Chapter 7 Examples Q3(ii) 65(B) 2026 / Section A Q8 65/1/1 2026 / Section A Q8 65/4/1 2022 / Section A Q6 65/4/1 2023 / Section A Q8 65/4/2 2024 / Section A Q8 Chapter 7 Examples Q3(iii) 65(B) 2026 / Section A Q9 65/1/1 2026 / Section A Q9 65/2/1 2022 / Section B Q8(a) 65/2/2 2023 / Section A Q9 65/4/1 2022 / Section B Q7 65/4/1 2023 / Section A Q9 65/4/1 2026 / Section A Q9 Chapter 7 Examples Q4 65/2/1 2022 / Section B Q8(b) 65/3/1 2026 / Section A Q10 65/4/1 2022 / Section B Q8(a) 65/4/1 2026 / Section A Q10 65/5/1 2026 / Section A Q10 Chapter 7 Examples Q5(i) 65/3/1 2026 / Section A Q11 65/4/1 2022 / Section B Q8(b) 65/5/1 2026 / Section A Q11 Chapter 7 Examples Q5(ii) 65/2/3 2026 / Section A Q12 Chapter 7 Examples Q5(iii) Chapter 7 Examples Q5(iv) Chapter 7 Examples Q6(i) 65/2/1 2022 / Section C Q12 Chapter 7 Examples Q6(ii) Chapter 7 Examples Q6(iii) Chapter 7 Examples Q7(i) 65/4/1 2022 / Section C Q13 Chapter 7 Examples Q7(ii) Chapter 7 Examples Q7(iii) Chapter 7 Examples Q8(i) Chapter 7 Examples Q8(ii) Chapter 7 Examples Q9(i) Chapter 7 Examples Q9(ii) 65/1/1 2024 / Section B Q23(a) 65/3/1 2024 / Section B Q23(a) Chapter 7 Examples Q9(iii)