Math Guides · Guide 4 of 4 · 23 chapters

Calculus from Scratch: the mathematics of change

Limits, derivatives and integrals, built one idea at a time. This guide assumes you've finished the algebra, geometry and bridge guides, especially functions, exponentials, logarithms and trigonometry.

Work the problems on paper first, then press Show answers to check yourself. Tick I've got this at the end of a chapter to track your progress; it's saved in this browser only.

Part I · Limits and continuity

Chapter 1

What a limit is

Calculus answers two questions: how fast is something changing right now, and how much has built up over time? Both depend on one idea, the limit. A limit asks what value a function approaches as its input gets closer and closer to some number, whether or not the function ever gets there.

Take f(x) = x2 − 1x − 1. At x = 1 it's 00, which is undefined. But look at what happens nearby:

x0.90.990.99911.0011.011.1
f(x)1.91.991.999undefined2.0012.012.1

From both sides, the outputs close in on 2. We write limx→1 f(x) = 2, read "the limit of f(x) as x approaches 1 is 2." The graph is the line y = x + 1 with a single hole at x = 1.

−112324xyhole at (1, 2)
f(x) = x2 − 1x − 1 is undefined at x = 1, but its values head toward 2 from both sides.
The limit is about the journey, not the destination. What f does exactly at x = a doesn't affect limx→a f(x).

One-sided limits

limx→a− f(x) means approaching from the left (inputs smaller than a); limx→a+ f(x) means from the right. The ordinary two-sided limit exists only when both one-sided limits exist and are equal. If they disagree, the graph jumps, and the limit does not exist (DNE).

Practice

  1. Find limx→2 (3x + 1).
  2. Let f(x) = x + 1 for x < 2 and f(x) = 2x for x ≥ 2. Find both one-sided limits at x = 2, and the two-sided limit.
  3. Let g(x) = x + 1 for every x ≠ 1, but g(1) = 5. Find limx→1 g(x) and g(1).
Show answersHide answers

1. 7

As x gets close to 2, 3x gets close to 6 and 3x + 1 gets close to 7. For a smooth, unbroken function like this one, the limit is just the value you get by plugging in. Chapter 2 makes that a rule.

2. Left 3, right 4, two-sided DNE

From the left, use the piece for x < 2: x + 1 approaches 3. From the right, use the piece for x ≥ 2: 2x approaches 4. The two sides disagree, so the graph jumps at x = 2 and limx→2 f(x) does not exist.

3. The limit is 2; g(1) = 5

Near 1, every value of g comes from x + 1, which approaches 2. The single point g(1) = 5 sits off the line and has no effect on the limit. This is exactly why limits are useful: they describe a function's trend even where its value is missing or misleading.

Chapter 2

Computing limits with algebra

Tables are slow. In practice you find limits with a short sequence of algebra moves.

  1. Try direct substitution. For polynomials, roots, exponentials and trig functions, if plugging in a gives a real number, that number is the limit.
  2. If you get 00, the problem isn't finished. This "indeterminate form" means some factor is hiding. Simplify, then substitute again.
  3. Factor and cancel when you see polynomials.
  4. Rationalize (multiply top and bottom by the conjugate) when you see a square root.
  5. If you get a nonzero number over 0, like 50, the function blows up; see Chapter 3.
limx→1 x2 − 1x − 1substitution gives 0/0
= limx→1 (x + 1)(x − 1)x − 1factor the top
= limx→1 (x + 1) = 2cancel, then substitute

Canceling is allowed because the limit never uses x = 1 itself, only values near it, where x − 1 ≠ 0.

Rationalizing uses the difference of squares, (√a − b)(√a + b) = a − b2, to get rid of the root that causes the 00.

Practice: evaluate

  1. limx→3 x2 − 9x − 3
  2. limx→−2 x2 + 5x + 6x + 2
  3. limx→4 √x − 2x − 4
Show answersHide answers

1. 6

Substitution gives 00, so factor the difference of squares: (x + 3)(x − 3)x − 3. Cancel x − 3 to leave x + 3, then substitute: 3 + 3 = 6.

2. 1

Substitution gives 4 − 10 + 6 = 0 on top and 0 on the bottom. Factor: x2 + 5x + 6 = (x + 2)(x + 3). Cancel x + 2 to leave x + 3, and at x = −2 that's 1.

3. 14

Substitution gives 00, and there's a root, so multiply top and bottom by the conjugate √x + 2. The top becomes x − 4, which cancels with the bottom, leaving 1√x + 2. At x = 4 that's 12 + 2 = 14. (You could also notice that x − 4 = (√x − 2)(√x + 2) and factor directly.)

Chapter 3

Limits involving infinity

Infinity shows up in two different ways. ∞ isn't a number; it's shorthand for "grows without bound."

Infinite limits: vertical asymptotes

When the bottom of a fraction heads to 0 and the top doesn't, the fraction grows huge. limx→0 1x2 = ∞, because x2 is a tiny positive number near 0. The line x = 0 is a vertical asymptote. Check the sign of each one-sided limit separately; they can go opposite ways.

Limits at infinity: horizontal asymptotes

limx→∞ f(x) asks where the outputs head as x gets enormous. For a rational function, only the highest-power terms on top and bottom matter in the long run. Divide everything by the highest power of x in the denominator, and remember that cxn → 0.

Degrees of top vs bottomlimx→±∞Example
top smaller05xx2 + 1 → 0
equalratio of the leading coefficients6x2 + x2x2 − 7 → 3
top biggerno finite limit (grows without bound)x3x + 1 → ∞

Exponentials beat powers: limx→∞ x100ex = 0. And e−x → 0 as x → ∞.

Practice

  1. limx→∞ 3x2 + 25x2 − x
  2. limx→∞ 4x + 1x2 + 7
  3. Find limx→2+ 1x − 2 and limx→2− 1x − 2.
Show answersHide answers

1. 35

Top and bottom are both degree 2, so the limit is the ratio of leading coefficients, 35. To see why, divide every term by x2: 3 + 2/x25 − 1/x. As x → ∞ the small pieces vanish, leaving 35. The graph levels off at the horizontal asymptote y = 35.

2. 0

The bottom has the higher degree, so it outgrows the top and the fraction shrinks toward 0. Dividing by x2 gives 4/x + 1/x21 + 7/x2 → 01 = 0.

3. +∞ from the right, −∞ from the left

Just right of 2, x − 2 is a tiny positive number, so 1x − 2 is huge and positive. Just left of 2, x − 2 is tiny and negative, so the fraction is huge and negative. The two sides disagree, so the two-sided limit doesn't exist, and x = 2 is a vertical asymptote.

Chapter 4

Continuity

Informally, a function is continuous if you can draw its graph without lifting your pencil. Formally, f is continuous at x = a when three things are true:

1. f(a) is defined. 2. limx→a f(x) exists. 3. They're equal: limx→a f(x) = f(a).

Three kinds of break can happen:

  • Removable (a hole): the limit exists but f(a) is missing or wrong. Chapter 1's graph is an example.
  • Jump: the one-sided limits disagree, as with many piecewise functions.
  • Infinite: a vertical asymptote.

Polynomials, ex, sin x and cos x are continuous everywhere. Rational functions are continuous wherever the bottom isn't zero; ln x for x > 0.

The Intermediate Value Theorem follows from continuity. If f is continuous on [a, b], it hits every value between f(a) and f(b). For example, if f(1) < 0 and f(2) > 0, the graph must cross zero somewhere between 1 and 2.

Practice

  1. Is f(x) = x2 − 4x − 2 continuous at x = 2? What kind of break is it?
  2. Find k so that f(x) = kx + 1 for x < 3 and f(x) = x2 − 2 for x ≥ 3 is continuous.
  3. Where is f(x) = 1x2 − 9 discontinuous?
Show answersHide answers

1. No; a removable discontinuity (a hole at (2, 4))

f(2) is 00, undefined, so condition 1 fails. The limit does exist: factoring gives x + 2, so the limit is 4. A hole where the limit exists is removable; defining f(2) = 4 would fix it.

2. k = 2

For no jump, the two pieces must meet at x = 3. The right piece gives 32 − 2 = 7 (and that's f(3)). The left piece approaches 3k + 1. Set them equal: 3k + 1 = 7, so k = 2.

3. At x = 3 and x = −3

A rational function breaks only where its denominator is zero: x2 − 9 = 0 when x = ±3. Neither factor cancels with the top, so both are vertical asymptotes, which are infinite discontinuities.

Part II · Derivatives

Chapter 5

The derivative: slope at a point

You know how to find the slope of a line through two points. But what's the slope of a curve at a single point? One point isn't enough for rise over run. The trick is to take a second point, compute the slope of the line through both (a secant line), then slide the second point closer and closer. The limit of those slopes is the slope of the tangent line, the line that just touches the curve there.

1212345xy(1, 1)(2, 4)(1.5, 2.25)tangent, slope 2
On y = x2, secants from (1, 1) have slopes 3 (to x = 2) and 2.5 (to x = 1.5). As the second point slides in, the slopes approach 2, the slope of the tangent.

If the second point is a distance h to the right, the secant's slope is f(x + h) − f(x)h. Letting h → 0 gives the derivative:

f′(x) = limh→0 f(x + h) − f(x)h

The derivative is itself a function: feed it any x and it returns the slope of f there. It's also written dydx ("dee-y dee-x"), suggesting a tiny change in y over a tiny change in x.

f(x) = x2
(x + h)2 − x2h = 2xh + h2hexpand; the x² terms cancel
= 2x + hdivide by h
f′(x) = 2xlet h → 0

At x = 1 the slope is 2(1) = 2, matching the graph. The tangent line at x = a is y − f(a) = f′(a)(x − a), which is point-slope form from the algebra guide.

A function isn't differentiable where its graph has a corner (like |x| at 0), a break, or a vertical tangent.

Practice

  1. Use the limit definition to find f′(x) for f(x) = 3x + 5.
  2. Use the limit definition to find f′(x) for f(x) = x2 + x.
  3. Find the equation of the tangent line to y = x2 at x = 3.
Show answersHide answers

1. f′(x) = 3

f(x + h) − f(x) = (3x + 3h + 5) − (3x + 5) = 3h. Divide by h to get 3, and there's no h left for the limit to change. That makes sense: f is a line with slope 3, so its slope is 3 everywhere.

2. f′(x) = 2x + 1

f(x + h) = x2 + 2xh + h2 + x + h. Subtract f(x) = x2 + x to leave 2xh + h2 + h. Divide by h: 2x + h + 1. Let h → 0: 2x + 1. Notice it's the derivative of x2 plus the derivative of x, a pattern Chapter 6 makes official.

3. y = 6x − 9

From the example, the slope is f′(3) = 2(3) = 6. The point is (3, 9). Point-slope: y − 9 = 6(x − 3), so y = 6x − 18 + 9 = 6x − 9. Check: at x = 3 the line gives 9 ✓.

Chapter 6

The power rule and friends

Using the limit definition every time would be exhausting. Instead, a few rules (each proven from the definition) handle almost everything.

RuleIn symbolsExample
Constantddx c = 0ddx 7 = 0
Powerddx xn = nxn−1ddx x5 = 5x4
Constant multipleddx cf(x) = cf′(x)ddx 4x3 = 12x2
Sum and difference(f ± g)′ = f′ ± g′ddx (x2 + x) = 2x + 1
Power rule: bring the exponent down in front, then subtract 1 from the exponent. It works for any real n: negative, fractional, anything.

To use it on roots and fractions, rewrite them as powers first (the exponent rules from the algebra and bridge guides):

  • √x = x1/2, so its derivative is 12x−1/2 = 12√x.
  • 1x3 = x−3, so its derivative is −3x−4 = −3x4.

A line has a constant slope, so ddx(mx + b) = m. And a constant shifts a graph up or down without changing its steepness, so its derivative is 0.

Practice: differentiate

  1. f(x) = 4x3 − 5x2 + 7x − 2
  2. f(x) = √x + 1x2
  3. Find the slope of y = x4 − 2x at x = 1.
Show answersHide answers

1. f′(x) = 12x2 − 10x + 7

Take each term separately. 4x3 becomes 4 · 3x2 = 12x2; −5x2 becomes −10x; 7x becomes 7; and the constant −2 becomes 0. The degree drops by one, from a cubic to a quadratic.

2. f′(x) = 12√x − 2x3

Rewrite as x1/2 + x−2. Power rule: 12x−1/2 and −2x−3. Converting back to roots and fractions gives the answer. The key step is the rewrite; the power rule can't be applied to 1x2 as written.

3. 2

The derivative is y′ = 4x3 − 2. Plug in x = 1: 4 − 2 = 2. The derivative gives the slope everywhere; plugging in picks out one point. Find the derivative first, then substitute. Substituting first gives a constant, whose derivative is 0.

Chapter 7

The product and quotient rules

The derivative of a product is not the product of the derivatives. For x · x2 = x3, the true derivative is 3x2, but (1)(2x) = 2x is wrong. Products and quotients need their own rules.

Product rule: (fg)′ = f′g + fg′
Quotient rule: (fg)′ = f′g − fg′g2

Read the product rule as "derivative of the first times the second, plus the first times the derivative of the second." For the quotient rule, a memory line helps: "low d-high minus high d-low, over the square of what's below." The order matters in the quotient rule because of the minus sign.

ddx (x2 sin x)f = x², g = sin x
= 2x · sin x + x2 · cos xf′g + fg′

Before using either rule, check whether algebra makes it unnecessary. (x + 1)(x − 1) is just x2 − 1, and x3 + xx is just x2 + 1.

Practice: differentiate

  1. y = (x2 + 1)(3x − 4)
  2. y = xx + 1
  3. y = 2x − 1x2
Show answersHide answers

1. y′ = 9x2 − 8x + 3

Product rule with f = x2 + 1 and g = 3x − 4: 2x(3x − 4) + (x2 + 1)(3) = 6x2 − 8x + 3x2 + 3. Combine to 9x2 − 8x + 3. Check by expanding first: 3x3 − 4x2 + 3x − 4 has derivative 9x2 − 8x + 3 ✓.

2. y′ = 1(x + 1)2

Quotient rule with top f = x and bottom g = x + 1, both with derivative 1: (1)(x + 1) − (x)(1)(x + 1)2. The top simplifies to x + 1 − x = 1. Leave the denominator squared; there's no need to expand it.

3. y′ = 2 − 2xx3

Quotient rule: 2 · x2 − (2x − 1)(2x)x4 = 2x2 − 4x2 + 2xx4 = −2x2 + 2xx4. Divide top and bottom by x: −2x + 2x3. An easier route is to split the fraction first: 2x−1 − x−2 has derivative −2x−2 + 2x−3, the same thing.

Chapter 8

The chain rule

The chain rule differentiates compositions, a function inside another function, like (3x + 1)5 or sin(x2). It's the most-used rule in calculus.

Chain rule: ddx f(g(x)) = f′(g(x)) · g′(x). The derivative of the outside, with the inside left alone, times the derivative of the inside.

Why multiply? Rates multiply. If y changes 3 times as fast as u, and u changes 2 times as fast as x, then y changes 6 times as fast as x. In Leibniz notation: dydx = dydu · dudx.

y = (x2 + 1)3outside: ( )³, inside: x² + 1
y′ = 3(x2 + 1)2 · 2xoutside′ (inside untouched) × inside′
= 6x(x2 + 1)2tidy up

The classic mistake is stopping after the outside derivative and forgetting "times the inside's derivative." A good habit: whenever you differentiate something that isn't plain x, ask "what's inside?" and multiply by its derivative. Layers can stack; just work from the outside in, multiplying at each layer.

Practice: differentiate

  1. y = (3x + 1)5
  2. y = √x2 + 9
  3. y = (x2 − 4x)3
Show answersHide answers

1. y′ = 15(3x + 1)4

Outside is ( )⁵, with derivative 5( )4. Inside is 3x + 1, with derivative 3. Multiply: 5(3x + 1)4 · 3 = 15(3x + 1)4. Without the chain rule you'd have to expand a fifth power.

2. y′ = x√x2 + 9

Write it as (x2 + 9)1/2. Outside: 12( )−1/2. Inside derivative: 2x. Multiply: 12(x2 + 9)−1/2 · 2x. The 2s cancel, and the negative exponent sends the root to the bottom.

3. y′ = 3(x2 − 4x)2(2x − 4)

Outside: 3( )2. Inside derivative: 2x − 4. So 3(x2 − 4x)2(2x − 4). You can factor it further to 6(x − 2)(x2 − 4x)2, which is handy if you need to find where the derivative is zero.

Chapter 9

Derivatives of trig, exponential and log functions

These come from the limit definition plus a couple of special limits. Memorize the table; combined with the chain rule, it covers most of what you'll meet.

FunctionDerivativeWith the chain rule
sin xcos xddx sin(u) = cos(u) · u′
cos x−sin xddx cos(u) = −sin(u) · u′
tan xsec2 xddx tan(u) = sec2(u) · u′
exexddx eu = eu · u′
ln x1xddx ln(u) = u′u
axax ln addx 2x = 2x ln 2
ex is its own derivative. Its slope at every point equals its height. That's what makes e ≈ 2.718 the natural base.

These formulas need radians. In degrees, extra conversion factors appear everywhere. Watch the signs: the derivative of cosine is negative sine. A handy check: at x = 0, cos x is at its peak, so its slope there should be 0, and −sin 0 = 0 ✓.

Log rules from the bridge guide can make life easier: ln(x3) = 3 ln x, whose derivative is 3x.

Practice: differentiate

  1. y = sin(3x)
  2. y = ex2
  3. y = x ln x
Show answersHide answers

1. y′ = 3cos(3x)

Outside is sine, whose derivative is cosine; keep the inside 3x as it is. Then multiply by the inside's derivative, 3. Writing just cos(3x) is the forgotten-chain-rule error.

2. y′ = 2x ex2

The exponential copies itself, ex2, then the chain rule multiplies by the derivative of the exponent, 2x. A common slip is to apply the power rule to ex2; the power rule is for a variable base and a constant exponent, and this is the reverse.

3. y′ = ln x + 1

It's a product of x and ln x. Product rule: (1)(ln x) + (x)(1x) = ln x + 1. The second term simplifies because x · 1x = 1.

Chapter 10

Implicit differentiation

Some curves can't easily be written as y = …. The circle x2 + y2 = 25 is one example. You can still find its slope without solving for y: differentiate both sides with respect to x, treating y as a function of x.

Every time you differentiate a y term, multiply by y′ (the chain rule, since y depends on x). Then solve the equation for y′.
x2 + y2 = 25
2x + 2y · y′ = 0d/dx of y² is 2y · y′
y′ = −xysolve for y′

At (3, 4) the slope is −34. That fits the geometry guide: a tangent to a circle is perpendicular to the radius, and the radius to (3, 4) has slope 43, the negative reciprocal.

Products like xy need the product rule: ddx(xy) = 1 · y + x · y′. Implicit derivatives often contain both x and y; that's normal. You need both coordinates of a point to get a number.

Practice

  1. Find dydx for x3 + y3 = 9.
  2. Find the slope of xy = 6 at the point (2, 3).
  3. Find the slope of y2 = 4x at the point (1, 2).
Show answersHide answers

1. dydx = −x2y2

Differentiate: 3x2 + 3y2 · y′ = 0. The y3 term gets a y′ because of the chain rule. Subtract 3x2 and divide by 3y2: y′ = −3x23y2 = −x2y2.

2. −32

Product rule on the left: y + xy′ = 0, since the derivative of the constant 6 is 0. Solve: y′ = −yx. At (2, 3): −32. You could also solve for y = 6/x and get y′ = −6/x2 = −64, the same answer.

3. 1

Differentiate: 2y · y′ = 4, so y′ = 2y. At (1, 2): 22 = 1. This curve is a sideways parabola, which fails the vertical line test, so implicit differentiation is the natural tool for it.

Part III · Using derivatives

Chapter 11

Rates of change and motion

A derivative is a rate: how fast the output changes per unit of input. Its units are "output units per input unit." If C(n) is the cost in dollars of making n items, C′(n) is in dollars per item, approximately the cost of one more item.

Position, velocity, acceleration

If s(t) is an object's position at time t:

  • Velocity is v(t) = s′(t). Its sign tells the direction: positive is forward (or up), negative is backward (or down).
  • Speed is |v(t)|, how fast without regard to direction.
  • Acceleration is a(t) = v′(t) = s″(t), the second derivative.
  • The object is at rest when v = 0, and speeding up when v and a have the same sign.

The average rate over an interval is the secant slope, s(b) − s(a)b − a. The instantaneous rate at a moment is the derivative. A car's trip average might be 50 mph while its speedometer reads 65 at one instant.

Practice: a particle moves with s(t) = t3 − 6t2 + 9t (meters, seconds)

  1. Find its velocity at t = 2.
  2. When is it at rest?
  3. Find its acceleration at t = 3.
Show answersHide answers

1. −3 m/s

Velocity is the derivative: v(t) = 3t2 − 12t + 9. At t = 2: 12 − 24 + 9 = −3. The negative sign means it's moving backward at that moment, at a speed of 3 m/s.

2. At t = 1 and t = 3 seconds

At rest means v = 0: 3t2 − 12t + 9 = 0. Divide by 3 and factor: (t − 1)(t − 3) = 0. At those two moments the particle stops and reverses direction: forward until t = 1, backward between 1 and 3, forward again after 3.

3. 6 m/s²

Acceleration is the derivative of velocity: a(t) = 6t − 12. At t = 3: 18 − 12 = 6 m/s². The particle is momentarily at rest then, but its velocity is increasing, so it's about to move forward again.

Chapter 12

Related rates

When two quantities are linked by an equation and both change over time, their rates are linked too. If you know one rate, you can find the other. These problems use implicit differentiation with respect to time.

  1. Draw a picture and name the changing quantities with letters.
  2. Write the equation that connects them, often from geometry: Pythagoras, area, volume, similar triangles.
  3. Differentiate both sides with respect to t. Every variable gets its own rate: x becomes dxdt.
  4. Only now, substitute the numbers for the moment you care about, and solve for the unknown rate.

Step 4's order matters. Plugging in a value like r = 5 before differentiating turns a changing quantity into a constant, and its rate becomes 0.

Signs carry meaning: a decreasing quantity has a negative rate. Helpful formulas: circle area A = πr2, sphere volume V = 43πr3, cone volume V = 13πr2h.

Practice

  1. A circle's radius grows at 2 cm/s. How fast is its area growing when r = 5 cm?
  2. A 10-ft ladder leans on a wall. Its foot slides away from the wall at 1 ft/s. How fast is the top sliding down when the foot is 6 ft from the wall?
  3. A spherical balloon is inflated at 100 cm³/s. How fast is its radius growing when r = 5 cm?
Show answersHide answers

1. 20π ≈ 62.8 cm²/s

Equation: A = πr2. Differentiate with respect to time: dAdt = 2πr drdt. Substitute r = 5 and drdt = 2: 2π(5)(2) = 20π. The same radius growth adds more area as the circle gets bigger.

2. 0.75 ft/s downward

Let x = distance of the foot from the wall and y = height of the top. Pythagoras: x2 + y2 = 100. Differentiate: 2x dxdt + 2y dydt = 0. When x = 6, y = 8 (a 6-8-10 triangle). Substitute: 2(6)(1) + 2(8)dydt = 0, so dydt = −1216 = −0.75. Negative means the top is moving down.

3. 1π ≈ 0.318 cm/s

Equation: V = 43πr3. Differentiate: dVdt = 4πr2 drdt. Substitute dVdt = 100 and r = 5: 100 = 4π(25)drdt = 100πdrdt, so drdt = 1π. As the balloon grows, the same air flow raises the radius more slowly.

Chapter 13

Increasing, decreasing and extreme values

The sign of the derivative tells you the shape of a graph. Where f′ > 0 the function is increasing; where f′ < 0 it's decreasing. Peaks and valleys happen where it switches.

A critical point is where f′(x) = 0 or f′ doesn't exist. These are the only candidates for local maximums and minimums.

First derivative test: at a critical point, if f′ changes from + to −, it's a local max. From − to +, a local min. No sign change means neither.
−2−112−22xylocal max (−1, 2)local min (1, −2)
f(x) = x3 − 3x has f′(x) = 3x2 − 3 = 3(x − 1)(x + 1). It's positive, then negative, then positive, so there's a peak at x = −1 and a valley at x = 1.

Absolute extremes on a closed interval

The highest and lowest values on [a, b] (the absolute max and min) are guaranteed to exist for a continuous function. To find them, use the closed interval method: evaluate f at every critical point inside the interval and at both endpoints. The biggest value is the max and the smallest is the min.

Practice

  1. Where is f(x) = x2 − 6x + 1 increasing and decreasing? Find its local extreme.
  2. Find and classify the critical points of f(x) = x3 − 12x.
  3. Find the absolute max and min of f(x) = x3 − 3x on [0, 3].
Show answersHide answers

1. Decreasing on (−∞, 3), increasing on (3, ∞); local min (3, −8)

f′(x) = 2x − 6, which is zero at x = 3. Test a value on each side: f′(0) = −6 < 0 and f′(4) = 2 > 0. The sign goes − to +, so it's a minimum, with f(3) = 9 − 18 + 1 = −8. This matches what you know about an upward parabola's vertex.

2. Local max at (−2, 16), local min at (2, −16)

f′(x) = 3x2 − 12 = 3(x − 2)(x + 2), zero at x = ±2. Test: f′(−3) = 15 > 0, f′(0) = −12 < 0, f′(3) = 15 > 0. So + to − at −2 (a max) and − to + at 2 (a min). Values: f(−2) = −8 + 24 = 16 and f(2) = 8 − 24 = −16.

3. Absolute max 18 at x = 3; absolute min −2 at x = 1

Critical points are x = ±1, but only x = 1 lies in [0, 3]. Evaluate the candidates: f(0) = 0, f(1) = −2, f(3) = 27 − 9 = 18. The endpoint x = 3 wins for the max. Endpoints are easy to forget, and they are often where the answer is.

Chapter 14

Concavity and the second derivative

The second derivative f″ is the rate of change of the slope. It describes how the graph bends.

  • f″ > 0: slopes are increasing, and the graph is concave up, shaped like a cup ∪.
  • f″ < 0: slopes are decreasing, and the graph is concave down, shaped like a cap ∩.
  • An inflection point is where concavity changes. Look where f″ = 0 or is undefined, then confirm the sign actually changes.
−2−112−22xyconcave downconcave upinflection (0, 0)
For f(x) = x3 − 3x, f″(x) = 6x: negative for x < 0 (concave down), positive for x > 0 (concave up), with an inflection point at the origin.
Second derivative test: at a critical point where f′(c) = 0: if f″(c) > 0, it's a local min (the bottom of a cup). If f″(c) < 0, a local max. If f″(c) = 0, the test says nothing; use the first derivative test.

Practice: use f(x) = x3 − 6x2 + 5 for 1 and 2

  1. Where is f concave up and concave down? Find the inflection point.
  2. Use the second derivative test to classify the critical points of f.
  3. g(x) = x4 has g′(0) = 0 and g″(0) = 0. What does the second derivative test tell you about x = 0, and what is really there?
Show answersHide answers

1. Concave down on (−∞, 2), up on (2, ∞); inflection point (2, −11)

f′(x) = 3x2 − 12x and f″(x) = 6x − 12, which is zero at x = 2. It's negative to the left and positive to the right, so concavity really does change there. The point's height is f(2) = 8 − 24 + 5 = −11.

2. Local max at (0, 5), local min at (4, −27)

f′(x) = 3x(x − 4), zero at x = 0 and x = 4. f″(0) = −12 < 0, so it's concave down there: a max, with f(0) = 5. f″(4) = 24 − 12 = 12 > 0, so concave up: a min, with f(4) = 64 − 96 + 5 = −27.

3. The test is inconclusive; x = 0 is a minimum

When f″ = 0 the second derivative test gives no answer. Use the first derivative test instead: g′(x) = 4x3 is negative for x < 0 and positive for x > 0, so − to +, a minimum. Graphically x4 is a flattened U. Compare x3, which also has f′ = f″ = 0 at 0 but no extreme at all.

Chapter 15

Optimization

Optimization uses derivatives to find the best possible value: the biggest area, the cheapest design, the shortest route. It's one of calculus's most practical uses.

  1. Identify what to maximize or minimize, and write a formula for it.
  2. Use the constraint (the fixed amount of fence, the fixed volume) to rewrite the formula in one variable.
  3. Find the domain: what values make physical sense?
  4. Differentiate, set equal to 0, solve.
  5. Confirm it's a max or min (first or second derivative test, or compare endpoints), then answer the question asked, with units.

Step 2 is where most of the thinking happens. Typically the formula has two variables, and the constraint lets you replace one of them.

Practice

  1. Two positive numbers add to 20. What's the largest their product can be?
  2. A farmer has 200 m of fence to enclose a rectangle along a straight river. No fence is needed on the river side. What dimensions give the most area?
  3. An open-top box is made from a 12 in × 12 in sheet by cutting equal squares from the corners and folding up the sides. What size squares give the largest volume, and what is that volume?
Show answersHide answers

1. 100 (from 10 and 10)

Maximize P = xy with constraint x + y = 20, so y = 20 − x and P = 20x − x2. P′ = 20 − 2x = 0 gives x = 10, so y = 10. P″ = −2 < 0 confirms a max. The product is 100.

2. 50 m by 100 m (100 m along the river), area 5,000 m²

Let x be each side perpendicular to the river and y the side parallel to it. Fence: 2x + y = 200, so y = 200 − 2x. Area: A = x(200 − 2x) = 200x − 2x2. A′ = 200 − 4x = 0 gives x = 50, so y = 100. A″ = −4 confirms a max: 50 × 100 = 5,000 m².

3. 2-inch squares, volume 128 in³

Cutting squares of side x leaves a base of (12 − 2x) by (12 − 2x) and height x, so V = x(12 − 2x)2 with 0 < x < 6. Product and chain rules: V′ = (12 − 2x)2 − 4x(12 − 2x) = (12 − 2x)(12 − 6x). That's zero at x = 6 (no box at all) or x = 2. V(2) = 2 · 82 = 128, and since V is 0 at both ends of the domain, this is the max.

Chapter 16

Linear approximation and L'Hôpital's rule

Linear approximation

Zoom in far enough on a smooth curve and it looks like its tangent line. So near x = a, the tangent line is a good stand-in for the function:

L(x) = f(a) + f′(a)(x − a), so f(x) ≈ L(x) for x near a.

For example, √4.1: use f(x) = √x at a = 4, where f(4) = 2 and f′(4) = 12√4 = 14. So √4.1 ≈ 2 + 14(0.1) = 2.025. The true value is 2.02485…, very close.

L'Hôpital's rule

Some 00 limits can't be factored, like sin xx at 0. L'Hôpital's rule handles them with derivatives:

If limx→a f(x)g(x) gives 00 or ∞∞, then it equals limx→a f′(x)g′(x) (if that limit exists).

Differentiate the top and bottom separately; this is not the quotient rule. Check the form first, since using the rule on a limit that isn't 00 or ∞∞ gives wrong answers. You can apply it again if the new limit is still indeterminate.

Practice

  1. Use linear approximation at a = 9 to estimate √9.2.
  2. limx→0 sin xx
  3. limx→0 ex − 1 − xx2
Show answersHide answers

1. About 3.0333

f(9) = 3 and f′(9) = 12 · 3 = 16. Then L(9.2) = 3 + 16(0.2) = 3 + 0.0333 = 3.0333. The calculator value is 3.03315, so the estimate is off by less than 0.0002.

2. 1

Substitution gives 00, so L'Hôpital applies. The derivative of the top is cos x and of the bottom is 1, so the limit is cos 01 = 1. This famous limit means sin x ≈ x for small x in radians, which is exactly what linear approximation at 0 says too.

3. 12

At x = 0 the top is 1 − 1 − 0 = 0 and the bottom is 0. L'Hôpital once: ex − 12x, which is still 00. Apply it again: ex2, and at 0 that's 12. Re-check the form each time before differentiating again.

Part IV · Integrals

Chapter 17

Antiderivatives

An antiderivative runs the derivative backward: given f, find a function F with F′ = f. Since x2, x2 + 5 and x2 − 100 all have derivative 2x, antiderivatives come in families that differ by a constant. We write the whole family with the indefinite integral:

∫ 2x dx = x2 + C. The + C is part of the answer, and leaving it off is an error.
IntegralResultCheck by differentiating
∫ xn dx (n ≠ −1)xn+1n + 1 + Cadd 1 to the power, divide by the new power
∫ 1x dxln|x| + Cthe gap in the power rule
∫ ex dxex + C
∫ cos x dxsin x + C
∫ sin x dx−cos x + Csince (−cos x)′ = sin x
∫ sec2 x dxtan x + C

Sums and constant multiples work term by term, just like derivatives. Products and quotients do not; those need the techniques in Chapters 20 and 22.

Finding C: if you know one point on F, you can pin down the constant. This is called an initial value problem. You can always check an antiderivative by differentiating it.

Practice

  1. ∫ (6x2 − 4x + 3) dx
  2. ∫ (√x + 1x) dx
  3. Find f(x) if f′(x) = 2x + 3 and f(0) = 5.
Show answersHide answers

1. 2x3 − 2x2 + 3x + C

Term by term: 6 · x33 = 2x3, −4 · x22 = −2x2, and 3 becomes 3x. Add a single + C at the end. Check: the derivative is 6x2 − 4x + 3 ✓.

2. 23x3/2 + ln|x| + C

Rewrite √x = x1/2. Add one to the power to get x3/2, then divide by 32, which is multiplying by 23. The 1x term is the power rule's exception, giving ln|x|. The absolute value makes the formula valid for negative x too.

3. f(x) = x2 + 3x + 5

Antidifferentiate: f(x) = x2 + 3x + C. Use the known point: f(0) = 0 + 0 + C = 5, so C = 5. Of the whole family of parallel curves, the condition picks out the one passing through (0, 5).

Chapter 18

Area under a curve and Riemann sums

The second big question in calculus is how much accumulates. If velocity is constant, distance is rate × time, the area of a rectangle under a flat graph. When the graph curves, slice the region into thin rectangles, add their areas, and let the slices get infinitely thin.

0.511.521234xy
Four rectangles of width 0.5 under y = x2 on [0, 2], using each slice's right edge for the height. Their total area is 0.5(0.25 + 1 + 2.25 + 4) = 3.75, an overestimate here because the curve is rising.

This is a Riemann sum. With n slices of width Δx = b − an, add up height × width for every slice. You can take the heights from left edges, right edges or midpoints. More slices give a better estimate, and the limit as n → ∞ is exact. That limit is the definite integral:

∫ba f(x) dx is the net (signed) area between f and the x-axis from a to b. Area above the axis counts as positive and area below counts as negative.

The ∫ is a stretched S, for "sum," and dx is the infinitely thin width. When the region is a familiar shape, geometry gives the integral exactly, with no limits needed.

Useful properties: ∫aa f dx = 0; reversing the limits flips the sign; and integrals over side-by-side intervals add.

Practice

  1. Estimate ∫20 x2 dx with 4 rectangles, using left edges.
  2. Use geometry to find ∫30 2x dx.
  3. Use geometry to find ∫40 √16 − x2 dx.
Show answersHide answers

1. 1.75

The left edges are at x = 0, 0.5, 1, 1.5, with heights 0, 0.25, 1, 2.25. Multiply the total by the width: 0.5(3.5) = 1.75. That's an underestimate, since each rectangle stays below the rising curve. The true value is between 1.75 and the right-edge estimate of 3.75; Chapter 19 shows it's 83 ≈ 2.67.

2. 9

The graph of y = 2x from 0 to 3 forms a right triangle with base 3 and height 2(3) = 6. Area = 12 · 3 · 6 = 9. You can check it later with the Fundamental Theorem: [x2] from 0 to 3 is 9.

3. 4π ≈ 12.57

y = √16 − x2 is the top half of the circle x2 + y2 = 16, radius 4. From x = 0 to 4 it covers one quarter of the circle, so the area is 14π(4)2 = 4π. Spotting a circle or triangle inside an integral can save a lot of work.

Chapter 19

The Fundamental Theorem of Calculus

Derivatives (slopes) and integrals (areas) look like separate subjects. The Fundamental Theorem says they're inverse operations, and that makes areas easy to compute.

FTC, evaluation part: if F′ = f, then ∫ba f(x) dx = F(b) − F(a).

To find an exact area: find any antiderivative, evaluate it at the top limit, and subtract its value at the bottom limit. The + C cancels in the subtraction, so leave it out. The shorthand is [F(x)]ba = F(b) − F(a).

∫20 x2 dx = [ x33 ]20antiderivative
= 83 − 0 = 83top minus bottom

That's the exact answer the Riemann sums in Chapter 18 were closing in on.

FTC, accumulation part: ddx ∫xa f(t) dt = f(x). If you build a function by accumulating area under f, its rate of growth is f. Intuitively, the area grows fastest where the curve is tallest.

The theorem also gives integrals a meaning: integrating a rate gives a total change. Integrating velocity gives the change in position; integrating a flow rate gives the total volume.

Practice: evaluate

  1. ∫31 (2x + 1) dx
  2. ∫π0 sin x dx
  3. ddx ∫x0 √1 + t3 dt
Show answersHide answers

1. 10

The antiderivative is x2 + x. At the top: 9 + 3 = 12. At the bottom: 1 + 1 = 2. Subtract: 12 − 2 = 10. As a check, the region is a trapezoid with parallel sides f(1) = 3 and f(3) = 7 and width 2: 3 + 72 · 2 = 10 ✓.

2. 2

The antiderivative of sin x is −cos x. Evaluate: −cos π − (−cos 0) = −(−1) + 1 = 2. The sign juggling is the hard part: cos π = −1, and you subtract a negative. One hump of the sine curve has an area of exactly 2.

3. √1 + x3

By the accumulation part, differentiating an integral whose upper limit is x just gives back the integrand, with t replaced by x. You don't need to find an antiderivative of √1 + t3, which is fortunate, because no simple formula for it exists.

Chapter 20

Integration by substitution

u-substitution is the chain rule run backward. Look for an "inside" function whose derivative also appears (up to a constant) in the integrand.

  1. Choose u, usually the inside of a power, root, exponential or trig function.
  2. Compute du = u′ dx, and solve for whatever dx expression you need.
  3. Rewrite the whole integral in u. No x may remain.
  4. Integrate, then substitute back in terms of x, and add C.
∫ 2x cos(x2) dxu = x², du = 2x dx
= ∫ cos u du = sin u + Crewrite and integrate
= sin(x2) + Cback to x

If the constant is off, adjust it: with u = 3x, du = 3 dx, so dx = 13 du. For definite integrals, either convert the limits to u-values (and never go back to x), or go back to x and use the original limits. Don't mix the two.

Practice

  1. ∫ 2x(x2 + 1)4 dx
  2. ∫ cos(3x) dx
  3. ∫10 xex2 dx
Show answersHide answers

1. (x2 + 1)55 + C

Let u = x2 + 1, so du = 2x dx, which is exactly the rest of the integrand. The integral becomes ∫ u4 du = u55 + C. Substitute back. Check with the chain rule: 5(x2 + 1)4 · 2x5 = 2x(x2 + 1)4 ✓.

2. 13sin(3x) + C

Let u = 3x, so du = 3 dx and dx = 13 du. Then 13∫ cos u du = 13 sin u + C. The 13 undoes the factor of 3 that the chain rule would produce. Forgetting it is the usual mistake.

3. 12(e − 1) ≈ 0.859

Let u = x2, so du = 2x dx and x dx = 12 du. Convert the limits: x = 0 gives u = 0 and x = 1 gives u = 1. The integral is 12∫10 eu du = 12(e1 − e0) = 12(e − 1).

Chapter 21

Area between curves

The area between two curves is the area under the top one minus the area under the bottom one. You can do it in a single integral:

Area = ∫ba (top − bottom) dx, where a and b are usually where the curves cross.
  1. Find the crossing points by setting the two functions equal.
  2. Decide which is on top by testing one x-value between them.
  3. Integrate top minus bottom. The result must be positive; a negative area means the order was reversed.
−2−11224xy(−2, 0)(1, 3)y = 4 − x²y = x + 2
y = 4 − x2 and y = x + 2 cross where 4 − x2 = x + 2, at x = −2 and x = 1. At x = 0 the parabola (4) is above the line (2).

For the region shown: ∫1−2 [(4 − x2) − (x + 2)] dx = ∫1−2 (2 − x − x2) dx = [ 2x − x22 − x33 ]1−2 = 76 − (−103) = 92. The shaded region has an area of 4.5.

Practice: find the area between

  1. y = x and y = x2
  2. y = 2x and y = x2
  3. y = 6 − x2 and y = 2
Show answersHide answers

1. 16

They cross where x = x2, so x(x − 1) = 0: at 0 and 1. At x = 0.5, the line (0.5) is above the parabola (0.25). Area = ∫10 (x − x2) dx = 12 − 13 = 16.

2. 43

Crossings: 2x = x2 gives x = 0 and x = 2. At x = 1 the line (2) is above the parabola (1). Area = ∫20 (2x − x2) dx = [ x2 − x33 ]20 = 4 − 83 = 43.

3. 323

Crossings: 6 − x2 = 2 means x2 = 4, so x = ±2. The parabola is on top (at x = 0 it's 6). Area = ∫2−2 (4 − x2) dx = [ 4x − x33 ]2−2 = (8 − 83) − (−8 + 83) = 16 − 163 = 323. Since the region is symmetric, you could also double the integral from 0 to 2.

Chapter 22

A first look at integration by parts

Integration by parts is the product rule run backward. Use it for products where substitution doesn't help, like x ex or x cos x.

∫ u dv = uv − ∫ v du

You split the integrand into u (which you'll differentiate) and dv (which you'll integrate). The goal is for ∫ v du to be simpler than the original. Choose u to be whatever gets simpler when differentiated. A rough priority list for choosing u is LIATE: Logarithms, Inverse trig, Algebraic (powers of x), Trig, Exponentials.

∫ xex dxu = x, dv = eˣ dx
du = dx, v = exdifferentiate u, integrate dv
= xex − ∫ ex dx = xex − ex + Cuv − ∫v du

Some integrals need parts twice, and Calc II adds more techniques: trig substitution, partial fractions and improper integrals.

Practice

  1. ∫ x cos x dx
  2. ∫ ln x dx
  3. ∫10 xex dx
Show answersHide answers

1. x sin x + cos x + C

Choose u = x (it simplifies to 1) and dv = cos x dx, so du = dx and v = sin x. Then x sin x − ∫ sin x dx = x sin x − (−cos x) + C = x sin x + cos x + C. Check: the derivative is sin x + x cos x − sin x = x cos x ✓.

2. x ln x − x + C

There seems to be only one factor, so make the other one 1: u = ln x and dv = dx. Then du = 1x dx and v = x. Parts gives x ln x − ∫ x · 1x dx = x ln x − ∫ 1 dx = x ln x − x + C. Differentiate to check: ln x + 1 − 1 = ln x ✓.

3. 1

From the worked example, an antiderivative is xex − ex. At the top: 1 · e − e = 0. At the bottom: 0 − e0 = −1. Top minus bottom: 0 − (−1) = 1.

Chapter 23

Final review: putting it together

These five problems mix skills from across the guide. Try all of them before opening the answers; each explanation names the chapters to revisit.

Mixed review

  1. limx→1 x3 − 1x − 1
  2. Differentiate y = x2 sin(2x).
  3. Find the tangent line to y = ln x at x = 1.
  4. ∫20 (3x2 − 2x) dx
  5. A ball's height is h(t) = −16t2 + 64t + 5 feet after t seconds. What is its maximum height?
Show answersHide answers

1. 3

Substitution gives 00. Factor the difference of cubes: x3 − 1 = (x − 1)(x2 + x + 1). Cancel to leave x2 + x + 1, which is 3 at x = 1. L'Hôpital agrees: 3x21 = 3. (Chapters 2 and 16.)

2. y′ = 2x sin(2x) + 2x2 cos(2x)

A product, with the chain rule inside the second factor. The derivative of x2 is 2x; the derivative of sin(2x) is cos(2x) · 2. Product rule: 2x · sin(2x) + x2 · 2cos(2x). (Chapters 7, 8 and 9.)

3. y = x − 1

The point is (1, ln 1) = (1, 0). The slope is 1x at x = 1, which is 1. Point-slope: y − 0 = 1(x − 1). Near x = 1 this gives the approximation ln x ≈ x − 1. (Chapters 5, 9 and 16.)

4. 4

The antiderivative is x3 − x2. At 2: 8 − 4 = 4. At 0: 0. So the integral is 4 − 0 = 4. (Chapters 17 and 19.)

5. 69 feet, at t = 2 seconds

The height peaks when the vertical velocity is zero: h′(t) = −32t + 64 = 0, so t = 2. And h″ = −32 < 0 confirms a maximum. Height: −16(4) + 128 + 5 = 69 feet. (Chapters 11, 13 and 14.)

You've got a solid first course in calculus if you can…

  • Evaluate limits by substitution, factoring, rationalizing and L'Hôpital's rule, including limits at infinity.
  • Explain the derivative as a slope and a rate, and find one from the limit definition.
  • Differentiate with the power, product, quotient and chain rules, including trig, exponential and log functions, and implicitly.
  • Solve motion, related-rates and optimization problems.
  • Sketch a graph's shape from f′ and f″: increasing, decreasing, extremes, concavity.
  • Find antiderivatives, including by substitution and by parts, and remember the + C.
  • Estimate areas with Riemann sums and compute them exactly with the Fundamental Theorem.
  • Find the area between two curves.

What's next: the rest of Calculus II (volumes of revolution, more integration techniques, sequences and series), then multivariable calculus (several variables), differential equations (equations about rates of change, the language of physics and engineering), and linear algebra. Each one builds directly on the ideas in this guide.