19

Day 19

U Substitution And Accumulation Functions


U-Substitution: Reversing the Chain Rule

The integration counterpart of the chain rule. When the integrand contains a function and (a multiple of) its derivative, substitute uu for the inner function to collapse the integral into a basic form.

Core Theorem
If u=g(x)u = g(x) so that du=g(x)dxdu = g'(x)\,dx, then
f(g(x))g(x)dx=f(u)du\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du
For a definite integral, either convert the limits to uu-values or convert back to xx before evaluating.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
Evaluate 2x(x2+1)5dx\int 2x\,(x^2 + 1)^5 \, dx.
How to think about it

Key idea: Let u=x2+1u = x^2 + 1. Then du=2xdxdu = 2x\,dx, which is already present.

Full solution

1. Choose u

u=x2+1    du=2xdxu = x^2 + 1 \implies du = 2x\,dx.

2. Rewrite in u

u5du\int u^5 \, du.

3. Integrate

u66+C\frac{u^6}{6} + C.

4. Substitute back

(x2+1)66+C\frac{(x^2 + 1)^6}{6} + C.
Worked Example 02Medium
Evaluate xx2+4dx\int x\sqrt{x^2 + 4} \, dx.
How to think about it

Key idea: Let u=x2+4u = x^2 + 4, so du=2xdxdu = 2x\,dx and xdx=12dux\,dx = \tfrac{1}{2}\,du.

Full solution

1. Choose u and solve for the piece you need

u=x2+4    du=2xdx    xdx=12duu = x^2 + 4 \implies du = 2x\,dx \implies x\,dx = \tfrac{1}{2}\,du.

2. Rewrite in u

u12du=12u1/2du\int \sqrt{u}\cdot\tfrac{1}{2}\,du = \tfrac{1}{2}\int u^{1/2}\,du.

3. Integrate

12u3/23/2=u3/23\tfrac{1}{2}\cdot\frac{u^{3/2}}{3/2} = \frac{u^{3/2}}{3}.

4. Substitute back

(x2+4)3/23+C\frac{(x^2 + 4)^{3/2}}{3} + C.
Step-by-Step SOP
  1. 1

    Pick u

    Choose uu as the inner function — often what sits inside a power, root, exponential, or denominator.
  2. 2

    Compute du

    Differentiate: du=g(x)dxdu = g'(x)\,dx. Solve for whatever piece the integrand needs.
  3. 3

    Substitute

    Rewrite the whole integral in uu and dudu — no xx should remain.
  4. 4

    Integrate

    Evaluate the simpler integral in uu.
  5. 5

    Convert back

    Replace uu with g(x)g(x) for an indefinite integral, or change the limits for a definite one.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
Evaluate 01xx2+1dx\int_0^1 \frac{x}{x^2 + 1} \, dx.
Need a hint?
Let u=x2+1u = x^2 + 1 and change the limits: x=0u=1x=0 \Rightarrow u=1, x=1u=2x=1 \Rightarrow u=2.
Show solution

1. Substitute and change the limits

u=x2+1u = x^2 + 1, du=2xdxdu = 2x\,dx; the limits become u:12u: 1 \to 2.

2. Rewrite in u

121u12du=12121udu\int_1^2 \frac{1}{u}\cdot\tfrac{1}{2}\,du = \tfrac{1}{2}\int_1^2 \frac{1}{u}\,du.

3. Integrate and evaluate

12[lnu]12=12(ln2ln1)=12ln2\tfrac{1}{2}\Big[\ln|u|\Big]_1^2 = \tfrac{1}{2}(\ln 2 - \ln 1) = \tfrac{1}{2}\ln 2.
Practice 02Hard
Evaluate 0π/2cos(x)esin(x)dx\int_0^{\pi/2} \cos(x)\,e^{\sin(x)} \, dx.
Need a hint?
Let u=sin(x)u = \sin(x), so du=cos(x)dxdu = \cos(x)\,dx. Change the limits.
Show solution

1. Substitute

u=sin(x)u = \sin(x); the limits x:0π/2x: 0 \to \pi/2 become u:01u: 0 \to 1.

2. Rewrite and integrate

01eudu=[eu]01=e1\int_0^1 e^u \, du = \Big[e^u\Big]_0^1 = e - 1.
Common Pitfalls
  • Not changing the limits on a definite integralIf you switch to uu but keep the original xx-limits, the answer is wrong. Either convert the limits to uu-values, or convert back to xx before evaluating.
  • Leftover x termsAfter substituting, every xx must be gone. If an xx remains, the substitution is wrong or you also need to solve u=g(x)u = g(x) for xx and substitute that.

Accumulation Functions: Analyzing g(x) = ∫ f(t) dt

When a function is defined as g(x)=axf(t)dtg(x) = \int_a^x f(t)\,dt, the FTC turns every question about gg into a question about ff: g=fg' = f and g=fg'' = f'. Given the graph of ff, you can find gg's values, extrema, concavity, and inflection points — a staple AP free-response question.

Core Theorem
For g(x)=axf(t)dtg(x) = \displaystyle\int_a^x f(t)\,dt with ff continuous:
g(a)=0g(a) = 0; g(x)g(x) is the signed area under ff from aa to xx.
g(x)=f(x)g'(x) = f(x): gg increases where f>0f > 0, decreases where f<0f < 0.
gg has a local max where ff changes ++\to-, a local min where ff changes +-\to+.
g(x)=f(x)g''(x) = f'(x): gg is concave up where ff is increasing; inflection points of gg occur where ff has a local extremum.
• Absolute extrema of
gg on [a,b][a, b]: compare gg at the critical numbers (where f=0f = 0 with a sign change) and at the endpoints.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Medium
Let g(x)=0xf(t)dtg(x) = \int_0^x f(t)\,dt, where the graph of ff on [0,6][0, 6] is the line segments through (0,3)(0, 3), (2,3)(2, 3), (4,1)(4, -1), (6,1)(6, -1). Find g(2)g(2) and g(4)g(4).
How to think about it

Key idea: gg is signed area under ff. On [0,2][0, 2] it is a rectangle; on [2,4][2, 4] it is a trapezoid that crosses the axis.

Full solution

1. g(2): area on [0, 2]

f=3f = 3 (constant) on [0,2][0, 2]: g(2)=3×2=6g(2) = 3 \times 2 = 6.

2. g(4): add the area on [2, 4]

On [2,4][2, 4], ff drops linearly from 33 to 1-1, crossing zero at t=3.5t = 3.5. Positive part (a triangle, base 1.51.5, height 33): +2.25+2.25. Negative part (base 0.50.5, height 11): 0.25-0.25. So g(4)=6+2.250.25=8g(4) = 6 + 2.25 - 0.25 = 8.
Worked Example 02Medium
For the same gg and ff as above, on what interval is gg increasing, and where does gg have its absolute maximum on [0,6][0, 6]? Justify.
How to think about it

Key idea: g=fg' = f. gg increases where f>0f > 0; the maximum is where ff changes from ++ to - (compare with endpoints).

Full solution

1. Where g increases

f>0f > 0 on (0,3.5)(0, 3.5) and f<0f < 0 on (3.5,6)(3.5, 6), so gg is increasing on (0,3.5)(0, 3.5) and decreasing on (3.5,6)(3.5, 6) (because g=fg' = f).

2. Absolute maximum

g=fg' = f changes from positive to negative at x=3.5x = 3.5, and gg increases before it and decreases after, so the absolute maximum of gg on [0,6][0, 6] is at x=3.5x = 3.5.
Step-by-Step SOP
  1. 1

    Write down g' and g''

    g(x)=f(x)g'(x) = f(x) and g(x)=f(x)g''(x) = f'(x) by the FTC — now every question is about ff.
  2. 2

    Values of g: accumulate signed area

    g(x)=axfg(x) = \int_a^x f — add up areas of triangles/rectangles under the graph of ff, subtracting where f<0f < 0.
  3. 3

    Increasing / extrema of g: sign of f

    Sign chart for ff: ++gg up, -gg down; sign change ⇒ local extremum of gg.
  4. 4

    Concavity / inflection of g: behavior of f

    ff increasing ⇒ gg concave up; ff's local extrema ⇒ gg's inflection points.
  5. 5

    Absolute extrema of g

    Compare gg at the interior critical numbers and at both endpoints.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Hard
Let h(x)=1xf(t)dth(x) = \int_1^x f(t)\,dt, where ff is differentiable and its graph on [1,5][1, 5] is concave down with a single maximum at t=3t = 3. On what interval is the graph of hh concave up, and where is its inflection point? Justify.
Need a hint?
h=fh'' = f'. Concave up means h>0h'' > 0, i.e. ff is increasing.
Show solution

1. Translate concavity of h to behavior of f

h(x)=f(x)h''(x) = f'(x). hh is concave up where f>0f' > 0, i.e. where ff is increasing.

2. Read off f's behavior

ff increases on (1,3)(1, 3) and decreases on (3,5)(3, 5) (it peaks at t=3t = 3).

3. Conclude

The graph of hh is concave up on (1,3)(1, 3) and concave down on (3,5)(3, 5), with an inflection point at x=3x = 3 because ff' (which is hh'') changes sign there.
Practice 02Medium
g(x)=0xf(t)dtg(x) = \int_0^x f(t)\,dt and 03f(t)dt=4\int_0^3 f(t)\,dt = -4, 37f(t)dt=10\int_3^7 f(t)\,dt = 10. Find g(7)g(7) and 73f(t)dt\int_7^3 f(t)\,dt.
Need a hint?
Use additivity for g(7)g(7), and the reversal property for the last integral.
Show solution

1. g(7) by additivity

g(7)=07f=03f+37f=4+10=6g(7) = \int_0^7 f = \int_0^3 f + \int_3^7 f = -4 + 10 = 6.

2. Reverse the limits

73f(t)dt=37f(t)dt=10\int_7^3 f(t)\,dt = -\int_3^7 f(t)\,dt = -10.
Common Pitfalls
  • Confusing the graph of f with the graph of gA peak on the graph of ff is an inflection point of gg (where g=fg'' = f' changes sign), not a maximum of gg.
  • Forgetting g(a) = 0g(x)=axfg(x) = \int_a^x f always starts at 00 when x=ax = a. Use that as the anchor when accumulating.
Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.