SOLVER7 Study. Nothing Else.
Exercise 7.6 Q3

Integrate the functions in Exercises 1 to 22. \(x^2\ e^x\ \)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you want to undo a knot that has two strings twisted together. Integrating \( x^2 e^x \) is like untwisting two functions wrapped around each other. A special trick called integration by parts lets us peel one function away at a time. Because \( x^2 \) shrinks when you differentiate it, we keep peeling until the polynomial disappears completely. After doing this peeling twice, everything simplifies neatly into a clean answer.

Answer: \[\int x^2 e^x \, dx = e^x \left( x^2 - 2x + 2 \right) + C\]

📖 Integration of x² eˣ by Parts

Detailed Explanation

When we integrate a product of two different types of functions (here a polynomial \( x^2 \) and an exponential \( e^x \)), we use the technique called integration by parts. This method comes from the product rule of differentiation. To decide which function is the first function (call it \( u \)) and which is the second (call it \( dv \)), we use the ILATE rule, where I = Inverse trig, L = Logarithm, A = Algebraic, T = Trigonometric, E = Exponential. The function appearing earlier in ILATE is chosen as \( u \). Here \( x^2 \) is Algebraic (A) and \( e^x \) is Exponential (E), so we take \( u = x^2 \). Since differentiating \( x^2 \) reduces its power, repeated application of by parts eventually removes the polynomial completely.

Formula Used

\[\int u \, v \, dx = u \int v \, dx - \int \left( \frac{du}{dx} \int v \, dx \right) dx\]

Solution

  1. Step 1: Identify the two functions. Take \( u = x^2 \) (algebraic) and \( dv = e^x \, dx \) (exponential), following the ILATE rule. We need \( \int e^x \, dx = e^x \).
  2. Step 2: Apply integration by parts once: \[\int x^2 e^x \, dx = x^2 e^x - \int 2x \, e^x \, dx\] Here we differentiated \( x^2 \) to get \( 2x \) and integrated \( e^x \) to get \( e^x \).
  3. Step 3: The remaining integral \( \int 2x \, e^x \, dx \) still has a polynomial times an exponential, so apply integration by parts again with \( u = 2x \) and \( dv = e^x \, dx \): \[\int 2x \, e^x \, dx = 2x e^x - \int 2 e^x \, dx\]
  4. Step 4: Compute the simple remaining integral: \[\int 2 e^x \, dx = 2 e^x\] So \[\int 2x \, e^x \, dx = 2x e^x - 2 e^x\]
  5. Step 5: Substitute this back into the result of Step 2: \[\int x^2 e^x \, dx = x^2 e^x - \left( 2x e^x - 2 e^x \right)\] Simplify: \[\int x^2 e^x \, dx = x^2 e^x - 2x e^x + 2 e^x + C\]
  6. Step 6: Factor out the common term \( e^x \) to write the answer neatly: \[\int x^2 e^x \, dx = e^x \left( x^2 - 2x + 2 \right) + C\]

Final Answer

\[\int x^2 e^x \, dx = e^x \left( x^2 - 2x + 2 \right) + C\]

Common Mistake

A common mistake is forgetting the minus sign when substituting the second by-parts result back, or dropping the brackets. The whole expression \( (2x e^x - 2 e^x) \) must be subtracted, which changes the sign of every term inside it, giving \( -2x e^x + 2 e^x \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Choose u and dv using the ILATE Rule: We have the integral \[\int x^2 e^x \, dx\] The ILATE rule says: Inverse trig, Logarithm, Algebraic, Trigonometric, Exponential — whichever comes first in this list is chosen as \( u \). Here \( x^2 \) is Algebraic and \( e^x \) is Exponential, so Algebraic comes first. Set \( u = x^2 \) and \( dv = e^x \, dx \). — Reason: Differentiating a polynomial reduces its degree, so repeated application will eventually eliminate the polynomial entirely.
  2. Step 2: Compute du and v: Differentiate \( u = x^2 \) to get \( \frac{du}{dx} = 2x \), so \( du = 2x \, dx \). Integrate \( dv = e^x \, dx \) to get \( v = e^x \). — Reason: We need both \( du \) and \( v \) before we can apply the integration by parts formula.
  3. Step 3: Apply Integration by Parts (First Time): Substituting into the formula gives \[\int x^2 e^x \, dx = x^2 e^x - \int 2x \, e^x \, dx\] — Reason: The original integral is now expressed in terms of a simpler integral \( \int 2x \, e^x \, dx \), where the polynomial factor \( 2x \) has a lower degree than before.
  4. Step 4: Apply Integration by Parts (Second Time) on the Remaining Integral: For \( \int 2x \, e^x \, dx \), choose \( u = 2x \) (algebraic) and \( dv = e^x \, dx \) (exponential). Then \( du = 2 \, dx \) and \( v = e^x \). Applying the formula: \[\int 2x \, e^x \, dx = 2x \, e^x - \int 2 e^x \, dx\] — Reason: The polynomial degree has dropped again; one more step will fully remove the polynomial.
  5. Step 5: Evaluate the Final Simple Integral: Now integrate the remaining term directly: \[\int 2 e^x \, dx = 2e^x\] — Reason: The integral of \( e^x \) is simply \( e^x \), so \( \int 2e^x \, dx = 2e^x \). No further by-parts is needed.
  6. Step 6: Substitute Back and Combine All Parts: Replace the inner result back into Step 3. From Step 4 and Step 5: \[\int 2x \, e^x \, dx = 2x \, e^x - 2e^x\] Now substitute this into the expression from Step 3: \[\int x^2 e^x \, dx = x^2 e^x - \left(2x \, e^x - 2e^x\right) + C\] Expanding the brackets: \[\int x^2 e^x \, dx = x^2 e^x - 2x \, e^x + 2e^x + C\] — Reason: We combine all pieces from both applications of integration by parts, being careful with the minus sign before the bracket.
  7. Step 7: Factor and Write the Final Answer: Factor out \( e^x \) from all three terms: \[\int x^2 e^x \, dx = e^x \left( x^2 - 2x + 2 \right) + C\] — Reason: Factoring \( e^x \) gives the answer in its most compact and standard form.

Final Answer

\[\int x^2 e^x \, dx = e^x \left( x^2 - 2x + 2 \right) + C\]

Common Mistake

One common mistake: When expanding \( x^2 e^x - (2x \, e^x - 2e^x) \) in Step 6, students often forget to distribute the minus sign correctly, writing \( -2x \, e^x - 2e^x \) instead of the correct \( -2x \, e^x + 2e^x \), which changes the final answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: First application of integration by parts: Take \( u = x^2 \), \( dv = e^x \, dx \): \[\int x^2 e^x \, dx = x^2 e^x - \int 2x \, e^x \, dx\]
  2. Step 2: Second application of integration by parts: Take \( u = 2x \), \( dv = e^x \, dx \): \[\int 2x \, e^x \, dx = 2x e^x - \int 2 e^x \, dx = 2x e^x - 2e^x\]
  3. Step 3: Combine all terms: \[\int x^2 e^x \, dx = x^2 e^x - \left(2x e^x - 2e^x\right) + C = e^x\left(x^2 - 2x + 2\right) + C\]

Answer: \[\int x^2 e^x \, dx = e^x \left( x^2 - 2x + 2 \right) + C\]

➕ More Examples

More Examples

Example 1

Question: Integrate \( x^2 e^{3x} \) with respect to \( x \).

Solution: We apply integration by parts twice, since the polynomial factor \( x^2 \) requires two reductions. Let \( u = x^2 \) and \( dv = e^{3x} \, dx \). Then \( du = 2x \, dx \) and \( v = \dfrac{e^{3x}}{3} \). Applying the formula \( \int u \, dv = uv - \int v \, du \): \[\int x^2 e^{3x} \, dx = \frac{x^2 e^{3x}}{3} - \int \frac{e^{3x}}{3} \cdot 2x \, dx\] \[= \frac{x^2 e^{3x}}{3} - \frac{2}{3} \int x e^{3x} \, dx\] Now evaluate \( \int x e^{3x} \, dx \) by parts again. Let \( u = x \) and \( dv = e^{3x} \, dx \). Then \( du = dx \) and \( v = \dfrac{e^{3x}}{3} \). \[\int x e^{3x} \, dx = \frac{x e^{3x}}{3} - \int \frac{e^{3x}}{3} \, dx\] \[= \frac{x e^{3x}}{3} - \frac{e^{3x}}{9}\] Substituting back: \[\int x^2 e^{3x} \, dx = \frac{x^2 e^{3x}}{3} - \frac{2}{3}\left(\frac{x e^{3x}}{3} - \frac{e^{3x}}{9}\right)\] \[= \frac{x^2 e^{3x}}{3} - \frac{2x e^{3x}}{9} + \frac{2 e^{3x}}{27} + C\] Factoring out \( e^{3x} \): \[= e^{3x}\left(\frac{x^2}{3} - \frac{2x}{9} + \frac{2}{27}\right) + C\]

Answer: \[\int x^2 e^{3x} \, dx = e^{3x}\left(\frac{x^2}{3} - \frac{2x}{9} + \frac{2}{27}\right) + C\]

Example 2

Question: Integrate \( x^2 e^{-x} \) with respect to \( x \).

Solution: We apply integration by parts twice. Let \( u = x^2 \) and \( dv = e^{-x} \, dx \). Then \( du = 2x \, dx \) and \( v = -e^{-x} \). Applying the formula: \[\int x^2 e^{-x} \, dx = x^2(-e^{-x}) - \int (-e^{-x}) \cdot 2x \, dx\] \[= -x^2 e^{-x} + 2\int x e^{-x} \, dx\] Now evaluate \( \int x e^{-x} \, dx \) by parts. Let \( u = x \) and \( dv = e^{-x} \, dx \). Then \( du = dx \) and \( v = -e^{-x} \). \[\int x e^{-x} \, dx = x(-e^{-x}) - \int (-e^{-x}) \, dx\] \[= -x e^{-x} - e^{-x}\] Substituting back: \[\int x^2 e^{-x} \, dx = -x^2 e^{-x} + 2\left(-x e^{-x} - e^{-x}\right)\] \[= -x^2 e^{-x} - 2x e^{-x} - 2e^{-x} + C\] Factoring out \( -e^{-x} \): \[= -e^{-x}\left(x^2 + 2x + 2\right) + C\]

Answer: \[\int x^2 e^{-x} \, dx = -e^{-x}\left(x^2 + 2x + 2\right) + C\]

🎯 Try a Similar Question

Try a Similar Question

Question: Integrate the function \( x^2 e^{3x} \) with respect to \( x \).

Solution

  1. Step 1: Choose u and v: Let \( u = x^2 \) (algebraic part) and \( \frac{dv}{dx} = e^{3x} \) (exponential part), following the ILATE rule. Then \( \frac{du}{dx} = 2x \) and \( v = \int e^{3x} \, dx = \frac{e^{3x}}{3} \).
  2. Step 2: Apply Integration by Parts (first time): Using \( \int u \, dv = uv - \int v \, du \), we get \[ \int x^2 e^{3x} \, dx = x^2 \cdot \frac{e^{3x}}{3} - \int \frac{e^{3x}}{3} \cdot 2x \, dx \] which simplifies to \[ = \frac{x^2 e^{3x}}{3} - \frac{2}{3} \int x e^{3x} \, dx. \]
  3. Step 3: Evaluate the remaining integral using Integration by Parts (second time): Now we evaluate \( \int x e^{3x} \, dx \). Let \( u = x \) and \( \frac{dv}{dx} = e^{3x} \), so \( \frac{du}{dx} = 1 \) and \( v = \frac{e^{3x}}{3} \). Then \[ \int x e^{3x} \, dx = x \cdot \frac{e^{3x}}{3} - \int \frac{e^{3x}}{3} \, dx = \frac{x e^{3x}}{3} - \frac{e^{3x}}{9}. \]
  4. Step 4: Substitute back: Substituting the result of Step 3 back into Step 2: \[ \int x^2 e^{3x} \, dx = \frac{x^2 e^{3x}}{3} - \frac{2}{3} \left( \frac{x e^{3x}}{3} - \frac{e^{3x}}{9} \right). \]
  5. Step 5: Expand and simplify: Expanding: \[ = \frac{x^2 e^{3x}}{3} - \frac{2x e^{3x}}{9} + \frac{2 e^{3x}}{27}. \] Factoring out \( e^{3x} \): \[ = e^{3x} \left( \frac{x^2}{3} - \frac{2x}{9} + \frac{2}{27} \right) + C. \]

Answer: \[ \int x^2 e^{3x} \, dx = e^{3x} \left( \frac{x^2}{3} - \frac{2x}{9} + \frac{2}{27} \right) + C \]

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)