A61 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A6 · Lesson 1 · Integration by parts

The product rule, run backwards

How much charge does a current pulse i=I0tτe−t/τ deliver? What's the energy in a decaying oscillation? Integrals of products, a polynomial times an exponential, an exponential times a sine, show up in every transient. Substitution doesn't crack them. Integration by parts does: it trades the integral you have for one that's easier, by running the product rule in reverse.

  • The curve is the pulse tτe−t/τ with τ = 1. The shaded area up to T is the charge delivered so far.
  • Move T out to large values. What total does the area approach?
  • Compare the readout with the formula from integration by parts, 1−(1+T)e−T.

Predict

What is ∫0∞te−tdt?

Name it

The formula

From the product rule, (uv)′=u′v+uv′. Integrate both sides and rearrange:

∫udv=uv−∫vdu

and for definite integrals, ∫abudv=[uv]ab−∫abvdu.

Choosing u. Pick u to be the factor that gets simpler when differentiated, and dv the factor you can integrate. A common guide, in order of preference for u: logarithms, inverse trig, algebraic (powers of x), trig, exponentials.

Patterns

A power times an exponential or a sine: u = the power. Each round lowers the power by one. ∫x2exdx needs two rounds: (x2−2x+2)ex+C.

Logarithms: u=ln⁡x, dv=dx. So ∫ln⁡xdx=xln⁡x−x+C.

An exponential times a sine (the "boomerang"): parts twice brings the original integral back, and you solve for it:

∫eatcos⁡btdt=eat(acos⁡bt+bsin⁡bt)a2+b2+C

With complex exponentials (A3, and lesson 43 here) it takes one line: it's the real part of ∫e(a+jb)tdt=e(a+jb)ta+jb.

Tabular shortcut: for xn times something you can integrate repeatedly, list derivatives of xn down one column and integrals of the other down the next, then multiply diagonally with alternating signs.

Worked example

Find ∫x2exdx.

Show the solution
  1. First round of parts. Take u=x2 and dv=exdx: ∫x2exdx=x2ex−∫2xexdx
  2. Second round, on ∫2xexdx. Take u=2x: ∫2xexdx=2xex−∫2exdx=2xex−2ex
  3. Put them together. ∫x2exdx=x2ex−2xex+2ex+C=(x2−2x+2)ex+C
  4. Check by differentiating. (2x−2)ex+(x2−2x+2)ex=x2ex

Answer ∫x2exdx=(x2−2x+2)ex+C.

Worked example

Find ∫1eln⁡xdx.

Show the solution
  1. Choose the parts. Take u=ln⁡x and dv=dx, so du=dx/x and v=x: ∫1eln⁡xdx=[xln⁡x]1e−∫1ex⋅1xdx
  2. Evaluate both parts. ∫1eln⁡xdx=(e−0)−(e−1)=1

Answer ∫1eln⁡xdx=1.

Worked example

Find ∫0πexsin⁡xdx.

Show the solution
  1. Integrate by parts twice. Use the exponential as dv both times, and call the integral I: I=exsin⁡x−∫excos⁡xdx=exsin⁡x−excos⁡x−I
  2. Solve for I. The integral comes back on the right, so solve for it: I=12ex(sin⁡x−cos⁡x)
  3. Evaluate from 0 to π. 12(eπ(0+1)−(0−1))=eπ+12=12.07

Answer ∫0πexsin⁡xdx=eπ+12=12.07.

Check

Find ∫xe3xdx (constant zero).

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

A current pulse is i=2tτe−t/τ mA with τ = 2 ms. How much charge does it deliver in all, in µC?

Write units the way you normally would: 1.5 µC, 1500 nC and 0.0015 mC are the same answer.

Check

Evaluate ∫13ln⁡xdx.

Check

Evaluate ∫0∞e−1tcos⁡(3t)dt.

Check

Find ∫x2exdx (constant zero).

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Integrate by parts.

(a)

∫0∞t2e−3tdt

(b)

∫12xln⁡xdx

Check

Integrate ln⁡x by parts with u=ln⁡x and dv=dx.

Step 1

What is uv?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

How do you decide which factor to call u in integration by parts?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.