Practice Maths

← Integration TechniquesIntegration by Parts › Solutions

Integration by Parts — Full Worked Solutions

  1. Find ∫xex dx. Fluency

    By LIATE: Algebraic before Exponential, so let u = x and dv = ex dx.

    Then du = dx and v = ex.

    Applying ∫u dv = uv − ∫v du:

    ∫xex dx = xex − ∫ex dx = xex − ex + C

    = ex(x − 1) + C

    Check by differentiating: d/dx[ex(x−1)] = ex(x−1) + ex(1) = xex

  2. Find ∫x cos(x) dx. Fluency

    By LIATE: Algebraic before Trigonometric. Let u = x, dv = cos x dx.

    Then du = dx and v = sin x.

    ∫x cos x dx = x sin x − ∫sin x dx = x sin x − (−cos x) + C

    = x sin x + cos x + C

    Check: d/dx[x sin x + cos x] = sin x + x cos x − sin x = x cos x ✓

  3. Find ∫ln(x) dx. Fluency

    Write as ∫ln(x) × 1 dx. By LIATE: Logarithm first, so let u = ln x, dv = dx.

    Then du = (1/x) dx and v = x.

    ∫ln x dx = x ln x − ∫x × (1/x) dx = x ln x − ∫1 dx = x ln x − x + C

    = x(ln x − 1) + C

    Check: d/dx[x ln x − x] = ln x + x × (1/x) − 1 = ln x + 1 − 1 = ln x ✓

  4. Find ∫x²ex dx. Fluency

    The polynomial x² has degree 2, so two applications of by parts are needed.

    First application: u = x², dv = ex dx ⇒ du = 2x dx, v = ex.

    ∫x²ex dx = x²ex − 2∫xex dx

    Second application on ∫xex dx: u = x, dv = ex dx ⇒ du = dx, v = ex.

    ∫xex dx = xex − ex

    Combining: ∫x²ex dx = x²ex − 2(xex − ex) + C

    = x²ex − 2xex + 2ex + C

    = ex(x² − 2x + 2) + C

  5. Find ∫x² sin(x) dx. Understanding

    Requires two applications of by parts, keeping u as the polynomial each time.

    First application: u = x², dv = sin x dx. ⇒ du = 2x dx, v = −cos x.

    ∫x²sin x dx = −x²cos x + 2∫x cos x dx

    Second application on ∫x cos x dx: u = x, dv = cos x dx. ⇒ du = dx, v = sin x.

    ∫x cos x dx = x sin x − ∫sin x dx = x sin x + cos x

    Combining: ∫x²sin x dx = −x²cos x + 2(x sin x + cos x) + C

    = −x² cos x + 2x sin x + 2 cos x + C

  6. Find ∫arctan(x) dx. Understanding

    By LIATE: Inverse trig first. Write as ∫arctan(x) × 1 dx.

    Let u = arctan x, dv = dx. ⇒ du = 1/(1+x²) dx, v = x.

    ∫arctan x dx = x arctan x − ∫ x/(1+x²) dx

    For ∫ x/(1+x²) dx: Let w = 1+x², dw = 2x dx, so x dx = dw/2.

    ∫ x/(1+x²) dx = (1/2)∫ dw/w = (1/2) ln|w| = (1/2)ln(1+x²)

    ∫arctan x dx = x arctan x − (1/2)ln(1 + x²) + C

  7. Find ∫exsin(x) dx using the cyclic method. Understanding

    Let I = ∫exsin x dx.

    First application: u = sin x, dv = ex dx. ⇒ du = cos x dx, v = ex.

    I = exsin x − ∫excos x dx

    Second application on ∫excos x dx: u = cos x, dv = ex dx. ⇒ du = −sin x dx, v = ex.

    ∫excos x dx = excos x − ∫ex(−sin x) dx = excos x + ∫exsin x dx = excos x + I

    Substituting: I = exsin x − (excos x + I)

    I = exsin x − excos x − I

    2I = ex(sin x − cos x)

    I = (ex/2)(sin x − cos x) + C

  8. Evaluate ∫01 xe−x dx. Understanding

    Let u = x, dv = e−x dx. ⇒ du = dx, v = −e−x.

    Applying the definite form ∫ab u dv = [uv]ab − ∫ab v du:

    01 xe−x dx = [−xe−x]01 − ∫01(−e−x) dx

    = [−xe−x]01 + ∫01 e−x dx

    = [−xe−x]01 + [−e−x]01

    = (−e−1 − 0) + (−e−1 − (−1))

    = −e−1 + 1 − e−1

    = 1 − 2e−1

    = 1 − 2/e ≈ 0.264

  9. Find ∫(ln x)² dx. Problem Solving

    Write as ∫(ln x)² × 1 dx. Let u = (ln x)², dv = dx.

    du = 2 ln x × (1/x) dx = (2 ln x)/x dx,   v = x.

    ∫(ln x)² dx = x(ln x)² − ∫x × (2 ln x)/x dx = x(ln x)² − 2∫ln x dx

    From Q3: ∫ln x dx = x ln x − x.

    ∫(ln x)² dx = x(ln x)² − 2(x ln x − x) + C

    = x(ln x)² − 2x ln x + 2x + C

    = x[(ln x)² − 2 ln x + 2] + C

    Check: d/dx{x[(ln x)²−2ln x+2]} = (ln x)²−2ln x+2 + x[2(ln x)/x − 2/x] = (ln x)²−2ln x+2+2ln x−2 = (ln x)² ✓

  10. Find the volume of revolution of y = ln(x) from x = 1 to x = e, rotated about the x-axis. Problem Solving

    The volume of revolution about the x-axis is V = π∫1e [ln(x)]² dx.

    From Q9 (indefinite result): ∫(ln x)² dx = x[(ln x)² − 2 ln x + 2] + C.

    Evaluate from x = 1 to x = e:

    At x = e:   e[(ln e)² − 2 ln e + 2] = e[1 − 2 + 2] = e[1] = e

    At x = 1:   1[(ln 1)² − 2 ln 1 + 2] = 1[0 − 0 + 2] = 2

    1e (ln x)² dx = e − 2

    V = π(e − 2) ≈ 3.550 cubic units