A545 of 56
0 XP
  1. Hook
  2. Predict
  3. Name it
  4. Check
  5. Explain

A5 · Lesson 45 · Integration techniques

Undoing the chain rule and the product rule

Differentiating is mechanical: the rules always work. Integrating is harder, because not every formula has an antiderivative you can write down, and the ones that do often need a trick. For electrical engineering a small toolkit covers nearly everything: substitution, integration by parts, and a couple of identities. Here's that toolkit, each trick tied to the derivative rule it undoes.

Predict

Without integrating, which of these is an antiderivative of 2xex2?

Name it

The toolkit

Substitution undoes the chain rule. If the integrand is some f(u) times du/dx, set u equal to the inside:

∫f(u(x))u′(x)dx=∫f(u)du

For ∫2xex2dx, let u=x2, so du=2xdx, and the integral is ∫eudu=eu=ex2. The most common case in circuits is a linear inside, u=at+b: ∫e−t/τdt=−τe−t/τ.

Integration by parts undoes the product rule. From (uv)′=u′v+uv′,

∫uv′dx=uv−∫u′vdx

Choose u to be the factor that gets simpler when differentiated. For ∫xexdx, take u=x and v′=ex: the result is xex−∫exdx=(x−1)ex.

Identities turn awkward powers into easy terms. The one you'll use most, from A2:

sin2⁡θ=1−cos⁡2θ2so∫02πsin2⁡θdθ=π

That's why the average of sin2⁡ over a cycle is ½, the heart of RMS.

Definite integrals of exponential decays come up in every transient. Two to know:

∫0∞e−t/τdt=τ∫0∞te−t/τdt=τ2

When nothing works. Many integrals, like ∫e−x2dx, have no formula in ordinary functions. Then you integrate numerically, with the trapezoid rule or better (A6 and A13), or use a named function: ∫e−x2 is where the error function, erf, comes from.

Energy check. A capacitor charged to V0 discharging through R delivers power p=V02e−2t/RC/R. Integrating to infinity gives V02R⋅RC2=12CV02, exactly the energy it stored. Lesson 52 finds the same energy from the work done charging it.

Worked example

Find ∫2xcos⁡(x2)dx.

Show the solution
  1. Substitute. Let u=x2, so du=2xdx: ∫2xcos⁡(x2)dx=∫cos⁡udu=sin⁡u+C=sin⁡(x2)+C
  2. Check. ddxsin⁡(x2)=2xcos⁡(x2)

Answer ∫2xcos⁡(x2)dx=sin⁡(x2)+C.

Worked example

Find ∫xexdx.

Show the solution
  1. Integrate by parts. Take u=x and dv=exdx: ∫xexdx=xex−∫exdx=(x−1)ex+C
  2. Check. ddx(x−1)ex=ex+(x−1)ex=xex

Answer ∫xexdx=(x−1)ex+C.

Worked example

Find ∫0πxsin⁡xdx.

Show the solution
  1. Choose the parts. Take u=x and dv=sin⁡xdx, so du=dx and v=−cos⁡x.
  2. Integrate by parts. ∫xsin⁡xdx=−xcos⁡x+∫cos⁡xdx=−xcos⁡x+sin⁡x
  3. Evaluate from 0 to π. (−πcos⁡π+sin⁡π)−(0)=π
  4. Check. Differentiating −xcos⁡x+sin⁡x gives back xsin⁡x, which confirms it.

Answer the integral is π.

Check

Find an antiderivative of xe4x2 (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

Find an antiderivative of xex (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

Evaluate ∫02π182sin2⁡θdθ.

Check

A 1.5 µF capacitor charged to 12 V discharges through a resistor. Integrating the resistor's power V02e−2t/RC/R from 0 to ∞, how much energy does the resistor absorb?

Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.

Check

Evaluate these integrals.

(a)

∫01xe2xdx

(b)

∫01x1+2x2dx

(c)

∫0π/2sin⁡xcos2⁡xdx

Check

Integrate xcos⁡x by parts, with u=x and dv=cos⁡xdx.

Step 1

What is v?

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

Why is it always a good idea to differentiate an antiderivative you've found?

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.