AP Calculus AB · Topic 6.5 · Reading guide, about 5 min

Analyzing g(x) = integral of f from its graph

Use a graph of f made of lines and semicircles to find values, increasing, extrema and concavity of g(x), an integral of f.

In one minute

When you are given the graph of ff and the function g(x)=∫axf(t) dtg(x)=\int_a^x f(t)\,dt, you can learn nearly everything about gg from that one graph. Values of gg are signed areas, and its shape is controlled by ff since g′=fg'=f and g′′=f′g''=f'.

This topic is the unit's big justification skill. Every statement about gg must name the right function: the sign of ff for increasing and decreasing, the sign change of ff for extrema, and the sign of f′f', which is the slope of the ff graph, for concavity.

Key terms

Accumulation function
g(x)=∫axf(t) dtg(x)=\int_a^x f(t)\,dt, the signed area of ff from aa to xx. It starts at g(a)=0g(a)=0.
Signed area from a graph
Areas of triangles, rectangles and semicircles between the graph and the axis, positive above and negative below.
Semicircle area
A semicircle of radius rr has area 12πr2\frac{1}{2}\pi r^2. Its diameter lies on the axis.
Increasing and decreasing
gg increases where f>0f>0 and decreases where f<0f<0, since g′=fg'=f.
Relative extremum of g
Occurs where ff changes sign: positive to negative gives a relative maximum, negative to positive a relative minimum.
Concavity of g
gg is concave up where ff is increasing, concave down where ff is decreasing, because g′′=f′g''=f'.
Inflection point of g
A point where gg changes concavity. It occurs where ff has a relative maximum or minimum, so f′f' changes sign.
Candidates test
To find the absolute extremes of gg on a closed interval, compare gg at the endpoints and at the points where ff changes sign.

Getting values of g from areas

To find g(x)g(x), add up the signed areas of ff from the lower limit to xx. Work from left to right and keep a running total at every point where the graph changes shape. If ff is below the axis on a stretch, subtract that area. If a piece is a semicircle, use 12πr2\frac{1}{2}\pi r^2 with rr half of the diameter along the axis.

If a problem gives g(a)g(a) as something other than 0, for example g(0)=5g(0)=5 because the definition is g(x)=5+∫0xf(t) dtg(x)=5+\int_0^x f(t)\,dt, add that starting value to every total.

Reading the shape of g from the graph of f

Three questions give the shape. Is ff positive or negative? That is whether gg rises or falls. Does ff change sign? That is where gg has a maximum or minimum. Is ff rising or falling? That is whether gg is concave up or concave down. A point where the graph of ff has a peak or valley, even while ff stays positive, is an inflection point of gg, because the slope of gg stops growing and starts shrinking, or the reverse.

When you write a justification, say it in terms of ff: "gg has a relative maximum at x=4x=4 because g′=fg'=f changes from positive to negative there." Never say that gg changes sign, because gg and ff are different functions.

For absolute extremes on a closed interval, a relative maximum is only a candidate. Compute gg at each candidate and each endpoint and compare. The largest value need not be at the largest relative maximum, as the example shows.

What a feature of the f graph says about g
Feature of the graph of fMeaning for g
f>0f>0 on an intervalgg is increasing there
ff crosses the axis from above to belowgg has a relative maximum
ff crosses the axis from below to abovegg has a relative minimum
ff is increasinggg is concave up
ff has a peak or valleygg has an inflection point

A fully worked example

The graph of ff on [0,8][0,8] is: a line from (0,0)(0,0) up to (2,4)(2,4); a line from (2,4)(2,4) down to (4,0)(4,0); a lower semicircle with diameter from x=4x=4 to x=6x=6 (radius 1, dipping to −1-1 at x=5x=5); and a line from (6,0)(6,0) up to (8,2)(8,2). Let g(x)=∫0xf(t) dtg(x)=\int_0^x f(t)\,dt.

Values. g(0)=0g(0)=0. The first triangle has base 2 and height 4, area 4, so g(2)=4g(2)=4. The second triangle has base 2 and height 4, area 4, so g(4)=8g(4)=8. The semicircle has area 12π(1)2=π2\frac{1}{2}\pi(1)^2=\frac{\pi}{2} and lies below the axis, so g(6)=8−π2≈6.43g(6)=8-\frac{\pi}{2}\approx 6.43. The last triangle has base 2 and height 2, area 2, so g(8)=10−π2≈8.43g(8)=10-\frac{\pi}{2}\approx 8.43.

Increasing and decreasing. f>0f>0 on (0,4)(0,4) and on (6,8)(6,8), so gg increases there. f<0f<0 on (4,6)(4,6), so gg decreases there.

Extrema. ff changes from positive to negative at x=4x=4, so gg has a relative maximum there with value 8. ff changes from negative to positive at x=6x=6, so gg has a relative minimum there, value 8−π28-\frac{\pi}{2}.

Absolute extremes on [0,8][0,8]. Compare candidates: g(0)=0g(0)=0, g(4)=8g(4)=8, g(6)≈6.43g(6)\approx 6.43, g(8)≈8.43g(8)\approx 8.43. The absolute maximum is at the endpoint x=8x=8, with value 10−π210-\frac{\pi}{2}, and the absolute minimum is at x=0x=0, value 0.

Concavity. ff is increasing on (0,2)(0,2), decreasing on (2,5)(2,5) (down the line, then down into the bottom of the semicircle), and increasing on (5,8)(5,8). So gg is concave up on (0,2)(0,2) and (5,8)(5,8) and concave down on (2,5)(2,5). Inflection points of gg are at x=2x=2 and x=5x=5, where f′f' changes sign.

How it connects

  • Back to 5.4: relative extrema of gg come from a sign change of g′=fg'=f, the first derivative test.
  • Back to 5.6: concave up and down for gg comes from the sign of g′′=f′g''=f'.
  • Back to 5.5: the closed-interval candidates test finds the absolute extremes of gg, with endpoints included.
  • Forward to 6.7: with a formula for ff, antiderivatives give gg exactly, replacing geometric areas.

Common mistakes

  • **Saying gg is increasing because ff is increasing.** Increasing ff means gg is concave up. For gg to increase, ff must be positive.
  • **Looking for extrema of gg at extrema of ff.** Extrema of gg come where ff crosses zero. Extrema of ff give inflection points of gg.
  • Forgetting the endpoints for an absolute extreme. The largest or smallest value of gg is often at an endpoint.
  • Counting a below-axis semicircle as positive area. It subtracts from gg.

How it shows up on the exam

  • A graph of ff made of line segments and semicircles, with questions asking for values of gg, intervals where gg is increasing or concave down, relative or absolute extrema, and inflection points, each with a justification.
  • A free-response part that asks you to justify an answer, where the reason must cite the sign or sign change of ff or the behavior of f′f'.
  • A multiple-choice question asking which statement about gg follows from the graph of ff.

Check yourself

  1. Where on a graph of ff would gg have a relative minimum, and what would you write to justify it?
  2. If ff is positive and decreasing on an interval, what is true about gg on it?
  3. How do you decide whether the absolute maximum of gg is at a relative maximum or at an endpoint?
  4. Why is a peak of ff an inflection point of gg rather than an extremum of gg?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.