SOLVER7 Study. Nothing Else.
Exercise 7.8 Q20

Evaluate the definite integrals in Exercises 1 to 20. \(\int^1_0\ (x\ e^x\ +sin\dfrac{\pi x}{4})dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you are collecting water from two taps into one bucket. You can measure each tap separately and add the amounts at the end. Here, we have two math expressions added together, and we find the area under each curve one at a time. One part needs a special trick called integration by parts, like untangling two things wrapped together. After finding the total collected area between 0 and 1, we get a clean numerical answer combining simple numbers and \(\pi\).

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

📖 Definite Integral of an Exponential-Product plus a Trigonometric Function

Detailed Explanation

The integrand \( x e^x + \sin\frac{\pi x}{4} \) is a sum, so we integrate each part separately. The first term \( x e^x \) is a product of an algebraic function \( x \) and an exponential \( e^x \), so it needs integration by parts. The second term \( \sin\frac{\pi x}{4} \) is a standard trigonometric integral. After finding the antiderivative, we apply the Fundamental Theorem of Calculus, which says \( \int_a^b f(x)\,dx = F(b) - F(a) \), where \( F \) is any antiderivative of \( f \).

Formula Used

Integration by parts: \[\int u\, v\, dx = u \int v\, dx - \int \left( \frac{du}{dx} \int v\, dx \right) dx\] Trigonometric integral: \[\int \sin(kx)\, dx = -\frac{1}{k}\cos(kx) + C\] Fundamental Theorem of Calculus: \[\int_a^b f(x)\, dx = F(b) - F(a)\]

Solution

  1. Step 1: Split the integral into two parts because the integrand is a sum: \[\int_0^1 \left( x e^x + \sin\frac{\pi x}{4} \right) dx = \int_0^1 x e^x \, dx + \int_0^1 \sin\frac{\pi x}{4} \, dx\]
  2. Step 2: Evaluate \( \int x e^x \, dx \) by integration by parts. Take \( u = x \) (algebraic) and \( dv = e^x dx \), so \( du = dx \) and \( v = e^x \). Then \[\int x e^x \, dx = x e^x - \int e^x \, dx = x e^x - e^x + C\] We choose \( u = x \) because differentiating it simplifies the expression.
  3. Step 3: Apply the limits from \( 0 \) to \( 1 \) to the first part: \[\left[ x e^x - e^x \right]_0^1 = \left( 1 \cdot e^1 - e^1 \right) - \left( 0 \cdot e^0 - e^0 \right)\] This simplifies to \[(e - e) - (0 - 1) = 0 - (-1) = 1\]
  4. Step 4: Evaluate \( \int \sin\frac{\pi x}{4} \, dx \). Here \( k = \frac{\pi}{4} \), so \[\int \sin\frac{\pi x}{4} \, dx = -\frac{1}{\pi/4}\cos\frac{\pi x}{4} = -\frac{4}{\pi}\cos\frac{\pi x}{4} + C\]
  5. Step 5: Apply the limits from \( 0 \) to \( 1 \) to the second part: \[\left[ -\frac{4}{\pi}\cos\frac{\pi x}{4} \right]_0^1 = -\frac{4}{\pi}\cos\frac{\pi}{4} + \frac{4}{\pi}\cos 0\] Using \( \cos\frac{\pi}{4} = \frac{1}{\sqrt{2}} \) and \( \cos 0 = 1 \), \[= -\frac{4}{\pi}\cdot\frac{1}{\sqrt{2}} + \frac{4}{\pi} = \frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\]
  6. Step 6: Add the two results together: \[1 + \frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\] This can also be written as \[1 + \frac{4}{\pi}\left( 1 - \frac{1}{\sqrt{2}} \right)\]

Final Answer

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

Common Mistake

A frequent error is forgetting the factor \( \frac{4}{\pi} \) when integrating \( \sin\frac{\pi x}{4} \); students often write \( -\cos\frac{\pi x}{4} \) without dividing by \( \frac{\pi}{4} \). Always divide by the coefficient of \( x \) inside the trigonometric function.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Split the given integral using the sum rule: \[\int_0^1 \left( x e^x + \sin\frac{\pi x}{4} \right) dx = \int_0^1 x e^x \, dx + \int_0^1 \sin\frac{\pi x}{4} \, dx\] — Reason: The integral of a sum equals the sum of the integrals, letting us handle each term independently.
  2. Step 2: For \(\int x e^x \, dx\), apply integration by parts. Choose \(u = x\) and \(dv = e^x \, dx\), so that \(du = dx\) and \(v = e^x\). — Reason: We pick \(u = x\) (the algebraic factor) because differentiating it reduces its degree, simplifying the remaining integral.
  3. Step 3: Substitute into the integration by parts formula: \[\int x e^x \, dx = x e^x - \int e^x \, dx = x e^x - e^x + C\] — Reason: After applying the formula, the remaining integral \(\int e^x \, dx\) is straightforward and equals \(e^x\).
  4. Step 4: Apply the limits 0 to 1 to the first part: \[\left[ x e^x - e^x \right]_0^1 = \left(1 \cdot e^1 - e^1\right) - \left(0 \cdot e^0 - e^0\right)\] This gives \[(e - e) - (0 - 1) = 0 + 1 = 1\] — Reason: Substituting the upper limit minus the lower limit evaluates the definite integral using the Fundamental Theorem of Calculus.
  5. Step 5: Evaluate the second integral \(\int_0^1 \sin\frac{\pi x}{4} \, dx\) using the standard formula with \(k = \frac{\pi}{4}\): \[\int_0^1 \sin\frac{\pi x}{4} \, dx = \left[ -\frac{4}{\pi} \cos\frac{\pi x}{4} \right]_0^1\] — Reason: The antiderivative of \(\sin(kx)\) is \(-\frac{1}{k}\cos(kx)\); here \(\frac{1}{k} = \frac{4}{\pi}\).
  6. Step 6: Apply the limits 0 to 1 to the second part: \[\left[ -\frac{4}{\pi} \cos\frac{\pi x}{4} \right]_0^1 = \left(-\frac{4}{\pi} \cos\frac{\pi}{4}\right) - \left(-\frac{4}{\pi} \cos 0\right)\] Now, \(\cos\frac{\pi}{4} = \frac{1}{\sqrt{2}}\) and \(\cos 0 = 1\), so this becomes \[-\frac{4}{\pi} \cdot \frac{1}{\sqrt{2}} + \frac{4}{\pi} = \frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\] — Reason: Substituting the known values of cosine at the given limits gives the exact numerical result.
  7. Step 7: Add the results of both integrals together: the first part gave 1, and the second part gave \(\frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\). Therefore: \[\int_0^1 \left( x e^x + \sin\frac{\pi x}{4} \right) dx = 1 + \frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\] — Reason: Combining both evaluated integrals gives the final answer for the original definite integral.

Final Answer

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

Common Mistake

One common mistake: forgetting the chain rule factor when integrating \(\sin\frac{\pi x}{4}\) — students often write the antiderivative as \(-\cos\frac{\pi x}{4}\) instead of \(-\frac{4}{\pi}\cos\frac{\pi x}{4}\), missing the division by the inner derivative \(\frac{\pi}{4}\).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Split and apply integration by parts to \( \int_0^1 x e^x \, dx \) with \( u = x \), \( dv = e^x \, dx \): \[\int_0^1 x e^x \, dx = \left[ x e^x - e^x \right]_0^1 = (e - e) - (0 - 1) = 1\]
  2. Step 2: Evaluate \( \int_0^1 \sin\frac{\pi x}{4} \, dx \): \[\left[ -\frac{4}{\pi}\cos\frac{\pi x}{4} \right]_0^1 = -\frac{4}{\pi}\cos\frac{\pi}{4} + \frac{4}{\pi}\cos 0 = -\frac{4}{\pi} \cdot \frac{1}{\sqrt{2}} + \frac{4}{\pi} = \frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\]
  3. Step 3: Add both results: \[1 + \frac{4}{\pi} - \frac{4}{\pi\sqrt{2}}\]

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

➕ More Examples

More Examples

Example 1

Question: Evaluate \[ \int_0^1 \left( x e^{2x} + \cos\frac{\pi x}{2} \right) dx \]

Solution: We split the integral into two parts: \[ I = I_1 + I_2 \] where \( I_1 = \int_0^1 x e^{2x} \, dx \) and \( I_2 = \int_0^1 \cos\frac{\pi x}{2} \, dx \). For \( I_1 \), apply integration by parts with \( u = x \) and \( dv = e^{2x} \, dx \), so \( du = dx \) and \( v = \frac{e^{2x}}{2} \): \[ I_1 = \left[ x \cdot \frac{e^{2x}}{2} \right]_0^1 - \int_0^1 \frac{e^{2x}}{2} \, dx \] \[ I_1 = \left[ \frac{x e^{2x}}{2} \right]_0^1 - \frac{1}{2} \left[ \frac{e^{2x}}{2} \right]_0^1 \] \[ I_1 = \left( \frac{e^2}{2} - 0 \right) - \frac{1}{4} \left( e^2 - e^0 \right) \] \[ I_1 = \frac{e^2}{2} - \frac{e^2}{4} + \frac{1}{4} \] \[ I_1 = \frac{e^2}{4} + \frac{1}{4} \] For \( I_2 \): \[ I_2 = \left[ \frac{\sin\frac{\pi x}{2}}{\frac{\pi}{2}} \right]_0^1 = \frac{2}{\pi} \left[ \sin\frac{\pi x}{2} \right]_0^1 \] \[ I_2 = \frac{2}{\pi} \left( \sin\frac{\pi}{2} - \sin 0 \right) = \frac{2}{\pi} (1 - 0) = \frac{2}{\pi} \] Therefore: \[ I = I_1 + I_2 = \frac{e^2}{4} + \frac{1}{4} + \frac{2}{\pi} \]

Answer: \( \dfrac{e^2 + 1}{4} + \dfrac{2}{\pi} \)

Example 2

Question: Evaluate \[ \int_0^2 \left( x^2 e^x + \sin\frac{\pi x}{3} \right) dx \]

Solution: We split the integral: \[ I = I_1 + I_2 \] where \( I_1 = \int_0^2 x^2 e^x \, dx \) and \( I_2 = \int_0^2 \sin\frac{\pi x}{3} \, dx \). For \( I_1 \), apply integration by parts twice. First, let \( u = x^2 \) and \( dv = e^x \, dx \), so \( du = 2x \, dx \) and \( v = e^x \): \[ I_1 = \left[ x^2 e^x \right]_0^2 - \int_0^2 2x e^x \, dx \] \[ I_1 = 4e^2 - 2\int_0^2 x e^x \, dx \] Now for \( \int_0^2 x e^x \, dx \), let \( u = x \) and \( dv = e^x \, dx \), so \( du = dx \) and \( v = e^x \): \[ \int_0^2 x e^x \, dx = \left[ x e^x \right]_0^2 - \int_0^2 e^x \, dx = 2e^2 - \left[ e^x \right]_0^2 \] \[ = 2e^2 - (e^2 - 1) = e^2 + 1 \] Substituting back: \[ I_1 = 4e^2 - 2(e^2 + 1) = 4e^2 - 2e^2 - 2 = 2e^2 - 2 \] For \( I_2 \): \[ I_2 = \left[ \frac{-\cos\frac{\pi x}{3}}{\frac{\pi}{3}} \right]_0^2 = \frac{-3}{\pi} \left[ \cos\frac{\pi x}{3} \right]_0^2 \] \[ I_2 = \frac{-3}{\pi} \left( \cos\frac{2\pi}{3} - \cos 0 \right) = \frac{-3}{\pi} \left( -\frac{1}{2} - 1 \right) \] \[ I_2 = \frac{-3}{\pi} \cdot \left( -\frac{3}{2} \right) = \frac{9}{2\pi} \] Therefore: \[ I = I_1 + I_2 = 2e^2 - 2 + \frac{9}{2\pi} \]

Answer: \( 2e^2 - 2 + \dfrac{9}{2\pi} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate the definite integral \[ \int_0^1 \left( x e^{2x} + \cos\frac{\pi x}{2} \right) dx \]

Solution

  1. Step 1: Split the integral: Using linearity of integration, write the integral as two separate parts: \[ I = \int_0^1 x e^{2x} \, dx + \int_0^1 \cos\frac{\pi x}{2} \, dx \] Call these \( I_1 \) and \( I_2 \) respectively.
  2. Step 2: Evaluate I₁ using Integration by Parts: For \( I_1 = \int_0^1 x e^{2x} \, dx \), let \( u = x \) and \( dv = e^{2x} \, dx \). Then \( du = dx \) and \( v = \frac{e^{2x}}{2} \). Applying the integration by parts formula: \[ I_1 = \left[ x \cdot \frac{e^{2x}}{2} \right]_0^1 - \int_0^1 \frac{e^{2x}}{2} \, dx \]
  3. Step 3: Complete the evaluation of I₁: Evaluate the remaining integral: \[ \int_0^1 \frac{e^{2x}}{2} \, dx = \frac{1}{2} \cdot \left[ \frac{e^{2x}}{2} \right]_0^1 = \frac{1}{4}\left(e^2 - 1\right) \] Now substitute the limits for the first term: \[ \left[ \frac{x e^{2x}}{2} \right]_0^1 = \frac{e^2}{2} - 0 = \frac{e^2}{2} \] Therefore: \[ I_1 = \frac{e^2}{2} - \frac{e^2 - 1}{4} = \frac{2e^2}{4} - \frac{e^2 - 1}{4} = \frac{2e^2 - e^2 + 1}{4} = \frac{e^2 + 1}{4} \]
  4. Step 4: Evaluate I₂: For \( I_2 = \int_0^1 \cos\frac{\pi x}{2} \, dx \), the antiderivative of \( \cos\frac{\pi x}{2} \) is \( \frac{\sin\frac{\pi x}{2}}{\frac{\pi}{2}} = \frac{2}{\pi}\sin\frac{\pi x}{2} \). So: \[ I_2 = \left[ \frac{2}{\pi} \sin\frac{\pi x}{2} \right]_0^1 = \frac{2}{\pi}\sin\frac{\pi}{2} - \frac{2}{\pi}\sin 0 = \frac{2}{\pi}(1) - 0 = \frac{2}{\pi} \]
  5. Step 5: Combine the results: Adding \( I_1 \) and \( I_2 \): \[ I = I_1 + I_2 = \frac{e^2 + 1}{4} + \frac{2}{\pi} \]

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

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)