AP Calculus BC · Mathematics

AP Calculus BC

Everything in Calculus AB plus the BC extensions (integration by parts and partial fractions, Euler's method and logistic growth, parametric, polar, and vector-valued functions, and infinite series) taught unit by unit to the College Board framework. The BC exam also reports an AB subscore. 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 82 LESSONS 100 PRACTICE PROBLEMS PREREQ: CALCULUS AB

Course overview

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

AP Calculus BC follows the ten units of the College Board course framework. Units 1–8 share their content with Calculus AB (with BC-only topics added in Units 6 and 7); Units 9 and 10 are BC-only. Notice the weights: Units 6 and 10 alone are more than a third of the exam, and the AB material is weighted far lighter than it is on the AB exam.

  • U1Limits and Continuity4–7%
  • U2Differentiation: Definition and Fundamental Properties4–7%
  • U3Differentiation: Composite, Implicit, and Inverse Functions4–7%
  • U4Contextual Applications of Differentiation6–9%
  • U5Analytical Applications of Differentiation8–11%
  • U6Integration and Accumulation of Change17–20%
  • U7Differential Equations6–9%
  • U8Applications of Integration6–9%
  • U9Parametric Equations, Polar Coordinates, and Vector-Valued Functions11–12%
  • U10Infinite Sequences and Series17–18%

All ten units are open, 82 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\).

Lesson 6.10 · Unit 6 · CED topic 6.11 · BC only

Integration by parts

Substitution undoes the chain rule. Integration by parts undoes the product rule: it trades an integral you can't do for one you can, by differentiating one factor and integrating the other. It handles products like \(x e^x\) and \(x\cos x\), and anything containing \(\ln x\).

Formula

\[\int u\,dv = uv - \int v\,du.\] Choose \(u\) to be the factor that gets simpler when differentiated and \(dv\) to be a factor you can integrate. LIATE (Logarithmic, Inverse trig, Algebraic, Trig, Exponential) ranks candidates for \(u\): take the earliest type present. For a definite integral, \(\displaystyle\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du\).

Worked example · The basic pattern

\(\displaystyle\int x e^x\,dx\). Algebraic outranks exponential, so \(u = x\), \(dv = e^x\,dx\); then \(du = dx\) and \(v = e^x\). \[\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + C.\] Differentiate to check: \(e^x + x e^x - e^x = x e^x\). ✓

\(\displaystyle\int x\cos x\,dx\): \(u = x\), \(dv = \cos x\,dx\), \(v = \sin x\). Result: \(x\sin x - \displaystyle\int \sin x\,dx = x\sin x + \cos x + C\).

Worked example · Only one visible factor

\(\displaystyle\int \ln x\,dx\). Take \(u = \ln x\) and \(dv = dx\), so \(du = \dfrac{1}{x}\,dx\) and \(v = x\): \[\int \ln x\,dx = x\ln x - \int x\cdot\frac{1}{x}\,dx = x\ln x - x + C.\]

Worked example · Parts twice, then a definite integral

\(\displaystyle\int x^2 e^x\,dx\): \(u = x^2\), \(dv = e^x\,dx\) gives \(x^2 e^x - \displaystyle\int 2x e^x\,dx\). The new integral is the first example again, so the total is \(x^2 e^x - 2(x e^x - e^x) + C = (x^2 - 2x + 2)e^x + C\). Each round of parts lowers the power of \(x\) by one.

\(\displaystyle\int_0^1 x e^{2x}\,dx\): \(u = x\), \(dv = e^{2x}\,dx\), \(v = \tfrac{1}{2}e^{2x}\). \[\Big[\tfrac{1}{2}x e^{2x}\Big]_0^1 - \int_0^1 \tfrac{1}{2}e^{2x}\,dx = \frac{e^2}{2} - \Big[\tfrac{1}{4}e^{2x}\Big]_0^1 = \frac{e^2}{2} - \frac{e^2}{4} + \frac{1}{4} = \frac{e^2 + 1}{4} \approx 2.097.\]

Exam tip: check for a substitution first. \(\int x e^{x^2}\,dx\) is a \(u\)-sub, not parts.

Try it

(a) \(\displaystyle\int x\sec^2 x\,dx\). (b) \(\displaystyle\int_0^{\pi} x\sin x\,dx\).

Show answer

(a) \(u = x\), \(dv = \sec^2 x\,dx\), \(v = \tan x\): \(x\tan x - \displaystyle\int\tan x\,dx = x\tan x + \ln|\cos x| + C\). (b) \(u = x\), \(dv = \sin x\,dx\), \(v = -\cos x\): \(\Big[-x\cos x\Big]_0^{\pi} + \displaystyle\int_0^{\pi}\cos x\,dx = (\pi - 0) + \Big[\sin x\Big]_0^{\pi} = \pi\).

Lesson 6.11 · Unit 6 · CED topic 6.12 · BC only

Integrating with linear partial fractions

A fraction whose denominator factors into distinct linear pieces can be split into simpler fractions, each of which integrates to a logarithm. On the BC exam the denominator is always a product of linear, non-repeating factors, so the setup is always the same shape.

Method

If the numerator's degree is less than the denominator's, write \[\frac{p(x)}{(x - a)(x - b)} = \frac{A}{x - a} + \frac{B}{x - b},\] multiply through by the denominator, and find \(A\) and \(B\) by substituting \(x = a\) and \(x = b\) (or by matching coefficients). Then \(\displaystyle\int\frac{A}{x - a}\,dx = A\ln|x - a| + C\). If the numerator's degree is not smaller, do long division first (Lesson 6.9).

Worked example · The standard decomposition

\(\displaystyle\int\frac{3x + 1}{(x - 1)(x + 2)}\,dx\). Set \(\dfrac{3x + 1}{(x - 1)(x + 2)} = \dfrac{A}{x - 1} + \dfrac{B}{x + 2}\), so \(3x + 1 = A(x + 2) + B(x - 1)\). At \(x = 1\): \(4 = 3A\), so \(A = \tfrac{4}{3}\). At \(x = -2\): \(-5 = -3B\), so \(B = \tfrac{5}{3}\). \[\int\frac{3x + 1}{(x - 1)(x + 2)}\,dx = \frac{4}{3}\ln|x - 1| + \frac{5}{3}\ln|x + 2| + C.\]

Worked example · Definite, with a difference of squares

\(\displaystyle\int_3^5\frac{dx}{x^2 - 4}\). Factor: \(\dfrac{1}{(x - 2)(x + 2)} = \dfrac{1/4}{x - 2} - \dfrac{1/4}{x + 2}\). \[\frac{1}{4}\Big[\ln|x - 2| - \ln|x + 2|\Big]_3^5 = \frac{1}{4}\Big[(\ln 3 - \ln 7) - (\ln 1 - \ln 5)\Big] = \frac{1}{4}\ln\frac{15}{7} \approx 0.191.\]

Worked example · Divide first

\(\displaystyle\int\frac{x^2 + x + 1}{x^2 - x}\,dx\). Degrees are equal, so divide: \(x^2 + x + 1 = (x^2 - x) + (2x + 1)\), giving \(1 + \dfrac{2x + 1}{x(x - 1)}\). Decompose: \(\dfrac{2x + 1}{x(x - 1)} = \dfrac{A}{x} + \dfrac{B}{x - 1}\) with \(A = \dfrac{1}{-1} = -1\) (at \(x = 0\)) and \(B = \dfrac{3}{1} = 3\) (at \(x = 1\)). \[\int\left(1 - \frac{1}{x} + \frac{3}{x - 1}\right)dx = x - \ln|x| + 3\ln|x - 1| + C.\]

Exam tip: look before you decompose. \(\displaystyle\int\frac{2x}{x^2 - 4}\,dx\) is a plain \(u\)-substitution, and a denominator that doesn't factor calls for completing the square.

Try it

Evaluate \(\displaystyle\int_4^6\frac{x + 7}{x^2 - x - 6}\,dx\).

Show answer

\(x^2 - x - 6 = (x - 3)(x + 2)\). With \(\dfrac{x + 7}{(x - 3)(x + 2)} = \dfrac{A}{x - 3} + \dfrac{B}{x + 2}\): at \(x = 3\), \(10 = 5A\), so \(A = 2\); at \(x = -2\), \(5 = -5B\), so \(B = -1\). \(\Big[2\ln|x - 3| - \ln|x + 2|\Big]_4^6 = (2\ln 3 - \ln 8) - (0 - \ln 6) = \ln\dfrac{9\cdot 6}{8} = \ln\dfrac{27}{4} \approx 1.910\).

Lesson 6.12 · Unit 6 · CED topic 6.13 · BC only

Evaluating improper integrals

An integral is improper when an endpoint is infinite or the integrand blows up somewhere on the interval. The FTC needs a finite interval and a continuous integrand, so you never apply it directly. Instead, you integrate to a variable endpoint and take a limit, and the limit is what you write on the exam.

Definition

\[\int_a^{\infty} f(x)\,dx = \lim_{b\to\infty}\int_a^b f(x)\,dx, \qquad \int_a^b f(x)\,dx = \lim_{t\to a^+}\int_t^b f(x)\,dx \ \text{ if } f \text{ is unbounded near } a.\] If the limit is a finite number the integral converges to that value; otherwise it diverges. An integrand that blows up inside the interval must be split there, and both pieces must converge.

Worked example · The two integrals to memorize

\[\int_1^{\infty}\frac{dx}{x^2} = \lim_{b\to\infty}\Big[-\frac{1}{x}\Big]_1^b = \lim_{b\to\infty}\left(1 - \frac{1}{b}\right) = 1. \quad\text{Converges.}\] \[\int_1^{\infty}\frac{dx}{x} = \lim_{b\to\infty}\Big[\ln x\Big]_1^b = \lim_{b\to\infty}\ln b = \infty. \quad\text{Diverges.}\] Both integrands go to 0, so "the function dies out" is not enough; \(1/x^2\) dies out fast enough and \(1/x\) doesn't.

The p-test for integrals

\(\displaystyle\int_1^{\infty}\frac{dx}{x^p}\) converges to \(\dfrac{1}{p - 1}\) when \(p \gt 1\) and diverges when \(p \le 1\). (For example, \(p = 3\) gives \(\tfrac{1}{2}\); \(p = \tfrac{3}{2}\) gives 2.) This becomes the p-series test in Unit 10.

Worked example · Vertical asymptote at an endpoint

\(\displaystyle\int_0^1\frac{dx}{\sqrt{x}}\) is improper at \(x = 0\). \[\lim_{t\to 0^+}\int_t^1 x^{-1/2}\,dx = \lim_{t\to 0^+}\Big[2\sqrt{x}\Big]_t^1 = \lim_{t\to 0^+}\big(2 - 2\sqrt{t}\big) = 2.\] An infinitely tall region can still have finite area.

Worked example · Parts plus L'Hospital

\(\displaystyle\int_1^{\infty}\frac{\ln x}{x^2}\,dx\). By parts with \(u = \ln x\), \(dv = x^{-2}\,dx\): \(\displaystyle\int_1^b \frac{\ln x}{x^2}\,dx = \Big[-\frac{\ln x}{x}\Big]_1^b + \int_1^b\frac{dx}{x^2} = -\frac{\ln b}{b} + 1 - \frac{1}{b}\). As \(b\to\infty\), \(\dfrac{\ln b}{b}\to 0\) (L'Hospital: \(\tfrac{\infty}{\infty}\) form, \(\tfrac{1/b}{1}\to 0\)), so the integral converges to 1.

Caution: \(\displaystyle\int_{-1}^{1}\frac{dx}{x^2}\) is improper at \(x = 0\), inside the interval. Blindly applying the FTC gives \(\big[-1/x\big]_{-1}^{1} = -2\), a negative "area" for a positive function. Split at 0; each half diverges, so the integral diverges.

Try it

Determine whether each converges, and find the value if it does. (a) \(\displaystyle\int_0^{\infty} e^{-2x}\,dx\). (b) \(\displaystyle\int_1^{\infty}\frac{dx}{\sqrt{x}}\).

Show answer

(a) \(\displaystyle\lim_{b\to\infty}\Big[-\tfrac{1}{2}e^{-2x}\Big]_0^b = \lim_{b\to\infty}\left(\tfrac{1}{2} - \tfrac{1}{2}e^{-2b}\right) = \tfrac{1}{2}\). Converges to \(\tfrac{1}{2}\). (b) \(p = \tfrac{1}{2} \le 1\): \(\displaystyle\lim_{b\to\infty}\Big[2\sqrt{x}\Big]_1^b = \lim_{b\to\infty}(2\sqrt{b} - 2) = \infty\). Diverges.

Unit 6 practice · 10 problems

Unit 6 practice: Integration and Accumulation of Change

Ten problems covering the whole unit, in roughly exam order: the AB core first, then the BC techniques (parts, partial fractions, improper integrals) in problems 7–10. Work each one on paper before revealing the answer: the reveal shows the key steps, not just the number. No calculator needed.

  1. Water flows into a tank at a rate of \(R(t)\) liters per minute. Using the table, estimate the total amount of water that enters during \(0 \le t \le 5\) with a trapezoidal sum on the three subintervals given: \(t = 0, 2, 3, 5\); \(R(t) = 4, 10, 12, 20\).

    Show answer

    \(\tfrac{4 + 10}{2}(2) + \tfrac{10 + 12}{2}(1) + \tfrac{12 + 20}{2}(2) = 14 + 11 + 32 = 57\) liters. (The widths are 2, 1, 2: read them from the table, don't assume they are equal.)

  2. Express \(\displaystyle\lim_{n\to\infty}\sum_{k=1}^{n}\frac{3}{n}\sqrt{1 + \frac{3k}{n}}\) as a definite integral, then evaluate it.

    Show answer

    \(\Delta x = \tfrac{3}{n}\) means an interval of length 3, and \(x_k = 0 + \tfrac{3k}{n}\) means it starts at 0: \(\displaystyle\int_0^3\sqrt{1 + x}\,dx = \Big[\tfrac{2}{3}(1 + x)^{3/2}\Big]_0^3 = \tfrac{2}{3}(8 - 1) = \dfrac{14}{3}\).

  3. Find \(\dfrac{d}{dx}\displaystyle\int_x^{3} e^{t^2}\,dt\).

    Show answer

    Flip the limits first: \(\displaystyle\int_x^3 e^{t^2}\,dt = -\int_3^x e^{t^2}\,dt\). By FTC Part 1 the derivative is \(-e^{x^2}\).

  4. Evaluate \(\displaystyle\int_0^2\frac{x}{x^2 + 1}\,dx\).

    Show answer

    \(u = x^2 + 1\), \(du = 2x\,dx\), limits \(1 \to 5\): \(\tfrac{1}{2}\displaystyle\int_1^5\frac{du}{u} = \tfrac{1}{2}\Big[\ln u\Big]_1^5 = \dfrac{\ln 5}{2} \approx 0.805\).

  5. The graph of \(f\) is a horizontal segment at height 3 on \([0, 2]\), followed by a line segment from \((2, 3)\) to \((6, -3)\). Let \(g(x) = \displaystyle\int_0^x f(t)\,dt\). Find \(g(6)\) and \(g'(4)\), and find the value of \(x\) in \([0, 6]\) at which \(g\) attains its maximum. Justify.

    Show answer

    \(g(2) = 6\) (rectangle). The segment crosses zero at \(t = 4\): the triangle on \([2, 4]\) has area \(\tfrac{1}{2}(2)(3) = 3\) and the one on \([4, 6]\) contributes \(-3\), so \(g(6) = 6 + 3 - 3 = 6\). \(g'(4) = f(4) = 0\). Since \(g' = f\) is positive on \((0, 4)\) and negative on \((4, 6)\), \(g\) increases then decreases, so its maximum is at \(x = 4\), where \(g(4) = 9\).

  6. Find \(\displaystyle\int\frac{dx}{x^2 + 6x + 13}\).

    Show answer

    The denominator doesn't factor; complete the square: \(x^2 + 6x + 13 = (x + 3)^2 + 4\). With \(u = x + 3\): \(\displaystyle\int\frac{du}{u^2 + 2^2} = \frac{1}{2}\arctan\frac{x + 3}{2} + C\).

  7. Find \(\displaystyle\int x\cos 2x\,dx\).

    Show answer

    Parts with \(u = x\), \(dv = \cos 2x\,dx\), so \(du = dx\) and \(v = \tfrac{1}{2}\sin 2x\): \(\dfrac{x}{2}\sin 2x - \displaystyle\int\tfrac{1}{2}\sin 2x\,dx = \dfrac{x}{2}\sin 2x + \dfrac{1}{4}\cos 2x + C\). Check by differentiating: \(\tfrac{1}{2}\sin 2x + x\cos 2x - \tfrac{1}{2}\sin 2x = x\cos 2x\).

  8. Evaluate \(\displaystyle\int_3^5\frac{5x - 1}{(x - 2)(x + 1)}\,dx\). Give an exact answer and a decimal approximation.

    Show answer

    \(\dfrac{5x - 1}{(x - 2)(x + 1)} = \dfrac{A}{x - 2} + \dfrac{B}{x + 1}\), so \(5x - 1 = A(x + 1) + B(x - 2)\). At \(x = 2\): \(9 = 3A\), \(A = 3\). At \(x = -1\): \(-6 = -3B\), \(B = 2\). Then \(\Big[3\ln|x - 2| + 2\ln|x + 1|\Big]_3^5 = (3\ln 3 + 2\ln 6) - (0 + 2\ln 4) = 3\ln 3 + 2\ln\tfrac{3}{2} = \ln\dfrac{243}{4} \approx 4.107\).

  9. Which of the following improper integrals converges?

    This is \(\displaystyle\int_1^{\infty}x^{-1/2}\,dx\) with \(p = \tfrac{1}{2}\); the p-test for an infinite upper limit needs \(p \gt 1\), and indeed \(\big[2\sqrt{x}\big]_1^b = 2\sqrt{b} - 2 \to \infty\). Picking this usually means remembering the p-test in the wrong direction.

    \(p = 1\) is the borderline case, and it diverges: the antiderivative is \(\ln x\), and \(\ln b \to \infty\) as \(b \to \infty\), just very slowly. The \(1/x\) integrand is the classic looks-like-it-should-converge trap.

    By the p-test with \(p = \tfrac{3}{2} \gt 1\) the integral converges, and its value is \(\displaystyle\lim_{b\to\infty}\Big[-2x^{-1/2}\Big]_1^b = \lim_{b\to\infty}\left(2 - \tfrac{2}{\sqrt{b}}\right) = 2\).

    The bounds are finite, but the integrand blows up at \(x = 0\), so this is improper too, and near a vertical asymptote the p-test reverses: \(\displaystyle\int_0^1 x^{-p}\,dx\) converges only for \(p \lt 1\). With \(p = 2\), \(\displaystyle\lim_{t\to 0^+}\Big[-\tfrac{1}{x}\Big]_t^1 = \lim_{t\to 0^+}\left(\tfrac{1}{t} - 1\right) = \infty\).

  10. Determine whether \(\displaystyle\int_0^{\infty} x e^{-x}\,dx\) converges, and find its value if it does.

    Show answer

    Parts with \(u = x\), \(dv = e^{-x}\,dx\), \(v = -e^{-x}\): \(\displaystyle\int_0^b x e^{-x}\,dx = \Big[-x e^{-x}\Big]_0^b + \int_0^b e^{-x}\,dx = -\dfrac{b}{e^b} + 1 - e^{-b}\). As \(b \to \infty\), \(\dfrac{b}{e^b}\) is an \(\tfrac{\infty}{\infty}\) form; by L'Hospital it behaves like \(\dfrac{1}{e^b} \to 0\), and \(e^{-b} \to 0\). The integral converges to \(1\).

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.

Lesson 7.7 · Unit 7 · CED topic 7.5 · BC only

Approximating solutions using Euler's method

Most differential equations can't be solved by separation. Euler's method sidesteps solving altogether: starting at the initial point, follow the tangent line for a short step, recompute the slope from the differential equation at the new point, and repeat. It is the slope field turned into arithmetic.

Method

For \(\dfrac{dy}{dx} = f(x, y)\) with step size \(h\): \[x_{n+1} = x_n + h, \qquad y_{n+1} = y_n + h\cdot f(x_n, y_n).\] Each step is a tangent-line approximation (Lesson 4.5) using the slope at the current point. Smaller \(h\) means more steps and a better estimate.

Worked example · A three-step table

Let \(\dfrac{dy}{dx} = x + y\) with \(y(0) = 1\). Use Euler's method with \(h = 0.5\) to approximate \(y(1.5)\).

xₙyₙslope = xₙ + yₙh × slopeyₙ₊₁
0110.51.5
0.51.5212.5
12.53.51.754.25

So \(y(1.5) \approx 4.25\). The exact solution is \(y = 2e^x - x - 1\), which gives \(y(1.5) \approx 6.463\); the estimate is well under, and the next example explains why.

Worked example · Over or under?

Differentiate the equation: \(\dfrac{d^2y}{dx^2} = 1 + \dfrac{dy}{dx} = 1 + x + y\), which is positive near the solution through \((0, 1)\). The solution curve is concave up, so every tangent line lies below the curve and Euler's method underestimates. Concave down means the tangent lines sit above the curve and the method overestimates. Write the justification in exactly this form: sign of \(y''\), then concavity, then over/under.

Worked example · Seeing the error shrink

\(\dfrac{dy}{dx} = 2x\), \(y(1) = 1\) (exact solution \(y = x^2\)). With \(h = 0.1\): \(y(1.1) \approx 1 + 0.1(2) = 1.2\), then \(y(1.2) \approx 1.2 + 0.1(2.2) = 1.42\), versus the true \(1.44\). Two small steps land much closer than one step of \(h = 0.2\) would (\(1 + 0.2(2) = 1.4\)).

Exam tip: show the table. Graders award points for the correct slope at each step and the correct update, even when a later arithmetic slip spoils the final number.

Try it

\(\dfrac{dy}{dx} = 3 - y\) with \(y(0) = 0\). Use two steps of \(h = 0.5\) to approximate \(y(1)\), and decide whether the estimate is an over- or underestimate.

Show answer

Step 1: slope \(3 - 0 = 3\), \(y(0.5) \approx 0 + 0.5(3) = 1.5\). Step 2: slope \(3 - 1.5 = 1.5\), \(y(1) \approx 1.5 + 0.5(1.5) = 2.25\). Since \(y'' = -y' = -(3 - y) \lt 0\) while \(y \lt 3\), the solution is concave down and the estimate is an overestimate. (Exact: \(y = 3 - 3e^{-x}\), \(y(1) \approx 1.896\).)

Lesson 7.8 · Unit 7 · CED topic 7.9 · BC only

Logistic models with differential equations

Exponential growth never stops, but real populations run into limits: food, space, competition. The logistic model keeps the "proportional to \(P\)" growth for small populations and throttles it as \(P\) approaches a ceiling. Nearly every exam question about it can be answered from the equation alone, without solving it.

The logistic equation

\[\frac{dP}{dt} = kP\left(1 - \frac{P}{L}\right), \qquad k \gt 0,\] where \(L\) is the carrying capacity. Read off:

  • \(\dfrac{dP}{dt} = 0\) when \(P = 0\) or \(P = L\); these are the equilibrium solutions.
  • If \(0 \lt P \lt L\), then \(\dfrac{dP}{dt} \gt 0\) and \(P\) increases toward \(L\); if \(P \gt L\), \(P\) decreases toward \(L\). Either way \(\displaystyle\lim_{t\to\infty}P = L\) for any \(P(0) \gt 0\).
  • \(\dfrac{dP}{dt}\) is a downward parabola in \(P\) with zeros at 0 and \(L\), so the population grows fastest at \(P = \tfrac{L}{2}\). That is where the solution curve has its inflection point.
Worked example · Reading the equation

A deer population satisfies \(\dfrac{dP}{dt} = 0.05P\left(1 - \dfrac{P}{800}\right)\) with \(P(0) = 100\).

Carrying capacity \(L = 800\), so \(\displaystyle\lim_{t\to\infty}P(t) = 800\). Growth is fastest when \(P = 400\), where \(\dfrac{dP}{dt} = 0.05(400)(0.5) = 10\) deer per year. Starting at 100 (below \(L/2\)), the graph is concave up until \(P = 400\), then concave down as it levels off at 800: the classic S-curve.

Worked example · Expanded form

\(\dfrac{dP}{dt} = 3P - 0.015P^2\). Factor: \(3P(1 - 0.005P) = 3P\left(1 - \dfrac{P}{200}\right)\), so \(k = 3\) and \(L = 200\). Fastest growth at \(P = 100\). If \(P(0) = 150\), the population is already past \(L/2\): it increases toward 200 and is concave down throughout. If \(P(0) = 300\), it decreases toward 200 and is concave up.

Separating variables (with partial fractions, Lesson 6.11) gives the explicit solution \(P = \dfrac{L}{1 + Ae^{-kt}}\), but the exam almost never asks for it. It asks for \(L\), the limit, the fastest-growth population, and concavity.

Try it

\(\dfrac{dP}{dt} = 0.001P(500 - P)\) with \(P(0) = 50\). Find the carrying capacity, \(\displaystyle\lim_{t\to\infty}P(t)\), and the population at which \(P\) is growing fastest, with that maximum rate.

Show answer

Rewrite: \(0.001P(500 - P) = 0.5P\left(1 - \dfrac{P}{500}\right)\), so \(L = 500\) and the limit is 500. Fastest growth at \(P = 250\), where \(\dfrac{dP}{dt} = 0.001(250)(250) = 62.5\) per unit time.

Unit 7 practice · 10 problems

Unit 7 practice: Differential Equations

Ten problems covering the whole unit: the AB core in problems 1–6, then Euler's method and logistic models in 7–10. Work each one on paper before revealing the answer. A calculator is fine for the final arithmetic in problems 6 and 8.

  1. A rumor spreads through a school of 1200 students at a rate proportional to the number of students who have not yet heard it. Write a differential equation for \(N(t)\), the number of students who have heard the rumor after \(t\) days.

    Show answer

    \(\dfrac{dN}{dt} = k(1200 - N)\) with \(k \gt 0\). (Since \(1200 - N \gt 0\), the rate is positive and \(N\) increases toward 1200.)

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

    Show answer

    Product rule: \(y' = e^x + x e^x\). Right side: \(y + e^x = x e^x + e^x\). Equal. ✓

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

    Show answer

    At \((2, -1)\): \(2 - (-1) = 3\). At \((1, 3)\): \(1 - 3 = -2\). Horizontal where \(x - y = 0\), i.e. along the line \(y = x\).

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

    Show answer

    Separate: \(\displaystyle\int y^{-2}\,dy = \int x\,dx\), so \(-\dfrac{1}{y} = \dfrac{x^2}{2} + C\). Solving, \(y = -\dfrac{1}{x^2/2 + C} = -\dfrac{2}{x^2 + K}\) where \(K = 2C\) is an arbitrary constant. (\(y = 0\) is also a solution.)

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

    Show answer

    \(\displaystyle\int y^{-2}\,dy = \int\sin x\,dx \Rightarrow -\dfrac{1}{y} = -\cos x + C\). At \((0, 1)\): \(-1 = -1 + C\), so \(C = 0\). Then \(\dfrac{1}{y} = \cos x\), so \(y = \sec x\) (valid on \(-\tfrac{\pi}{2} \lt x \lt \tfrac{\pi}{2}\)).

  6. Coffee at 90°C is left in a 20°C room, and its temperature satisfies \(\dfrac{dT}{dt} = k(T - 20)\). After 10 minutes it is 60°C. Find \(k\), and find when the coffee reaches 40°C.

    Show answer

    Separating gives \(T - 20 = 70e^{kt}\). At \(t = 10\): \(40 = 70e^{10k}\), so \(k = \tfrac{1}{10}\ln\tfrac{4}{7} \approx -0.0560\) per minute. For \(T = 40\): \(20 = 70e^{kt} \Rightarrow t = \dfrac{\ln(2/7)}{k} = \dfrac{10\ln(2/7)}{\ln(4/7)} \approx 22.4\) minutes.

  7. Let \(\dfrac{dy}{dx} = 2x + y\) with \(y(0) = 1\). Use Euler's method with three steps of size \(h = 0.2\) to approximate \(y(0.6)\). Then decide whether the approximation is an overestimate or an underestimate, and justify.

    Show answer
    xₙyₙslope = 2xₙ + yₙh × slopeyₙ₊₁
    0110.21.2
    0.21.21.60.321.52
    0.41.522.320.4641.984

    So \(y(0.6) \approx 1.984\). Differentiating the equation, \(y'' = 2 + y' = 2 + 2x + y \gt 0\) near the solution (\(x, y \gt 0\)), so the solution is concave up, the tangent lines lie below the curve, and Euler's method underestimates. (Exact solution \(y = 3e^x - 2x - 2\), so \(y(0.6) \approx 2.266\).)

  8. Let \(\dfrac{dy}{dx} = 1 + y^2\) with \(y(0) = 0\). (a) Use Euler's method with two steps of \(h = 0.25\) to approximate \(y(0.5)\). (b) Solve the equation exactly and compare.

    Show answer

    (a) Step 1: slope \(1 + 0 = 1\), \(y(0.25) \approx 0 + 0.25(1) = 0.25\). Step 2: slope \(1 + 0.25^2 = 1.0625\), \(y(0.5) \approx 0.25 + 0.25(1.0625) = 0.5156\). (b) \(\displaystyle\int\frac{dy}{1 + y^2} = \int dx \Rightarrow \arctan y = x + C\); \(y(0) = 0\) gives \(C = 0\), so \(y = \tan x\) and \(y(0.5) = \tan 0.5 \approx 0.5463\). Euler's estimate is low, as expected: \(y'' = 2y\,y' \gt 0\) for \(y \gt 0\), so the curve is concave up.

  9. A fish population satisfies \(\dfrac{dP}{dt} = 0.4P\left(1 - \dfrac{P}{1200}\right)\) with \(P(0) = 200\), where \(t\) is in years. Find \(\displaystyle\lim_{t\to\infty}P(t)\), the population at which \(P\) is growing fastest and the growth rate then, and describe the concavity of the graph of \(P\) for \(t \gt 0\).

    Show answer

    Carrying capacity \(L = 1200\), so \(\displaystyle\lim_{t\to\infty}P(t) = 1200\). Growth is fastest at \(P = \tfrac{L}{2} = 600\), where \(\dfrac{dP}{dt} = 0.4(600)\left(\tfrac{1}{2}\right) = 120\) fish per year. Since \(P(0) = 200 \lt 600\), the graph is concave up until \(P = 600\) (the inflection point) and concave down afterward as it levels off at 1200.

  10. A population is modeled by \(\dfrac{dP}{dt} = 3P - 0.006P^2\). What is the carrying capacity?

    3 is the growth constant \(k\), the per-capita growth rate when \(P\) is tiny, not the carrying capacity. In the logistic form \(kP\left(1 - \tfrac{P}{L}\right)\), \(k\) is the coefficient of \(P\), while \(L\) is the population at which the rate returns to zero.

    Factor: \(3P - 0.006P^2 = 3P(1 - 0.002P) = 3P\left(1 - \dfrac{P}{500}\right)\), so \(k = 3\) and \(L = 500\). Equivalently, set \(dP/dt = 0\) and take the nonzero root, \(P = 3/0.006 = 500\).

    250 is \(L/2\), the population at which \(dP/dt\) is largest (the inflection point of the logistic curve). It is a favorite exam distractor because it is the other special value of \(P\) that appears in logistic questions.

    0.006 is just the coefficient of \(P^2\); the carrying capacity is the ratio \(3/0.006\), not the coefficient itself. This choice comes from not rewriting the equation in the standard \(kP(1 - P/L)\) form.

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}\).

Lesson 9.1 · Unit 9 · CED topic 9.1

Defining and differentiating parametric equations

A parametric curve gives \(x\) and \(y\) separately as functions of a third variable \(t\), usually time. The curve can loop, cross itself, and fail the vertical line test: none of which a function \(y = f(x)\) can do. The slope of the curve still makes sense, and the chain rule delivers it.

Formula

For \(x = x(t)\), \(y = y(t)\), \[\frac{dy}{dx} = \frac{dy/dt}{dx/dt} \quad\text{provided } \frac{dx}{dt} \ne 0.\] The tangent is horizontal where \(\dfrac{dy}{dt} = 0\) and \(\dfrac{dx}{dt} \ne 0\); vertical where \(\dfrac{dx}{dt} = 0\) and \(\dfrac{dy}{dt} \ne 0\). If both are zero, look at the limit of \(dy/dx\).

Worked example · Tangent line and special tangents

\(x = t^2 - 1\), \(y = t^3 - 3t\). Find the tangent line at \(t = 2\), then all points with horizontal or vertical tangents.

\(\dfrac{dx}{dt} = 2t\), \(\dfrac{dy}{dt} = 3t^2 - 3\), so \(\dfrac{dy}{dx} = \dfrac{3t^2 - 3}{2t}\). At \(t = 2\): slope \(\dfrac{12 - 3}{4} = \dfrac{9}{4}\) at the point \((3, 2)\), so \(y - 2 = \tfrac{9}{4}(x - 3)\).

Horizontal: \(3t^2 - 3 = 0\) gives \(t = \pm 1\) (and \(dx/dt = \pm 2 \ne 0\)), the points \((0, -2)\) and \((0, 2)\). Vertical: \(2t = 0\) gives \(t = 0\) (and \(dy/dt = -3 \ne 0\)), the point \((-1, 0)\).

Worked example · A trig parametrization

\(x = 2\cos t\), \(y = 3\sin t\) traces the ellipse \(\dfrac{x^2}{4} + \dfrac{y^2}{9} = 1\). \(\dfrac{dy}{dx} = \dfrac{3\cos t}{-2\sin t}\). At \(t = \tfrac{\pi}{4}\) the slope is \(-\tfrac{3}{2}\) at the point \(\left(\sqrt{2}, \tfrac{3\sqrt{2}}{2}\right)\).

Exam tip: the slope is a function of \(t\). Write \(\dfrac{dy}{dx}\) in terms of \(t\), substitute the \(t\)-value, and report the point in \((x, y)\) form. Never try to differentiate \(y\) "with respect to \(x\)" directly.

Try it

\(x = t^2 + 1\), \(y = 4t - t^2\). Find \(\dfrac{dy}{dx}\) at \(t = 1\), and find the points where the tangent is horizontal or vertical.

Show answer

\(\dfrac{dy}{dx} = \dfrac{4 - 2t}{2t}\); at \(t = 1\) the slope is 1 (point \((2, 3)\)). Horizontal at \(t = 2\): point \((5, 4)\). Vertical at \(t = 0\): point \((1, 0)\).

Lesson 9.2 · Unit 9 · CED topic 9.2

Second derivatives of parametric equations

Concavity of a parametric curve needs \(\dfrac{d^2y}{dx^2}\), and the most common BC error is to divide the second \(t\)-derivatives: \(\dfrac{y''(t)}{x''(t)}\) is wrong. The second derivative is the derivative of the slope with respect to \(x\), so apply the same chain-rule quotient again, this time to \(\dfrac{dy}{dx}\).

Formula

\[\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = \frac{\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right)}{\dfrac{dx}{dt}}.\] Positive means concave up, negative means concave down, exactly as in Unit 5.

Worked example · A clean case

\(x = t^2\), \(y = t^3\). First, \(\dfrac{dy}{dx} = \dfrac{3t^2}{2t} = \dfrac{3t}{2}\). Then \(\dfrac{d}{dt}\left(\dfrac{3t}{2}\right) = \dfrac{3}{2}\), and \[\frac{d^2y}{dx^2} = \frac{3/2}{2t} = \frac{3}{4t}.\] The curve is concave up for \(t \gt 0\) and concave down for \(t \lt 0\). (It is the curve \(y = \pm x^{3/2}\): the upper branch bends up, the lower bends down.)

Worked example · Quotient rule required

\(x = t^2 + t\), \(y = t^3 - 4t\). Find \(\dfrac{d^2y}{dx^2}\) at \(t = 1\) and state the concavity there.

\(\dfrac{dy}{dx} = \dfrac{3t^2 - 4}{2t + 1}\). Differentiate with respect to \(t\): \[\frac{d}{dt}\left(\frac{3t^2 - 4}{2t + 1}\right) = \frac{6t(2t + 1) - 2(3t^2 - 4)}{(2t + 1)^2} = \frac{6t^2 + 6t + 8}{(2t + 1)^2}.\] Divide by \(\dfrac{dx}{dt} = 2t + 1\): \(\dfrac{d^2y}{dx^2} = \dfrac{6t^2 + 6t + 8}{(2t + 1)^3}\). At \(t = 1\): \(\dfrac{20}{27} \gt 0\), so the curve is concave up there (where its slope is \(\dfrac{dy}{dx} = -\tfrac{1}{3}\)).

Exam tip: on a calculator-free question you'll usually be asked for the value at one \(t\). Compute \(\dfrac{dy}{dx}\) as a function of \(t\), take \(\dfrac{d}{dt}\) of it, then divide by \(\dfrac{dx}{dt}\): three labeled lines earn the points.

Try it

\(x = t^3\), \(y = t^2\). Find \(\dfrac{d^2y}{dx^2}\) in terms of \(t\) and describe the concavity for \(t \ne 0\).

Show answer

\(\dfrac{dy}{dx} = \dfrac{2t}{3t^2} = \dfrac{2}{3t}\); \(\dfrac{d}{dt}\left(\dfrac{2}{3t}\right) = -\dfrac{2}{3t^2}\); \(\dfrac{d^2y}{dx^2} = \dfrac{-2/(3t^2)}{3t^2} = -\dfrac{2}{9t^4}\), which is negative for every \(t \ne 0\): concave down everywhere.

Lesson 9.3 · Unit 9 · CED topic 9.3

Arc lengths of curves given by parametric equations

Zoom in on a tiny piece of a parametric curve and it's a straight segment with legs \(dx\) and \(dy\); by the Pythagorean theorem its length is \(\sqrt{dx^2 + dy^2}\). Add those pieces up with an integral and you have arc length.

Formula

For \(a \le t \le b\), traced once, \[L = \int_a^b \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}\,dt.\] With \(x = t\), \(y = f(t)\) this becomes the arc length of \(y = f(x)\): \(\displaystyle\int_a^b\sqrt{1 + \big(f'(x)\big)^2}\,dx\).

Worked example · By hand

Find the length of \(x = t^2\), \(y = t^3\) for \(0 \le t \le 1\).

\(\dfrac{dx}{dt} = 2t\), \(\dfrac{dy}{dt} = 3t^2\), so \(L = \displaystyle\int_0^1\sqrt{4t^2 + 9t^4}\,dt = \int_0^1 t\sqrt{4 + 9t^2}\,dt\) (since \(t \ge 0\)). Let \(u = 4 + 9t^2\), \(du = 18t\,dt\), limits \(4 \to 13\): \[L = \frac{1}{18}\int_4^{13} u^{1/2}\,du = \frac{1}{18}\cdot\frac{2}{3}\Big[u^{3/2}\Big]_4^{13} = \frac{13\sqrt{13} - 8}{27} \approx 1.440.\]

Worked example · With a calculator

A particle moves along \(x = t^2\), \(y = \sin 2t\) for \(0 \le t \le 3\). How far does it travel?

\(\dfrac{dx}{dt} = 2t\), \(\dfrac{dy}{dt} = 2\cos 2t\), so \(L = \displaystyle\int_0^3\sqrt{4t^2 + 4\cos^2 2t}\,dt \approx 10.262\). Write the integral with its limits before you compute: the setup is worth most of the points, and it is what a grader checks first.

Arc length equals distance traveled only if the curve isn't retraced on \([a, b]\). If the particle backs up along the same path, the integral still counts every bit of motion, which is what "distance traveled" means anyway (Lesson 9.4).

Try it

Find the exact length of \(x = \tfrac{1}{3}t^3\), \(y = \tfrac{1}{2}t^2\) for \(0 \le t \le 2\).

Show answer

\(\sqrt{(t^2)^2 + t^2} = t\sqrt{t^2 + 1}\). With \(u = t^2 + 1\), limits \(1 \to 5\): \(\displaystyle\frac{1}{2}\int_1^5 u^{1/2}\,du = \frac{1}{3}\Big[u^{3/2}\Big]_1^5 = \frac{5\sqrt{5} - 1}{3} \approx 3.393\).

Lesson 9.4 · Unit 9 · CED topics 9.4–9.6

Vector-valued functions: velocity, speed, and position

Package the parametric equations as one position vector and Unit 4's straight-line motion becomes motion in the plane. Everything differentiates and integrates component by component; the one new idea is that speed is the length of the velocity vector.

Definitions
  • Position \(\vec r(t) = \langle x(t), y(t)\rangle\); velocity \(\vec v(t) = \langle x'(t), y'(t)\rangle\); acceleration \(\vec a(t) = \langle x''(t), y''(t)\rangle\).
  • Speed \(= |\vec v(t)| = \sqrt{\big(x'(t)\big)^2 + \big(y'(t)\big)^2}\), a scalar, never a vector.
  • Position from velocity: \(x(b) = x(a) + \displaystyle\int_a^b x'(t)\,dt\), and likewise for \(y\).
  • Total distance traveled on \([a, b]\) \(= \displaystyle\int_a^b |\vec v(t)|\,dt\): the arc length integral of Lesson 9.3.
Worked example · Velocity, speed, acceleration

\(\vec r(t) = \langle t^2 - 4t,\ t^3 - 3t\rangle\). Then \(\vec v(t) = \langle 2t - 4,\ 3t^2 - 3\rangle\) and \(\vec a(t) = \langle 2,\ 6t\rangle\). At \(t = 3\): \(\vec v(3) = \langle 2, 24\rangle\), speed \(\sqrt{4 + 576} = \sqrt{580} \approx 24.08\), and \(\vec a(3) = \langle 2, 18\rangle\). The particle is never at rest, because \(2t - 4 = 0\) only at \(t = 2\) while \(3t^2 - 3 = 0\) only at \(t = \pm 1\): both components must vanish at the same instant.

Worked example · Recovering position

\(\vec v(t) = \langle 2t,\ 3t^2\rangle\) and the particle is at \((1, -2)\) when \(t = 0\). Position at \(t = 2\): \(x(2) = 1 + \displaystyle\int_0^2 2t\,dt = 1 + 4 = 5\) and \(y(2) = -2 + \displaystyle\int_0^2 3t^2\,dt = -2 + 8 = 6\), so \((5, 6)\). Distance traveled: \(\displaystyle\int_0^2\sqrt{4t^2 + 9t^4}\,dt = \frac{80\sqrt{10} - 8}{27} \approx 9.073\) (the same \(u\)-substitution as Lesson 9.3).

Worked example · Calculator FRQ

\(x'(t) = \cos(t^2)\), \(y'(t) = 2e^{-t}\), and the particle is at \((3, -1)\) at \(t = 0\). Speed at \(t = 1\): \(\sqrt{\cos^2 1 + 4e^{-2}} \approx 0.913\). Position at \(t = 2\): \(\left(3 + \displaystyle\int_0^2\cos(t^2)\,dt,\ -1 + \int_0^2 2e^{-t}\,dt\right) \approx (3.461,\ 0.729)\). Distance traveled on \([0, 2]\): \(\displaystyle\int_0^2\sqrt{\cos^2(t^2) + 4e^{-2t}}\,dt \approx 2.370\).

Try it

\(\vec v(t) = \langle 2t,\ t^2 - 1\rangle\) and \(\vec r(0) = \langle 0, 1\rangle\). Find the speed at \(t = 3\), the position at \(t = 3\), and the total distance traveled for \(0 \le t \le 3\).

Show answer

Speed \(= \sqrt{4t^2 + (t^2 - 1)^2} = \sqrt{t^4 + 2t^2 + 1} = t^2 + 1\), so the speed at \(t = 3\) is 10. Position: \(x(3) = 0 + \displaystyle\int_0^3 2t\,dt = 9\), \(y(3) = 1 + \displaystyle\int_0^3 (t^2 - 1)\,dt = 1 + 9 - 3 = 7\): the point \((9, 7)\). Distance: \(\displaystyle\int_0^3 (t^2 + 1)\,dt = 9 + 3 = 12\).

Lesson 9.5 · Unit 9 · CED topic 9.7

Defining polar coordinates and differentiating in polar form

Polar coordinates locate a point by its distance \(r\) from the origin and the angle \(\theta\) from the positive \(x\)-axis. Circles, spirals, and flower shapes that are awkward in \(x\) and \(y\) become one-line equations \(r = f(\theta)\). A polar curve is really a parametric curve with parameter \(\theta\), so the slope formula you already know applies.

Conversions and slope

\[x = r\cos\theta, \qquad y = r\sin\theta, \qquad r^2 = x^2 + y^2, \qquad \tan\theta = \frac{y}{x}.\] For \(r = f(\theta)\), treat \(x = f(\theta)\cos\theta\) and \(y = f(\theta)\sin\theta\) as parametric: \[\frac{dy}{dx} = \frac{dy/d\theta}{dx/d\theta} = \frac{\dfrac{dr}{d\theta}\sin\theta + r\cos\theta}{\dfrac{dr}{d\theta}\cos\theta - r\sin\theta}.\] Separately, \(\dfrac{dr}{d\theta}\) tells you how the distance from the origin changes: positive means the curve is moving away from the pole as \(\theta\) increases.

Worked example · Converting

The polar point \((r, \theta) = \left(4, \tfrac{2\pi}{3}\right)\) is \(\left(4\cos\tfrac{2\pi}{3}, 4\sin\tfrac{2\pi}{3}\right) = (-2, 2\sqrt{3})\). The curve \(r = 4\cos\theta\): multiply by \(r\) to get \(r^2 = 4r\cos\theta\), so \(x^2 + y^2 = 4x\), or \((x - 2)^2 + y^2 = 4\), a circle of radius 2 centered at \((2, 0)\).

Worked example · Slope of a polar curve

Find the tangent line to \(r = 1 + 2\cos\theta\) at \(\theta = \tfrac{\pi}{2}\).

There \(r = 1\) and \(\dfrac{dr}{d\theta} = -2\sin\theta = -2\). So \(\dfrac{dy}{d\theta} = (-2)(1) + (1)(0) = -2\) and \(\dfrac{dx}{d\theta} = (-2)(0) - (1)(1) = -1\), giving \(\dfrac{dy}{dx} = 2\). The point is \((x, y) = (0, 1)\), so the tangent is \(y = 2x + 1\).

Worked example · Reading dr/dθ

For the cardioid \(r = 3 - 3\sin\theta\), \(\dfrac{dr}{d\theta} = -3\cos\theta\), which is negative on \(0 \lt \theta \lt \tfrac{\pi}{2}\): the curve is getting closer to the origin, reaching it at \(\theta = \tfrac{\pi}{2}\). Also, \(\dfrac{dy}{d\theta} = -3\cos\theta\sin\theta + (3 - 3\sin\theta)\cos\theta = 3\cos\theta(1 - 2\sin\theta)\) vanishes at \(\theta = \tfrac{\pi}{6}\), so the tangent is horizontal there, at \(\left(\tfrac{3\sqrt{3}}{4}, \tfrac{3}{4}\right)\).

Try it

For \(r = 2\sin\theta\), find \(\dfrac{dy}{dx}\) at \(\theta = \tfrac{\pi}{6}\), the \((x, y)\) point there, and whether the curve is moving toward or away from the origin.

Show answer

\(r = 1\), \(\dfrac{dr}{d\theta} = 2\cos\theta = \sqrt{3}\). \(\dfrac{dy}{d\theta} = \sqrt{3}\cdot\tfrac{1}{2} + 1\cdot\tfrac{\sqrt{3}}{2} = \sqrt{3}\); \(\dfrac{dx}{d\theta} = \sqrt{3}\cdot\tfrac{\sqrt{3}}{2} - 1\cdot\tfrac{1}{2} = 1\). So \(\dfrac{dy}{dx} = \sqrt{3}\) at \(\left(\tfrac{\sqrt{3}}{2}, \tfrac{1}{2}\right)\). Since \(\dfrac{dr}{d\theta} \gt 0\), the curve is moving away from the origin.

Lesson 9.6 · Unit 9 · CED topic 9.8

Finding the area of a polar region

Rectangles are the wrong shape for polar regions. The natural slice is a thin wedge from the origin, which is a sector of a circle with area \(\tfrac{1}{2}r^2\,d\theta\). Summing wedges gives the polar area formula, and the \(\tfrac{1}{2}\) is the part students drop.

Formula

The region swept out by \(r = f(\theta)\) for \(\alpha \le \theta \le \beta\) has area \[A = \frac{1}{2}\int_{\alpha}^{\beta} r^2\,d\theta.\] The limits must trace the region exactly once. Find them by asking where \(r = 0\) (the curve passes through the pole) and how far \(\theta\) runs before the curve repeats.

Worked example · The interval matters

\(r = 4\sin\theta\) is a circle of radius 2 (area \(4\pi\)). It is traced completely as \(\theta\) runs from 0 to \(\pi\): \[A = \frac{1}{2}\int_0^{\pi} 16\sin^2\theta\,d\theta = 8\int_0^{\pi}\frac{1 - \cos 2\theta}{2}\,d\theta = 4\Big[\theta - \tfrac{1}{2}\sin 2\theta\Big]_0^{\pi} = 4\pi.\] Integrating from 0 to \(2\pi\) instead gives \(8\pi\), double the true area: on \([\pi, 2\pi]\), \(r\) is negative and the same circle is drawn again.

Worked example · One petal of a rose

Find the area of one petal of \(r = 2\cos 3\theta\).

A petal begins and ends at the pole. \(r = 0\) when \(3\theta = \pm\tfrac{\pi}{2}\), so the petal centered on the \(x\)-axis runs from \(\theta = -\tfrac{\pi}{6}\) to \(\tfrac{\pi}{6}\). \[A = \frac{1}{2}\int_{-\pi/6}^{\pi/6} 4\cos^2 3\theta\,d\theta = \int_{-\pi/6}^{\pi/6}\big(1 + \cos 6\theta\big)\,d\theta = \Big[\theta + \tfrac{1}{6}\sin 6\theta\Big]_{-\pi/6}^{\pi/6} = \frac{\pi}{3}.\] The rose has three petals, so its total area is \(\pi\). Integrating \(0\) to \(2\pi\) would give \(2\pi\): the three petals are each traced twice.

Exam tip: you will need \(\cos^2\theta = \dfrac{1 + \cos 2\theta}{2}\) and \(\sin^2\theta = \dfrac{1 - \cos 2\theta}{2}\) on the no-calculator section. On the calculator section, set up the integral with correct limits and evaluate numerically.

Try it

Find the area enclosed by the cardioid \(r = 1 + \cos\theta\).

Show answer

The full curve is traced once on \([0, 2\pi]\). \(A = \tfrac{1}{2}\displaystyle\int_0^{2\pi}\big(1 + 2\cos\theta + \cos^2\theta\big)\,d\theta = \tfrac{1}{2}\left(2\pi + 0 + \pi\right) = \tfrac{3\pi}{2}\), using \(\displaystyle\int_0^{2\pi}\cos^2\theta\,d\theta = \pi\).

Lesson 9.7 · Unit 9 · CED topic 9.9

Finding the area of a region bounded by two polar curves

The region between two polar curves is a ring-shaped wedge: outer radius \(R\), inner radius \(r\). Subtract the inner sector from the outer one before integrating, and do it on exactly the \(\theta\)-interval where the region lives. Finding that interval, the intersection angles, is most of the work.

Formula

If \(R(\theta) \ge r(\theta)\) on \([\alpha, \beta]\), the area inside \(R\) and outside \(r\) is \[A = \frac{1}{2}\int_{\alpha}^{\beta}\Big(R^2 - r^2\Big)\,d\theta.\] Find \(\alpha\) and \(\beta\) by solving \(R(\theta) = r(\theta)\). Note it is \(R^2 - r^2\), not \((R - r)^2\).

Worked example · Inside one, outside the other

Find the area inside \(r = 3\sin\theta\) and outside \(r = 1 + \sin\theta\).

Intersections: \(3\sin\theta = 1 + \sin\theta\) gives \(\sin\theta = \tfrac{1}{2}\), so \(\theta = \tfrac{\pi}{6}\) and \(\tfrac{5\pi}{6}\). Between them (check \(\theta = \tfrac{\pi}{2}\): \(3 \gt 2\)) the circle is outside. \[A = \frac{1}{2}\int_{\pi/6}^{5\pi/6}\Big(9\sin^2\theta - (1 + \sin\theta)^2\Big)d\theta = \frac{1}{2}\int_{\pi/6}^{5\pi/6}\big(8\sin^2\theta - 2\sin\theta - 1\big)\,d\theta.\] With \(8\sin^2\theta = 4 - 4\cos 2\theta\), an antiderivative is \(3\theta - 2\sin 2\theta + 2\cos\theta\). At \(\tfrac{5\pi}{6}\): \(\tfrac{5\pi}{2} + \sqrt{3} - \sqrt{3} = \tfrac{5\pi}{2}\). At \(\tfrac{\pi}{6}\): \(\tfrac{\pi}{2} - \sqrt{3} + \sqrt{3} = \tfrac{\pi}{2}\). So \(A = \tfrac{1}{2}\left(\tfrac{5\pi}{2} - \tfrac{\pi}{2}\right) = \pi\).

Worked example · Common interior, roles swap

Find the area inside both \(r = 2\) and \(r = 4\sin\theta\).

They meet where \(4\sin\theta = 2\): \(\theta = \tfrac{\pi}{6}, \tfrac{5\pi}{6}\). The shared region's boundary is \(r = 4\sin\theta\) on \([0, \tfrac{\pi}{6}]\) and on \([\tfrac{5\pi}{6}, \pi]\) (where that circle is the smaller one), and \(r = 2\) in between. By symmetry, \[A = 2\cdot\frac{1}{2}\int_0^{\pi/6} 16\sin^2\theta\,d\theta + \frac{1}{2}\int_{\pi/6}^{5\pi/6} 4\,d\theta = \Big[8\theta - 4\sin 2\theta\Big]_0^{\pi/6} + \frac{4\pi}{3} = \frac{4\pi}{3} - 2\sqrt{3} + \frac{4\pi}{3} = \frac{8\pi}{3} - 2\sqrt{3} \approx 4.913.\]

Exam tip: setting \(R = r\) misses intersections at the pole, where the curves arrive at different \(\theta\)-values. Sketch first; check whether each curve reaches \(r = 0\). On the calculator section, find intersection angles numerically and store them.

Try it

Find the area inside \(r = 4\cos\theta\) and outside \(r = 2\).

Show answer

\(4\cos\theta = 2\) at \(\theta = \pm\tfrac{\pi}{3}\), and \(4\cos\theta \gt 2\) between them. \(A = \tfrac{1}{2}\displaystyle\int_{-\pi/3}^{\pi/3}\big(16\cos^2\theta - 4\big)\,d\theta = \tfrac{1}{2}\Big[4\theta + 4\sin 2\theta\Big]_{-\pi/3}^{\pi/3} = \tfrac{1}{2}\left(\tfrac{8\pi}{3} + 4\sqrt{3}\right) = \tfrac{4\pi}{3} + 2\sqrt{3} \approx 7.653\).

Unit 9 practice · 10 problems

Unit 9 practice: Parametric Equations, Polar Coordinates, and Vector-Valued Functions

Ten problems covering the whole unit, in roughly exam order: parametric curves, then motion in the plane, then polar coordinates. Work each one on paper before revealing the answer. A calculator is fine for problems 4 and 6.

  1. A curve is given by \(x = t^3\), \(y = t^2 - 4t\). (a) Find \(\dfrac{dy}{dx}\) at \(t = 1\) and write the equation of the tangent line there. (b) Find the points where the tangent is horizontal and where it is vertical.

    Show answer

    \(\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt} = \dfrac{2t - 4}{3t^2}\). (a) At \(t = 1\): slope \(-\tfrac{2}{3}\) at the point \((1, -3)\), so \(y + 3 = -\tfrac{2}{3}(x - 1)\). (b) Horizontal where \(2t - 4 = 0\), \(t = 2\) (and \(dx/dt = 12 \ne 0\)): the point \((8, -4)\). Vertical where \(3t^2 = 0\), \(t = 0\) (and \(dy/dt = -4 \ne 0\)): the point \((0, 0)\).

  2. For \(x = t^3 + t\), \(y = t^2\), find \(\dfrac{d^2y}{dx^2}\) at \(t = 1\) and state the concavity of the curve there.

    Show answer

    \(\dfrac{dy}{dx} = \dfrac{2t}{3t^2 + 1}\). Then \(\dfrac{d}{dt}\left(\dfrac{2t}{3t^2 + 1}\right) = \dfrac{2(3t^2 + 1) - 2t(6t)}{(3t^2 + 1)^2} = \dfrac{2 - 6t^2}{(3t^2 + 1)^2}\), and dividing by \(\dfrac{dx}{dt} = 3t^2 + 1\) gives \(\dfrac{d^2y}{dx^2} = \dfrac{2 - 6t^2}{(3t^2 + 1)^3}\). At \(t = 1\): \(\dfrac{-4}{64} = -\dfrac{1}{16} \lt 0\), so the curve is concave down there.

  3. Find the exact length of the curve \(x = 3t^2\), \(y = 2t^3\) for \(0 \le t \le 1\).

    Show answer

    \(\sqrt{(6t)^2 + (6t^2)^2} = 6t\sqrt{1 + t^2}\) for \(t \ge 0\). With \(u = 1 + t^2\), \(du = 2t\,dt\), limits \(1 \to 2\): \(L = 3\displaystyle\int_1^2 u^{1/2}\,du = 2\Big[u^{3/2}\Big]_1^2 = 2\left(2\sqrt{2} - 1\right) = 4\sqrt{2} - 2 \approx 3.657\).

  4. A point on the rim of a rolling wheel follows \(x = t - \sin t\), \(y = 1 - \cos t\) for \(0 \le t \le 2\pi\). Set up an integral for the distance it travels and evaluate it.

    Show answer

    \(L = \displaystyle\int_0^{2\pi}\sqrt{(1 - \cos t)^2 + \sin^2 t}\,dt = \int_0^{2\pi}\sqrt{2 - 2\cos t}\,dt\). A calculator gives \(8.000\). Exactly: \(2 - 2\cos t = 4\sin^2\tfrac{t}{2}\), so the integrand is \(2\sin\tfrac{t}{2}\) (nonnegative on \([0, 2\pi]\)) and \(L = \Big[-4\cos\tfrac{t}{2}\Big]_0^{2\pi} = 4 + 4 = 8\).

  5. A particle's position is \(\vec r(t) = \langle t^3 - 12t,\ t^2 - 4t\rangle\). (a) Find \(\vec v(t)\) and \(\vec a(t)\). (b) At what time(s) is the particle at rest? (c) Find the speed at \(t = 3\).

    Show answer

    (a) \(\vec v(t) = \langle 3t^2 - 12,\ 2t - 4\rangle\), \(\vec a(t) = \langle 6t,\ 2\rangle\). (b) Both components must be zero: \(3t^2 - 12 = 0\) at \(t = \pm 2\) and \(2t - 4 = 0\) at \(t = 2\), so the particle is at rest only at \(t = 2\). (c) \(\vec v(3) = \langle 15, 2\rangle\), speed \(= \sqrt{225 + 4} = \sqrt{229} \approx 15.13\).

  6. A particle moves with velocity \(\vec v(t) = \langle 2t,\ 3\sqrt{t}\rangle\) and is at \((0, 2)\) when \(t = 1\). (a) Find its speed at \(t = 4\). (b) Find its position at \(t = 4\). (c) Find the total distance it travels for \(1 \le t \le 4\).

    Show answer

    (a) \(\vec v(4) = \langle 8, 6\rangle\), speed \(= \sqrt{64 + 36} = 10\). (b) \(x(4) = 0 + \displaystyle\int_1^4 2t\,dt = 16 - 1 = 15\); \(y(4) = 2 + \displaystyle\int_1^4 3\sqrt{t}\,dt = 2 + 2\Big[t^{3/2}\Big]_1^4 = 2 + 2(8 - 1) = 16\). Position \((15, 16)\). (c) Distance \(= \displaystyle\int_1^4\sqrt{4t^2 + 9t}\,dt \approx 20.596\) (calculator).

  7. (a) Convert \(r = 6\sin\theta\) to rectangular form and identify the curve. (b) For \(r = 2 + 2\sin\theta\), find \(\dfrac{dy}{dx}\) at \(\theta = 0\) and write the tangent line there. (c) At \(\theta = 0\), is that curve moving toward or away from the origin? Justify.

    Show answer

    (a) Multiply by \(r\): \(r^2 = 6r\sin\theta\), so \(x^2 + y^2 = 6y\), i.e. \(x^2 + (y - 3)^2 = 9\): a circle of radius 3 centered at \((0, 3)\). (b) At \(\theta = 0\): \(r = 2\), \(\dfrac{dr}{d\theta} = 2\cos\theta = 2\). \(\dfrac{dy}{d\theta} = r'\sin\theta + r\cos\theta = 0 + 2 = 2\) and \(\dfrac{dx}{d\theta} = r'\cos\theta - r\sin\theta = 2 - 0 = 2\), so \(\dfrac{dy}{dx} = 1\). The point is \((2, 0)\); tangent line \(y = x - 2\). (c) \(\dfrac{dr}{d\theta} = 2 \gt 0\), so \(r\) is increasing: the curve is moving away from the origin.

  8. Find the area of one petal of the rose \(r = 3\sin 2\theta\).

    Show answer

    \(r = 0\) at \(\theta = 0\) and \(\theta = \tfrac{\pi}{2}\), so one petal is traced for \(0 \le \theta \le \tfrac{\pi}{2}\). \(A = \tfrac{1}{2}\displaystyle\int_0^{\pi/2} 9\sin^2 2\theta\,d\theta = \tfrac{9}{2}\int_0^{\pi/2}\frac{1 - \cos 4\theta}{2}\,d\theta = \tfrac{9}{4}\Big[\theta - \tfrac{1}{4}\sin 4\theta\Big]_0^{\pi/2} = \tfrac{9}{4}\cdot\tfrac{\pi}{2} = \dfrac{9\pi}{8} \approx 3.534\).

  9. Find the area of the region inside the cardioid \(r = 2 + 2\cos\theta\) and outside the circle \(r = 3\).

    Show answer

    Intersections: \(2 + 2\cos\theta = 3 \Rightarrow \cos\theta = \tfrac{1}{2}\), \(\theta = \pm\tfrac{\pi}{3}\); between them the cardioid is outside (at \(\theta = 0\), \(4 \gt 3\)). \(A = \tfrac{1}{2}\displaystyle\int_{-\pi/3}^{\pi/3}\Big[(2 + 2\cos\theta)^2 - 9\Big]d\theta = \tfrac{1}{2}\int_{-\pi/3}^{\pi/3}\big(2\cos 2\theta + 8\cos\theta - 3\big)\,d\theta\) (using \(4\cos^2\theta = 2 + 2\cos 2\theta\)). An antiderivative is \(\sin 2\theta + 8\sin\theta - 3\theta\); by symmetry, \(A = \left(\tfrac{\sqrt{3}}{2} + 4\sqrt{3} - \pi\right) = \dfrac{9\sqrt{3}}{2} - \pi \approx 4.653\).

  10. The area of the region enclosed by \(r = 4\cos\theta\) is

    The curve is the circle \((x - 2)^2 + y^2 = 4\), radius 2, traced once for \(0 \le \theta \le \pi\): \(\tfrac{1}{2}\displaystyle\int_0^{\pi}16\cos^2\theta\,d\theta = 4\int_0^{\pi}(1 + \cos 2\theta)\,d\theta = 4\pi\), which agrees with \(\pi(2)^2\).

    \(8\pi\) is what you get by integrating from \(0\) to \(2\pi\): over that interval the circle is traced twice (once with \(r \gt 0\), once with \(r \lt 0\)), so the area is double-counted. Always check how much of \(\theta\) traces the curve exactly once.

    \(16\pi\) is the area of a circle of radius 4, which comes from reading the coefficient 4 as the radius. For \(r = a\cos\theta\) the number \(a\) is the diameter, so the radius is 2.

    \(2\pi\) is half the correct area: the result of thinking \(0 \le \theta \le \pi\) covers only half the circle and halving again, or of dropping a factor of 2 in \(\cos^2\theta = \tfrac{1}{2}(1 + \cos 2\theta)\). The interval \(0\) to \(\pi\) traces the whole circle exactly once.

Lesson 10.1 · Unit 10 · CED topic 10.1

Defining convergent and divergent infinite series

Adding infinitely many numbers sounds impossible, and sometimes it is. The trick is to add finitely many, watch the running totals, and ask whether they settle down. That question: do the partial sums have a limit?: is the definition everything in this unit rests on.

Definitions

A sequence \(\{a_n\}\) is a list of numbers; a series \(\displaystyle\sum_{n=1}^{\infty} a_n\) is their sum. The nth partial sum is \(S_n = a_1 + a_2 + \cdots + a_n\). The series converges to \(S\) if \(\displaystyle\lim_{n\to\infty} S_n = S\); otherwise it diverges. A sequence converging (to anything) and its series converging are different questions.

Worked example · Sequence vs. series

\(a_n = \dfrac{1}{2^n}\): the sequence \(\tfrac{1}{2}, \tfrac{1}{4}, \tfrac{1}{8}, \dots\) converges to 0, and the partial sums \(S_n = 1 - \dfrac{1}{2^n}\) converge to 1, so \(\displaystyle\sum_{n=1}^{\infty}\frac{1}{2^n} = 1\).

\(a_n = \dfrac{n}{n+1}\): the sequence converges to 1, but every term is at least \(\tfrac{1}{2}\), so \(S_n \ge \tfrac{n}{2} \to \infty\). The series diverges. Terms that don't shrink to zero can never add up to something finite.

Worked example · Telescoping series

Does \(\displaystyle\sum_{n=1}^{\infty}\frac{1}{n(n+1)}\) converge? Partial fractions (Lesson 6.11): \(\dfrac{1}{n(n+1)} = \dfrac{1}{n} - \dfrac{1}{n+1}\), so \[S_n = \left(1 - \tfrac{1}{2}\right) + \left(\tfrac{1}{2} - \tfrac{1}{3}\right) + \cdots + \left(\tfrac{1}{n} - \tfrac{1}{n+1}\right) = 1 - \frac{1}{n+1}.\] Everything in the middle cancels. \(\displaystyle\lim_{n\to\infty} S_n = 1\), so the series converges to 1. Write out the first few terms of \(S_n\) explicitly: graders want to see the cancellation.

Worked example · Given the partial sums

Suppose \(S_n = 3 - \dfrac{2}{n}\). Then \(\displaystyle\sum_{n=1}^{\infty} a_n = \lim_{n\to\infty} S_n = 3\), and the terms are recovered by \(a_n = S_n - S_{n-1} = \dfrac{2}{n-1} - \dfrac{2}{n} = \dfrac{2}{n(n-1)}\) for \(n \ge 2\), with \(a_1 = S_1 = 1\).

Try it

Find the sum of \(\displaystyle\sum_{n=1}^{\infty}\frac{2}{n^2 + 2n}\).

Show answer

\(\dfrac{2}{n(n+2)} = \dfrac{1}{n} - \dfrac{1}{n+2}\), so \(S_n = 1 + \tfrac{1}{2} - \tfrac{1}{n+1} - \tfrac{1}{n+2}\) (two terms survive at each end). The sum is \(\displaystyle\lim_{n\to\infty} S_n = \tfrac{3}{2}\).

Lesson 10.2 · Unit 10 · CED topic 10.2

Working with geometric series

A geometric series multiplies by the same ratio at every step. It is the one family of series whose sum you can always compute exactly, and it is the model that every power series in Lessons 10.9–10.11 is compared against.

Theorem

\[\sum_{n=0}^{\infty} ar^n = a + ar + ar^2 + \cdots = \frac{a}{1 - r} \quad\text{if } |r| \lt 1,\] and the series diverges if \(|r| \ge 1\). Here \(a\) is the first term actually written, whatever the starting index. Why: \(S_n = \dfrac{a(1 - r^n)}{1 - r}\), and \(r^n \to 0\) exactly when \(|r| \lt 1\).

Worked example · Does it converge, and to what?

\(3 - 2 + \tfrac{4}{3} - \tfrac{8}{9} + \cdots\). The ratio of consecutive terms is \(r = -\tfrac{2}{3}\), and \(|r| = \tfrac{2}{3} \lt 1\), so the geometric series converges: \[S = \frac{a}{1 - r} = \frac{3}{1 + \tfrac{2}{3}} = \frac{9}{5}.\]

Worked example · Identify a and r from sigma notation

\(\displaystyle\sum_{n=2}^{\infty}\frac{3^n}{4^{n-1}}\). The first term (\(n = 2\)) is \(\dfrac{9}{4}\) and the ratio is \(\dfrac{3}{4}\), so the sum is \(\dfrac{9/4}{1 - 3/4} = 9\).

\(\displaystyle\sum_{n=1}^{\infty}\left(\frac{5}{4}\right)^n\) has \(|r| = \tfrac{5}{4} \ge 1\): divergent. The terms grow, so the partial sums can't settle.

Worked example · Repeating decimal

\(0.727272\ldots = 0.72 + 0.0072 + 0.000072 + \cdots\) with \(a = 0.72\), \(r = 0.01\): \[\frac{0.72}{1 - 0.01} = \frac{72}{99} = \frac{8}{11}.\]

Exam tip: a series like \(\displaystyle\sum 2^n x^n\) is geometric with \(r = 2x\); it converges exactly when \(|2x| \lt 1\). That one observation is the seed of the interval of convergence.

Try it

(a) Find \(\displaystyle\sum_{n=1}^{\infty}\frac{2^{2n}}{5^n}\). (b) Write \(2.3454545\ldots\) as a fraction.

Show answer

(a) \(\dfrac{2^{2n}}{5^n} = \left(\dfrac{4}{5}\right)^n\); first term \(\tfrac{4}{5}\), \(r = \tfrac{4}{5}\): sum \(= \dfrac{4/5}{1/5} = 4\). (b) \(2.3 + 0.045 + 0.00045 + \cdots = \dfrac{23}{10} + \dfrac{0.045}{0.99} = \dfrac{23}{10} + \dfrac{1}{22} = \dfrac{129}{55}\).

Lesson 10.3 · Unit 10 · CED topics 10.3–10.4

The nth-term test for divergence and the integral test

Two tests, opposite in spirit. The nth-term test is a quick way to rule a series out: if the terms don't shrink to zero, stop. The integral test converts a hard sum into an improper integral (Lesson 6.12), which you already know how to evaluate.

nth-term test for divergence

If \(\displaystyle\lim_{n\to\infty} a_n \ne 0\) (or does not exist), then \(\displaystyle\sum a_n\) diverges. If the limit is 0, the test says nothing: the series may converge or diverge. It never proves convergence.

Integral test

If \(f\) is positive, continuous, and decreasing on \([N, \infty)\) and \(a_n = f(n)\), then \(\displaystyle\sum_{n=N}^{\infty} a_n\) and \(\displaystyle\int_N^{\infty} f(x)\,dx\) either both converge or both diverge. The value of the integral is not the value of the sum.

Worked example · nth-term test

\(\displaystyle\sum_{n=1}^{\infty}\frac{n}{2n + 1}\): \(a_n \to \tfrac{1}{2} \ne 0\), so it diverges. \(\displaystyle\sum_{n=1}^{\infty}\cos\!\left(\frac{1}{n}\right)\): \(a_n \to \cos 0 = 1\), diverges. \(\displaystyle\sum_{n=1}^{\infty}(-1)^n\): the limit doesn't exist, diverges. But for \(\displaystyle\sum\frac{1}{n}\), \(a_n \to 0\) and the test is silent; the next lesson shows that series diverges anyway.

Worked example · Integral test, convergent

Does \(\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2 + 1}\) converge? Let \(f(x) = \dfrac{1}{x^2 + 1}\). It is positive and continuous for \(x \ge 1\), and decreasing because \(f'(x) = \dfrac{-2x}{(x^2 + 1)^2} \lt 0\) there. Hypotheses met, so \[\int_1^{\infty}\frac{dx}{x^2 + 1} = \lim_{b\to\infty}\Big[\arctan x\Big]_1^b = \frac{\pi}{2} - \frac{\pi}{4} = \frac{\pi}{4}.\] The integral converges, so the series converges (to some number near 1.077, not \(\tfrac{\pi}{4}\)).

Worked example · Integral test, divergent

\(\displaystyle\sum_{n=2}^{\infty}\frac{1}{n\ln n}\). With \(f(x) = \dfrac{1}{x\ln x}\), positive, continuous, and decreasing on \([2, \infty)\), substitute \(u = \ln x\): \[\int_2^{\infty}\frac{dx}{x\ln x} = \lim_{b\to\infty}\Big[\ln(\ln x)\Big]_2^b = \infty.\] Diverges, even though \(a_n \to 0\) and, from \(n = 3\) on, the terms are smaller than \(\tfrac{1}{n}\).

Try it

Use the integral test to decide whether \(\displaystyle\sum_{n=1}^{\infty} n e^{-n^2}\) converges. State the hypotheses.

Show answer

\(f(x) = x e^{-x^2}\) is positive and continuous on \([1, \infty)\), and decreasing there since \(f'(x) = e^{-x^2}(1 - 2x^2) \lt 0\) for \(x \ge 1\). \(\displaystyle\int_1^{\infty} x e^{-x^2}\,dx = \lim_{b\to\infty}\Big[-\tfrac{1}{2}e^{-x^2}\Big]_1^b = \tfrac{1}{2e}\), finite, so the series converges.

Lesson 10.4 · Unit 10 · CED topic 10.5

Harmonic series and p-series

The p-series are the reference family for the whole unit: you'll compare almost every unfamiliar series to one of them. Their behavior comes straight from the integral test and the p-test for improper integrals, and the boundary case \(p = 1\) is the famous harmonic series.

Theorem

\[\sum_{n=1}^{\infty}\frac{1}{n^p} \text{ converges if } p \gt 1 \text{ and diverges if } p \le 1.\] The harmonic series \(\displaystyle\sum\frac{1}{n} = 1 + \tfrac{1}{2} + \tfrac{1}{3} + \cdots\) is the case \(p = 1\): it diverges, even though its terms go to 0. Proof by the integral test: \(f(x) = x^{-p}\) is positive, continuous, and decreasing on \([1, \infty)\), and \(\displaystyle\int_1^{\infty} x^{-p}\,dx\) converges exactly when \(p \gt 1\) (Lesson 6.12).

Worked example · Classify by p

\(\displaystyle\sum\frac{1}{n^{3/2}}\): \(p = \tfrac{3}{2} \gt 1\), converges. \(\displaystyle\sum\frac{1}{\sqrt{n}}\): \(p = \tfrac{1}{2} \le 1\), diverges. \(\displaystyle\sum\frac{1}{n^{1.001}}\): \(p = 1.001 \gt 1\), converges: barely, but the theorem doesn't care by how much.

Worked example · Rewrite first

Does \(\displaystyle\sum_{n=1}^{\infty}\frac{\sqrt[3]{n}}{n^2}\) converge? Simplify: \(\dfrac{n^{1/3}}{n^2} = \dfrac{1}{n^{5/3}}\), a p-series with \(p = \tfrac{5}{3} \gt 1\). Converges.

\(\displaystyle\sum_{n=1}^{\infty}\frac{3}{2n} = \frac{3}{2}\sum\frac{1}{n}\), a constant multiple of the harmonic series. Diverges. Multiplying by a nonzero constant never changes convergence.

Worked example · Why the harmonic series diverges

Group the terms: \(1 + \tfrac{1}{2} + \left(\tfrac{1}{3} + \tfrac{1}{4}\right) + \left(\tfrac{1}{5} + \cdots + \tfrac{1}{8}\right) + \cdots\). Each group is at least \(\tfrac{1}{2}\) (two terms \(\ge \tfrac{1}{4}\), four terms \(\ge \tfrac{1}{8}\), and so on), so the partial sums exceed \(1 + \tfrac{k}{2}\) after \(2^k\) terms and grow without bound. Slowly, about \(\ln n\), but without bound.

Exam tip: the justification graders want is one line; "p-series with \(p = \tfrac{5}{3} \gt 1\), so it converges." Name the test, state \(p\), compare to 1.

Try it

Does \(\displaystyle\sum_{n=1}^{\infty}\frac{2n + \sqrt{n}}{n^3}\) converge?

Show answer

Split: \(\dfrac{2n + \sqrt{n}}{n^3} = \dfrac{2}{n^2} + \dfrac{1}{n^{5/2}}\). Both are (multiples of) convergent p-series (\(p = 2\) and \(p = \tfrac{5}{2}\), each \(\gt 1\)), and a sum of two convergent series converges.

Lesson 10.5 · Unit 10 · CED topic 10.6

Comparison tests for convergence

Most series aren't geometric or p-series, but they behave like one. Comparison tests make that intuition rigorous: bound the terms by a known series, or show the terms have the same size for large \(n\). Both tests need positive terms.

Direct comparison test (DCT)

Suppose \(0 \le a_n \le b_n\) for all large \(n\). If \(\displaystyle\sum b_n\) converges, so does \(\displaystyle\sum a_n\). If \(\displaystyle\sum a_n\) diverges, so does \(\displaystyle\sum b_n\). (Smaller than convergent converges; bigger than divergent diverges. The other two directions prove nothing.)

Limit comparison test (LCT)

If \(a_n, b_n \gt 0\) and \(\displaystyle\lim_{n\to\infty}\frac{a_n}{b_n} = c\) with \(0 \lt c \lt \infty\), then \(\displaystyle\sum a_n\) and \(\displaystyle\sum b_n\) both converge or both diverge. Choose \(b_n\) by keeping the dominant term of numerator and denominator.

Worked example · Direct comparison

\(\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2 + 3n}\). For \(n \ge 1\), \(0 \lt \dfrac{1}{n^2 + 3n} \lt \dfrac{1}{n^2}\), and \(\displaystyle\sum\frac{1}{n^2}\) converges (p-series, \(p = 2\)). By the DCT the series converges.

Worked example · When direct comparison points the wrong way

\(\displaystyle\sum_{n=1}^{\infty}\frac{1}{2^n - 1}\). The obvious comparison is \(\dfrac{1}{2^n}\), but \(\dfrac{1}{2^n - 1} \gt \dfrac{1}{2^n}\): bigger than a convergent series proves nothing. Use the LCT: \[\lim_{n\to\infty}\frac{1/(2^n - 1)}{1/2^n} = \lim_{n\to\infty}\frac{2^n}{2^n - 1} = 1,\] finite and positive, and \(\displaystyle\sum\frac{1}{2^n}\) is a convergent geometric series (\(r = \tfrac{1}{2}\)). So the series converges.

Worked example · Limit comparison, divergent

\(\displaystyle\sum_{n=1}^{\infty}\frac{n + 2}{n^2 + 5}\). Dominant terms give \(b_n = \dfrac{n}{n^2} = \dfrac{1}{n}\). \(\displaystyle\lim_{n\to\infty}\frac{(n + 2)/(n^2 + 5)}{1/n} = \lim_{n\to\infty}\frac{n^2 + 2n}{n^2 + 5} = 1\). Since the harmonic series diverges, so does this one.

Exam tip: every comparison argument must name the comparison series and say why it converges or diverges. "Compare to \(\tfrac{1}{n^2}\)" alone earns nothing.

Try it

Decide, with a named test: (a) \(\displaystyle\sum_{n=1}^{\infty}\frac{2 + \cos n}{n^2}\); (b) \(\displaystyle\sum_{n=1}^{\infty}\frac{1}{\sqrt{n^2 + 1}}\).

Show answer

(a) \(0 \lt \dfrac{2 + \cos n}{n^2} \le \dfrac{3}{n^2}\), and \(\displaystyle\sum\frac{3}{n^2}\) converges (\(p = 2\)). DCT: converges. (b) LCT with \(b_n = \tfrac{1}{n}\): \(\displaystyle\lim\frac{n}{\sqrt{n^2 + 1}} = 1\). The harmonic series diverges, so this diverges.

Lesson 10.6 · Unit 10 · CED topics 10.7, 10.10

The alternating series test and the alternating series error bound

When signs alternate, terms partly cancel, and a series can converge even when its terms shrink slowly. Better still, the partial sums bounce back and forth across the true sum, which hands you an error bound for free.

Alternating series test (AST)

\(\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1} b_n\) (or with \((-1)^n\)) converges if (1) \(b_n \gt 0\), (2) \(b_{n+1} \le b_n\) for all large \(n\), and (3) \(\displaystyle\lim_{n\to\infty} b_n = 0\). Check all three in writing.

Alternating series error bound

If the AST conditions hold and \(S\) is the sum, then \[|S - S_n| \le b_{n+1},\] the absolute value of the first omitted term. The true sum lies between \(S_n\) and \(S_{n+1}\).

Worked example · Does it converge?

\(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n} = 1 - \tfrac{1}{2} + \tfrac{1}{3} - \cdots\), the alternating harmonic series. Here \(b_n = \tfrac{1}{n}\): positive, decreasing, and \(\to 0\). By the AST it converges (to \(\ln 2\), as Lesson 10.11 shows).

\(\displaystyle\sum_{n=1}^{\infty}(-1)^n\frac{n}{n + 1}\): \(b_n \to 1 \ne 0\), so the AST does not apply. Failing the AST proves nothing by itself, but here the nth-term test finishes it: the terms don't go to 0, so the series diverges.

Worked example · Using the error bound

Approximate \(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}\) by \(S_4\) and bound the error. \(S_4 = 1 - \tfrac{1}{4} + \tfrac{1}{9} - \tfrac{1}{16} \approx 0.7986\). The AST conditions hold (\(\tfrac{1}{n^2}\) is positive, decreasing, \(\to 0\)), so \(|S - S_4| \le b_5 = \tfrac{1}{25} = 0.04\). (The true sum is \(\tfrac{\pi^2}{12} \approx 0.8225\); the actual error, 0.024, is inside the bound.)

How many terms guarantee error below 0.001? Need \(b_{n+1} = \dfrac{1}{(n+1)^2} \le 0.001\), so \((n+1)^2 \ge 1000\), \(n + 1 \ge 31.63\), so \(n + 1 = 32\): \(n = 31\) terms.

Exam tip: the error-bound justification has three parts; say the series alternates and satisfies the AST, write the inequality with the first omitted term, and compute that term. Then stop; don't "improve" the bound.

Try it

(a) Does \(\displaystyle\sum_{n=1}^{\infty}(-1)^n\frac{\sqrt{n}}{n + 1}\) converge? (b) How many terms of \(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^3}\) guarantee an error less than 0.0005?

Show answer

(a) \(b_n = \dfrac{\sqrt{n}}{n + 1} \gt 0\); \(b_n \to 0\) (degree \(\tfrac{1}{2}\) over degree 1); and it is decreasing, since \(\dfrac{d}{dx}\dfrac{\sqrt{x}}{x + 1} = \dfrac{1 - x}{2\sqrt{x}(x + 1)^2} \lt 0\) for \(x \gt 1\). AST: converges. (b) \(\dfrac{1}{(n+1)^3} \le 0.0005\) means \((n+1)^3 \ge 2000\), \(n + 1 \ge 12.6\), so \(n = 12\) terms.

Lesson 10.7 · Unit 10 · CED topics 10.8–10.9

The ratio test, and absolute versus conditional convergence

The ratio test asks whether a series is eventually geometric: compare each term to the one before it. It is the workhorse for factorials and exponentials, and it's the test that will define the radius of convergence in Lesson 10.9. Its one blind spot is a ratio of exactly 1.

Ratio test

Let \(L = \displaystyle\lim_{n\to\infty}\left|\frac{a_{n+1}}{a_n}\right|\). If \(L \lt 1\) the series converges absolutely; if \(L \gt 1\) (or \(L = \infty\)) it diverges; if \(L = 1\) the test is inconclusive and you must use a different test.

Absolute and conditional convergence

\(\displaystyle\sum a_n\) converges absolutely if \(\displaystyle\sum|a_n|\) converges, and absolute convergence implies convergence. It converges conditionally if \(\displaystyle\sum a_n\) converges but \(\displaystyle\sum|a_n|\) diverges.

Worked example · Ratio test

\(\displaystyle\sum_{n=1}^{\infty}\frac{2^n}{n!}\): \(\left|\dfrac{a_{n+1}}{a_n}\right| = \dfrac{2^{n+1}}{(n+1)!}\cdot\dfrac{n!}{2^n} = \dfrac{2}{n + 1} \to 0 \lt 1\). Converges absolutely.

\(\displaystyle\sum_{n=1}^{\infty}\frac{n^3}{3^n}\): \(\dfrac{(n+1)^3}{3^{n+1}}\cdot\dfrac{3^n}{n^3} = \dfrac{1}{3}\left(\dfrac{n+1}{n}\right)^3 \to \dfrac{1}{3} \lt 1\). Converges. Polynomial growth always loses to exponential decay.

Worked example · The inconclusive case

\(\displaystyle\sum_{n=1}^{\infty}\frac{n}{n^2 + 1}\): \(\dfrac{n + 1}{(n+1)^2 + 1}\cdot\dfrac{n^2 + 1}{n} \to 1\). Inconclusive: write that word. Switch tests: limit comparison with \(\tfrac{1}{n}\) gives \(\displaystyle\lim\frac{n^2}{n^2 + 1} = 1\), and the harmonic series diverges, so this diverges. The ratio test returns 1 for every p-series and every rational function of \(n\); use it for factorials and powers.

Worked example · Absolute or conditional?

\(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}\) converges by the AST (Lesson 10.6), but \(\displaystyle\sum\left|\frac{(-1)^{n+1}}{n}\right| = \sum\frac{1}{n}\) diverges. Conditionally convergent. \(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^n}{n^2}\): \(\displaystyle\sum\frac{1}{n^2}\) converges (\(p = 2\)), so it converges absolutely, no AST needed.

Try it

(a) Does \(\displaystyle\sum_{n=0}^{\infty}\frac{(-3)^n}{n!}\) converge? (b) Is \(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^n}{\sqrt{n}}\) absolutely convergent, conditionally convergent, or divergent?

Show answer

(a) Ratio test: \(\left|\dfrac{(-3)^{n+1}}{(n+1)!}\cdot\dfrac{n!}{(-3)^n}\right| = \dfrac{3}{n + 1} \to 0 \lt 1\). Converges absolutely (to \(e^{-3}\)). (b) \(\displaystyle\sum\frac{1}{\sqrt{n}}\) diverges (\(p = \tfrac{1}{2}\)), but \(b_n = \tfrac{1}{\sqrt{n}}\) is positive, decreasing, \(\to 0\), so the AST gives convergence. Conditionally convergent.

Lesson 10.8 · Unit 10 · CED topics 10.11–10.12

Taylor polynomials and the Lagrange error bound

The tangent line matches a function's value and slope at one point. A Taylor polynomial keeps going: match the second derivative, the third, and so on, and the polynomial hugs the curve over a wider stretch. The Lagrange bound says how far off it can be.

Taylor polynomial

The degree-\(n\) Taylor polynomial of \(f\) centered at \(x = a\) is \[P_n(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x - a)^k = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x - a)^n.\] When \(a = 0\) it is called a Maclaurin polynomial.

Lagrange error bound

If \(\left|f^{(n+1)}(z)\right| \le M\) for all \(z\) between \(a\) and \(x\), then \[\big|f(x) - P_n(x)\big| \le \frac{M\,|x - a|^{n+1}}{(n+1)!}.\] \(M\) is the maximum of the next derivative on the interval; say where it comes from.

Worked example · Building one

\(f(x) = \ln x\) at \(a = 1\): \(f(1) = 0\), \(f'(x) = x^{-1} \Rightarrow 1\), \(f''(x) = -x^{-2} \Rightarrow -1\), \(f'''(x) = 2x^{-3} \Rightarrow 2\). \[P_3(x) = (x - 1) - \frac{(x - 1)^2}{2} + \frac{2}{3!}(x - 1)^3 = (x - 1) - \frac{(x - 1)^2}{2} + \frac{(x - 1)^3}{3}.\]

Worked example · From a table

Given \(f(2) = 3\), \(f'(2) = -1\), \(f''(2) = 4\), \(f'''(2) = 6\): \(P_3(x) = 3 - (x - 2) + \dfrac{4}{2}(x - 2)^2 + \dfrac{6}{6}(x - 2)^3 = 3 - (x - 2) + 2(x - 2)^2 + (x - 2)^3\). Then \(f(2.1) \approx 3 - 0.1 + 0.02 + 0.001 = 2.921\). Divide each derivative by \(k!\): forgetting the \(2!\) is the classic slip.

Worked example · Lagrange bound

Approximate \(e^{0.5}\) with \(P_2(x) = 1 + x + \dfrac{x^2}{2}\) for \(e^x\) at \(a = 0\), and bound the error. \(P_2(0.5) = 1 + 0.5 + 0.125 = 1.625\). The third derivative is \(e^z\), increasing, so on \([0, 0.5]\) its maximum is \(e^{0.5} \lt 2\); take \(M = 2\). \[|e^{0.5} - P_2(0.5)| \le \frac{2\,(0.5)^3}{3!} = \frac{1}{24} \approx 0.0417.\] (Actual error: \(1.6487 - 1.625 \approx 0.024\).) For \(\sin\) and \(\cos\), every derivative is bounded by 1, so \(M = 1\).

Try it

Use the third-degree Maclaurin polynomial for \(\sin x\) to approximate \(\sin 0.3\), and give a Lagrange bound on the error.

Show answer

\(P_3(x) = x - \dfrac{x^3}{6}\), so \(\sin 0.3 \approx 0.3 - 0.0045 = 0.2955\). With \(|f^{(4)}(z)| = |\sin z| \le 1\), the error is at most \(\dfrac{(0.3)^4}{4!} \approx 0.00034\). (Since the \(x^4\) coefficient is 0, \(P_3 = P_4\), and the sharper bound \(\dfrac{(0.3)^5}{5!} \approx 0.00002\) also holds.)

Lesson 10.9 · Unit 10 · CED topic 10.13

Radius and interval of convergence of power series

A power series is a polynomial that never ends: \(\displaystyle\sum c_n(x - a)^n\). Plug in an \(x\) and you get an ordinary series that may or may not converge. The set of \(x\)-values where it does is always an interval centered at \(a\), and the ratio test finds it: except at the two endpoints, which need their own tests.

Method

Apply the ratio test to the terms in \(x\): the series converges absolutely where \(\displaystyle\lim_{n\to\infty}\left|\frac{c_{n+1}(x - a)^{n+1}}{c_n(x - a)^n}\right| \lt 1\). Solve for \(|x - a| \lt R\); \(R\) is the radius of convergence. At \(x = a \pm R\) the ratio is exactly 1, inconclusive, so test each endpoint separately by substituting it and using another test. \(R\) can be 0 (converges only at \(a\)), a positive number, or \(\infty\) (converges for all \(x\)).

Worked example · Finite radius, mixed endpoints

Find the interval of convergence of \(\displaystyle\sum_{n=1}^{\infty}\frac{(x - 2)^n}{n\,3^n}\).

Ratio: \(\left|\dfrac{(x - 2)^{n+1}}{(n+1)3^{n+1}}\cdot\dfrac{n\,3^n}{(x - 2)^n}\right| = \dfrac{|x - 2|}{3}\cdot\dfrac{n}{n + 1} \to \dfrac{|x - 2|}{3}\). Converges when \(\dfrac{|x - 2|}{3} \lt 1\), i.e. \(-1 \lt x \lt 5\); \(R = 3\).

Endpoint \(x = 5\): \(\displaystyle\sum\frac{3^n}{n\,3^n} = \sum\frac{1}{n}\), harmonic, diverges. Endpoint \(x = -1\): \(\displaystyle\sum\frac{(-3)^n}{n\,3^n} = \sum\frac{(-1)^n}{n}\), converges by the AST. Interval of convergence: \([-1, 5)\).

Worked example · The extreme cases

\(\displaystyle\sum_{n=0}^{\infty}\frac{x^n}{n!}\): ratio \(\dfrac{|x|}{n + 1} \to 0\) for every \(x\). \(R = \infty\), interval \((-\infty, \infty)\).

\(\displaystyle\sum_{n=0}^{\infty} n!\,x^n\): ratio \((n + 1)|x| \to \infty\) unless \(x = 0\). \(R = 0\); the series converges only at its center.

Exam tip: a full-credit answer has the ratio limit, the inequality solved for \(x\), and a separate one-line verdict for each endpoint with the test named. Skipping the endpoints costs the point every time.

Try it

Find the radius and interval of convergence of \(\displaystyle\sum_{n=1}^{\infty}\frac{(x - 1)^n}{n^2\,2^n}\).

Show answer

Ratio \(\to \dfrac{|x - 1|}{2}\), so \(R = 2\) and \(-1 \lt x \lt 3\). At \(x = 3\): \(\displaystyle\sum\frac{1}{n^2}\) converges (\(p = 2\)). At \(x = -1\): \(\displaystyle\sum\frac{(-1)^n}{n^2}\) converges absolutely. Interval: \([-1, 3]\).

Lesson 10.10 · Unit 10 · CED topic 10.14

Finding Taylor or Maclaurin series for a function

Let the Taylor polynomial run forever and you get the Taylor series. Where it converges, it equals the function. Four series come up on every BC exam; know them cold, including the general term and the interval of convergence.

The four to memorize
  • \(e^x = \displaystyle\sum_{n=0}^{\infty}\frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots\), all \(x\)
  • \(\sin x = \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots\), all \(x\)
  • \(\cos x = \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots\), all \(x\)
  • \(\dfrac{1}{1 - x} = \displaystyle\sum_{n=0}^{\infty} x^n = 1 + x + x^2 + \cdots\), only for \(|x| \lt 1\)
Worked example · Deriving the series for e to the x

Every derivative of \(e^x\) is \(e^x\), so \(f^{(n)}(0) = 1\) for all \(n\) and the Taylor formula gives \(\displaystyle\sum\frac{1}{n!}x^n\). Ratio test: \(\dfrac{|x|}{n + 1} \to 0\) for every \(x\), so the series converges everywhere, and it converges to \(e^x\) because the Lagrange remainder \(\dfrac{e^{|x|}|x|^{n+1}}{(n+1)!} \to 0\).

Worked example · Sine and cosine

For \(\sin x\) the derivatives at 0 cycle \(0, 1, 0, -1\): only odd powers survive, with alternating signs, giving \(x - \dfrac{x^3}{3!} + \dfrac{x^5}{5!} - \cdots\). Differentiate term by term and you get the cosine series: \(1 - \dfrac{x^2}{2!} + \dfrac{x^4}{4!} - \cdots\).

Numerically: \(\cos 0.2 \approx 1 - \dfrac{0.04}{2} + \dfrac{0.0016}{24} = 0.980067\), and because the series alternates with decreasing terms, the error is at most the next term, \(\dfrac{(0.2)^6}{720} \approx 9 \times 10^{-8}\).

Worked example · The geometric one

\(\dfrac{1}{1 - x}\) is the sum of a geometric series with \(a = 1\), \(r = x\), so it equals \(1 + x + x^2 + \cdots\) exactly when \(|x| \lt 1\). Unlike the other three, this series has a finite radius, at \(x = 1\) the function blows up and the series can't follow.

Exam tip: "first four nonzero terms and the general term" is the standard phrasing. Write the general term with its index and starting value, e.g. \(\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{(2n)!}\).

Try it

Find the first four nonzero terms and the general term of the Taylor series for \(\cos x\) centered at \(x = \pi\).

Show answer

At \(x = \pi\): \(f = -1\), \(f' = -\sin\pi = 0\), \(f'' = -\cos\pi = 1\), \(f''' = 0\), \(f^{(4)} = \cos\pi = -1\), repeating. \(\cos x = -1 + \dfrac{(x - \pi)^2}{2!} - \dfrac{(x - \pi)^4}{4!} + \dfrac{(x - \pi)^6}{6!} - \cdots = \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^{n+1}(x - \pi)^{2n}}{(2n)!}\). (Equivalently, \(\cos x = -\cos(x - \pi)\).)

Lesson 10.11 · Unit 10 · CED topic 10.15

Representing functions as power series

You rarely build a series from scratch. Instead you start with one of the four memorized series and transform it: substitute into it, multiply by a power of \(x\), differentiate, or integrate. The payoff is that integrals and limits that resisted every earlier technique become polynomial arithmetic.

Rules
  • Substitution: replace \(x\) by any expression, e.g. \(-x^2\) or \(3x\). Adjust the interval of convergence accordingly.
  • Multiply by \(x^k\): raises every exponent by \(k\); the interval is unchanged.
  • Differentiate or integrate term by term: the radius \(R\) stays the same (endpoints may change). Integrating adds a \(+C\), fixed by evaluating at the center.
Worked example · Substitution, then an integral

From \(e^u = \displaystyle\sum\frac{u^n}{n!}\) with \(u = -x^2\): \(e^{-x^2} = \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{n!} = 1 - x^2 + \frac{x^4}{2} - \frac{x^6}{6} + \frac{x^8}{24} - \cdots\), valid for all \(x\). Integrate term by term: \[\int_0^1 e^{-x^2}\,dx = 1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \frac{1}{216} - \cdots \approx 0.7475 \ \text{(five terms)}.\] The series alternates with decreasing terms, so the error is at most the next term, \(\dfrac{1}{11\cdot 120} \approx 0.00076\). (True value: 0.7468.)

Worked example · Integrating a geometric series

Substitute \(-x^2\) for \(x\) in \(\dfrac{1}{1 - x}\): \(\dfrac{1}{1 + x^2} = 1 - x^2 + x^4 - x^6 + \cdots\) for \(|x| \lt 1\). Integrate from 0 (so \(C = \arctan 0 = 0\)): \[\arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \cdots = \sum_{n=0}^{\infty}\frac{(-1)^n x^{2n+1}}{2n + 1}, \quad -1 \le x \le 1.\] Both endpoints now converge (AST), though the original series didn't. The same move on \(\dfrac{1}{1 + x}\) gives \(\ln(1 + x) = x - \dfrac{x^2}{2} + \dfrac{x^3}{3} - \cdots\) on \((-1, 1]\); at \(x = 1\) it is the alternating harmonic series, so that sum is \(\ln 2\).

Worked example · A limit by series

\(\displaystyle\lim_{x\to 0}\frac{1 - \cos x}{x^2} = \lim_{x\to 0}\frac{\tfrac{x^2}{2} - \tfrac{x^4}{24} + \cdots}{x^2} = \lim_{x\to 0}\left(\frac{1}{2} - \frac{x^2}{24} + \cdots\right) = \frac{1}{2}\). Faster than two rounds of L'Hospital, and it shows why the answer is \(\tfrac{1}{2}\).

Try it

(a) Find the first four nonzero terms and the general term of the Maclaurin series for \(x e^{2x}\). (b) Use series to evaluate \(\displaystyle\lim_{x\to 0}\frac{e^x - 1 - x}{x^2}\).

Show answer

(a) \(e^{2x} = \displaystyle\sum\frac{(2x)^n}{n!} = 1 + 2x + 2x^2 + \frac{4}{3}x^3 + \cdots\); multiplying by \(x\): \(x e^{2x} = x + 2x^2 + 2x^3 + \dfrac{4}{3}x^4 + \cdots = \displaystyle\sum_{n=0}^{\infty}\frac{2^n x^{n+1}}{n!}\). (b) \(e^x - 1 - x = \dfrac{x^2}{2} + \dfrac{x^3}{6} + \cdots\), so the quotient is \(\dfrac{1}{2} + \dfrac{x}{6} + \cdots \to \dfrac{1}{2}\).

Unit 10 practice · 10 problems

Unit 10 practice: Infinite Sequences and Series

Ten problems covering the whole unit: the heaviest BC-only topic on the exam. Work each one on paper before revealing the answer. For every convergence question, name the test and check its conditions in writing. No calculator needed.

  1. Find the sum of \(\displaystyle\sum_{n=2}^{\infty}\frac{1}{n^2 - 1}\).

    Show answer

    Partial fractions: \(\dfrac{1}{(n - 1)(n + 1)} = \dfrac{1}{2}\left(\dfrac{1}{n - 1} - \dfrac{1}{n + 1}\right)\). The partial sum telescopes: \(S_N = \dfrac{1}{2}\left(1 + \dfrac{1}{2} - \dfrac{1}{N} - \dfrac{1}{N + 1}\right) \to \dfrac{1}{2}\cdot\dfrac{3}{2} = \dfrac{3}{4}\).

  2. (a) Find \(\displaystyle\sum_{n=1}^{\infty}\frac{2^{n+1}}{3^n}\). (b) Write \(0.454545\ldots\) as a fraction.

    Show answer

    (a) \(\dfrac{2^{n+1}}{3^n} = 2\left(\dfrac{2}{3}\right)^n\); the first term (\(n = 1\)) is \(\tfrac{4}{3}\) and \(r = \tfrac{2}{3}\), so the sum is \(\dfrac{4/3}{1 - 2/3} = 4\). (b) \(0.45 + 0.0045 + \cdots\) with \(a = 0.45\), \(r = 0.01\): \(\dfrac{0.45}{0.99} = \dfrac{45}{99} = \dfrac{5}{11}\).

  3. Decide whether each series converges or diverges, naming the test: (a) \(\displaystyle\sum_{n=1}^{\infty}\frac{n}{3n + 1}\); (b) \(\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^{0.8}}\); (c) \(\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2 + 5}\).

    Show answer

    (a) \(a_n \to \tfrac{1}{3} \ne 0\): diverges by the nth-term test. (b) p-series with \(p = 0.8 \le 1\): diverges. (c) \(0 \lt \dfrac{1}{n^2 + 5} \lt \dfrac{1}{n^2}\) and \(\displaystyle\sum\frac{1}{n^2}\) converges (p-series, \(p = 2\)): converges by the direct comparison test.

  4. Use the integral test to determine whether \(\displaystyle\sum_{n=2}^{\infty}\frac{1}{n(\ln n)^2}\) converges. State the hypotheses you check.

    Show answer

    \(f(x) = \dfrac{1}{x(\ln x)^2}\) is positive, continuous, and decreasing on \([2, \infty)\) (the denominator increases). With \(u = \ln x\): \(\displaystyle\int_2^{\infty}\frac{dx}{x(\ln x)^2} = \lim_{b\to\infty}\Big[-\frac{1}{\ln x}\Big]_2^b = \frac{1}{\ln 2} \approx 1.443\), finite. The integral converges, so the series converges. (The sum is not \(\tfrac{1}{\ln 2}\); the test decides convergence only.)

  5. Which of the following series converges?

    The terms approach \(\tfrac{1}{2}\), not 0, so the series diverges by the nth-term test before any other test is needed. A series cannot converge unless \(a_n \to 0\); terms that settle at a nonzero value always mean divergence.

    This is a p-series with \(p = \tfrac{1}{2} \le 1\), so it diverges; the terms do go to 0, just not fast enough. Students who pick it are usually applying the p-test backwards or confusing it with \(\sum 1/n^2\).

    Limit comparison with \(b_n = \dfrac{1}{n^2}\): \(\displaystyle\lim_{n\to\infty}\frac{(n + 1)/(n^3 + 1)}{1/n^2} = \lim_{n\to\infty}\frac{n^3 + n^2}{n^3 + 1} = 1\), finite and positive, and \(\sum 1/n^2\) converges, so this series converges too.

    Even though \(n\ln n\) grows faster than \(n\), this diverges by the integral test: \(\displaystyle\int_2^{\infty}\frac{dx}{x\ln x} = \lim_{b\to\infty}\Big[\ln(\ln x)\Big]_2^b = \infty\). The logarithm grows too slowly to rescue it.

  6. Consider \(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n\,2^n}\). (a) Show that it converges. (b) Approximate the sum by \(S_3\) and give a bound on the error.

    Show answer

    (a) \(b_n = \dfrac{1}{n\,2^n}\) is positive, decreasing (both \(n\) and \(2^n\) increase), and \(\to 0\), so the series converges by the alternating series test. (b) \(S_3 = \tfrac{1}{2} - \tfrac{1}{8} + \tfrac{1}{24} = \tfrac{5}{12} \approx 0.4167\). By the alternating series error bound, \(|S - S_3| \le b_4 = \dfrac{1}{4\cdot 16} = \dfrac{1}{64} \approx 0.0156\). (The sum is \(\ln\tfrac{3}{2} \approx 0.4055\); the actual error, 0.011, is inside the bound.)

  7. (a) Use the ratio test on \(\displaystyle\sum_{n=1}^{\infty}(-1)^n\frac{n^2}{2^n}\). (b) Is \(\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^n}{2n + 1}\) absolutely convergent, conditionally convergent, or divergent?

    Show answer

    (a) \(\left|\dfrac{a_{n+1}}{a_n}\right| = \dfrac{(n + 1)^2}{2^{n+1}}\cdot\dfrac{2^n}{n^2} = \dfrac{1}{2}\left(\dfrac{n + 1}{n}\right)^2 \to \dfrac{1}{2} \lt 1\): converges absolutely. (b) \(\displaystyle\sum\frac{1}{2n + 1}\) diverges by limit comparison with the harmonic series (\(\dfrac{1/(2n+1)}{1/n} \to \tfrac{1}{2}\)), so the convergence is not absolute. But \(b_n = \dfrac{1}{2n + 1}\) is positive, decreasing, and \(\to 0\), so the series converges by the alternating series test. Conditionally convergent.

  8. A function \(f\) has \(f(1) = 2\), \(f'(1) = -3\), and \(f''(1) = 8\). (a) Write the second-degree Taylor polynomial \(P_2(x)\) for \(f\) about \(x = 1\). (b) Use it to approximate \(f(1.2)\). (c) Given that \(|f'''(z)| \le 15\) for all \(z\) in \([1, 1.2]\), use the Lagrange error bound to bound the error in (b).

    Show answer

    (a) \(P_2(x) = 2 - 3(x - 1) + \dfrac{8}{2!}(x - 1)^2 = 2 - 3(x - 1) + 4(x - 1)^2\). (b) \(P_2(1.2) = 2 - 0.6 + 4(0.04) = 1.56\). (c) \(|f(1.2) - P_2(1.2)| \le \dfrac{15\,(0.2)^3}{3!} = \dfrac{15(0.008)}{6} = 0.02\).

  9. Find the radius and interval of convergence of \(\displaystyle\sum_{n=1}^{\infty}\frac{n\,(x - 4)^n}{3^n}\).

    Show answer

    Ratio test: \(\left|\dfrac{(n + 1)(x - 4)^{n+1}}{3^{n+1}}\cdot\dfrac{3^n}{n(x - 4)^n}\right| = \dfrac{|x - 4|}{3}\cdot\dfrac{n + 1}{n} \to \dfrac{|x - 4|}{3}\). Converges when \(|x - 4| \lt 3\), so \(R = 3\) and \(1 \lt x \lt 7\). Endpoints: at \(x = 7\), \(\displaystyle\sum n\) diverges (nth-term test); at \(x = 1\), \(\displaystyle\sum(-1)^n n\) diverges (terms don't approach 0). Interval of convergence: \((1, 7)\).

  10. Let \(f(x) = \dfrac{x}{1 + x^2}\). (a) Find the first four nonzero terms and the general term of the Maclaurin series for \(f\). (b) Find \(f^{(5)}(0)\). (c) Use series to evaluate \(\displaystyle\lim_{x\to 0}\frac{\sin x - x}{x^3}\).

    Show answer

    (a) Substitute \(-x^2\) for \(x\) in \(\dfrac{1}{1 - x} = \sum x^n\): \(\dfrac{1}{1 + x^2} = 1 - x^2 + x^4 - x^6 + \cdots\), then multiply by \(x\): \(f(x) = x - x^3 + x^5 - x^7 + \cdots = \displaystyle\sum_{n=0}^{\infty}(-1)^n x^{2n+1}\), for \(|x| \lt 1\). (b) The coefficient of \(x^5\) is \(\dfrac{f^{(5)}(0)}{5!} = 1\), so \(f^{(5)}(0) = 5! = 120\). (c) \(\sin x - x = -\dfrac{x^3}{6} + \dfrac{x^5}{120} - \cdots\), so \(\dfrac{\sin x - x}{x^3} = -\dfrac{1}{6} + \dfrac{x^2}{120} - \cdots \to -\dfrac{1}{6}\).

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