AP Calculus AB · Mathematics

AP Calculus AB

A full year of college Calculus I (limits, derivatives, and integrals) taught unit by unit to the College Board course framework. Work through the lessons at your own pace, and book a tutor the moment a topic doesn't click. Exam format from 2027: this is a hybrid digital exam: multiple choice in Bluebook, free response handwritten in a paper booklet. Work the practice problems on paper and check your steps against the worked answer, the way you will sit the free-response section in May.

3H 15M EXAM 45 MCQ 6 FRQ 59 LESSONS 80 PRACTICE PROBLEMS PREREQ: PRECALCULUS

Course overview

What this course covers, and how the exam weights it.

AP Calculus AB follows the eight units of the College Board course framework. Each unit below shows its share of the multiple-choice and free-response sections, so you can see where to spend your time: Units 5 and 6 alone are roughly a third of the exam.

  • U1Limits and Continuity10–12%
  • U2Differentiation: Definition and Fundamental Properties10–12%
  • U3Differentiation: Composite, Implicit, and Inverse Functions9–13%
  • U4Contextual Applications of Differentiation10–15%
  • U5Analytical Applications of Differentiation15–18%
  • U6Integration and Accumulation of Change17–20%
  • U7Differential Equations6–12%
  • U8Applications of Integration10–15%

All eight units are open, 59 lessons in all. Every lesson pairs a short explanation with worked examples and a problem to try yourself, the same problem types that show up on the exam. Each unit closes with a short video walk-through and a ten-problem practice set with hidden answers.

Free preview: open any 5 lessons, or watch one unit video, without an account. The counter on the left keeps track.

Lesson 1.1 · Unit 1 · CED topic 1.1

Can change occur at an instant?

You already know how to measure change over an interval: pick two points and find the slope between them. Calculus asks a stranger question: how fast is something changing right now, at a single instant, when there's no interval at all?

Definition

The average rate of change of \(f\) on \([a, b]\) is the slope of the secant line through the endpoints: \[\frac{f(b) - f(a)}{b - a}.\]

To get at an instant, shrink the interval. The trouble is that a zero-width interval gives \(\frac{0}{0}\), which is meaningless. The way out is to watch what the average rate approaches as the interval shrinks, and that idea is a limit.

Worked example

A ball is thrown upward, and its height in feet after \(t\) seconds is \(h(t) = 40t - 16t^2\). Estimate its velocity at exactly \(t = 1\) second.

Compute average velocities on shrinking intervals starting at \(t = 1\):

Intervalh at right endAverage velocity (ft/s)
[1, 2]16−8
[1, 1.1]24.646.4
[1, 1.01]24.07847.84
[1, 1.001]24.0079847.984

The averages settle toward 8 ft/s. That value, the number the averages approach but never quite compute, is the instantaneous velocity at \(t = 1\). (Once you know derivatives, you'll confirm it directly: \(h'(1) = 40 - 32 = 8\).)

Try it

Using the same \(h(t) = 40t - 16t^2\), find the average velocity on \([2, 2.1]\). Then guess what value the average approaches as the interval shrinks toward \(t = 2\).

Show answer

\(h(2) = 16\) and \(h(2.1) = 13.44\), so the average velocity is \(\frac{13.44 - 16}{0.1} = -25.6\) ft/s. As the interval shrinks, the averages approach −24 ft/s: the ball is on its way down.

Lesson 1.2 · Unit 1 · CED topic 1.2

Defining limits and limit notation

A limit describes where a function is heading, not where it is. That distinction is the whole point: the value of the function at the target, or whether it even has one, is irrelevant.

Definition

\(\displaystyle\lim_{x \to c} f(x) = L\) means \(f(x)\) can be made as close to \(L\) as we like by taking \(x\) sufficiently close to \(c\), but not equal to \(c\).

Limits also come in one-sided versions. \(\displaystyle\lim_{x \to c^-} f(x)\) approaches from the left, \(\displaystyle\lim_{x \to c^+} f(x)\) from the right. The two-sided limit exists only when both one-sided limits exist and agree.

Worked example

Let \(f(x) = \dfrac{x^2 - 1}{x - 1}\). Find \(\displaystyle\lim_{x \to 1} f(x)\).

\(f(1)\) is undefined: plugging in gives \(\frac{0}{0}\). But for every \(x \neq 1\), \(\dfrac{x^2 - 1}{x - 1} = \dfrac{(x-1)(x+1)}{x-1} = x + 1\). As \(x\) approaches 1, \(x + 1\) approaches 2, so \[\lim_{x \to 1} f(x) = 2.\] The hole in the graph at \(x = 1\) changes nothing.

Worked example

Let \(g(x) = \begin{cases} x + 1 & x < 2 \\ 5 & x = 2 \\ 2x - 1 & x > 2 \end{cases}\). Find \(\displaystyle\lim_{x \to 2} g(x)\).

From the left: \(x + 1 \to 3\). From the right: \(2x - 1 \to 3\). Both one-sided limits equal 3, so \(\displaystyle\lim_{x \to 2} g(x) = 3\), even though \(g(2) = 5\).

Try it

Let \(h(x) = \dfrac{|x|}{x}\). Find \(\displaystyle\lim_{x \to 0^-} h(x)\), \(\displaystyle\lim_{x \to 0^+} h(x)\), and \(\displaystyle\lim_{x \to 0} h(x)\).

Show answer

For \(x < 0\), \(h(x) = -1\); for \(x > 0\), \(h(x) = 1\). So the left limit is \(-1\), the right limit is \(1\), and because they disagree, the two-sided limit does not exist.

Lesson 1.3 · Unit 1 · CED topics 1.3–1.4

Estimating limits from graphs and tables

Before you can compute limits algebraically, you need to be able to read them. On the exam, you'll be handed graphs and tables and asked what a function is approaching.

From a graph: trace the curve toward \(x = c\) from each side and read off the \(y\)-value the branches approach. An open circle at \(x = c\) means the function is undefined there: the limit is still the height the branches point to. A filled dot somewhere else is the actual value \(f(c)\); it doesn't affect the limit.

Worked example

Estimate \(\displaystyle\lim_{x \to 0} \frac{\sin x}{x}\) from a table.

x−0.1−0.010.010.1
sin(x)/x0.998330.999980.999980.99833

From both sides the values close in on 1. The function is undefined at \(x = 0\), but the limit is clearly \(\displaystyle\lim_{x \to 0} \frac{\sin x}{x} = 1\): a result you'll use constantly in Lesson 1.4.

Caution

A table is an estimate, not a proof. \(f(x) = \sin\!\left(\frac{\pi}{x}\right)\) returns 0 at \(x = 1, \frac{1}{2}, \frac{1}{3}, \dots\), which a table would read as "limit 0", but the function actually swings between −1 and 1 forever and has no limit at 0. Use tables to form a conjecture; use algebra to confirm it.

Try it

Build a table for \(\dfrac{2^x - 1}{x}\) at \(x = 0.1,\ 0.01,\ -0.01\), and estimate the limit as \(x \to 0\) to two decimal places.

Show answer

Values: 0.7177, 0.6956, 0.6908. The limit is about 0.69. (It's exactly \(\ln 2 \approx 0.6931\), which you'll be able to prove once you know derivatives.)

Lesson 1.4 · Unit 1 · CED topics 1.5–1.7

Limit laws and algebraic manipulation

Most limits you'll meet can be found exactly, with algebra. The strategy has two steps: try direct substitution, and if that gives the indeterminate form \(\frac{0}{0}\), rewrite the expression until substitution works.

Limit laws

If \(\lim f(x)\) and \(\lim g(x)\) both exist as \(x \to c\), then limits of sums, differences, products, and constant multiples are what you'd expect, and \(\displaystyle\lim \frac{f(x)}{g(x)} = \frac{\lim f(x)}{\lim g(x)}\) as long as \(\lim g(x) \neq 0\). For polynomials and rational functions where the denominator isn't zero, the limit is just \(f(c)\): direct substitution.

Worked example · Factor

\(\displaystyle\lim_{x \to 3} \frac{x^2 - 9}{x - 3}\). Substitution gives \(\frac{0}{0}\). Factor: \(\dfrac{(x-3)(x+3)}{x-3} = x + 3\) for \(x \neq 3\), so the limit is \(3 + 3 = 6\).

Worked example · Rationalize

\(\displaystyle\lim_{x \to 0} \frac{\sqrt{x + 4} - 2}{x}\). Multiply top and bottom by the conjugate \(\sqrt{x+4} + 2\): \[\frac{(x + 4) - 4}{x\left(\sqrt{x+4} + 2\right)} = \frac{1}{\sqrt{x+4} + 2} \;\longrightarrow\; \frac{1}{2 + 2} = \frac{1}{4}.\]

Two limits to memorize

\(\displaystyle\lim_{\theta \to 0} \frac{\sin\theta}{\theta} = 1\) and \(\displaystyle\lim_{\theta \to 0} \frac{1 - \cos\theta}{\theta} = 0\). Example: \(\displaystyle\lim_{x \to 0} \frac{\sin 5x}{x} = \lim_{x \to 0} 5\cdot\frac{\sin 5x}{5x} = 5 \cdot 1 = 5\).

Try it

Evaluate \(\displaystyle\lim_{x \to 2} \frac{x^2 - 4}{x^2 - x - 2}\).

Show answer

Factor both: \(\dfrac{(x-2)(x+2)}{(x-2)(x+1)} = \dfrac{x+2}{x+1}\) for \(x \neq 2\). Substituting gives \(\dfrac{4}{3}\).

Lesson 1.5 · Unit 1 · CED topic 1.8

The Squeeze Theorem

Some functions are too wild to handle directly: they oscillate infinitely often near the target. The Squeeze Theorem lets you trap such a function between two tame ones and let the tame ones do the work.

Theorem

If \(g(x) \le f(x) \le h(x)\) for all \(x\) near \(c\) (except possibly at \(c\) itself), and \(\displaystyle\lim_{x \to c} g(x) = \lim_{x \to c} h(x) = L\), then \(\displaystyle\lim_{x \to c} f(x) = L\).

Worked example

Find \(\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\tfrac{1}{x}\right)\).

Since \(-1 \le \sin\!\left(\tfrac{1}{x}\right) \le 1\) for every \(x \neq 0\), multiplying by \(x^2 \ge 0\) gives \[-x^2 \le x^2 \sin\!\left(\tfrac{1}{x}\right) \le x^2.\] Both \(-x^2\) and \(x^2\) approach 0 as \(x \to 0\), so the function between them must too. The limit is 0.

On the exam, the squeeze is usually set up for you: a problem will state inequalities and ask for a limit. Your job is to recognize the theorem and state that the bounds share a limit.

Try it

Use the Squeeze Theorem to find \(\displaystyle\lim_{x \to 0} x\cos\!\left(\tfrac{1}{x}\right)\).

Show answer

\(-|x| \le x\cos\!\left(\tfrac{1}{x}\right) \le |x|\), and both \(-|x|\) and \(|x|\) approach 0. The limit is 0. (The absolute values handle negative \(x\), where multiplying an inequality by \(x\) would flip it.)

Lesson 1.6 · Unit 1 · CED topics 1.10–1.13

Continuity and types of discontinuities

Informally, a function is continuous if you can draw it without lifting your pencil. The formal version is a three-part checklist, and the exam loves to test each part separately.

Definition

\(f\) is continuous at \(x = c\) if all three hold:

  1. \(f(c)\) is defined,
  2. \(\displaystyle\lim_{x \to c} f(x)\) exists, and
  3. \(\displaystyle\lim_{x \to c} f(x) = f(c)\).

When continuity fails, name the failure:

  • Removable: the limit exists, but \(f(c)\) is missing or has the wrong value. A hole.
  • Jump: the one-sided limits exist but differ. Two branches at different heights.
  • Infinite: at least one one-sided limit is \(\pm\infty\). A vertical asymptote.
Worked example · Removing a discontinuity

\(f(x) = \dfrac{x^2 - x - 6}{x - 3}\) is undefined at \(x = 3\). For \(x \neq 3\) it equals \(x + 2\), so \(\displaystyle\lim_{x \to 3} f(x) = 5\). The discontinuity is removable: define \(f(3) = 5\) and the function becomes continuous.

Worked example · Solving for a parameter

Find \(k\) so that \(f(x) = \begin{cases} kx + 1 & x \le 2 \\ x^2 - 1 & x > 2 \end{cases}\) is continuous at \(x = 2\).

Left side at 2: \(2k + 1\). Right side limit: \(2^2 - 1 = 3\). Continuity requires \(2k + 1 = 3\), so \(k = 1\).

Try it

Find \(a\) so that \(g(x) = \begin{cases} x^2 & x < 1 \\ 3x + a & x \ge 1 \end{cases}\) is continuous at \(x = 1\).

Show answer

Left limit \(= 1\); right side \(= 3 + a\). Set \(3 + a = 1\), so \(a = -2\).

Lesson 1.7 · Unit 1 · CED topics 1.14–1.15

Infinite limits and asymptotes

Two kinds of "infinity" show up in limits. A function can blow up to \(\pm\infty\) near a finite \(x\), a vertical asymptote, or you can ask where a function settles as \(x\) itself heads to \(\pm\infty\): a horizontal asymptote.

Worked example · Vertical asymptote

\(f(x) = \dfrac{1}{x - 2}\). As \(x \to 2^+\), the denominator is a tiny positive number, so \(f(x) \to +\infty\). As \(x \to 2^-\), it's a tiny negative number, so \(f(x) \to -\infty\). Either way, \(x = 2\) is a vertical asymptote. The tell: denominator \(\to 0\) while the numerator does not.

Limits at infinity for rational functions

Compare the degrees of numerator and denominator:

  • numerator degree less → limit is 0,
  • degrees equal → limit is the ratio of leading coefficients,
  • numerator degree greater → limit is \(\pm\infty\) (no horizontal asymptote).
Worked example · Horizontal asymptote

\(\displaystyle\lim_{x \to \infty} \frac{3x^2 - x}{5x^2 + 4}\). Degrees match, so the limit is \(\frac{3}{5}\) and \(y = \frac{3}{5}\) is a horizontal asymptote. To see why, divide top and bottom by \(x^2\): \(\dfrac{3 - \frac{1}{x}}{5 + \frac{4}{x^2}} \to \dfrac{3}{5}\).

Worked example · Watch the sign

\(\displaystyle\lim_{x \to -\infty} \frac{\sqrt{x^2 + 1}}{x}\). For negative \(x\), \(\sqrt{x^2} = |x| = -x\), so the expression behaves like \(\dfrac{-x}{x} = -1\). The limit is \(-1\) (while the limit as \(x \to +\infty\) is \(+1\)).

Try it

Find \(\displaystyle\lim_{x \to \infty} \frac{2x^3 + x}{x^3 - 7}\) and \(\displaystyle\lim_{x \to \infty} \frac{x + 1}{x^2 - 4}\).

Show answer

Equal degrees: the first is \(2\). Numerator degree smaller: the second is \(0\).

Lesson 1.8 · Unit 1 · CED topic 1.16

The Intermediate Value Theorem

Continuity has a payoff: if a continuous function is below a value at one point and above it at another, it must have hit that value somewhere in between. You can't cross a river without getting wet.

Theorem (IVT)

If \(f\) is continuous on \([a, b]\) and \(k\) is any value between \(f(a)\) and \(f(b)\), then there is at least one \(c\) in \((a, b)\) with \(f(c) = k\).

The most common use is proving an equation has a solution without solving it. The exam grades the justification, so learn the sentence structure below word for word.

Worked example

Show that \(x^3 - x - 1 = 0\) has a solution in \((1, 2)\).

Let \(f(x) = x^3 - x - 1\). Then \(f(1) = -1\) and \(f(2) = 5\). Justification: \(f\) is continuous on \([1, 2]\) because it is a polynomial, and \(f(1) < 0 < f(2)\). By the Intermediate Value Theorem, there exists \(c\) in \((1, 2)\) such that \(f(c) = 0\).

Three things must appear for full credit: the function is continuous on the closed interval, the target value lies between the endpoint values, and the conclusion names the open interval.

Try it

Show that \(\cos x = x\) has a solution in \((0, 1)\).

Show answer

Let \(g(x) = \cos x - x\). \(g\) is continuous everywhere. \(g(0) = 1 > 0\) and \(g(1) = \cos 1 - 1 \approx -0.46 < 0\). By the IVT there is \(c\) in \((0, 1)\) with \(g(c) = 0\), i.e. \(\cos c = c\).

Unit 1 practice · 10 problems

Unit 1 practice: Limits and Continuity

Ten problems covering the whole unit, in roughly exam order. Work each one on paper before revealing the answer: the reveal shows the key steps, not just the number. No calculator needed.

  1. Evaluate \(\displaystyle\lim_{x \to 4}\frac{x^2 - 16}{x - 4}\).

    Show answer

    Factor: \(\dfrac{(x-4)(x+4)}{x-4} = x + 4\) for \(x \ne 4\). The limit is \(8\).

  2. Evaluate \(\displaystyle\lim_{x \to 0}\frac{\sin 4x}{3x}\).

    Show answer

    \(\dfrac{\sin 4x}{3x} = \dfrac{4}{3}\cdot\dfrac{\sin 4x}{4x} \to \dfrac{4}{3}\cdot 1 = \dfrac{4}{3}\).

  3. Evaluate \(\displaystyle\lim_{x \to \infty}\frac{5x^2 - 3x + 1}{2x^2 + 7}\).

    Show answer

    Equal degrees, so the limit is the ratio of leading coefficients: \(\dfrac{5}{2}\).

  4. Evaluate \(\displaystyle\lim_{x \to 3^-}\frac{x + 1}{x - 3}\).

    Show answer

    The numerator approaches 4 while the denominator approaches 0 through negative values. The limit is \(-\infty\).

  5. Find \(k\) so that \(f(x) = \begin{cases} x^2 + 1 & x < 2 \\ 3x - k & x \ge 2 \end{cases}\) is continuous at \(x = 2\).

    Show answer

    Left limit \(= 5\); right side \(= 6 - k\). Set \(6 - k = 5\), so \(k = 1\).

  6. Evaluate \(\displaystyle\lim_{x \to 0}\frac{\sqrt{x + 9} - 3}{x}\).

    Show answer

    Multiply by the conjugate: \(\dfrac{(x + 9) - 9}{x\left(\sqrt{x+9} + 3\right)} = \dfrac{1}{\sqrt{x+9} + 3} \to \dfrac{1}{6}\).

  7. Let \(g(x) = \dfrac{x^2 - 5x + 6}{x - 2}\). Classify the discontinuity at \(x = 2\), and give the value of \(g(2)\) that would remove it.

    Show answer

    \(g(x) = \dfrac{(x-2)(x-3)}{x-2} = x - 3\) for \(x \ne 2\), so the limit at 2 is \(-1\). The discontinuity is removable; defining \(g(2) = -1\) removes it.

  8. Evaluate \(\displaystyle\lim_{x \to -\infty}\frac{3x + 2}{\sqrt{x^2 + 1}}\).

    Show answer

    For large negative \(x\), \(\sqrt{x^2 + 1} \approx |x| = -x\), so the expression behaves like \(\dfrac{3x}{-x} = -3\). The limit is \(-3\).

  9. \(f\) is continuous on \([1, 5]\) with \(f(1) = -2\) and \(f(5) = 7\). Must there be a \(c\) in \((1, 5)\) with \(f(c) = 3\)? Justify.

    Show answer

    Yes. \(f\) is continuous on \([1, 5]\) and \(f(1) = -2 < 3 < 7 = f(5)\), so by the Intermediate Value Theorem there is a \(c\) in \((1, 5)\) with \(f(c) = 3\).

  10. Use the Squeeze Theorem to evaluate \(\displaystyle\lim_{x \to 0} x^4\cos\!\left(\frac{2}{x}\right)\).

    Show answer

    \(-x^4 \le x^4\cos\!\left(\tfrac{2}{x}\right) \le x^4\), and both bounds approach 0. The limit is \(0\).

Lesson 2.1 · Unit 2 · CED topic 2.1

Average and instantaneous rates of change at a point

Unit 1 ended with a promise: the limit idea would let us pin down a rate of change at a single instant. Here's the payoff. The average rate over a shrinking interval has a limit, and that limit is the instantaneous rate.

Definition

The average rate of change of \(f\) on \([a, a+h]\) is \(\dfrac{f(a+h) - f(a)}{h}\). The instantaneous rate of change at \(x = a\) is \[\lim_{h \to 0} \frac{f(a+h) - f(a)}{h},\] which is the slope of the tangent line at \(x = a\).

Worked example

Find the instantaneous rate of change of \(f(x) = x^2\) at \(x = 3\).

Average rate on \([3, 3+h]\): \[\frac{(3+h)^2 - 9}{h} = \frac{6h + h^2}{h} = 6 + h.\] As \(h \to 0\) this approaches 6. So the tangent line at \((3, 9)\) has slope 6: \(y - 9 = 6(x - 3)\).

Notice that the algebra did the work the table did in Lesson 1.1. Instead of guessing where the averages were heading, we canceled the \(h\) and read the limit off exactly.

Try it

Find the instantaneous rate of change of \(f(x) = \dfrac{1}{x}\) at \(x = 2\).

Show answer

\(\dfrac{\frac{1}{2+h} - \frac{1}{2}}{h} = \dfrac{2 - (2+h)}{2h(2+h)} = \dfrac{-1}{2(2+h)}\), which approaches \(-\dfrac{1}{4}\) as \(h \to 0\).

Lesson 2.2 · Unit 2 · CED topic 2.2

Defining the derivative and derivative notation

Do the instantaneous-rate calculation at a general \(x\) instead of a specific number and you get a new function: one that reports the slope of \(f\) everywhere at once. That function is the derivative.

Definition

The derivative of \(f\) is \[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}.\] At a specific point \(a\) you can also write \(f'(a) = \displaystyle\lim_{x \to a} \frac{f(x) - f(a)}{x - a}\). Notations you'll see for the same thing: \(f'(x)\), \(y'\), \(\dfrac{dy}{dx}\), and \(\dfrac{d}{dx}\big[f(x)\big]\).

Worked example · From the definition

Find \(f'(x)\) for \(f(x) = x^2 - 3x\).

\(f(x+h) = x^2 + 2xh + h^2 - 3x - 3h\), so \[\frac{f(x+h) - f(x)}{h} = \frac{2xh + h^2 - 3h}{h} = 2x + h - 3 \;\longrightarrow\; 2x - 3.\] Therefore \(f'(x) = 2x - 3\). At \(x = 3\), for instance, the slope is 3.

Worked example · Recognizing a derivative in disguise

Evaluate \(\displaystyle\lim_{h \to 0} \frac{(2+h)^3 - 8}{h}\).

This is the definition of \(f'(2)\) for \(f(x) = x^3\). Expanding: \(\dfrac{8 + 12h + 6h^2 + h^3 - 8}{h} = 12 + 6h + h^2 \to 12\). The exam likes this move in reverse: spotting that a limit is a derivative saves a lot of algebra later.

Try it

Use the definition to find \(f'(x)\) for \(f(x) = \sqrt{x}\).

Show answer

Multiply by the conjugate: \(\dfrac{\sqrt{x+h} - \sqrt{x}}{h} \cdot \dfrac{\sqrt{x+h} + \sqrt{x}}{\sqrt{x+h} + \sqrt{x}} = \dfrac{1}{\sqrt{x+h} + \sqrt{x}} \to \dfrac{1}{2\sqrt{x}}\).

Lesson 2.3 · Unit 2 · CED topic 2.3

Estimating derivatives from tables and graphs

Real data doesn't come with a formula. When all you have is a table or a graph, you estimate the derivative with the best difference quotient available, and the exam expects you to know which one that is.

Method

From a table, estimate \(f'(a)\) with the slope between the two table points that straddle \(a\) (a symmetric difference). If \(a\) is itself a table point, use the points on either side of it. If it's an endpoint, use the nearest interval.

Worked example

Estimate \(f'(4)\) from the table.

t0246
f(t)591729

Straddle \(t = 4\) with \(t = 2\) and \(t = 6\): \(f'(4) \approx \dfrac{29 - 9}{6 - 2} = 5\). The one-sided estimates are \(\frac{17-9}{2} = 4\) and \(\frac{29-17}{2} = 6\); the symmetric estimate is their average, and it's usually the most accurate.

From a graph: sketch the tangent line and estimate its slope with two points on it. Sign is often enough: the derivative is positive where the graph rises, negative where it falls, and zero at the tops and bottoms of hills. On the calculator sections, your calculator's numerical derivative does this for you when a formula is given.

Try it

\(g\) is differentiable, with \(g(1) = 3.0\), \(g(1.5) = 4.1\), \(g(2) = 5.6\), \(g(2.5) = 7.5\). Estimate \(g'(2)\).

Show answer

\(g'(2) \approx \dfrac{7.5 - 4.1}{2.5 - 1.5} = 3.4\).

Lesson 2.4 · Unit 2 · CED topic 2.4

Connecting differentiability and continuity

Every differentiable function is continuous: you can't have a tangent line at a gap. But continuity is not enough for a derivative. A graph can be unbroken and still have no well-defined slope at a point.

Theorem, and its four failure modes

If \(f\) is differentiable at \(a\), then \(f\) is continuous at \(a\). The converse is false. \(f\) fails to be differentiable at \(a\) when the graph has a discontinuity, a corner (like \(|x|\) at 0), a cusp (like \(x^{2/3}\) at 0), or a vertical tangent (like \(x^{1/3}\) at 0).

Worked example · A corner

\(f(x) = |x|\) at \(x = 0\). From the left the difference quotient is \(\frac{-h}{h} = -1\); from the right it's \(\frac{h}{h} = 1\). The one-sided slopes disagree, so \(f'(0)\) does not exist, even though \(f\) is perfectly continuous there.

Worked example · Piecewise functions

Is \(f(x) = \begin{cases} x^2 & x \le 1 \\ 2x - 1 & x > 1 \end{cases}\) differentiable at \(x = 1\)?

Continuity: both pieces give 1 at \(x = 1\). ✓ Slopes: \(2x = 2\) from the left and \(2\) from the right. ✓ Both conditions hold, so yes. If the second piece were \(3x - 2\) instead, the function would still be continuous (\(3 - 2 = 1\)) but the slopes would be 2 and 3: a corner.

Try it

Find \(a\) and \(b\) so that \(f(x) = \begin{cases} ax^2 & x \le 2 \\ 4x + b & x > 2 \end{cases}\) is differentiable at \(x = 2\).

Show answer

Match slopes first: \(2a(2) = 4 \Rightarrow a = 1\). Then match values: \(4a = 8 + b \Rightarrow b = -4\).

Lesson 2.5 · Unit 2 · CED topics 2.5–2.6

The power rule and the basic derivative rules

Computing every derivative from the limit definition would be unbearable. Fortunately a handful of rules, all provable from the definition, handle every polynomial and most algebraic functions.

Rules
  • Power rule: \(\dfrac{d}{dx}\, x^n = n x^{n-1}\) for any real \(n\).
  • Constant: \(\dfrac{d}{dx}\, c = 0\).
  • Constant multiple: \(\big(c\,f\big)' = c\,f'\).
  • Sum and difference: \(\big(f \pm g\big)' = f' \pm g'\).
Worked example

\(f(x) = 4x^3 - 5x^2 + 7x - 9 \;\Rightarrow\; f'(x) = 12x^2 - 10x + 7.\)

Worked example · Rewrite first

\(g(x) = 3\sqrt{x} - \dfrac{2}{x^2} + 5\). Rewrite as \(3x^{1/2} - 2x^{-2} + 5\), then apply the power rule: \[g'(x) = \tfrac{3}{2}x^{-1/2} + 4x^{-3} = \frac{3}{2\sqrt{x}} + \frac{4}{x^3}.\]

Worked example · Tangent line

Find the tangent to \(y = x^3 - 2x\) at \(x = 2\). The point is \((2, 4)\); the slope is \(y' = 3x^2 - 2 = 10\). Tangent: \(y - 4 = 10(x - 2)\).

Try it

(a) Differentiate \(h(x) = \dfrac{x^2 + 1}{x}\). (b) Where does \(y = x^3 - 3x\) have a horizontal tangent?

Show answer

(a) Rewrite \(h(x) = x + x^{-1}\), so \(h'(x) = 1 - \dfrac{1}{x^2}\). (b) \(3x^2 - 3 = 0 \Rightarrow x = \pm 1\).

Lesson 2.6 · Unit 2 · CED topic 2.7

Derivatives of sin x, cos x, eˣ, and ln x

Four derivatives you need cold. Each can be proved from the limit definition: the sine proof uses the two special limits from Lesson 1.4, but on the exam you simply need to know them.

Memorize

\[\frac{d}{dx}\sin x = \cos x \qquad \frac{d}{dx}\cos x = -\sin x \qquad \frac{d}{dx}e^x = e^x \qquad \frac{d}{dx}\ln x = \frac{1}{x}\]

Worked example

\(f(x) = 3\sin x - 2\cos x + e^x \Rightarrow f'(x) = 3\cos x + 2\sin x + e^x.\) At \(x = 0\): \(f'(0) = 3 + 0 + 1 = 4\).

Worked example · Horizontal tangent

Where does \(g(x) = 5\ln x - x^2\) have a horizontal tangent? \(g'(x) = \dfrac{5}{x} - 2x = 0 \Rightarrow x^2 = \dfrac{5}{2}\), so \(x = \sqrt{5/2}\) (only the positive root is in the domain of \(\ln x\)).

The fact that \(e^x\) is its own derivative is why \(e\) is the natural base: it's the one exponential whose growth rate equals its current value. You'll lean on that heavily in Unit 7.

Try it

Find \(\dfrac{dy}{dx}\) at \(x = 1\) for \(y = 4e^x + 2\cos x - \ln x\). Round to two decimals.

Show answer

\(y' = 4e^x - 2\sin x - \dfrac{1}{x}\). At \(x = 1\): \(4e - 2\sin 1 - 1 \approx 10.873 - 1.683 - 1 = 8.19\).

Lesson 2.7 · Unit 2 · CED topics 2.8–2.9

The product and quotient rules

The derivative of a sum is the sum of the derivatives. The derivative of a product is not the product of the derivatives, and this is the single most common algebra error in Unit 2.

Rules

\[\big(f g\big)' = f'g + f g' \qquad\qquad \left(\frac{f}{g}\right)' = \frac{f'g - f g'}{g^2}\] For the quotient rule, the order in the numerator matters: "low d-high minus high d-low, over low squared."

Worked example · Product

\(y = x^2 \sin x \Rightarrow y' = 2x\sin x + x^2\cos x.\)

Worked example · Quotient

\(y = \dfrac{e^x}{x + 1} \Rightarrow y' = \dfrac{e^x(x+1) - e^x \cdot 1}{(x+1)^2} = \dfrac{x e^x}{(x+1)^2}.\)

Worked example · From a table

Given \(f(2) = 3\), \(f'(2) = -1\), \(g(2) = 5\), \(g'(2) = 4\): \[(fg)'(2) = (-1)(5) + (3)(4) = 7, \qquad \left(\frac{f}{g}\right)'(2) = \frac{(-1)(5) - (3)(4)}{25} = -\frac{17}{25}.\] Table problems like this appear on almost every exam.

Try it

Differentiate (a) \(h(x) = x^3 \ln x\) and (b) \(k(x) = \dfrac{2x - 1}{x^2 + 3}\).

Show answer

(a) \(h'(x) = 3x^2 \ln x + x^2\). (b) \(k'(x) = \dfrac{2(x^2+3) - (2x-1)(2x)}{(x^2+3)^2} = \dfrac{-2x^2 + 2x + 6}{(x^2+3)^2}\).

Lesson 2.8 · Unit 2 · CED topic 2.10

Derivatives of tan, cot, sec, and csc

The remaining four trig derivatives all follow from the quotient rule plus \(\sin\) and \(\cos\). Derive one so you trust them, then memorize all four.

Derivation

\(\tan x = \dfrac{\sin x}{\cos x}\), so \[\frac{d}{dx}\tan x = \frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x.\]

Memorize

\[\frac{d}{dx}\tan x = \sec^2 x \qquad \frac{d}{dx}\cot x = -\csc^2 x\] \[\frac{d}{dx}\sec x = \sec x \tan x \qquad \frac{d}{dx}\csc x = -\csc x \cot x\] Pattern: every "co" function picks up a minus sign.

Worked example

\(f(x) = x\tan x \Rightarrow f'(x) = \tan x + x\sec^2 x\). At \(x = \frac{\pi}{4}\): \(\tan\frac{\pi}{4} = 1\), \(\sec^2\frac{\pi}{4} = 2\), so \(f'\!\left(\frac{\pi}{4}\right) = 1 + \frac{\pi}{2}\).

Worked example

\(g(x) = \dfrac{\sec x}{x} \Rightarrow g'(x) = \dfrac{x \sec x \tan x - \sec x}{x^2} = \dfrac{\sec x\,(x\tan x - 1)}{x^2}.\)

Try it

Find \(y'\) for \(y = 3\cot x + \csc x\), then evaluate at \(x = \frac{\pi}{2}\).

Show answer

\(y' = -3\csc^2 x - \csc x \cot x\). At \(\frac{\pi}{2}\), \(\csc = 1\) and \(\cot = 0\), so \(y' = -3\).

Unit 2 practice · 10 problems

Unit 2 practice, Differentiation: Definition and Fundamental Properties

Ten problems covering the whole unit. Work each one on paper before revealing the answer. No calculator needed.

  1. Use the limit definition of the derivative to find \(f'(x)\) for \(f(x) = 3x^2 - x\).

    Show answer

    \(\dfrac{3(x+h)^2 - (x+h) - 3x^2 + x}{h} = \dfrac{6xh + 3h^2 - h}{h} = 6x + 3h - 1 \to 6x - 1\).

  2. Evaluate \(\displaystyle\lim_{h \to 0}\frac{\sin\!\left(\frac{\pi}{6} + h\right) - \sin\frac{\pi}{6}}{h}\).

    Show answer

    This is the derivative of \(\sin x\) at \(x = \tfrac{\pi}{6}\): \(\cos\tfrac{\pi}{6} = \dfrac{\sqrt{3}}{2}\).

  3. Find \(f'(x)\) for \(f(x) = 2x^5 - 4x^3 + 7x - 12\).

    Show answer

    \(f'(x) = 10x^4 - 12x^2 + 7\).

  4. Find \(g'(x)\) for \(g(x) = \dfrac{5}{x^3} - 2\sqrt{x} + e^x\).

    Show answer

    Rewrite as \(5x^{-3} - 2x^{1/2} + e^x\). Then \(g'(x) = -15x^{-4} - x^{-1/2} + e^x = -\dfrac{15}{x^4} - \dfrac{1}{\sqrt{x}} + e^x\).

  5. Find the equation of the tangent line to \(y = x^2\ln x\) at \(x = 1\).

    Show answer

    \(y(1) = 0\). \(y' = 2x\ln x + x\), so \(y'(1) = 1\). Tangent: \(y = x - 1\).

  6. Find \(h'(x)\) for \(h(x) = \dfrac{x^2 + 1}{x - 2}\).

    Show answer

    \(h'(x) = \dfrac{2x(x - 2) - (x^2 + 1)}{(x - 2)^2} = \dfrac{x^2 - 4x - 1}{(x - 2)^2}\).

  7. \(f\) is differentiable, with \(f(1) = 3\), \(f(2) = 7\), \(f(3) = 13\), \(f(4) = 21\). Estimate \(f'(3)\).

    Show answer

    Use the points straddling \(x = 3\): \(f'(3) \approx \dfrac{21 - 7}{4 - 2} = 7\).

  8. Given \(f(1) = 4\), \(f'(1) = -2\), \(g(1) = 3\), \(g'(1) = 5\), find \((fg)'(1)\) and \(\left(\dfrac{f}{g}\right)'(1)\).

    Show answer

    \((fg)'(1) = (-2)(3) + (4)(5) = 14\). \(\left(\dfrac{f}{g}\right)'(1) = \dfrac{(-2)(3) - (4)(5)}{3^2} = -\dfrac{26}{9}\).

  9. Is \(f(x) = \begin{cases} x^2 + 2x & x \le 1 \\ 4x - 1 & x > 1 \end{cases}\) differentiable at \(x = 1\)? Justify.

    Show answer

    Continuity: both pieces equal 3 at \(x = 1\). Slopes: \(2x + 2 = 4\) from the left, \(4\) from the right. Both match, so yes, \(f\) is differentiable at 1 with \(f'(1) = 4\).

  10. Find \(f'\!\left(\dfrac{\pi}{3}\right)\) for \(f(x) = \sec x\tan x\).

    Show answer

    \(f'(x) = \sec x\tan^2 x + \sec^3 x\). At \(\tfrac{\pi}{3}\), \(\sec = 2\) and \(\tan = \sqrt{3}\): \(2\cdot 3 + 8 = 14\).

Lesson 3.1 · Unit 3 · CED topic 3.1

The chain rule

Most functions worth differentiating are compositions: a function inside another function. The chain rule says: differentiate the outside (leaving the inside alone), then multiply by the derivative of the inside.

Chain rule

\[\frac{d}{dx}\, f\big(g(x)\big) = f'\big(g(x)\big)\cdot g'(x), \qquad\text{or}\qquad \frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}.\]

Worked example

\(y = (3x^2 - 5)^4\). Outside: \((\ \cdot\ )^4\), inside: \(3x^2 - 5\). \[y' = 4(3x^2 - 5)^3 \cdot 6x = 24x(3x^2 - 5)^3.\]

Worked example · Common patterns
  • \(\dfrac{d}{dx}\sin(x^3) = \cos(x^3)\cdot 3x^2\)
  • \(\dfrac{d}{dx}e^{-2x} = -2e^{-2x}\)
  • \(\dfrac{d}{dx}\ln(x^2 + 1) = \dfrac{2x}{x^2 + 1}\)
  • \(\dfrac{d}{dx}\cos^2(3x) = 2\cos(3x)\cdot\big(-\sin(3x)\big)\cdot 3 = -6\sin(3x)\cos(3x)\): two layers, two factors.
Worked example · From a table

Let \(h(x) = f(g(x))\), with \(g(2) = 1\), \(g'(2) = 5\), and \(f'(1) = -3\). Then \(h'(2) = f'(g(2))\cdot g'(2) = f'(1)\cdot 5 = -15\). Note that you need \(f'\) evaluated at \(g(2) = 1\), not at 2.

Try it

Differentiate (a) \(y = \sqrt{5x^2 + 1}\) and (b) \(y = \tan(e^x)\).

Show answer

(a) \(y' = \tfrac{1}{2}(5x^2+1)^{-1/2}\cdot 10x = \dfrac{5x}{\sqrt{5x^2+1}}\). (b) \(y' = \sec^2(e^x)\cdot e^x\).

Lesson 3.2 · Unit 3 · CED topic 3.2

Implicit differentiation

Not every curve is a function \(y = f(x)\). A circle isn't. But you can still find slopes on it: differentiate the whole equation with respect to \(x\), treating \(y\) as a function of \(x\) and applying the chain rule every time \(y\) appears.

The key move

\(\dfrac{d}{dx}\big[y^n\big] = n y^{n-1}\dfrac{dy}{dx}\). Every term with a \(y\) produces a \(\dfrac{dy}{dx}\); collect those terms and solve.

Worked example · The circle

\(x^2 + y^2 = 25\). Differentiate: \(2x + 2y\,y' = 0\), so \(y' = -\dfrac{x}{y}\). At \((3, 4)\) the slope is \(-\dfrac{3}{4}\); at \((3, -4)\) it's \(+\dfrac{3}{4}\). One formula, both halves of the circle.

Worked example · Collecting terms

Find \(\dfrac{dy}{dx}\) for \(x^3 + y^3 = 6xy\).

Differentiate (product rule on the right): \(3x^2 + 3y^2 y' = 6y + 6x y'\). Gather the \(y'\) terms: \(y'(3y^2 - 6x) = 6y - 3x^2\), so \[\frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}.\] At \((3, 3)\): \(\dfrac{6 - 9}{9 - 6} = -1\).

Horizontal tangents occur where the numerator of \(y'\) is zero (and the denominator isn't); vertical tangents where the denominator is zero (and the numerator isn't).

Try it

Find \(\dfrac{dy}{dx}\) for \(\sin y + x^2 = y\).

Show answer

\(\cos y \cdot y' + 2x = y' \Rightarrow y'(1 - \cos y) = 2x \Rightarrow y' = \dfrac{2x}{1 - \cos y}\).

Lesson 3.3 · Unit 3 · CED topic 3.3

Differentiating inverse functions

The graph of \(f^{-1}\) is the graph of \(f\) reflected over \(y = x\). Reflecting a line with slope \(m\) gives a line with slope \(\frac{1}{m}\), so the derivative of the inverse is the reciprocal of the derivative of the original, evaluated at the matching point.

Formula

If \(g = f^{-1}\), then \[g'(x) = \frac{1}{f'\big(g(x)\big)}.\] The hard part is always the same: to find \(g'(a)\), you first need \(g(a)\), the \(x\)-value where \(f\) equals \(a\).

Worked example

Let \(f(x) = x^3 + x\) and \(g = f^{-1}\). Find \(g'(2)\).

First find \(g(2)\): solve \(f(x) = 2\). By inspection \(f(1) = 2\), so \(g(2) = 1\). Then \(f'(x) = 3x^2 + 1\), \(f'(1) = 4\), and \(g'(2) = \dfrac{1}{4}\).

Worked example · From a table

If \(f(3) = 7\) and \(f'(3) = 2\), then \(f^{-1}(7) = 3\) and \(\big(f^{-1}\big)'(7) = \dfrac{1}{f'(3)} = \dfrac{1}{2}\). The point \((3, 7)\) on \(f\) becomes \((7, 3)\) on \(f^{-1}\), and the slope flips from 2 to \(\frac{1}{2}\).

Try it

Let \(f(x) = 2x + \cos x\). Find \(\big(f^{-1}\big)'(1)\).

Show answer

\(f(0) = 0 + 1 = 1\), so \(f^{-1}(1) = 0\). \(f'(x) = 2 - \sin x\), so \(f'(0) = 2\) and \(\big(f^{-1}\big)'(1) = \dfrac{1}{2}\).

Lesson 3.4 · Unit 3 · CED topic 3.4

Differentiating inverse trigonometric functions

Implicit differentiation gives the derivatives of the inverse trig functions in a few lines. Watch the derivation for \(\arctan x\), then memorize the three you need most.

Derivation

Let \(y = \arctan x\), so \(\tan y = x\). Differentiate implicitly: \(\sec^2 y \cdot y' = 1\), so \(y' = \dfrac{1}{\sec^2 y} = \dfrac{1}{1 + \tan^2 y} = \dfrac{1}{1 + x^2}\).

Memorize

\[\frac{d}{dx}\arcsin x = \frac{1}{\sqrt{1 - x^2}} \qquad \frac{d}{dx}\arccos x = -\frac{1}{\sqrt{1 - x^2}} \qquad \frac{d}{dx}\arctan x = \frac{1}{1 + x^2}\] (\(\text{arccot}\), \(\text{arcsec}\), and \(\text{arccsc}\) exist too, but these three carry nearly all the exam weight.)

Worked example · With the chain rule
  • \(\dfrac{d}{dx}\arcsin(2x) = \dfrac{2}{\sqrt{1 - 4x^2}}\)
  • \(\dfrac{d}{dx}\arctan(x^2) = \dfrac{2x}{1 + x^4}\)
  • \(\dfrac{d}{dx}\big[x\arctan x\big] = \arctan x + \dfrac{x}{1 + x^2}\) (product rule)
Try it

Differentiate (a) \(y = \arccos(e^x)\) and (b) \(y = \arctan\!\left(\dfrac{1}{x}\right)\) for \(x > 0\).

Show answer

(a) \(y' = -\dfrac{e^x}{\sqrt{1 - e^{2x}}}\). (b) \(y' = \dfrac{1}{1 + 1/x^2}\cdot\left(-\dfrac{1}{x^2}\right) = -\dfrac{1}{x^2 + 1}\).

Lesson 3.5 · Unit 3 · CED topic 3.5

Selecting procedures for calculating derivatives

You now have every derivative rule in the course. The remaining skill is diagnosis: look at a function, identify its outermost structure, and pick the rule that matches. Simplify before differentiating whenever you can: it prevents most errors.

Decision order
  1. Can it be rewritten more simply? (\(\ln(x^3) = 3\ln x\), \(\frac{x^2+1}{x} = x + \frac{1}{x}\), \(\sqrt{x^4} = x^2\).)
  2. Is the outermost operation a sum? Differentiate term by term.
  3. A product or quotient? Product or quotient rule.
  4. A composition? Chain rule, working from the outside in.
Worked example · Product with two chains

\(y = e^{2x}\sin(3x)\). Product rule first, chain rule inside each factor: \(y' = 2e^{2x}\sin(3x) + 3e^{2x}\cos(3x)\).

Worked example · Simplify first

\(y = \ln\!\left(\dfrac{x^2 + 1}{x}\right) = \ln(x^2 + 1) - \ln x\), so \(y' = \dfrac{2x}{x^2 + 1} - \dfrac{1}{x}\). Far cleaner than a quotient rule inside a chain rule.

Worked example · Quotient with a chain

\(y = \dfrac{(x^2 + 1)^3}{2x - 1}\). \[y' = \frac{3(x^2+1)^2\cdot 2x\cdot(2x - 1) - (x^2+1)^3\cdot 2}{(2x-1)^2} = \frac{2(x^2+1)^2\,(5x^2 - 3x - 1)}{(2x-1)^2}.\] On the exam, the unsimplified first form earns full credit; only simplify when the question demands it.

Try it

Differentiate \(y = \sin^2 x + \sin(x^2)\). Notice these two terms need the chain rule in different orders.

Show answer

\(y' = 2\sin x\cos x + 2x\cos(x^2)\).

Lesson 3.6 · Unit 3 · CED topic 3.6

Higher-order derivatives

The derivative of a function is a function, so it has a derivative of its own. The second derivative \(f''\) measures how fast the slope is changing: in motion, that's acceleration. In Unit 5 it will tell you which way a graph bends.

Notation

\(f''(x)\), \(y''\), \(\dfrac{d^2y}{dx^2}\) for the second derivative; \(f'''(x)\) or \(f^{(3)}(x)\) for the third; \(f^{(n)}(x)\) in general.

Worked example

\(f(x) = x^4 - 3x^2 + 5x\). Then \(f'(x) = 4x^3 - 6x + 5\), \(f''(x) = 12x^2 - 6\), and \(f'''(x) = 24x\).

Worked example · Trig

\(y = \sin(2x) \Rightarrow y' = 2\cos(2x) \Rightarrow y'' = -4\sin(2x)\). Notice \(y'' = -4y\): a relationship you'll meet again in Unit 7.

Worked example · Implicit second derivative

For \(x^2 + y^2 = 25\) we found \(y' = -\dfrac{x}{y}\). Differentiate again with the quotient rule, substituting \(y'\) where it appears: \[y'' = -\frac{y - x\,y'}{y^2} = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y^2 + x^2}{y^3} = -\frac{25}{y^3}.\] The final substitution of the original equation is the step students most often forget.

Try it

Find \(g''(x)\) for \(g(x) = e^{3x} + \ln x\).

Show answer

\(g'(x) = 3e^{3x} + \dfrac{1}{x}\), so \(g''(x) = 9e^{3x} - \dfrac{1}{x^2}\).

Unit 3 practice · 10 problems

Unit 3 practice: Composite, Implicit, and Inverse Functions

Ten problems covering the whole unit. Work each one on paper before revealing the answer. No calculator needed.

  1. Differentiate \(y = (2x^3 - 5)^6\).

    Show answer

    \(y' = 6(2x^3 - 5)^5\cdot 6x^2 = 36x^2(2x^3 - 5)^5\).

  2. Differentiate \(y = e^{\sin x}\).

    Show answer

    Chain rule with \(u = \sin x\): \(\dfrac{d}{dx}e^{u} = e^{u}\dfrac{du}{dx}\). Here \(\dfrac{du}{dx} = \cos x\), so \(y' = \cos x\, e^{\sin x}\).

  3. Differentiate \(y = \ln(\cos x)\).

    Show answer

    \(y' = \dfrac{-\sin x}{\cos x} = -\tan x\).

  4. Find \(\dfrac{dy}{dx}\) for \(x^2 y + y^3 = 10\).

    Show answer

    \(2xy + x^2 y' + 3y^2 y' = 0\), so \(y' = -\dfrac{2xy}{x^2 + 3y^2}\).

  5. Find the slope of the tangent line to \(x^2 - xy + y^2 = 7\) at the point \((2, 3)\).

    Show answer

    \(2x - y - xy' + 2yy' = 0 \Rightarrow y' = \dfrac{y - 2x}{2y - x}\). At \((2, 3)\): \(\dfrac{3 - 4}{6 - 2} = -\dfrac{1}{4}\).

  6. Let \(f(x) = x^3 + 2x + 1\) and \(g = f^{-1}\). Find \(g'(4)\).

    Show answer

    \(f(1) = 4\), so \(g(4) = 1\). \(f'(x) = 3x^2 + 2\), \(f'(1) = 5\). \(g'(4) = \dfrac{1}{5}\).

  7. Differentiate \(y = \arctan(3x)\).

    Show answer

    Use \(\dfrac{d}{dx}\arctan u = \dfrac{u'}{1 + u^{2}}\) with \(u = 3x\), so \(u' = 3\): \(y' = \dfrac{3}{1 + (3x)^{2}} = \dfrac{3}{1 + 9x^2}\).

  8. Differentiate \(y = \arcsin(x^2)\).

    Show answer

    Use \(\dfrac{d}{dx}\arcsin u = \dfrac{u'}{\sqrt{1 - u^{2}}}\) with \(u = x^{2}\), so \(u' = 2x\): \(y' = \dfrac{2x}{\sqrt{1 - (x^{2})^{2}}} = \dfrac{2x}{\sqrt{1 - x^4}}\).

  9. Let \(h(x) = f(g(x))\), with \(g(3) = 2\), \(g'(3) = -4\), \(f'(2) = 6\), and \(f'(3) = 10\). Find \(h'(3)\).

    Show answer

    \(h'(3) = f'(g(3))\cdot g'(3) = f'(2)\cdot(-4) = -24\). (The value \(f'(3) = 10\) is a distractor.)

  10. Find \(y'''\) for \(y = \sin(2x)\).

    Show answer

    \(y' = 2\cos 2x\), \(y'' = -4\sin 2x\), \(y''' = -8\cos 2x\).

Lesson 4.1 · Unit 4 · CED topic 4.1

Interpreting the meaning of the derivative in context

A derivative is a rate, and a rate has units. Free-response questions routinely ask you to explain what a number like \(f'(5) = -3\) means "in the context of the problem", and they grade the sentence, not the number.

The template

Units of \(f'\) are \(\dfrac{\text{units of } f}{\text{units of } x}\). Interpretation: "At \(x = a\), [the quantity] is increasing (or decreasing) at a rate of \(|f'(a)|\) [units of \(f\)] per [unit of \(x\)]." Name the time, the quantity, the direction, the number, and the units: all five.

Worked example

\(C(t)\) is the number of gallons of water in a tank \(t\) minutes after noon, and \(C'(5) = -3\).

Interpretation: At 12:05, the amount of water in the tank is decreasing at a rate of 3 gallons per minute.

Worked example · Marginal quantities

\(P(x)\) is the profit in dollars from selling \(x\) units, and \(P'(200) = 15\). Near 200 units, each additional unit sold adds about $15 of profit. Economists call this marginal profit: it's just a derivative.

Worked example · Using a rate to predict

\(T(h)\) is the temperature in °F \(h\) hours after midnight, with \(T(6) = 52\) and \(T'(6) = 2.5\). Estimate \(T(6.5)\): \(T(6.5) \approx 52 + 2.5(0.5) = 53.25\) °F. Rate × time gives the approximate change: this is the idea behind linearization in Lesson 4.5.

Try it

\(V(t)\) is the volume of a balloon in cm³ after \(t\) seconds, and \(V'(4) = 12\). Interpret \(V'(4)\) with units.

Show answer

At \(t = 4\) seconds, the balloon's volume is increasing at a rate of 12 cubic centimeters per second.

Lesson 4.2 · Unit 4 · CED topic 4.2

Straight-line motion: position, velocity, acceleration

A particle moving along a line has position \(x(t)\). Its velocity is \(v(t) = x'(t)\) and its acceleration is \(a(t) = v'(t) = x''(t)\). Almost every motion question comes down to the signs of \(v\) and \(a\).

The rules
  • Speed is \(|v(t)|\).
  • The particle is at rest when \(v = 0\), and changes direction when \(v\) changes sign.
  • Speeding up when \(v\) and \(a\) have the same sign; slowing down when they have opposite signs.
  • Displacement is \(x(b) - x(a)\); total distance adds up the lengths of every leg separately.
Worked example

\(x(t) = t^3 - 6t^2 + 9t\) for \(t \ge 0\).

\(v(t) = 3t^2 - 12t + 9 = 3(t - 1)(t - 3)\) and \(a(t) = 6t - 12\). The particle is at rest at \(t = 1\) and \(t = 3\), and moves left (\(v < 0\)) on \(1 < t < 3\).

At \(t = 2.5\): \(v = -2.25\) and \(a = 3\). Opposite signs, so the particle is slowing down. At \(t = 4\): \(v = 9\), \(a = 12\); same sign, speeding up.

Distance on \([0, 4]\): the legs are \(x(0) = 0 \to x(1) = 4 \to x(3) = 0 \to x(4) = 4\), so total distance \(= 4 + 4 + 4 = 12\), while displacement is only \(x(4) - x(0) = 4\).

Try it

\(x(t) = t^2 - 4t + 3\). When is the particle at rest? Is it speeding up or slowing down at \(t = 1\)? At \(t = 3\)?

Show answer

\(v = 2t - 4 = 0\) at \(t = 2\). \(a = 2\) always. At \(t = 1\), \(v = -2\): opposite sign to \(a\), slowing down. At \(t = 3\), \(v = 2\): same sign, speeding up.

Lesson 4.3 · Unit 4 · CED topic 4.3

Rates of change in applied contexts other than motion

Anything that changes has a rate of change, and that rate is a derivative. Populations, costs, areas, temperatures: the calculus is identical; only the units and the story change.

Worked example · Geometry

A circle's area is \(A = \pi r^2\), so \(\dfrac{dA}{dr} = 2\pi r\). At \(r = 3\) cm, the area grows by about \(6\pi \approx 18.85\) cm² for each additional centimeter of radius. (That's the circumference, not a coincidence.)

Worked example · Growth

A bacteria population is \(P(t) = 500e^{0.3t}\) after \(t\) hours. \(P'(t) = 150e^{0.3t}\), so \(P'(4) = 150e^{1.2} \approx 498\). At \(t = 4\) hours the population is growing at about 498 bacteria per hour.

Worked example · Marginal cost

\(C(x) = 0.01x^2 + 20x + 5000\) dollars to produce \(x\) units. Marginal cost is \(C'(x) = 0.02x + 20\), and \(C'(300) = 26\): the 301st unit costs roughly $26 to produce.

Try it

The volume of a sphere is \(V = \tfrac{4}{3}\pi r^3\). Find \(\dfrac{dV}{dr}\) when \(r = 2\), and say what it represents.

Show answer

\(\dfrac{dV}{dr} = 4\pi r^2 = 16\pi\) at \(r = 2\): the volume increases about \(16\pi \approx 50.3\) cubic units per unit increase in radius. (Again the surface area: volume grows by adding a thin shell.)

Lesson 4.4 · Unit 4 · CED topics 4.4–4.5

Related rates

Two quantities are linked by an equation, and both change with time. Knowing how fast one changes tells you how fast the other does. Differentiate the linking equation with respect to \(t\): every variable picks up a \(\frac{d}{dt}\) by the chain rule.

Procedure
  1. Draw a diagram; name every changing quantity with a variable.
  2. Write an equation relating the variables that holds at all times.
  3. Differentiate both sides with respect to \(t\).
  4. Only now substitute the known values and rates, and solve.

Substituting a value that changes before differentiating is the classic error: it kills the term you need.

Worked example · The ladder

A 10 ft ladder leans against a wall. Its base slides away at 2 ft/s. How fast is the top sliding down when the base is 6 ft from the wall?

\(x^2 + y^2 = 100 \Rightarrow 2x\dfrac{dx}{dt} + 2y\dfrac{dy}{dt} = 0\). When \(x = 6\), \(y = 8\). Substitute \(\frac{dx}{dt} = 2\): \(24 + 16\dfrac{dy}{dt} = 0\), so \(\dfrac{dy}{dt} = -\dfrac{3}{2}\) ft/s. The top slides down at 1.5 ft/s.

Worked example · The cone

Water pours into an inverted cone (radius 4 m, height 10 m) at 2 m³/min. How fast is the depth rising when the water is 5 m deep?

Similar triangles: \(\dfrac{r}{h} = \dfrac{4}{10}\), so \(r = \dfrac{2h}{5}\). Write volume in \(h\) alone: \(V = \tfrac{1}{3}\pi r^2 h = \tfrac{1}{3}\pi\left(\tfrac{2h}{5}\right)^2 h = \dfrac{4\pi h^3}{75}\). Then \(\dfrac{dV}{dt} = \dfrac{4\pi h^2}{25}\dfrac{dh}{dt}\). At \(h = 5\): \(2 = 4\pi\dfrac{dh}{dt}\), so \(\dfrac{dh}{dt} = \dfrac{1}{2\pi} \approx 0.159\) m/min.

Try it

A spherical balloon is inflated at \(36\pi\) cm³/s. How fast is the radius increasing when \(r = 3\) cm?

Show answer

\(V = \tfrac{4}{3}\pi r^3 \Rightarrow \dfrac{dV}{dt} = 4\pi r^2\dfrac{dr}{dt}\). At \(r = 3\): \(36\pi = 36\pi\dfrac{dr}{dt}\), so \(\dfrac{dr}{dt} = 1\) cm/s.

Lesson 4.5 · Unit 4 · CED topic 4.6

Local linearity and linearization

Zoom in far enough on any differentiable curve and it looks like a straight line: its tangent. That means the tangent line is a good stand-in for the function near the point of tangency, and lines are easy to evaluate.

Linearization

The tangent line to \(f\) at \(x = a\) is \[L(x) = f(a) + f'(a)\,(x - a),\] and \(f(x) \approx L(x)\) for \(x\) near \(a\).

Worked example

Approximate \(\sqrt{16.3}\) without a calculator.

Use \(f(x) = \sqrt{x}\) at the nearby nice point \(a = 16\): \(f(16) = 4\), \(f'(x) = \dfrac{1}{2\sqrt{x}}\), so \(f'(16) = \dfrac{1}{8}\). \[L(16.3) = 4 + \tfrac{1}{8}(0.3) = 4.0375.\] The true value is 4.0373… Because \(\sqrt{x}\) is concave down, the tangent sits above the curve, so this is a slight overestimate: concavity, covered in Unit 5, is how you decide.

Worked example · From data

If \(f(3) = 5\) and \(f'(3) = -2\), then \(f(3.2) \approx 5 + (-2)(0.2) = 4.6\). This is exactly the "rate × time" estimate from Lesson 4.1, now with a name.

Try it

Use linearization at \(a = 1\) to approximate \((1.02)^5\).

Show answer

\(f(x) = x^5\), \(f(1) = 1\), \(f'(1) = 5\). \(L(1.02) = 1 + 5(0.02) = 1.10\). (Actual: about 1.1041.)

Lesson 4.6 · Unit 4 · CED topic 4.7

L'Hospital's Rule

Back to limits, now with derivatives in hand. When a limit has the indeterminate form \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\), you may replace the fraction by the ratio of the derivatives: top and bottom differentiated separately, not with the quotient rule.

The rule

If \(\displaystyle\lim_{x \to c}\frac{f(x)}{g(x)}\) has the form \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\), then \[\lim_{x \to c}\frac{f(x)}{g(x)} = \lim_{x \to c}\frac{f'(x)}{g'(x)}\] provided the right-hand limit exists. On the exam you must state the indeterminate form before applying the rule: that sentence is worth a point.

Worked example

\(\displaystyle\lim_{x \to 0}\frac{e^x - 1}{x}\). As \(x \to 0\), numerator and denominator both approach 0. Apply L'Hospital: \(\displaystyle\lim_{x \to 0}\frac{e^x}{1} = 1\).

Worked example · Twice

\(\displaystyle\lim_{x \to 0}\frac{1 - \cos x}{x^2}\) is \(\frac{0}{0}\). Differentiate: \(\displaystyle\lim_{x \to 0}\frac{\sin x}{2x}\), still \(\frac{0}{0}\). Again: \(\displaystyle\lim_{x \to 0}\frac{\cos x}{2} = \frac{1}{2}\).

Worked example · At infinity

\(\displaystyle\lim_{x \to \infty}\frac{\ln x}{x}\) is \(\frac{\infty}{\infty}\). Then \(\displaystyle\lim_{x \to \infty}\frac{1/x}{1} = 0\). Logarithms grow slower than any power of \(x\).

When it does not apply

\(\displaystyle\lim_{x \to 1}\frac{x^2 + 1}{x - 1}\) has the form \(\frac{2}{0}\). That is not indeterminate: the limit is infinite (or does not exist), and using L'Hospital here gives a wrong answer. Always check the form first.

Try it

Evaluate (a) \(\displaystyle\lim_{x \to 0}\frac{\sin 3x}{5x}\) and (b) \(\displaystyle\lim_{x \to \infty}\frac{x^2}{e^x}\).

Show answer

(a) \(\frac{0}{0}\): \(\displaystyle\lim \frac{3\cos 3x}{5} = \frac{3}{5}\). (b) \(\frac{\infty}{\infty}\) twice: \(\displaystyle\lim \frac{2x}{e^x} = \lim \frac{2}{e^x} = 0\).

Unit 4 practice · 10 problems

Unit 4 practice: Contextual Applications of Differentiation

Ten problems covering the whole unit. Work each one on paper before revealing the answer. A calculator is fine for the final arithmetic in problems 4, 5, and 10.

  1. \(W(t)\) is the number of gallons of water in a pool \(t\) hours after noon, and \(W'(3) = -15\). Interpret this with units.

    Show answer

    At 3:00 pm, the amount of water in the pool is decreasing at a rate of 15 gallons per hour.

  2. A particle's position is \(x(t) = t^3 - 9t^2 + 24t\) for \(t \ge 0\). When is it at rest?

    Show answer

    \(v(t) = 3t^2 - 18t + 24 = 3(t - 2)(t - 4)\). At rest at \(t = 2\) and \(t = 4\).

  3. For the same particle, is it speeding up or slowing down at \(t = 1\)?

    Show answer

    \(v(1) = 9\) and \(a(t) = 6t - 18\), so \(a(1) = -12\). Opposite signs: slowing down.

  4. The edge of a cube grows at 2 cm/s. How fast is the volume increasing when the edge is 5 cm?

    Show answer

    \(V = s^3 \Rightarrow \dfrac{dV}{dt} = 3s^2\dfrac{ds}{dt} = 3(25)(2) = 150\) cm³/s.

  5. Two cars leave the same point at the same time; one drives north at 60 mph, the other east at 80 mph. How fast is the distance between them increasing after one hour?

    Show answer

    \(d^2 = x^2 + y^2 \Rightarrow d\,d' = x\,x' + y\,y'\). After 1 h: \(x = 80\), \(y = 60\), \(d = 100\). \(d' = \dfrac{80(80) + 60(60)}{100} = 100\) mph.

  6. Use a linearization to approximate \(\sqrt[3]{8.06}\).

    Show answer

    \(f(x) = x^{1/3}\) at \(a = 8\): \(f(8) = 2\), \(f'(8) = \tfrac{1}{3}(8)^{-2/3} = \tfrac{1}{12}\). \(L(8.06) = 2 + \tfrac{0.06}{12} = 2.005\).

  7. Evaluate \(\displaystyle\lim_{x \to 0}\frac{e^{2x} - 1}{\sin x}\).

    Show answer

    Form \(\frac{0}{0}\). L'Hospital: \(\displaystyle\lim_{x \to 0}\frac{2e^{2x}}{\cos x} = 2\).

  8. Evaluate \(\displaystyle\lim_{x \to \infty}\frac{x^3}{e^x}\).

    Show answer

    Form \(\frac{\infty}{\infty}\); apply L'Hospital three times: \(\dfrac{3x^2}{e^x} \to \dfrac{6x}{e^x} \to \dfrac{6}{e^x} \to 0\).

  9. Evaluate \(\displaystyle\lim_{x \to 1}\frac{\ln x}{x^2 - 1}\).

    Show answer

    Form \(\frac{0}{0}\). \(\displaystyle\lim_{x \to 1}\frac{1/x}{2x} = \frac{1}{2}\).

  10. A 13 ft ladder leans against a wall. The top slides down at 2 ft/s. How fast is the base moving away from the wall when the base is 5 ft from it?

    Show answer

    \(x^2 + y^2 = 169\); when \(x = 5\), \(y = 12\). \(2x\,x' + 2y\,y' = 0 \Rightarrow 5x' + 12(-2) = 0\), so \(x' = \dfrac{24}{5} = 4.8\) ft/s.

Lesson 5.1 · Unit 5 · CED topic 5.1

The Mean Value Theorem

If you drive 120 miles in 2 hours, at some instant your speedometer read exactly 60. That's the Mean Value Theorem: somewhere on a smooth curve, the tangent line is parallel to the secant line through the endpoints.

Theorem (MVT)

If \(f\) is continuous on \([a, b]\) and differentiable on \((a, b)\), then there is a \(c\) in \((a, b)\) with \[f'(c) = \frac{f(b) - f(a)}{b - a}.\] Special case (Rolle's Theorem): if also \(f(a) = f(b)\), then \(f'(c) = 0\) for some \(c\) in \((a, b)\).

Worked example

Find the \(c\) guaranteed by the MVT for \(f(x) = x^2 - 2x\) on \([0, 3]\).

Average rate: \(\dfrac{f(3) - f(0)}{3 - 0} = \dfrac{3 - 0}{3} = 1\). Set \(f'(c) = 2c - 2 = 1\), so \(c = \dfrac{3}{2}\), which is in \((0, 3)\). ✓

Worked example · Justification

A car's position \(s(t)\) is differentiable, with \(s(0) = 0\) and \(s(2) = 120\) miles. Must its speed have equaled 60 mph at some moment?

Yes. \(s\) is differentiable on \([0, 2]\), hence continuous, so by the MVT there is a \(c\) in \((0, 2)\) with \(s'(c) = \dfrac{120 - 0}{2 - 0} = 60\). Every word of that justification is graded.

The hypotheses matter

\(f(x) = |x|\) on \([-1, 1]\) has \(f(-1) = f(1)\), yet no \(c\) with \(f'(c) = 0\), because \(f\) is not differentiable at 0. If a question gives a table of values and no promise of differentiability, the MVT cannot be used.

Try it

Find all \(c\) guaranteed by the MVT for \(f(x) = x^3\) on \([-1, 2]\).

Show answer

Average rate: \(\dfrac{8 - (-1)}{3} = 3\). \(3c^2 = 3 \Rightarrow c = \pm 1\). Only \(c = 1\) lies in the open interval \((-1, 2)\).

Lesson 5.2 · Unit 5 · CED topic 5.2

Extreme Value Theorem, extrema, and critical points

Where can a function be biggest or smallest? Only in a few places: at points where the derivative is zero, where it doesn't exist, or at the ends of the interval. Everything in this unit is built on that fact.

Definitions

A critical point of \(f\) is an \(x\) in the domain where \(f'(x) = 0\) or \(f'(x)\) does not exist. A local (relative) extremum is a high or low point compared to its neighbors; an absolute (global) extremum is the highest or lowest value on the whole interval.

Extreme Value Theorem: a function continuous on a closed interval \([a, b]\) has both an absolute maximum and an absolute minimum there. They occur at critical points or endpoints.

Worked example

\(f(x) = x^3 - 3x^2 - 9x + 1\). \(f'(x) = 3x^2 - 6x - 9 = 3(x - 3)(x + 1)\), so the critical points are \(x = -1\) and \(x = 3\). Whether each is a max, a min, or neither is the next lesson's job.

Worked example · Derivative undefined

\(g(x) = x^{2/3}\). \(g'(x) = \tfrac{2}{3}x^{-1/3}\), which is undefined at \(x = 0\) though \(g(0) = 0\) exists. So \(x = 0\) is a critical point, and in fact a minimum, at the cusp.

Not every critical point is an extremum: \(f(x) = x^3\) has \(f'(0) = 0\) but just flattens out momentarily at the origin and keeps rising.

Try it

Find the critical points of \(h(x) = x e^{-x}\).

Show answer

\(h'(x) = e^{-x} - x e^{-x} = e^{-x}(1 - x)\). Since \(e^{-x}\) is never zero, the only critical point is \(x = 1\).

Lesson 5.3 · Unit 5 · CED topics 5.3–5.4

Increasing and decreasing intervals; the first derivative test

The sign of \(f'\) tells you which way \(f\) is going. Where the sign changes, \(f\) turns around, and that's a local extremum.

First derivative test

\(f' > 0\) on an interval ⇒ \(f\) increasing there; \(f' < 0\) ⇒ decreasing. At a critical point \(c\): if \(f'\) changes from positive to negative, \(f\) has a local maximum; from negative to positive, a local minimum; no sign change, neither.

Worked example

Continue with \(f(x) = x^3 - 3x^2 - 9x + 1\), critical points \(-1\) and \(3\).

Test a point in each interval of \(f'(x) = 3(x-3)(x+1)\):

IntervalTest xf′(x)f
(−∞, −1)−215 (+)increasing
(−1, 3)0−9 (−)decreasing
(3, ∞)415 (+)increasing

\(f'\) changes \(+ \to -\) at \(x = -1\): local maximum, \(f(-1) = 6\). It changes \(- \to +\) at \(x = 3\): local minimum, \(f(3) = -26\).

Exam wording: "\(f\) has a relative maximum at \(x = -1\) because \(f'\) changes sign from positive to negative there."

Try it

Find the intervals where \(g(x) = x^4 - 4x^3\) is increasing or decreasing, and classify its critical points.

Show answer

\(g'(x) = 4x^3 - 12x^2 = 4x^2(x - 3)\); critical points 0 and 3. \(g'\) is negative on \((-\infty, 0)\) and \((0, 3)\), positive on \((3, \infty)\). So \(g\) decreases on \((-\infty, 3)\) and increases on \((3, \infty)\). Local minimum at \(x = 3\) (\(g(3) = -27\)); \(x = 0\) is a critical point but not an extremum, since \(g'\) doesn't change sign there.

Lesson 5.4 · Unit 5 · CED topic 5.5

Absolute extrema on a closed interval: the candidates test

On a closed interval, the absolute maximum and minimum are guaranteed to exist (Extreme Value Theorem) and guaranteed to be at a critical point or an endpoint. So list the candidates, evaluate \(f\) at each, and compare. No sign charts needed.

Candidates test
  1. Find the critical points of \(f\) that lie inside \([a, b]\).
  2. Evaluate \(f\) at those points and at both endpoints.
  3. The largest value is the absolute max; the smallest is the absolute min.
Worked example

Find the absolute extrema of \(f(x) = x^3 - 3x^2 - 9x + 1\) on \([-2, 4]\).

CandidateWhyf(x)
x = −2endpoint−1
x = −1critical point6
x = 3critical point−26
x = 4endpoint−19

Absolute maximum 6 at \(x = -1\); absolute minimum −26 at \(x = 3\).

Worked example · Trig

\(g(x) = x - 2\sin x\) on \([0, \pi]\). \(g'(x) = 1 - 2\cos x = 0\) when \(\cos x = \tfrac{1}{2}\), i.e. \(x = \tfrac{\pi}{3}\). Candidates: \(g(0) = 0\), \(g\!\left(\tfrac{\pi}{3}\right) = \tfrac{\pi}{3} - \sqrt{3} \approx -0.685\), \(g(\pi) = \pi\). Absolute max \(\pi\) at \(x = \pi\); absolute min about \(-0.685\) at \(x = \tfrac{\pi}{3}\).

Try it

Find the absolute extrema of \(h(x) = 2x^3 - 3x^2 - 12x\) on \([-2, 3]\).

Show answer

\(h'(x) = 6(x - 2)(x + 1)\); critical points \(-1\) and \(2\). Values: \(h(-2) = -4\), \(h(-1) = 7\), \(h(2) = -20\), \(h(3) = -9\). Absolute max 7 at \(x = -1\), absolute min −20 at \(x = 2\).

Lesson 5.5 · Unit 5 · CED topics 5.6–5.7

Concavity, points of inflection, and the second derivative test

The first derivative says whether a graph rises or falls. The second derivative says which way it bends, like a cup holding water (concave up) or spilling it (concave down).

Definitions

\(f'' > 0\) on an interval ⇒ \(f\) is concave up (\(f'\) is increasing). \(f'' < 0\) ⇒ concave down. A point of inflection is where concavity changes, i.e. where \(f''\) changes sign.

Second derivative test: if \(f'(c) = 0\) and \(f''(c) > 0\), \(f\) has a local minimum at \(c\); if \(f''(c) < 0\), a local maximum; if \(f''(c) = 0\), the test is inconclusive: fall back to the first derivative test.

Worked example

Still \(f(x) = x^3 - 3x^2 - 9x + 1\). \(f''(x) = 6x - 6\), which is negative for \(x < 1\) and positive for \(x > 1\). So \(f\) is concave down on \((-\infty, 1)\), concave up on \((1, \infty)\), with a point of inflection at \(x = 1\).

Second derivative test at the critical points: \(f''(-1) = -12 < 0\) ⇒ local max; \(f''(3) = 12 > 0\) ⇒ local min. Same conclusions as Lesson 5.3, less work.

Worked example · When f″ = 0 isn't enough

\(g(x) = x^4\): \(g''(x) = 12x^2\) is 0 at \(x = 0\) but positive on both sides, no sign change, so no inflection point. And the second derivative test is inconclusive at the critical point 0; the first derivative test shows it's a minimum.

Try it

Find the inflection points and concavity intervals of \(h(x) = x^4 - 6x^2\).

Show answer

\(h''(x) = 12x^2 - 12 = 12(x - 1)(x + 1)\). Concave up on \((-\infty, -1)\) and \((1, \infty)\), concave down on \((-1, 1)\). Inflection points at \(x = \pm 1\).

Lesson 5.6 · Unit 5 · CED topics 5.8–5.9

Sketching graphs and connecting f, f′, and f″

The exam's favorite Unit 5 question hands you the graph of \(f'\), not \(f\), and asks about \(f\). Every feature of \(f\) can be read off the derivative's graph if you know the translation.

Reading f from the graph of f′
  • \(f'\) above the axis ⇒ \(f\) increasing; below ⇒ decreasing.
  • \(f'\) crosses the axis ⇒ local extremum of \(f\) (\(+\) to \(-\): max; \(-\) to \(+\): min).
  • \(f'\) increasing ⇒ \(f\) concave up; \(f'\) decreasing ⇒ concave down.
  • \(f'\) has a local max or min ⇒ \(f\) has a point of inflection.
Worked example

Suppose \(f'(x) = (x - 2)(x + 1)^2\). Describe \(f\).

\((x+1)^2 \ge 0\), so the sign of \(f'\) follows \((x - 2)\): negative for \(x < 2\) (touching zero at \(-1\)), positive for \(x > 2\). So \(f\) decreases on \((-\infty, 2)\), increases on \((2, \infty)\), has a local minimum at \(x = 2\), and no extremum at \(x = -1\).

For concavity: \(f''(x) = (x+1)^2 + 2(x-2)(x+1) = (x+1)(3x - 3) = 3(x+1)(x-1)\). Sign changes at \(-1\) and \(1\): two inflection points.

Worked example · Sketching from scratch

\(f(x) = x^3 - 3x\). Zeros at \(0, \pm\sqrt{3}\). \(f'(x) = 3x^2 - 3\): local max at \(x = -1\) (value 2), local min at \(x = 1\) (value −2). \(f''(x) = 6x\): inflection at the origin, concave down left of it, up right of it. Plot those six facts and connect them smoothly: that is the sketch.

Try it

The graph of \(f'\) is the line \(f'(x) = 4 - 2x\). Where does \(f\) have a local maximum? What is the concavity of \(f\)?

Show answer

\(f'\) changes from \(+\) to \(-\) at \(x = 2\), so \(f\) has a local maximum there. \(f''(x) = -2 < 0\), so \(f\) is concave down everywhere.

Lesson 5.7 · Unit 5 · CED topics 5.10–5.11

Optimization

Largest area, least material, shortest distance: optimization problems turn a word problem into a function of one variable and then find its extreme value with the tools of this unit.

Procedure
  1. Name the variables; write the quantity to optimize.
  2. Use the constraint to eliminate all but one variable.
  3. State the domain that makes physical sense.
  4. Find critical points; confirm max or min (first/second derivative test, or the candidates test on a closed interval).
  5. Answer the question that was asked: sometimes that's the value, sometimes the dimensions.
Worked example · Fencing

400 m of fence encloses a rectangular field along a straight river; no fence is needed on the river side. Find the largest possible area.

Let \(x\) be each side perpendicular to the river and \(y\) the side parallel: \(2x + y = 400\), so \(y = 400 - 2x\). Area \(A(x) = x(400 - 2x) = 400x - 2x^2\) on \(0 < x < 200\). \(A'(x) = 400 - 4x = 0 \Rightarrow x = 100\); \(A''(x) = -4 < 0\), so this is a maximum. Then \(y = 200\) and the area is 20,000 m².

Worked example · The open box

Squares of side \(x\) are cut from the corners of a 12 in × 12 in sheet and the sides folded up. Maximize the volume.

\(V(x) = x(12 - 2x)^2\), \(0 < x < 6\). \(V'(x) = (12 - 2x)^2 - 4x(12 - 2x) = (12 - 2x)(12 - 6x)\), zero at \(x = 2\) (and \(x = 6\), excluded). \(V'\) is positive before 2 and negative after, so \(x = 2\) gives the maximum: \(V(2) = 2 \cdot 8^2 = 128\) in³.

Worked example · Closest point

Find the point on \(y = x^2\) closest to \((0, 3)\). Minimize the squared distance \(D(x) = x^2 + (x^2 - 3)^2\) (same minimizer, no square root). \(D'(x) = 2x + 4x(x^2 - 3) = 2x(2x^2 - 5)\), so \(x = 0\) or \(x = \pm\sqrt{5/2}\). \(D(0) = 9\) while \(D\big(\pm\sqrt{5/2}\big) = \tfrac{5}{2} + \tfrac{1}{4} = \tfrac{11}{4}\). The closest points are \(\big(\pm\sqrt{5/2},\, 5/2\big)\), at distance \(\tfrac{\sqrt{11}}{2}\).

Try it

Two positive numbers have sum 30. Maximize their product.

Show answer

\(P(x) = x(30 - x) = 30x - x^2\); \(P'(x) = 30 - 2x = 0\) at \(x = 15\); \(P'' = -2 < 0\). The numbers are 15 and 15, product 225.

Lesson 5.8 · Unit 5 · CED topic 5.12

Exploring behaviors of implicit relations

The tools of this unit (critical points, the second derivative) work on implicitly defined curves too. The difference is that \(y'\) is a fraction in \(x\) and \(y\), so horizontal tangents come from its numerator and vertical tangents from its denominator.

Worked example · Horizontal tangents

Find where \(x^2 + xy + y^2 = 7\) has a horizontal tangent.

Differentiate: \(2x + y + xy' + 2yy' = 0\), so \(y' = -\dfrac{2x + y}{x + 2y}\). Horizontal when \(2x + y = 0\), i.e. \(y = -2x\). Substitute into the curve: \(x^2 - 2x^2 + 4x^2 = 3x^2 = 7\), so \(x = \pm\sqrt{7/3}\). The points are \(\big(\sqrt{7/3}, -2\sqrt{7/3}\big)\) and \(\big(-\sqrt{7/3}, 2\sqrt{7/3}\big)\). Check the denominator there: \(x + 2y = -3x \ne 0\). ✓

Worked example · Classifying with y″

For the circle \(x^2 + y^2 = 25\), Lesson 3.6 gave \(y'' = -\dfrac{25}{y^3}\). At \((0, 5)\), where \(y' = 0\), we get \(y'' = -\dfrac{25}{125} = -\dfrac{1}{5} < 0\): concave down, so the point is a local maximum of the curve, the top of the circle, as expected.

The logic is the same as for functions; the only extra step is substituting the point's \(y\)-coordinate as well as its \(x\).

Try it

For \(x^2 + y^2 = 25\), evaluate \(y''\) at \((0, -5)\) and classify the point.

Show answer

\(y'' = -\dfrac{25}{(-5)^3} = \dfrac{1}{5} > 0\): concave up, so \((0, -5)\) is a local minimum, the bottom of the circle.

Unit 5 practice · 10 problems

Unit 5 practice: Analytical Applications of Differentiation

Ten problems covering the whole unit: one of the two heaviest-weighted units on the exam. Work each one on paper before revealing the answer. No calculator needed.

  1. Find the absolute maximum and minimum of \(f(x) = x^3 - 12x\) on \([-3, 3]\).

    Show answer

    \(f'(x) = 3x^2 - 12 = 0\) at \(x = \pm 2\). Candidates: \(f(-3) = 9\), \(f(-2) = 16\), \(f(2) = -16\), \(f(3) = -9\). Absolute max 16 at \(x = -2\); absolute min \(-16\) at \(x = 2\).

  2. Find the value of \(c\) guaranteed by the Mean Value Theorem for \(f(x) = \sqrt{x}\) on \([1, 9]\).

    Show answer

    Average rate \(= \dfrac{3 - 1}{8} = \dfrac{1}{4}\). \(f'(c) = \dfrac{1}{2\sqrt{c}} = \dfrac{1}{4} \Rightarrow c = 4\).

  3. Find the intervals of concavity and the points of inflection of \(g(x) = x^4 - 8x^2 + 3\).

    Show answer

    \(g''(x) = 12x^2 - 16 = 0 \Rightarrow x = \pm\dfrac{2}{\sqrt{3}}\). Concave up for \(|x| > \dfrac{2}{\sqrt{3}}\), concave down on \(\left(-\dfrac{2}{\sqrt{3}}, \dfrac{2}{\sqrt{3}}\right)\); inflection points at \(x = \pm\dfrac{2}{\sqrt{3}} \approx \pm 1.155\).

  4. \(f'(x) = x^2(x - 4)(x + 2)\). At which \(x\) does \(f\) have a local maximum? A local minimum?

    Show answer

    \(x^2 \ge 0\) never changes sign. \((x - 4)(x + 2)\) is positive for \(x < -2\), negative on \((-2, 4)\), positive for \(x > 4\). Local max at \(x = -2\) (\(+\) to \(-\)); local min at \(x = 4\) (\(-\) to \(+\)); nothing at \(x = 0\).

  5. Use the second derivative test to classify the critical points of \(h(x) = 2x^3 - 3x^2 - 36x + 5\).

    Show answer

    \(h'(x) = 6(x - 3)(x + 2)\); critical points \(3\) and \(-2\). \(h''(x) = 12x - 6\): \(h''(3) = 30 > 0\) ⇒ local min at 3; \(h''(-2) = -30 < 0\) ⇒ local max at \(-2\).

  6. A rectangle has its base on the \(x\)-axis and its upper corners on \(y = 12 - x^2\). Find the maximum possible area.

    Show answer

    \(A(x) = 2x(12 - x^2) = 24x - 2x^3\); \(A'(x) = 24 - 6x^2 = 0 \Rightarrow x = 2\); \(A''(2) < 0\). Maximum area \(= 4 \cdot 8 = 32\) (a 4 by 8 rectangle).

  7. An open-top box with a square base must hold 32 in³. Find the dimensions that minimize the surface area.

    Show answer

    \(x^2 h = 32 \Rightarrow h = \dfrac{32}{x^2}\). \(S = x^2 + 4xh = x^2 + \dfrac{128}{x}\); \(S' = 2x - \dfrac{128}{x^2} = 0 \Rightarrow x = 4\), \(h = 2\). Minimum surface area \(= 48\) in².

  8. \(f\) is twice differentiable on \([0, 6]\), with \(f' > 0\) on \((0, 2)\), \(f' < 0\) on \((2, 6)\), \(f'' < 0\) on \((0, 4)\), and \(f'' > 0\) on \((4, 6)\). Describe the graph of \(f\).

    Show answer

    \(f\) increases to a local maximum at \(x = 2\), then decreases. It is concave down on \((0, 4)\) and concave up on \((4, 6)\), with a point of inflection at \(x = 4\).

  9. Find all points on \(x^2 + 4y^2 = 16\) where the tangent line is horizontal, and all points where it is vertical.

    Show answer

    \(2x + 8yy' = 0 \Rightarrow y' = -\dfrac{x}{4y}\). Horizontal where \(x = 0\): \((0, \pm 2)\). Vertical where \(y = 0\): \((\pm 4, 0)\).

  10. Find and classify the local extrema of \(f(x) = \dfrac{x}{x^2 + 1}\).

    Show answer

    \(f'(x) = \dfrac{1 - x^2}{(x^2 + 1)^2}\), zero at \(x = \pm 1\); positive on \((-1, 1)\), negative outside. Local minimum \(f(-1) = -\tfrac{1}{2}\); local maximum \(f(1) = \tfrac{1}{2}\).

Lesson 6.1 · Unit 6 · CED topic 6.1

Exploring accumulation of change

Integration begins with a picture, not a formula. If you know how fast something changes, the area under the rate graph is how much it changed. That single idea is the whole of Unit 6.

Key idea

The net change of a quantity over \([a, b]\) equals the signed area between its rate-of-change graph and the horizontal axis on \([a, b]\). Area above the axis counts positive, below counts negative. The units multiply: (rate units) × (time units).

Worked example

A car travels at 20 mph for 2 hours, then slows steadily to a stop over the next hour. How far does it go?

The velocity graph is a rectangle (2 h × 20 mph = 40 mi) followed by a triangle (\(\tfrac{1}{2} \cdot 1 \cdot 20 = 10\) mi). Total: 50 miles. In the notation you'll learn next, \(\displaystyle\int_0^3 v(t)\,dt = 50\).

Worked example · Signed area

Water flows into a tank at 4 gal/min for 5 minutes (area \(+20\)), then drains at 2 gal/min for 3 minutes (area \(-6\)). Net change: \(+14\) gallons. The total water that moved is 26 gallons: signed area gives net change, total area gives total flow.

Try it

A rate graph is a triangle from \((0, 0)\) up to \((4, 8)\) and back down to \((8, 0)\). What is the total accumulation from \(t = 0\) to \(t = 8\)?

Show answer

\(\tfrac{1}{2}\cdot 8 \cdot 8 = 32\) units.

Lesson 6.2 · Unit 6 · CED topic 6.2

Approximating areas with Riemann sums

Most rate graphs aren't rectangles and triangles. Riemann sums estimate the area with rectangles anyway, many thin ones, and the exam tests four flavors plus a judgment about whether each over- or underestimates.

Four sums

Slice \([a, b]\) into subintervals. Each rectangle's height is the function value at the subinterval's left endpoint, right endpoint, or midpoint. A trapezoidal sum uses trapezoids: \(\tfrac{1}{2}(f_{\text{left}} + f_{\text{right}})\cdot\text{width}\) on each piece.

If \(f\) is increasing, left sums underestimate and right sums overestimate (reverse for decreasing). If \(f\) is concave up, trapezoids overestimate and midpoints underestimate (reverse for concave down).

Worked example · Unequal widths from a table
t (min)0258
r(t) (gal/min)35810

Widths are 2, 3, 3. Left sum: \(3(2) + 5(3) + 8(3) = 45\). Right sum: \(5(2) + 8(3) + 10(3) = 64\). Trapezoidal: \(\tfrac{3+5}{2}(2) + \tfrac{5+8}{2}(3) + \tfrac{8+10}{2}(3) = 8 + 19.5 + 27 = 54.5\) gallons. Since \(r\) is increasing, the left sum is an underestimate of the true total.

Worked example · Midpoint sum

\(f(x) = x^2\) on \([0, 2]\) with two subintervals: midpoints 0.5 and 1.5, width 1. \(M_2 = 0.25 + 2.25 = 2.5\). (Exact area is \(\tfrac{8}{3} \approx 2.667\); \(x^2\) is concave up, so the midpoint sum underestimates, as promised.)

Try it

Compute the right Riemann sum for \(f(x) = x^2\) on \([0, 4]\) with 4 equal subintervals. Over- or underestimate?

Show answer

\(R_4 = 1 + 4 + 9 + 16 = 30\). \(f\) is increasing, so this overestimates (exact: \(\tfrac{64}{3} \approx 21.3\)).

Lesson 6.3 · Unit 6 · CED topic 6.3

Summation notation and the definite integral

Use more and more rectangles and the Riemann sum approaches the exact area. That limit is the definite integral. The exam mostly asks you to translate between the two notations.

Definition

With \(\Delta x = \dfrac{b - a}{n}\) and right endpoints \(x_k = a + k\,\Delta x\), \[\int_a^b f(x)\,dx = \lim_{n \to \infty}\sum_{k=1}^{n} f(x_k)\,\Delta x.\] Reading a limit-of-sums: \(\Delta x\) tells you \(b - a\); the expression \(a + k\Delta x\) tells you \(a\); whatever is done to it is \(f\).

Worked example · Sum to integral

Write \(\displaystyle\lim_{n \to \infty}\sum_{k=1}^{n}\left(2 + \frac{3k}{n}\right)^2 \frac{3}{n}\) as a definite integral.

\(\Delta x = \dfrac{3}{n}\), so the interval has length 3. The inside is \(2 + k\Delta x\), so \(a = 2\) and \(b = 5\). The function squares its input: \(\displaystyle\int_2^5 x^2\,dx\).

Worked example · Integral to sum

\(\displaystyle\int_0^4 \sqrt{x}\,dx\): \(\Delta x = \dfrac{4}{n}\), \(x_k = \dfrac{4k}{n}\), so \(\displaystyle\lim_{n \to \infty}\sum_{k=1}^{n}\sqrt{\frac{4k}{n}}\cdot\frac{4}{n}\).

Try it

Express \(\displaystyle\lim_{n \to \infty}\sum_{k=1}^{n}\frac{1}{n}\sin\!\left(\frac{k\pi}{n}\right)\) as a definite integral.

Show answer

\(\Delta x = \tfrac{1}{n}\) ⇒ interval length 1; \(x_k = \tfrac{k}{n}\) ⇒ \(a = 0\), \(b = 1\); \(f(x) = \sin(\pi x)\). So \(\displaystyle\int_0^1 \sin(\pi x)\,dx\).

Lesson 6.4 · Unit 6 · CED topics 6.4–6.5

The Fundamental Theorem of Calculus and accumulation functions

Here is the theorem the whole course has been building toward. An accumulation function adds up \(f\) from a fixed start to a moving endpoint \(x\). Its rate of change is just \(f(x)\): integration and differentiation undo each other.

FTC, Part 1

If \(f\) is continuous, then \(g(x) = \displaystyle\int_a^x f(t)\,dt\) is differentiable and \[g'(x) = f(x).\] With a chain rule for a non-trivial upper limit: \(\dfrac{d}{dx}\displaystyle\int_a^{u(x)} f(t)\,dt = f\big(u(x)\big)\cdot u'(x)\). If \(x\) is the lower limit, flip the limits first and pick up a minus sign.

Worked example

\(g(x) = \displaystyle\int_1^x (t^2 - 3)\,dt\). Then \(g'(x) = x^2 - 3\), \(g(1) = 0\), and \(g\) has a local minimum at \(x = \sqrt{3}\) because \(g'\) changes from negative to positive there. Everything from Unit 5 applies to \(g\): you just never need to compute \(g\) itself.

Worked example · Chain rule

\(h(x) = \displaystyle\int_0^{x^2}\cos t\,dt \Rightarrow h'(x) = \cos(x^2)\cdot 2x.\)

Worked example · Reading a graph

Suppose the graph of \(f\) is a semicircle of radius 2 above the axis on \([0, 4]\), then a straight line down to \((6, -2)\). Let \(g(x) = \displaystyle\int_0^x f(t)\,dt\). Then \(g(4) = \tfrac{1}{2}\pi(2)^2 = 2\pi\), and \(g(6) = 2\pi + \tfrac{1}{2}(2)(-2) = 2\pi - 2\). \(g\) increases on \((0, 4)\) where \(f > 0\) and has its maximum at \(x = 4\) where \(f\) changes sign.

Try it

(a) \(F(x) = \displaystyle\int_2^x e^{-t^2}\,dt\). Find \(F'(x)\) and \(F'(2)\). (b) \(G(x) = \displaystyle\int_x^5 \ln t\,dt\). Find \(G'(x)\).

Show answer

(a) \(F'(x) = e^{-x^2}\), \(F'(2) = e^{-4}\). (b) \(G(x) = -\displaystyle\int_5^x \ln t\,dt\), so \(G'(x) = -\ln x\).

Lesson 6.5 · Unit 6 · CED topic 6.6

Properties of definite integrals

Because a definite integral is a signed area, it obeys the rules areas do: you can split it, reverse it, scale it, and add it. These properties let you compute integrals from given values without any formula for \(f\).

Properties
  • \(\displaystyle\int_a^a f = 0\) and \(\displaystyle\int_b^a f = -\int_a^b f\)
  • \(\displaystyle\int_a^c f = \int_a^b f + \int_b^c f\)
  • \(\displaystyle\int_a^b \big(c\,f \pm g\big) = c\int_a^b f \pm \int_a^b g\)
  • \(\displaystyle\int_a^b k\,dx = k(b - a)\) for a constant \(k\)
Worked example

Given \(\displaystyle\int_0^5 f(x)\,dx = 12\) and \(\displaystyle\int_0^3 f(x)\,dx = 7\):

\(\displaystyle\int_3^5 f = 12 - 7 = 5\), \(\displaystyle\int_5^3 f = -5\), and \(\displaystyle\int_0^5 \big(2f(x) - 1\big)\,dx = 2(12) - 1\cdot 5 = 19\).

Worked example · Geometry

\(\displaystyle\int_{-3}^{3}\sqrt{9 - x^2}\,dx\) is the area of a semicircle of radius 3: \(\tfrac{9\pi}{2}\). No antiderivative needed: recognizing the shape is the whole solution.

Try it

If \(\displaystyle\int_1^4 f = 6\) and \(\displaystyle\int_1^4 g = -2\), find \(\displaystyle\int_1^4 (3f - 2g)\,dx\) and \(\displaystyle\int_4^1 f\,dx\).

Show answer

\(3(6) - 2(-2) = 22\), and \(-6\).

Lesson 6.6 · Unit 6 · CED topic 6.7

The Fundamental Theorem, Part 2: evaluating definite integrals

Part 1 said accumulation functions have derivative \(f\). Part 2 turns that around into a computing tool: to find the exact area under \(f\), find any function whose derivative is \(f\) and subtract its values at the endpoints.

FTC, Part 2

If \(F' = f\) on \([a, b]\), then \[\int_a^b f(x)\,dx = F(b) - F(a).\] Equivalently (the net change theorem): \(\displaystyle\int_a^b F'(x)\,dx = F(b) - F(a)\); integrating a rate gives the net change.

Worked examples

\(\displaystyle\int_1^4 (3x^2 - 2x)\,dx = \Big[x^3 - x^2\Big]_1^4 = (64 - 16) - (1 - 1) = 48.\)

\(\displaystyle\int_0^{\pi/2}\cos x\,dx = \Big[\sin x\Big]_0^{\pi/2} = 1 - 0 = 1.\)

\(\displaystyle\int_1^e \frac{1}{x}\,dx = \Big[\ln x\Big]_1^e = 1 - 0 = 1.\)

Worked example · Net change

A particle has velocity \(v(t) = 6t - t^2\). Its displacement from \(t = 0\) to \(t = 3\) is \(\displaystyle\int_0^3 (6t - t^2)\,dt = \Big[3t^2 - \tfrac{t^3}{3}\Big]_0^3 = 27 - 9 = 18.\)

Try it

Evaluate \(\displaystyle\int_0^2 \big(e^x + 4x^3\big)\,dx\).

Show answer

\(\Big[e^x + x^4\Big]_0^2 = (e^2 + 16) - (1 + 0) = e^2 + 15 \approx 22.39.\)

Lesson 6.7 · Unit 6 · CED topic 6.8

Finding antiderivatives and indefinite integrals

FTC Part 2 makes antiderivatives the central skill. Every derivative rule from Units 2–3, read backwards, is an integration rule, plus a constant, since any constant differentiates to zero.

Basic antiderivatives

\[\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \ (n \ne -1) \qquad \int \frac{1}{x}\,dx = \ln|x| + C \qquad \int e^x\,dx = e^x + C\] \[\int \sin x\,dx = -\cos x + C \qquad \int \cos x\,dx = \sin x + C \qquad \int \sec^2 x\,dx = \tan x + C\] \[\int \frac{1}{1 + x^2}\,dx = \arctan x + C \qquad \int \frac{1}{\sqrt{1 - x^2}}\,dx = \arcsin x + C\]

Worked examples

\(\displaystyle\int \left(6x^2 - 4x + \frac{1}{x^2}\right)dx = 2x^3 - 2x^2 - \frac{1}{x} + C\): note \(\int x^{-2}\,dx = -x^{-1}\).

\(\displaystyle\int \left(3\cos x - 2e^x + \frac{5}{x}\right)dx = 3\sin x - 2e^x + 5\ln|x| + C.\)

Worked example · Pinning down C

If \(f'(x) = 4x + 3\) and \(f(1) = 2\), then \(f(x) = 2x^2 + 3x + C\) and \(2 + 3 + C = 2\), so \(C = -3\): \(f(x) = 2x^2 + 3x - 3\).

Try it

(a) \(\displaystyle\int \big(\sqrt{x} + 2\sec^2 x\big)\,dx\). (b) \(g'(x) = 6x^2\) with \(g(2) = 10\); find \(g\).

Show answer

(a) \(\tfrac{2}{3}x^{3/2} + 2\tan x + C\). (b) \(g(x) = 2x^3 + C\), \(16 + C = 10\), so \(g(x) = 2x^3 - 6\).

Lesson 6.8 · Unit 6 · CED topic 6.9

Integrating using substitution

Substitution is the chain rule run backwards. If you can spot an inner function whose derivative also appears (up to a constant), rename the inner function \(u\) and the integral collapses to a basic one.

Method

Let \(u\) be the inside function; compute \(du = u'(x)\,dx\); rewrite the integral entirely in \(u\). For a definite integral, convert the limits to \(u\)-values too, and never switch back.

Worked examples

\(\displaystyle\int 2x\,(x^2 + 1)^5\,dx\): let \(u = x^2 + 1\), \(du = 2x\,dx\). Then \(\displaystyle\int u^5\,du = \frac{u^6}{6} + C = \frac{(x^2+1)^6}{6} + C\).

\(\displaystyle\int x\,e^{x^2}\,dx\): \(u = x^2\), \(du = 2x\,dx\), so \(x\,dx = \tfrac{1}{2}du\). Result: \(\tfrac{1}{2}e^{x^2} + C\).

\(\displaystyle\int \tan x\,dx = \int\frac{\sin x}{\cos x}\,dx\): \(u = \cos x\), \(du = -\sin x\,dx\). Result: \(-\ln|\cos x| + C\).

Worked example · Definite, with new limits

\(\displaystyle\int_0^{\pi/6}\cos(3x)\,dx\): \(u = 3x\), \(du = 3\,dx\), and the limits become \(0 \to \tfrac{\pi}{2}\). \[\frac{1}{3}\int_0^{\pi/2}\cos u\,du = \frac{1}{3}\Big[\sin u\Big]_0^{\pi/2} = \frac{1}{3}.\]

Try it

(a) \(\displaystyle\int_1^2 \frac{2x}{x^2 + 3}\,dx\). (b) \(\displaystyle\int \frac{\ln x}{x}\,dx\).

Show answer

(a) \(u = x^2 + 3\), limits \(4 \to 7\): \(\displaystyle\int_4^7\frac{du}{u} = \ln 7 - \ln 4 = \ln\tfrac{7}{4}\). (b) \(u = \ln x\), \(du = \tfrac{1}{x}dx\): \(\tfrac{(\ln x)^2}{2} + C\).

Lesson 6.9 · Unit 6 · CED topics 6.10, 6.14

Long division, completing the square, and selecting a technique

Two algebraic rewrites unlock rational integrands that substitution can't touch. Then, with every AB technique in hand, the remaining skill is choosing the right one quickly.

When to use which
  • Long division when the numerator's degree is at least the denominator's.
  • Completing the square when the denominator is a quadratic that doesn't factor: it produces an \(\arctan\) form.
  • Substitution when the derivative of an inner function is present.
  • Split the fraction when a sum in the numerator has pieces that fall into different cases.
Worked example · Long division

\(\displaystyle\int\frac{x^2 + 3x}{x + 1}\,dx\). Divide: \(x^2 + 3x = (x + 1)(x + 2) - 2\), so the integrand is \(x + 2 - \dfrac{2}{x+1}\). Integral: \(\dfrac{x^2}{2} + 2x - 2\ln|x + 1| + C\).

Worked example · Completing the square

\(\displaystyle\int\frac{dx}{x^2 + 4x + 13} = \int\frac{dx}{(x + 2)^2 + 9} = \frac{1}{3}\arctan\!\left(\frac{x + 2}{3}\right) + C.\)

Worked example · Split it

\(\displaystyle\int\frac{2x + 1}{x^2 + 1}\,dx = \int\frac{2x}{x^2 + 1}\,dx + \int\frac{1}{x^2 + 1}\,dx = \ln(x^2 + 1) + \arctan x + C.\) The first piece is a substitution, the second a basic form: one integrand, two techniques.

Try it

(a) \(\displaystyle\int\frac{x^2 + 1}{x - 1}\,dx\). (b) \(\displaystyle\int\frac{dx}{x^2 - 6x + 10}\).

Show answer

(a) \(x^2 + 1 = (x - 1)(x + 1) + 2\), so \(\dfrac{x^2}{2} + x + 2\ln|x - 1| + C\). (b) \(x^2 - 6x + 10 = (x - 3)^2 + 1\), so \(\arctan(x - 3) + C\).

Unit 6 practice · 10 problems

Unit 6 practice: Integration and Accumulation of Change

Ten problems covering the whole unit. Work each one on paper before revealing the answer. No calculator needed.

  1. Compute the left Riemann sum for \(f(x) = x^2 + 1\) on \([0, 4]\) with four equal subintervals. Is it an over- or underestimate?

    Show answer

    \(L_4 = f(0) + f(1) + f(2) + f(3) = 1 + 2 + 5 + 10 = 18\). \(f\) is increasing, so this underestimates.

  2. Use a trapezoidal sum with the table to estimate \(\displaystyle\int_0^6 v(t)\,dt\): \(t = 0, 1, 3, 6\); \(v(t) = 10, 14, 20, 26\).

    Show answer

    \(\tfrac{10 + 14}{2}(1) + \tfrac{14 + 20}{2}(2) + \tfrac{20 + 26}{2}(3) = 12 + 34 + 69 = 115\).

  3. Evaluate \(\displaystyle\int_1^3 (6x^2 - 2x + 1)\,dx\).

    Show answer

    \(\Big[2x^3 - x^2 + x\Big]_1^3 = (54 - 9 + 3) - (2 - 1 + 1) = 46\).

  4. Evaluate \(\displaystyle\int_0^{\pi/3}\sec^2 x\,dx\).

    Show answer

    \(\Big[\tan x\Big]_0^{\pi/3} = \sqrt{3} - 0 = \sqrt{3}\).

  5. Find \(\dfrac{d}{dx}\displaystyle\int_2^{x^3}\sqrt{1 + t^2}\,dt\).

    Show answer

    By the FTC with the chain rule: \(\sqrt{1 + x^6}\cdot 3x^2\).

  6. Find \(\displaystyle\int x^2(x^3 + 5)^4\,dx\).

    Show answer

    \(u = x^3 + 5\), \(du = 3x^2\,dx\): \(\dfrac{1}{3}\cdot\dfrac{u^5}{5} = \dfrac{(x^3 + 5)^5}{15} + C\).

  7. Evaluate \(\displaystyle\int_0^1 x\,e^{-x^2}\,dx\).

    Show answer

    \(u = -x^2\), \(du = -2x\,dx\). \(\Big[-\tfrac{1}{2}e^{-x^2}\Big]_0^1 = \dfrac{1 - e^{-1}}{2} \approx 0.316\).

  8. Find \(\displaystyle\int\frac{x^2 + 2x + 3}{x + 1}\,dx\).

    Show answer

    Divide: \(x^2 + 2x + 3 = (x + 1)^2 + 2\), so the integrand is \(x + 1 + \dfrac{2}{x + 1}\). Result: \(\dfrac{x^2}{2} + x + 2\ln|x + 1| + C\).

  9. Given \(\displaystyle\int_{-2}^{4} f(x)\,dx = 10\) and \(\displaystyle\int_{1}^{4} f(x)\,dx = 3\), find \(\displaystyle\int_{-2}^{1}\big(2f(x) + 3\big)\,dx\).

    Show answer

    \(\displaystyle\int_{-2}^{1} f = 10 - 3 = 7\). Then \(2(7) + 3(3) = 23\).

  10. \(f(t) = 2\) on \([0, 3]\), then drops linearly from \((3, 2)\) to \((5, -2)\), then stays at \(-2\) on \([5, 7]\). Let \(g(x) = \displaystyle\int_0^x f(t)\,dt\). Find \(g(5)\), and the \(x\) in \([0, 7]\) where \(g\) is greatest.

    Show answer

    \(g(3) = 6\). From 3 to 4, \(f\) goes from 2 to 0 (area \(+1\)); from 4 to 5, from 0 to \(-2\) (area \(-1\)). So \(g(5) = 6\). \(g\) is greatest where \(f\) changes from positive to negative: \(x = 4\), with \(g(4) = 7\).

Lesson 7.1 · Unit 7 · CED topic 7.1

Modeling situations with differential equations

A differential equation is an equation involving a derivative. Most real laws are stated this way, not "here is the population" but "here is how fast the population is changing." The first skill is translating a sentence about rates into symbols.

Translation guide
  • "The rate of change of \(y\) …" → \(\dfrac{dy}{dt}\)
  • "… is proportional to \(y\)" → \(= ky\)
  • "… is proportional to the difference between \(T\) and 70" → \(= k(T - 70)\)
  • "… decreases at a rate proportional to …" → include a minus sign or state \(k < 0\)
Worked examples

Population. "A population grows at a rate proportional to its size": \(\dfrac{dP}{dt} = kP\). If \(P = 1000\) when it's growing at 50 per year, then \(50 = 1000k\), so \(k = 0.05\).

Medication. "A drug leaves the bloodstream at a rate proportional to the amount present": \(\dfrac{dA}{dt} = -kA\) with \(k > 0\).

Cooling. "A cup of coffee cools at a rate proportional to the difference between its temperature and the 70° room": \(\dfrac{dT}{dt} = k(T - 70)\), where \(k\) will turn out negative.

Try it

Write a differential equation for each. (a) A falling object's velocity changes at a rate equal to \(g\) minus a drag proportional to its velocity. (b) \(y\) increases at a rate equal to the square of \(x\).

Show answer

(a) \(\dfrac{dv}{dt} = g - kv\). (b) \(\dfrac{dy}{dx} = x^2\).

Lesson 7.2 · Unit 7 · CED topic 7.2

Verifying solutions to differential equations

A solution to a differential equation is a function that makes the equation true. Checking a proposed solution needs no solving at all: differentiate it, substitute, and see whether both sides agree.

Worked example

Verify that \(y = 3e^{2x}\) solves \(\dfrac{dy}{dx} = 2y\).

Left side: \(y' = 6e^{2x}\). Right side: \(2y = 2 \cdot 3e^{2x} = 6e^{2x}\). Equal. ✓

Worked example · A less obvious one

Verify that \(y = x^2 + \dfrac{1}{x}\) solves \(x\,y' + y = 3x^2\).

\(y' = 2x - \dfrac{1}{x^2}\), so \(x\,y' = 2x^2 - \dfrac{1}{x}\). Adding \(y\): \(2x^2 - \dfrac{1}{x} + x^2 + \dfrac{1}{x} = 3x^2\). ✓

Worked example · Second order

Is \(y = \sin x\) a solution of \(y'' + y = 0\)? \(y'' = -\sin x\), and \(-\sin x + \sin x = 0\). ✓ Is \(y = e^x\)? \(e^x + e^x = 2e^x \ne 0\). ✗

A general solution contains an arbitrary constant (\(y = Ce^{2x}\)); a particular solution has the constant pinned down by an initial condition (\(y = 3e^{2x}\)).

Try it

Verify that \(y = Ce^{-3x} + 2\) solves \(y' = -3(y - 2)\) for every constant \(C\).

Show answer

\(y' = -3Ce^{-3x}\). Right side: \(-3\big(Ce^{-3x} + 2 - 2\big) = -3Ce^{-3x}\). ✓

Lesson 7.3 · Unit 7 · CED topics 7.3–7.4

Sketching and reasoning with slope fields

A differential equation \(\dfrac{dy}{dx} = F(x, y)\) tells you the slope at every point in the plane. Draw a short segment with that slope at a grid of points and you have a slope field: a picture of every solution at once, before you've solved anything.

Worked example · Computing slopes

For \(\dfrac{dy}{dx} = x - y\):

Point(0, 0)(1, 0)(0, 1)(2, 2)(1, 3)
Slope01−10−2

Segments are horizontal wherever \(x - y = 0\), i.e. along the line \(y = x\). Above that line slopes are negative; below, positive.

Matching a field to its equation
  • If \(\dfrac{dy}{dx}\) depends only on \(y\) (like \(y' = y\)), every segment in a horizontal row is the same.
  • If it depends only on \(x\) (like \(y' = x\)), every segment in a vertical column is the same.
  • Find where slopes are zero: that curve is the key to identifying the equation.
  • Segments are vertical where the equation is undefined (like \(y' = \frac{x}{y}\) along \(y = 0\)).

To sketch a particular solution through a given point, start at that point and follow the segments in both directions, staying tangent to the field. The curve never crosses the segments.

Try it

For \(\dfrac{dy}{dx} = 2x + y\), find the slopes at \((0, 1)\), \((1, -2)\), and \((-1, 2)\). Along what line are the segments horizontal?

Show answer

Slopes 1, 0, 0. Horizontal along \(y = -2x\).

Lesson 7.4 · Unit 7 · CED topic 7.6

Finding general solutions using separation of variables

The one solving technique in AB Calculus: if the right side factors into a function of \(x\) times a function of \(y\), move everything involving \(y\) to the left with \(dy\), everything involving \(x\) to the right with \(dx\), and integrate both sides.

Method

\[\frac{dy}{dx} = g(x)\,h(y) \quad\Longrightarrow\quad \int\frac{dy}{h(y)} = \int g(x)\,dx.\] One \(+C\) on one side is enough. Then solve for \(y\) if asked.

Worked examples

\(\dfrac{dy}{dx} = xy\): \(\displaystyle\int\frac{dy}{y} = \int x\,dx \Rightarrow \ln|y| = \frac{x^2}{2} + C\), so \(y = Ae^{x^2/2}\) (writing \(A = \pm e^C\)).

\(\dfrac{dy}{dx} = \dfrac{2x}{y}\): \(\displaystyle\int y\,dy = \int 2x\,dx \Rightarrow \frac{y^2}{2} = x^2 + C\), so \(y^2 = 2x^2 + C'\). It's fine to leave the solution implicit when solving for \(y\) would need a \(\pm\).

\(\dfrac{dy}{dx} = y^2\cos x\): \(\displaystyle\int y^{-2}\,dy = \int\cos x\,dx \Rightarrow -\frac{1}{y} = \sin x + C\), so \(y = -\dfrac{1}{\sin x + C}\).

Try it

Find the general solution of \(\dfrac{dy}{dx} = e^{x - y}\).

Show answer

\(e^{x-y} = e^x e^{-y}\), so \(\displaystyle\int e^y\,dy = \int e^x\,dx \Rightarrow e^y = e^x + C\), giving \(y = \ln(e^x + C)\).

Lesson 7.5 · Unit 7 · CED topic 7.7

Finding particular solutions using initial conditions

An initial condition, one point the solution passes through, selects a single curve from the family of general solutions. Solve in general, substitute the point, and solve for \(C\). Then check the domain: the solution must be a continuous curve through the given point.

Worked example

Solve \(\dfrac{dy}{dx} = \dfrac{3x^2}{y}\) with \(y(0) = 2\).

\(\displaystyle\int y\,dy = \int 3x^2\,dx \Rightarrow \frac{y^2}{2} = x^3 + C\). At \((0, 2)\): \(2 = 0 + C\), so \(y^2 = 2x^3 + 4\). Because \(y(0) = 2\) is positive, take the positive root: \(y = \sqrt{2x^3 + 4}\).

Worked example · Exponential form

\(\dfrac{dy}{dx} = -2xy\), \(y(0) = 5\). Then \(\ln|y| = -x^2 + C\), so \(y = Ae^{-x^2}\). From \(y(0) = 5\), \(A = 5\): \(y = 5e^{-x^2}\).

Worked example · A shifted variable

\(\dfrac{dy}{dx} = 2x(y - 1)\), \(y(0) = 3\). Separate: \(\displaystyle\int\frac{dy}{y - 1} = \int 2x\,dx \Rightarrow \ln|y - 1| = x^2 + C\), so \(y - 1 = Ae^{x^2}\). With \(y(0) = 3\), \(A = 2\): \(y = 1 + 2e^{x^2}\).

Try it

Solve \(\dfrac{dy}{dx} = \dfrac{x}{y^2}\) with \(y(0) = 1\).

Show answer

\(\dfrac{y^3}{3} = \dfrac{x^2}{2} + C\); at \((0, 1)\), \(C = \tfrac{1}{3}\). So \(y^3 = \tfrac{3x^2}{2} + 1\) and \(y = \left(\tfrac{3x^2}{2} + 1\right)^{1/3}\).

Lesson 7.6 · Unit 7 · CED topic 7.8

Exponential models with differential equations

The most important differential equation in the course is \(\dfrac{dy}{dt} = ky\): a quantity changing at a rate proportional to itself. Separation of variables solves it once and for all, and the solution describes populations, radioactive decay, interest, and cooling.

The solution

\[\frac{dy}{dt} = ky \quad\Longrightarrow\quad y = y_0\,e^{kt},\] where \(y_0 = y(0)\). Growth if \(k > 0\), decay if \(k < 0\). Doubling time is \(\dfrac{\ln 2}{k}\); half-life is \(\dfrac{\ln 2}{|k|}\).

Worked example · Growth

A culture starts at 200 bacteria and doubles every 3 hours. How many after 10 hours?

\(y = 200e^{kt}\) with \(400 = 200e^{3k}\), so \(k = \dfrac{\ln 2}{3}\). Then \(y(10) = 200e^{(10/3)\ln 2} = 200 \cdot 2^{10/3} \approx 2016\).

Worked example · Decay

Carbon-14 has a half-life of 5730 years. What fraction of a sample remains after 2000 years?

\(\dfrac{y}{y_0} = e^{kt}\) with \(k = -\dfrac{\ln 2}{5730}\): \(e^{-(\ln 2)(2000/5730)} = 2^{-2000/5730} \approx 0.785\). About 78.5% remains.

Worked example · Cooling

Coffee at 190°F sits in a 70°F room: \(\dfrac{dT}{dt} = k(T - 70)\). Separating gives \(T - 70 = 120e^{kt}\). If \(T(5) = 150\), then \(80 = 120e^{5k}\), so \(k = \tfrac{1}{5}\ln\tfrac{2}{3} \approx -0.0811\). When does it reach 100°F? \(30 = 120e^{kt} \Rightarrow e^{kt} = \tfrac{1}{4}\), so \(t = \dfrac{\ln(1/4)}{k} \approx 17.1\) minutes.

Try it

A population satisfies \(\dfrac{dP}{dt} = 0.04P\) with \(P(0) = 500\). Find \(P(10)\) and the doubling time.

Show answer

\(P(10) = 500e^{0.4} \approx 746\). Doubling time \(= \dfrac{\ln 2}{0.04} \approx 17.3\) years.

Unit 7 practice · 10 problems

Unit 7 practice: Differential Equations

Ten problems covering the whole unit. Work each one on paper before revealing the answer. A calculator is fine for the final arithmetic in problems 8 and 9.

  1. Write a differential equation: the temperature \(T\) of a pie changes at a rate proportional to the difference between \(T\) and the 75° room.

    Show answer

    Translate phrase by phrase: the rate of change of \(T\) is \(\dfrac{dT}{dt}\); proportional to introduces a constant \(k\); the difference between \(T\) and the room is \(T - 75\). So \(\dfrac{dT}{dt} = k(T - 75)\), with \(k\) negative as the pie cools.

  2. Verify that \(y = 2e^{3x} - 1\) is a solution of \(y' = 3y + 3\).

    Show answer

    \(y' = 6e^{3x}\). Right side: \(3(2e^{3x} - 1) + 3 = 6e^{3x}\). Equal. ✓

  3. For \(\dfrac{dy}{dx} = x + y\), find the slopes at \((1, 2)\) and \((-2, 2)\), and the line along which the slope-field segments are horizontal.

    Show answer

    Slopes \(3\) and \(0\). Horizontal along \(y = -x\).

  4. Find the general solution of \(\dfrac{dy}{dx} = \dfrac{4x^3}{y}\).

    Show answer

    \(\displaystyle\int y\,dy = \int 4x^3\,dx \Rightarrow \dfrac{y^2}{2} = x^4 + C\), or \(y^2 = 2x^4 + C\).

  5. Solve \(\dfrac{dy}{dx} = 2y\) with \(y(0) = 3\).

    Show answer

    Separate the variables: \(\dfrac{dy}{y} = 2\,dx\). Integrate both sides: \(\ln|y| = 2x + C\), so \(y = Ae^{2x}\). Apply \(y(0) = 3\): \(A = 3\), giving \(y = 3e^{2x}\).

  6. Solve \(\dfrac{dy}{dx} = \dfrac{x^2}{y^2}\) with \(y(0) = 2\).

    Show answer

    \(\dfrac{y^3}{3} = \dfrac{x^3}{3} + C\); \(C = \tfrac{8}{3}\). So \(y^3 = x^3 + 8\) and \(y = \left(x^3 + 8\right)^{1/3}\).

  7. Solve \(\dfrac{dy}{dx} = (y - 3)\cos x\) with \(y(0) = 5\).

    Show answer

    \(\ln|y - 3| = \sin x + C\); at \((0, 5)\), \(C = \ln 2\). So \(y - 3 = 2e^{\sin x}\), i.e. \(y = 3 + 2e^{\sin x}\).

  8. A radioactive sample decays from 80 g to 20 g in 6 hours. Find \(k\) in \(\dfrac{dy}{dt} = ky\), and the half-life.

    Show answer

    \(20 = 80e^{6k} \Rightarrow e^{6k} = \tfrac{1}{4} \Rightarrow k = -\dfrac{\ln 4}{6} = -\dfrac{\ln 2}{3} \approx -0.231\). Half-life \(= \dfrac{\ln 2}{|k|} = 3\) hours (80 → 40 → 20 in two half-lives).

  9. A population satisfies \(\dfrac{dP}{dt} = 0.02P\) with \(P(0) = 1500\). When does it reach 3000?

    Show answer

    \(P = 1500e^{0.02t} = 3000 \Rightarrow t = \dfrac{\ln 2}{0.02} \approx 34.7\) years.

  10. In a slope field, every segment in a given vertical column is parallel, and the segments along the \(y\)-axis are horizontal. Which equation matches?

    If \(y' = y\), the slope depends on \(y\) alone, so the segments would be parallel along horizontal rows, not vertical columns, and along the \(y\)-axis the slopes would run from negative to positive instead of all being horizontal.

    Parallel segments within each vertical column mean the slope depends on \(x\) only, and horizontal segments where \(x = 0\) mean the slope is zero there. \(y' = x\) satisfies both: it is constant on any vertical line and equals zero exactly on the \(y\)-axis.

    \(y' = xy\) does give zero slope on the \(y\)-axis (where \(x = 0\)), which is why it tempts, but within a vertical column the slope still changes with \(y\), so the segments in a column would not be parallel.

    \(y' = x - y\) depends on both variables, so the segments in a column tilt differently as \(y\) changes, and on the \(y\)-axis the slope is \(-y\), which is horizontal only at the origin.

Lesson 8.1 · Unit 8 · CED topic 8.1

Finding the average value of a function

The average of a list of numbers is their sum divided by how many there are. The average of a function on an interval is the same idea with an integral in place of the sum: total accumulation divided by the length of the interval.

Definition

\[f_{\text{avg}} = \frac{1}{b - a}\int_a^b f(x)\,dx.\] Geometrically, it's the height of the rectangle on \([a, b]\) with the same area as the region under \(f\). A continuous function actually attains its average value somewhere on the interval (the Mean Value Theorem for integrals).

Worked example

Average value of \(f(x) = x^2\) on \([0, 3]\): \(\dfrac{1}{3}\displaystyle\int_0^3 x^2\,dx = \dfrac{1}{3}\cdot 9 = 3\). Where does \(f\) equal 3? At \(x = \sqrt{3}\).

Worked example · In context

A day's temperature is \(T(t) = 60 + 20\sin\!\left(\dfrac{\pi t}{12}\right)\) °F for \(0 \le t \le 12\). The average temperature over those 12 hours: \[\frac{1}{12}\int_0^{12}\left(60 + 20\sin\frac{\pi t}{12}\right)dt = \frac{1}{12}\left(720 + \frac{480}{\pi}\right) = 60 + \frac{40}{\pi} \approx 72.7\text{°F}.\] Don't mistake this for \(\tfrac{T(0) + T(12)}{2} = 60\): averaging the endpoints ignores everything in between.

Try it

Find the average value of \(v(t) = 3t^2 - 2t\) on \([1, 3]\).

Show answer

\(\displaystyle\int_1^3 (3t^2 - 2t)\,dt = \Big[t^3 - t^2\Big]_1^3 = 18 - 0 = 18\), so the average is \(\tfrac{18}{2} = 9\).

Lesson 8.2 · Unit 8 · CED topic 8.2

Connecting position, velocity, and acceleration using integrals

Unit 4 went from position to velocity to acceleration by differentiating. Integrals go the other way, and they make one distinction sharp: displacement versus total distance.

Formulas

\[\text{displacement on } [a, b] = \int_a^b v(t)\,dt \qquad\qquad \text{total distance} = \int_a^b |v(t)|\,dt\] \[x(b) = x(a) + \int_a^b v(t)\,dt \qquad\qquad v(b) = v(a) + \int_a^b a(t)\,dt\] For total distance, find where \(v\) changes sign and integrate each piece separately, taking absolute values.

Worked example

\(v(t) = t^2 - 4t + 3 = (t - 1)(t - 3)\) on \([0, 4]\).

Displacement: \(\Big[\tfrac{t^3}{3} - 2t^2 + 3t\Big]_0^4 = \tfrac{64}{3} - 32 + 12 = \tfrac{4}{3}\).

Total distance: \(v\) changes sign at 1 and 3. The three pieces are \(\displaystyle\int_0^1 v = \tfrac{4}{3}\), \(\displaystyle\int_1^3 v = -\tfrac{4}{3}\), and \(\displaystyle\int_3^4 v = \tfrac{4}{3}\). Distance \(= \tfrac{4}{3} + \tfrac{4}{3} + \tfrac{4}{3} = 4\). The particle went out, came back, and went out again; displacement only sees the net result.

Worked example · From acceleration

\(a(t) = 6t\), \(v(0) = -3\), \(x(0) = 2\). Then \(v(t) = 3t^2 - 3\) and \(x(t) = t^3 - 3t + 2\), so \(x(2) = 8 - 6 + 2 = 4\).

Try it

\(v(t) = 2t - 6\) on \([0, 5]\). Find the displacement and the total distance.

Show answer

Displacement: \(\Big[t^2 - 6t\Big]_0^5 = -5\). \(v = 0\) at \(t = 3\); \(\displaystyle\int_0^3 v = -9\) and \(\displaystyle\int_3^5 v = 4\), so total distance \(= 9 + 4 = 13\).

Lesson 8.3 · Unit 8 · CED topic 8.3

Using accumulation functions and definite integrals in applied contexts

The signature AB free-response problem: something flows in at one rate and out at another, and you're asked how much there is at a given time and when there's the most. The tools are net change and the first derivative test, applied to an integral.

Setup

\[\text{amount at } b = \text{amount at } a + \int_a^b \big(\text{rate in} - \text{rate out}\big)\,dt.\] The amount is increasing when rate in \(>\) rate out, decreasing when rate in \(<\) rate out, and has a max or min where the net rate changes sign.

Worked example

A tank holds 40 gallons at \(t = 0\). Water enters at \(2t + 5\) gal/min and drains at 8 gal/min. (a) How much water is there at \(t = 6\)? (b) When is the amount least?

Net rate: \((2t + 5) - 8 = 2t - 3\). (a) \(40 + \displaystyle\int_0^6 (2t - 3)\,dt = 40 + \Big[t^2 - 3t\Big]_0^6 = 40 + 18 = 58\) gallons. (b) The net rate is negative before \(t = 1.5\) and positive after, so the amount is minimized at \(t = 1.5\): \(40 + \Big[t^2 - 3t\Big]_0^{1.5} = 40 - 2.25 = 37.75\) gallons.

Worked example · From given integrals

500 people are in a stadium at \(t = 0\). If \(\displaystyle\int_0^3 E(t)\,dt = 1200\) people enter and \(\displaystyle\int_0^3 L(t)\,dt = 350\) leave during the first 3 hours, then \(500 + 1200 - 350 = 1350\) people are present at \(t = 3\).

Try it

Sand arrives at \(6 - t\) tons/hour for \(0 \le t \le 8\) and is hauled away at 2 tons/hour. The pile starts at 10 tons. When is the pile largest, and how big is it then? How much is left at \(t = 8\)?

Show answer

Net rate \(4 - t\), zero at \(t = 4\) (positive before, negative after ⇒ maximum). \(10 + \displaystyle\int_0^4 (4 - t)\,dt = 10 + 8 = 18\) tons. At \(t = 8\): \(10 + \Big[4t - \tfrac{t^2}{2}\Big]_0^8 = 10 + 0 = 10\) tons.

Lesson 8.4 · Unit 8 · CED topic 8.4

Finding the area between curves expressed as functions of x

The area under one curve is an integral. The area between two curves is the integral of the gap between them: top minus bottom, over the \(x\)-interval where the region lives. Finding that interval usually means finding where the curves intersect.

Formula

\[A = \int_a^b \big(f_{\text{top}}(x) - f_{\text{bottom}}(x)\big)\,dx\]

Worked example

Find the area between \(y = x + 2\) and \(y = x^2\).

Intersections: \(x^2 = x + 2 \Rightarrow x^2 - x - 2 = 0 \Rightarrow x = -1, 2\). On \((-1, 2)\) the line is on top (check \(x = 0\): 2 vs 0). \[A = \int_{-1}^{2}\big(x + 2 - x^2\big)\,dx = \Big[\frac{x^2}{2} + 2x - \frac{x^3}{3}\Big]_{-1}^{2} = \frac{10}{3} - \left(-\frac{7}{6}\right) = \frac{9}{2}.\]

Worked example · Trig

Area between \(y = \cos x\) and \(y = \sin x\) on \([0, \tfrac{\pi}{4}]\), where \(\cos x \ge \sin x\): \(\displaystyle\int_0^{\pi/4}(\cos x - \sin x)\,dx = \Big[\sin x + \cos x\Big]_0^{\pi/4} = \sqrt{2} - 1.\)

Try it

Find the area between \(y = 4 - x^2\) and \(y = x + 2\).

Show answer

Intersections at \(x = -2\) and \(x = 1\); the parabola is on top. \(\displaystyle\int_{-2}^{1}\big(2 - x - x^2\big)\,dx = \Big[2x - \tfrac{x^2}{2} - \tfrac{x^3}{3}\Big]_{-2}^{1} = \tfrac{7}{6} + \tfrac{10}{3} = \tfrac{9}{2}.\)

Lesson 8.5 · Unit 8 · CED topics 8.5–8.6

Areas with functions of y, and regions with multiple intersections

Sometimes a region is awkward to slice vertically: a curve doubles back, or the "top" changes partway through. Slice horizontally instead, integrating right minus left with respect to \(y\). And when curves cross more than twice, split the integral wherever top and bottom trade places.

Horizontal strips

\[A = \int_c^d \big(x_{\text{right}}(y) - x_{\text{left}}(y)\big)\,dy\]

Worked example · Functions of y

Find the area between \(x = y^2\) and \(x = y + 2\).

Intersections: \(y^2 = y + 2 \Rightarrow y = -1, 2\). The line is to the right of the parabola between them. \[A = \int_{-1}^{2}\big(y + 2 - y^2\big)\,dy = \frac{9}{2}.\] (Same integral as Lesson 8.4 with the roles of \(x\) and \(y\) swapped: the region is the same shape, reflected.)

Worked example · Three intersections

Find the area between \(y = x^3\) and \(y = x\).

They cross at \(x = -1, 0, 1\). On \((-1, 0)\), \(x^3\) is on top (at \(x = -\tfrac{1}{2}\): \(-\tfrac{1}{8} > -\tfrac{1}{2}\)); on \((0, 1)\), \(x\) is on top. Split: \[A = \int_{-1}^{0}\big(x^3 - x\big)\,dx + \int_{0}^{1}\big(x - x^3\big)\,dx = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}.\] A single integral from \(-1\) to \(1\) would give 0: the two pieces cancel. On the calculator sections, \(\displaystyle\int_{-1}^{1}\big|x^3 - x\big|\,dx\) does the splitting for you.

Try it

Find the area of the region bounded by \(x = 4 - y^2\) and the \(y\)-axis.

Show answer

The parabola meets \(x = 0\) at \(y = \pm 2\). \(\displaystyle\int_{-2}^{2}(4 - y^2)\,dy = \Big[4y - \tfrac{y^3}{3}\Big]_{-2}^{2} = \tfrac{32}{3}\).

Lesson 8.6 · Unit 8 · CED topics 8.7–8.8

Volumes with cross sections

Slice a solid into thin slabs perpendicular to an axis. Each slab has volume (cross-sectional area) × (thickness). Add them up with an integral and you have the volume, no revolving required.

Formula and common cross sections

\[V = \int_a^b A(x)\,dx,\] where \(A(x)\) is the area of the cross section at \(x\). If the base of the solid is the region between two curves, the side \(s\) of each cross section is the gap between them. Squares: \(A = s^2\). Semicircles (diameter \(s\)): \(A = \tfrac{\pi}{8}s^2\). Equilateral triangles: \(A = \tfrac{\sqrt{3}}{4}s^2\). Rectangles of height \(h\): \(A = s\,h\).

Worked example · Squares

The base is the region under \(y = \sqrt{x}\) on \([0, 4]\); cross sections perpendicular to the \(x\)-axis are squares. Side \(= \sqrt{x}\), so \(A(x) = x\) and \(V = \displaystyle\int_0^4 x\,dx = 8\).

Worked example · Semicircles

Same base, semicircular cross sections: diameter \(\sqrt{x}\), so \(A(x) = \tfrac{\pi}{8}x\) and \(V = \tfrac{\pi}{8}\displaystyle\int_0^4 x\,dx = \pi\).

Worked example · Rectangles

The base is bounded by \(y = 4 - x^2\) and \(y = 0\); cross sections are rectangles whose height is 3 times their base. \(A(x) = 3(4 - x^2)^2\), and by symmetry \[V = 2\cdot 3\int_0^2\big(16 - 8x^2 + x^4\big)\,dx = 6\Big[16x - \tfrac{8x^3}{3} + \tfrac{x^5}{5}\Big]_0^2 = 6\cdot\frac{256}{15} = \frac{512}{5} = 102.4.\]

Try it

The base is the region between \(y = x^2\) and \(y = 4\). Cross sections perpendicular to the \(y\)-axis are squares. Find the volume.

Show answer

At height \(y\) the region runs from \(x = -\sqrt{y}\) to \(\sqrt{y}\), so the side is \(2\sqrt{y}\) and \(A(y) = 4y\). \(V = \displaystyle\int_0^4 4y\,dy = 32\).

Lesson 8.7 · Unit 8 · CED topics 8.9–8.10

Volumes of revolution: the disc method

Revolve a region around a line and every cross section perpendicular to that line is a circle. The cross-section formula becomes \(A = \pi R^2\), where \(R\) is the distance from the axis of rotation to the curve, so the only new work is writing that radius correctly.

Disc method

About the \(x\)-axis: \(V = \pi\displaystyle\int_a^b \big[R(x)\big]^2\,dx\). About the \(y\)-axis: \(V = \pi\displaystyle\int_c^d \big[R(y)\big]^2\,dy\). About another horizontal line \(y = k\): \(R(x) = |f(x) - k|\).

Worked example · About the x-axis

\(y = \sqrt{x}\) on \([0, 4]\), revolved about the \(x\)-axis: \(V = \pi\displaystyle\int_0^4 (\sqrt{x})^2\,dx = \pi\int_0^4 x\,dx = 8\pi\).

Worked example · About the y-axis

The region between \(y = x^2\) and the \(y\)-axis for \(0 \le y \le 4\), revolved about the \(y\)-axis. Solve for \(x = \sqrt{y}\): \(V = \pi\displaystyle\int_0^4 (\sqrt{y})^2\,dy = \pi\int_0^4 y\,dy = 8\pi\).

Worked example · About another line

\(y = \sqrt{x}\) on \([0, 4]\), revolved about \(y = -1\). Radius \(= \sqrt{x} + 1\): \[V = \pi\int_0^4 \big(\sqrt{x} + 1\big)^2\,dx = \pi\int_0^4\big(x + 2\sqrt{x} + 1\big)\,dx = \pi\Big[\frac{x^2}{2} + \frac{4}{3}x^{3/2} + x\Big]_0^4 = \frac{68\pi}{3}.\]

Try it

Revolve \(y = 2x\) on \([0, 3]\) about the \(x\)-axis. Find the volume, then check it against the cone formula \(V = \tfrac{1}{3}\pi r^2 h\).

Show answer

\(\pi\displaystyle\int_0^3 4x^2\,dx = 36\pi\). Cone with \(r = 6\), \(h = 3\): \(\tfrac{1}{3}\pi(36)(3) = 36\pi\). ✓

Lesson 8.8 · Unit 8 · CED topics 8.11–8.12

Volumes of revolution: the washer method

If the region doesn't touch the axis of rotation, revolving it leaves a hole. Each cross section is a washer, a disc with a smaller disc removed, and its area is \(\pi R^2 - \pi r^2\).

Washer method

\[V = \pi\int_a^b \Big(\big[R(x)\big]^2 - \big[r(x)\big]^2\Big)\,dx,\] with \(R\) the outer radius (farther curve from the axis) and \(r\) the inner radius. Square each radius separately: \((R - r)^2\) is the most common wrong answer in this unit.

Worked example · About the x-axis

The region between \(y = x\) and \(y = x^2\) (they meet at 0 and 1), revolved about the \(x\)-axis. Outer radius \(x\), inner \(x^2\): \[V = \pi\int_0^1\big(x^2 - x^4\big)\,dx = \pi\left(\frac{1}{3} - \frac{1}{5}\right) = \frac{2\pi}{15}.\]

Worked example · About the y-axis

Same region about the \(y\)-axis. Now slice in \(y\): the outer curve is \(x = \sqrt{y}\), the inner is \(x = y\). \[V = \pi\int_0^1\big(y - y^2\big)\,dy = \pi\left(\frac{1}{2} - \frac{1}{3}\right) = \frac{\pi}{6}.\]

Worked example · About another line

The region between \(y = x^2\) and \(y = 4\), revolved about \(y = 5\). Outer radius \(= 5 - x^2\) (the parabola is farther from \(y = 5\)), inner radius \(= 5 - 4 = 1\): \[V = \pi\int_{-2}^{2}\Big[(5 - x^2)^2 - 1^2\Big]\,dx = 2\pi\int_0^2\big(24 - 10x^2 + x^4\big)\,dx = 2\pi\cdot\frac{416}{15} = \frac{832\pi}{15}.\]

Try it

Revolve the region between \(y = x\) and \(y = x^2\) about the line \(y = 1\). Which curve gives the outer radius?

Show answer

\(y = x^2\) is farther from \(y = 1\) on \((0, 1)\), so \(R = 1 - x^2\) and \(r = 1 - x\). \(V = \pi\displaystyle\int_0^1\Big[(1 - x^2)^2 - (1 - x)^2\Big]\,dx = \pi\int_0^1\big(x^4 - 3x^2 + 2x\big)\,dx = \pi\left(\tfrac{1}{5} - 1 + 1\right) = \tfrac{\pi}{5}.\)

Unit 8 practice · 10 problems

Unit 8 practice: Applications of Integration

Ten problems covering the whole unit. Work each one on paper before revealing the answer. No calculator needed.

  1. Find the average value of \(f(x) = 6x^2\) on \([0, 2]\).

    Show answer

    \(\dfrac{1}{2}\displaystyle\int_0^2 6x^2\,dx = \dfrac{1}{2}\Big[2x^3\Big]_0^2 = 8\).

  2. \(v(t) = 3t^2 - 12\) on \([0, 3]\). Find the displacement and the total distance traveled.

    Show answer

    Displacement: \(\Big[t^3 - 12t\Big]_0^3 = -9\). \(v = 0\) at \(t = 2\): \(\displaystyle\int_0^2 v = -16\), \(\displaystyle\int_2^3 v = 7\). Total distance \(= 16 + 7 = 23\).

  3. \(a(t) = 2t - 4\) and \(v(0) = 3\). Find \(v(t)\) and the displacement on \([0, 3]\).

    Show answer

    \(v(t) = t^2 - 4t + 3\). Displacement \(= \Big[\tfrac{t^3}{3} - 2t^2 + 3t\Big]_0^3 = 9 - 18 + 9 = 0\).

  4. Water enters a tank at \(12 - t\) gal/min and leaves at 4 gal/min for \(0 \le t \le 12\); the tank holds 50 gal at \(t = 0\). When is the amount of water greatest, and how much is there then?

    Show answer

    Net rate \(8 - t\), positive then negative, zero at \(t = 8\). Amount \(= 50 + \displaystyle\int_0^8 (8 - t)\,dt = 50 + 32 = 82\) gallons at \(t = 8\).

  5. Find the area between \(y = x^2 - 4\) and \(y = 2x - 1\).

    Show answer

    Intersections at \(x = -1, 3\); the line is on top. \(\displaystyle\int_{-1}^{3}\big(-x^2 + 2x + 3\big)\,dx = \Big[-\tfrac{x^3}{3} + x^2 + 3x\Big]_{-1}^{3} = 9 + \tfrac{5}{3} = \tfrac{32}{3}\).

  6. Set up and evaluate an integral with respect to \(y\) for the area bounded by \(y = \sqrt{x}\), \(y = 0\), and \(x = 4\).

    Show answer

    Horizontal strips run from \(x = y^2\) to \(x = 4\) for \(0 \le y \le 2\): \(\displaystyle\int_0^2 (4 - y^2)\,dy = 8 - \tfrac{8}{3} = \tfrac{16}{3}\). (Check: \(\displaystyle\int_0^4\sqrt{x}\,dx = \tfrac{16}{3}\).)

  7. The region bounded by \(y = x^2\), \(y = 0\), and \(x = 2\) is revolved about the \(x\)-axis. Find the volume.

    Show answer

    \(\pi\displaystyle\int_0^2 (x^2)^2\,dx = \pi\Big[\tfrac{x^5}{5}\Big]_0^2 = \dfrac{32\pi}{5}\).

  8. The region between \(y = \sqrt{x}\) and \(y = \dfrac{x}{2}\) is revolved about the \(x\)-axis. Find the volume.

    Show answer

    They meet at \(x = 0\) and \(4\), with \(\sqrt{x}\) on top. \(\pi\displaystyle\int_0^4\left(x - \tfrac{x^2}{4}\right)dx = \pi\Big[\tfrac{x^2}{2} - \tfrac{x^3}{12}\Big]_0^4 = \pi\left(8 - \tfrac{16}{3}\right) = \dfrac{8\pi}{3}\).

  9. The base of a solid is the region between \(y = x\) and \(y = x^2\). Cross sections perpendicular to the \(x\)-axis are equilateral triangles. Find the volume.

    Show answer

    Side \(s = x - x^2\), \(A = \tfrac{\sqrt{3}}{4}s^2\). \(V = \tfrac{\sqrt{3}}{4}\displaystyle\int_0^1 (x - x^2)^2\,dx = \tfrac{\sqrt{3}}{4}\left(\tfrac{1}{3} - \tfrac{1}{2} + \tfrac{1}{5}\right) = \tfrac{\sqrt{3}}{4}\cdot\tfrac{1}{30} = \dfrac{\sqrt{3}}{120}\).

  10. The region between \(y = x^2\) and \(y = 1\) is revolved about the line \(y = 2\). Find the volume.

    Show answer

    Outer radius \(2 - x^2\), inner radius \(1\). \(V = \pi\displaystyle\int_{-1}^{1}\Big[(2 - x^2)^2 - 1\Big]dx = 2\pi\displaystyle\int_0^1\big(3 - 4x^2 + x^4\big)\,dx = 2\pi\cdot\tfrac{28}{15} = \dfrac{56\pi}{15}\).

Unit recap

Unit recap

0:00 / 0:00

Animated recap with on-screen narration. Turn on Voice to have it read aloud (uses your device's built-in voice). Pressing play counts as your one free video.

Free preview complete

That's the end of the free preview.

You've opened five lessons (or watched a unit video), which is as much as we can show without a subscription. Everything you've already opened stays available; use the outline on the left to go back to it.

Book a tutor instead