Module 1: Functions and the Idea of a Limit
Review the functions calculus is built on, from their domains to composition, then meet the central concept of a limit that every later idea depends on. This module lays the vocabulary and intuition you will use for the rest of the course.
Functions and Precalculus Review
- Describe a function using the vertical line test and interval notation for domain and range.
- Identify the main function families and their basic shapes.
- Evaluate and combine functions, including composition.
Press B4 on a vending machine and one specific snack drops out. Press B4 again tomorrow and the same snack drops out. That reliability is the whole idea we are about to make precise, and you have been using it for years without calling it anything. Calculus studies how quantities change, so before we touch anything new we will get comfortable with the machines that produce those quantities, one small step at a time. No question here is too small.
One input, one output
Feed 3 into the rule f(x) = 2x + 1 and 7 comes out. Feed 3 in again and 7 comes out again, today and next year. A function is any rule with that property: take an input, give back exactly one output. It matters because almost everything calculus studies, a speed, a cost, a height, is one number going in and one answer coming out.
Key idea: one input, one and only one output. That word "only" is what makes it a function.
Reading the notation out loud
We give a function a short name, usually the letter f, and we write f(x). Read that out loud as "f of x." It does not mean f times x. It means "the output of machine f when you feed in x." The little (x) is the input slot, not a multiplication. Read that once more if you like, because this one habit prevents a lot of confusion later.
Let us evaluate one together, slowly
Find f(3) when f(x) = 2x + 1.
- Read the rule:
2x + 1means "two times the input, then add one." (Just translating.) - The input is 3, so wherever we see x we put a 3:
2(3) + 1. (Filling the slot.) - Do the multiply first:
2 × 3 = 6. Now we have6 + 1. (Multiplying comes before adding.) - Do the add:
6 + 1 = 7. (Last step.)
So f(3) = 7. That is the whole skill: take a rule, put in a number, read off one answer. The same substitution process works with more complicated formulas.
Try it: with the same rule, what is f(5)?
Answer: Put 5 in the slot: 2(5) + 1 = 10 + 1 = 11. So f(5) = 11. See, you just did it again.
The vertical line test (a picture rule)
How can you look at a graph and tell if it is a function? Use the vertical line test: if any straight up-and-down line crosses the graph more than once, the graph is not a function. Here is why, in plain words: a vertical line stands over one input. If the graph is there twice, that one input has two outputs, which breaks the one-output rule. A U-shaped parabola passes the test. A full circle fails it, because a vertical line through the middle hits both the top and the bottom.

The families of functions you will keep meeting
Almost every problem this course throws at you is built from a small cast of characters. You do not have to master them today, just recognize their faces:
- Polynomials like
3x2 − 5x + 1: smooth curves with no breaks or holes, defined for every number. - Rational functions like
1/x: a polynomial over a polynomial, undefined wherever the bottom is zero. - Root functions: an even real root, such as
√x, requires a nonnegative input. An odd root accepts negative inputs too: the real cube root of −8 is −2. - Trig functions like
sin(x)andcos(x): wavy curves that repeat over and over. - Exponential and log functions like
exandln(x): the language of growth and its reverse.
Interval notation: a shorthand for "which numbers are allowed"
We often need to say "all the numbers from here to there." Instead of a sentence, we use brackets and parentheses. A square bracket includes the endpoint; a parenthesis leaves it out. So [0, ∞) means "zero is included, and go up forever." Infinity always gets a parenthesis, because it is a direction, not a number you can land on. The allowed inputs of √x are [0, ∞). Do not worry about memorizing this; you will pick it up by seeing it a few times.
Finding the domain: which inputs are allowed
The domain is the set of allowed inputs. For a formula with no stated domain, use the real inputs for which every operation is defined. Start with denominators and even roots, then check logarithms, trigonometric functions, inverse functions, and any restrictions stated by the problem. A physical model may also restrict time or length to nonnegative values.[1]
- You cannot divide by zero. Any input that makes the bottom of a fraction zero is banned.
- You cannot take the square root of a negative number (and stay in real numbers). Whatever sits under a square root must be zero or bigger.
Worked example. Find the domain of f(x) = 1 / (x − 4).
- Look only at the bottom:
x − 4. (Fractions blow up when the bottom is zero.) - Ask when it equals zero:
x − 4 = 0atx = 4. (Solve the little equation.) - So 4 is the one banned input; everything else is fine.
Domain: all real numbers except 4. Read that as "any number you like, just not 4." The set of outputs a function actually produces is called its range, the up-and-down story to the domain's side-to-side story.
Try it: find the domain of g(x) = √(x − 2).
Answer: The inside must be zero or larger, so x − 2 ≥ 0 (the sign ≥ is read "greater than or equal to"). Add 2 to both sides: x ≥ 2. Domain: all numbers 2 or bigger.
Combining functions, and the one that matters most
You can add, subtract, multiply, and divide functions. The combination calculus cares about most is composition: feeding one function into another, written f(g(x)) and read "f of g of x." Think of two machines in a row, the output of the first becoming the input of the second. You always work from the inside out.
Worked example. Let f(x) = x2 + 1 and g(x) = 3x − 2. Find f(g(4)).
- Do the inside machine first:
g(4) = 3(4) − 2. (Inside out.) - Simplify:
3(4) = 12, then12 − 2 = 10. Sog(4) = 10. - Feed that 10 into the outside machine:
f(10) = 102 + 1. - Simplify:
102 = 100, then100 + 1 = 101.
So f(g(4)) = 101. Order matters here. If you reverse it, g(f(4)) = g(17) = 3(17) − 2 = 49, a completely different number. Spotting a function as "an outer wrapped around an inner" is exactly the skill you will use for the chain rule later, so this small practice pays off big.
Even and odd: a kind of mirror symmetry
To call a function even or odd, its domain must be symmetric about zero. It is even if f(−x) = f(x) for every input in that domain, as with x2. It is odd if f(−x) = −f(x), as with x3. The zero function on the real numbers is both. Most functions are neither.[1]

Piecewise functions: different rules on different stretches
Some functions use one rule for part of the number line and another rule elsewhere. These are piecewise functions, and calculus leans on them constantly, so let us practice reading one. Define
f(x) = x + 1 when x < 2, and f(x) = x2 when x ≥ 2.
To evaluate, first ask which stretch the input lives on, then use only that rule.
f(0): since0 < 2, use the first rule:0 + 1 = 1. (Check the condition before touching the formula.)f(2): since2 ≥ 2, use the second rule:22 = 4. (The boundary input belongs to the rule whose condition includes it.)f(3): since3 ≥ 2, again the second rule:32 = 9.
The most famous piecewise function is the absolute value, |x|, which equals x when x ≥ 0 and −x when x < 0. Its V-shaped graph has a sharp corner at 0, and that corner will star in a later lesson about where derivatives fail to exist.
A domain with two hazards at once
Find the domain of f(x) = √(x − 2) / (x − 5).
- The square root demands
x − 2 ≥ 0, sox ≥ 2. (Hazard one: no negative insides.) - The fraction demands
x − 5 ≠ 0, sox ≠ 5. (Hazard two: no zero bottoms.) - Both conditions must hold at once, so the domain is
[2, 5)together with(5, ∞). (Start at 2, skip over 5, continue forever.)
Find the restrictions for every operation and intersect them. Solving those inequalities can require additional algebra. For ln(x − 1)/(x − 3), the logarithm requires x > 1 and the denominator requires x ≠ 3, so the domain is (1, 3) ∪ (3, ∞). For tan(x), exclude points where cos(x) = 0.[2]
Shifting and stretching a known graph
Once you know a parent shape like x2 or √x, you can read transformed versions at a glance: f(x) + 3 slides the graph up 3, f(x − 2) slides it right 2 (the sign is the famous surprise: subtracting inside moves right), 2f(x) stretches it vertically, and −f(x) flips it upside down. So g(x) = (x − 2)2 + 3 is the ordinary parabola moved right 2 and up 3, with its bottom now at the point (2, 3). Being able to picture a function without plotting points will pay off every time this course asks you to sanity-check a computed answer against a mental graph.
Two habits that prevent most errors
Read f(x) as the output at input x, not as multiplication. For a composition f(g(x)), two checks are needed: x must belong to the domain of g, and g(x) must belong to the domain of f. For f(u) = √u and g(x) = 1/(x − 1), require x ≠ 1 and 1/(x − 1) ≥ 0. Both hold exactly when x > 1.[1]
Common misconceptions
- "f(x) means f times x." No. It is the output of f at input x.
- "Any graph you can draw is a function." A sideways parabola or a full circle can be drawn but fails the vertical line test, because one input has two outputs.
- "Composition is just multiplication, so f(g(x)) = g(f(x))." Composition feeds one function's output into another. It is not generally commutative: changing the order can change the result. Above,
f(g(4)) = 101butg(f(4)) = 49. - "Every formula allows all real numbers." Check all operations: nonzero denominators, nonnegative inputs to even roots, positive inputs to logarithms, and restrictions on trigonometric or inverse functions.
What to carry forward
A function gives each input exactly one output. Read f(x) as "f of x," and to evaluate it, drop the number into the slot and simplify one small step at a time. The domain is the legal inputs (check every operation and any stated restrictions), and the range is the outputs that actually come out. The vertical line test spots function graphs, interval notation like [0, ∞) writes sets of numbers compactly, and composition f(g(x)) runs two machines in a row from the inside out. You now hold the vocabulary the rest of calculus is built on. Use these checks throughout the course, including after algebraic simplification.
Retrieve, explain, and revisit
Close the notes and answer: Explain why the real domains of sqrt(x), the cube root of x, and ln(x) differ. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 1.1 Review of Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 1.5 Exponential and Logarithmic Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 1.2 Basic Classes of Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Function
- A rule that assigns exactly one output to each input.
- Domain
- The set of all allowed inputs of a function.
- Range
- The set of all outputs the function actually produces.
- Vertical line test
- A graph is a function if no vertical line crosses it more than once.
- Composition
- Applying one function to the result of another, written f(g(x)).
- Interval notation
- A way to write sets of numbers using brackets and parentheses.
- Even function
- A function on a domain symmetric about zero with f(-x) = f(x) for every input.
- Odd function
- A function on a domain symmetric about zero with f(-x) = -f(x) for every input.
The Idea of a Limit
- Explain intuitively what it means for a function to approach a limit.
- Estimate a limit from a table or graph.
- Distinguish the limit of a function from its value at a point.
Enter (x2 − 9)/(x − 3) into a calculator at x = 3. Both the numerator and denominator become zero, so the result is 0/0, which is undefined.
Now use an input close to 3. At 2.999 the output is 5.999; at 3.001 it is 6.001. Those outputs suggest a value near 6. A limit lets us describe this nearby behavior even though the function has no value at 3.
Near a point, not at it
Think of x as the input to f(x) and a as the number it approaches. A limit is a number L that the outputs can be made as close to as we wish by keeping x sufficiently close to a, without requiring x to equal a.[1]
We write lim (x → a) f(x) = L. Read this as "the limit, as x approaches a, of f of x, equals L." For the two-sided limits in this lesson, we check inputs on both sides of a.
The distinction is between near a and at a. A limit concerns nearby outputs. The function's value at a may be missing, may equal L, or may be different.
The point: a limit describes nearby outputs. It does not require the function to have a value at the target input.
A picture: think of zooming in
Look at the graph near one input and follow the curve from each side. Does it approach the same height from the left and the right? That height suggests the limit. An open circle can mark a missing point without changing the surrounding curve.
A graph helps you see the idea. Its drawing scale can also hide details, so we will use algebra to check our conclusions.
Why the value at the point does not matter
For f(x) = (x2 − 9)/(x − 3), substituting x = 3 gives 0/0. The fraction is undefined there. That answers the question about the value at 3, but it does not answer the question about the limit.
To investigate the limit, compare outputs at inputs just below and just above 3:
| x | 2.9 | 2.99 | 2.999 | 3.001 | 3.01 | 3.1 |
| f(x) | 5.9 | 5.99 | 5.999 | 6.001 | 6.01 | 6.1 |
The outputs in the table suggest 6, so our estimate is lim (x → 3) f(x) = 6. This is possible even though f(3) does not exist.
We can check the estimate by factoring: (x2 − 9)/(x − 3) = (x − 3)(x + 3)/(x − 3) = x + 3 for every x except 3.
Near 3, the original fraction therefore has exactly the same outputs as x + 3. Those outputs approach 6. The algebra confirms the limit without assigning a value to the original fraction at 3.

Let us estimate one together, slowly
Estimate lim (x → 2) (x2 − 4)/(x − 2) from a table.
- Try a value just below 2, say
x = 1.99: the output comes out about3.99. (Sneaking up from the left.) - Try a value just above 2, say
x = 2.01: the output is about4.01. (Sneaking up from the right.) - The sampled outputs from both sides suggest the same number, 4. The algebra below will check whether that estimate is exact.
Now check the estimate algebraically. We have (x2 − 4)/(x − 2) = x + 2 whenever x is not 2. As x approaches 2, the simpler expression approaches 2 + 2 = 4. The limit is therefore exactly 4.
One side at a time
A left-hand limit uses inputs less than a. Its notation is x → a−, read "x approaches a from the left." A right-hand limit uses inputs greater than a, written x → a+.
For a finite two-sided limit to exist, both one-sided limits must exist and equal the same number. Check them separately before combining the results.
For example, a graph may approach height 2 on the left of a step and height 5 on the right. Neither side is ambiguous, but the two sides disagree. There is no single two-sided limit at that input.

Three ways a limit can fail to exist
- A jump: the left and right limits disagree, common in piecewise functions (the staircase step).
- A blow-up: the outputs grow without bound, as
1/x2does near 0, so no finite number is approached. - Wild wobble:
sin(1/x)near 0 swings between −1 and 1 faster and faster, never settling on one value.
These are three common ways a finite limit can fail. When outputs grow without bound, we may describe an infinite limit; that still does not give a finite real-number limit. A table or graph can suggest one of these patterns, while an argument about the function establishes it.
Why limits exist at all: the speed problem
Suppose a model gives the distance a rock has fallen after t seconds as s(t) = 16t2 feet. We want its speed at t = 1.
Average speed uses distance traveled during an interval divided by the interval's duration. Setting that duration to zero would produce 0/0, so it cannot define speed at an instant directly.
Instead, calculate average speeds over shorter and shorter intervals beginning at t = 1:
| window | 1 to 1.1 | 1 to 1.01 | 1 to 1.001 |
| average speed (ft/s) | 33.6 | 32.16 | 32.016 |
Check the first interval. The distance fallen during it is 16(1.1)2 − 16(1)2 = 19.36 − 16 = 3.36 feet. Its duration is 0.1 seconds. Dividing gives an average speed of 3.36/0.1 = 33.6 feet per second.
The shorter intervals give averages closer to 32 ft/s. In this model, their limit defines the speed at t = 1. This is the same kind of limiting calculation that will define a derivative.
The honest definition: epsilon and delta
What does "close to L" mean precisely? We need to specify an allowed error, called a tolerance.
Use ε, pronounced "epsilon," for the allowed error in the output. Use δ, pronounced "delta," for how close the input must stay to a. The two symbols track two different distances.
The statement lim (x → a) f(x) = L has a precise requirement. For every output tolerance ε > 0, there must be an input distance δ > 0 with this guarantee:
Whenever an allowed input x is less than δ away from a, but is not equal to a, the output f(x) is less than ε away from L. For the two-sided setting here, assume the function is defined on both sides sufficiently near a, except possibly at a itself.
Suppose you require the outputs to be within 0.1 of L. I must choose an input window around a that guarantees this for every allowed input in that window, apart from the center.
One successful window is not enough to prove a limit. I must be able to choose a suitable window for any positive tolerance, however small. The condition excludes x = a, so the value at the center is irrelevant to this guarantee.
One full proof, for a linear function
We will prove lim (x → 3) (2x + 1) = 7. First work out how input error affects output error. Then use that relationship to choose delta.
- Let a challenge
ε > 0be given. We must produce aδ. (The skeptic moves first.) - Look at the output error:
|(2x + 1) − 7| = |2x − 6| = 2|x − 3|. (Simplify the distance between output and target.) - So the output error is exactly twice the input error. To force
2|x − 3| < ε, it is enough to force|x − 3| < ε/2. (Work backward from the goal.) - Choose
δ = ε/2. Then whenever0 < |x − 3| < δ, we get|(2x + 1) − 7| = 2|x − 3| < 2(ε/2) = ε. (The guarantee, verified.)
For example, the tolerance ε = 0.1 leads us to choose δ = 0.05. An input strictly less than 0.05 away from 3 produces an output strictly less than 0.1 away from 7.
At the boundary x = 3.05, the output is 7.1. That is exactly 0.1 away from 7, so this boundary is excluded by the strict inequalities in the proof.
For a line with nonzero slope m, the same argument gives δ = ε/|m|. A steeper line needs a narrower input window for the same output tolerance. If the slope is zero, the output is constant, so any positive input window works.
More complicated functions may take more algebra, but the task remains the same: choose an input window and prove that every allowed input in it meets the requested output tolerance.
A limit from two formulas
A piecewise function uses different formulas on different parts of its domain. Consider f(x) = x + 2 for x < 1, and f(x) = 5 − 2x for x > 1, with f(1) left undefined. Does lim (x → 1) f(x) exist?
Start from the left. Use the first formula because those inputs are below 1. Its outputs approach 1 + 2 = 3.
Then approach from the right using the second formula. Its outputs approach 5 − 2 = 3. Both results are 3, so the two-sided limit exists and equals 3.
Now imagine changing the second formula to 4 − 2x. Its right-hand limit would be 2, while the left-hand limit would still be 3. The disagreement would make the two-sided limit fail. Always choose the formula for the side you are approaching from.
Plugging in too soon, and tables that stop too far out
Substitution works when the function is continuous at the target: its nearby outputs approach its value there. If substitution produces 0/0, the original expression is undefined at that input, and more work is needed to find its limit.
When using a table, try inputs on both sides and progressively closer to the target, such as 2.9, 2.99, and 2.999. Treat the pattern as evidence for an estimate. A finite table cannot prove that the function continues behaving that way between or beyond the sampled inputs.
Common misconceptions
- "The limit is just f(a)." This equality holds at a point of continuity. A limit describes nearby behavior even when
f(a)is missing or different, as with the hole at (3, 6). - "If f is undefined at a, the limit cannot exist." A hole does not kill a limit.
(x2 − 9)/(x − 3)is undefined at 3 yet has limit 6. - "A limit is the biggest value the function reaches." No. It is the single value the outputs head toward near a point.
- "Left-hand and right-hand limits are always equal." At a jump they differ, and then the two-sided limit does not exist.
The short version
A limit describes the outputs near a target input. Read lim (x → a) f(x) = L as "as x approaches a, f of x approaches L." The value at a does not decide the limit. This is why a function can have a limit at a hole in its graph.
For a finite two-sided limit, check that both one-sided limits exist and agree. A jump, unbounded growth, or persistent oscillation can prevent that.
Use a table or graph to form an estimate. Use algebra or the epsilon-delta definition to justify the result. Keep those two jobs distinct as you work through the examples.
Retrieve, explain, and revisit
Close the notes and answer: Give an example where a limit exists at an input where the function is undefined. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 2.2 The Limit of a Function. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 2.3 The Limit Laws. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 2.5 The Precise Definition of a Limit. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Limit
- The value a function approaches as the input approaches a given number.
- Left-hand limit
- The value approached using inputs slightly less than the target, written x to a^-.
- Right-hand limit
- The value approached using inputs slightly greater than the target, written x to a^+.
- Removable discontinuity
- A hole in a graph where the limit exists but the function value does not match.
- Does not exist (DNE)
- Failure to approach one finite value, for example because one-sided limits disagree, outputs grow without bound, or oscillation does not settle.
- Oscillation
- Repeated variation in outputs. It prevents a limit when the outputs do not settle toward one value, as with sin(1/x) near 0.
Module 2: Computing Limits and Continuity
Turn the intuition of a limit into reliable algebraic techniques, from direct substitution through factoring, rationalizing, and the Squeeze Theorem. Then define continuity precisely and meet the Intermediate Value Theorem it powers.
Computing Limits Algebraically
- Apply the limit laws and direct substitution.
- Resolve 0/0 indeterminate forms by factoring or rationalizing.
- Use the Squeeze Theorem and the special trig limit sin(x)/x.
The last lesson's table gave outputs of 5.999 and 6.001 near the input 3. Those numbers suggest a limit of 6, but they do not prove that it is exactly 6.
Algebra can settle the question. We will factor the numerator, cancel a shared nonzero factor, and then evaluate a simpler limit. The key is to explain why each new expression has the same nearby values as the original.
What 0/0 is telling you
Start by substituting the target input. If the function is continuous there, this gives the limit. If substitution gives 0/0, both parts of the fraction have become zero.[1]
The fraction is undefined at that input. Its limit is still an open question. Factoring or working with a square-root expression may reveal the nearby behavior.
In short: a 0/0 form does not determine the limit. Find an equivalent expression for nearby inputs, then evaluate that limit.
Move 0: direct substitution (try the easy thing first)
A function is continuous at a point when its limit there equals its value. If f is continuous at the target, then lim (x → a) f(x) = f(a): you can substitute directly.
Polynomials are continuous everywhere. Rational functions are continuous where their denominators are nonzero. The familiar root, trigonometric, exponential, and logarithmic functions are continuous on their domains. For a two-sided limit, also check that the domain supplies nearby inputs on both sides of the target.
- Identify the function in
lim (x → 2) (3x2 − x). It is a polynomial, so it is continuous at 2 and direct substitution is valid. - Replace every x with 2:
3(22) − 2. Square the 2 before multiplying by 3. - Simplify:
3(4) = 12, then12 − 2 = 10.
The limit is 10. Substitution is a useful first check, but whether it gives an answer depends on the function and the target input.
The limit laws (why substitution is allowed)
The limit laws tell us how to combine limits. Assume the individual limits exist as finite numbers at the same target input.
- Addition and subtraction: combine the individual limits using the same operation.
- Multiplication: multiply the limits. A constant multiplier can be kept outside the limit.
- Division: divide the limits only if the denominator's limit is nonzero.
- Powers and roots: take a positive integer power of the limit, or take its root when the root is defined. For an even root, the function values used must be nonnegative, and so must their limit.
A polynomial is built from powers, constant multiples, and sums. Applying these laws to its pieces explains why direct substitution works.
The tricky case: 0/0, and Move 1, factor and cancel
A quotient has the indeterminate form 0/0 when its numerator and denominator both approach zero. "Indeterminate" means that this information alone does not determine the limit.
When the numerator and denominator are polynomials, try factoring them. Look for a common factor that you can cancel at nearby inputs where it is nonzero.
Worked example. Find lim (x → 3) (x2 − 9)/(x − 3).
- Try substitution: you get
0/0. (So we switch to algebra.) - Factor the top:
x2 − 9 = (x − 3)(x + 3). (A difference of squares.) - Cancel the matching
(x − 3)on top and bottom, leavingx + 3. (Legal, because near 3 that factor is not zero.) - Now substitute into the simpler form:
3 + 3 = 6.
The limit is 6. Notice the restriction behind the cancellation: we are using inputs near 3, but not x = 3 itself. At those inputs, x − 3 is nonzero.
The original fraction and the simplified expression have the same values throughout that nearby region. They therefore have the same limit, even though only the simplified expression has a value at 3.
Try it: find lim (x → 1) (x2 + 2x − 3)/(x − 1).
Answer: factor the numerator as (x − 1)(x + 3). At inputs other than 1, cancel the common factor (x − 1).
The remaining expression is continuous at 1, so substitute to obtain 1 + 3 = 4. Check that you canceled a whole factor, rather than a term joined to other terms by addition.
Move 2: rationalize (when a square root is in the way)
If substitution gives 0/0 and a square-root difference is involved, try rationalizing: rewrite the expression so that this difference no longer contains a root.
The conjugate keeps the same two terms but reverses the sign between them. Multiply both the numerator, the top of the fraction, and the denominator, the bottom, by that conjugate. Their product can then use the difference-of-squares identity.
Worked example. Find lim (x → 0) (√(x + 9) − 3)/x.
- Substitution gives
0/0. (Move to algebra.) - Multiply the numerator and denominator by the conjugate
√(x + 9) + 3. This multiplies the fraction by 1 wherever the conjugate is nonzero, including inputs near zero. - Multiply the numerator using the difference of squares. It becomes
(x + 9) − 9 = x, givingx / [x(√(x + 9) + 3)]. Keep the denominator factored so you can see the common x. - Cancel the
x, leaving1/(√(x + 9) + 3), then substitute:1/(3 + 3) = 1/6.
The limit is 1/6. Multiplying by the conjugate gave a factor that could be canceled for nonzero x. We then evaluated the simpler expression at zero.
The Squeeze Theorem and one famous limit
The Squeeze Theorem compares three functions near the same target input. Suppose g(x) ≤ f(x) ≤ h(x) throughout a nearby interval, except possibly at the target itself.
If the lower function g and the upper function h both approach the same finite number L, the middle function f must approach L too. There is no room for a different limit.
This idea establishes the following trigonometric limit. The angle must be measured in radians.
lim (x → 0) sin(x)/x = 1
Direct substitution gives 0/0, so it cannot settle this limit. A geometric argument places sin(x)/x between cos(x) and 1 near zero, excluding zero itself. Both bounds approach 1, so the Squeeze Theorem gives the limit 1.
A related limit is lim (x → 0) (1 − cos(x))/x = 0. Use radians for this one too. These two results will help us derive the trigonometric differentiation rules.

Reshaping to reveal a known limit
Find lim (x → 0) sin(3x)/x. The known sine limit has the same expression inside the sine and in the denominator. Here they do not match yet, so rewrite the fraction to make them match.
- Multiply and divide by 3:
sin(3x)/x = 3 × sin(3x)/(3x). (Same value, now the bottom matches the inside.) - As
x → 0, the inside3x → 0too, sosin(3x)/(3x) → 1. (The famous limit, in disguise.) - What is left is
3 × 1 = 3.
The limit is 3. We introduced a factor of 3 in the denominator and compensated with a factor of 3 outside the fraction. That kept the value unchanged while revealing the known limit.

Naming the laws as they work
Evaluate lim (x → 2) (x2 + 3x)/(x + 1) and identify the law used at each step. This makes the reasoning behind direct substitution visible.
- Quotient law: the limit of a quotient is the quotient of the limits, provided the bottom limit is not zero. Bottom first:
lim (x + 1) = 3by the sum law (limit of a sum is the sum of the limits), and 3 is not zero, so the law applies. - Sum law on the top:
lim (x2 + 3x) = lim x2 + lim 3x. - Product and constant multiple laws:
lim x2 = (lim x)(lim x) = 2 × 2 = 4, andlim 3x = 3 × 2 = 6. So the top's limit is10. - Assemble:
10/3.
Direct substitution also gives 10/3. The worked steps show which limit laws justify that result.
The same laws work when you know limits but do not know the formulas. Suppose lim f(x) = 5 and lim g(x) = −2 at the same target input. Apply the constant multiple and difference laws to get lim [2f(x) − 3g(x)] = 2(5) − 3(−2) = 16. Apply the product law to get lim [f(x)g(x)] = −10.
A limit that is secretly a slope
Evaluate lim (h → 0) [(2 + h)3 − 8]/h. Here h is the changing input, and its target is zero. This quotient will also give us a first example of a curve's slope.
- Substitution gives
(8 − 8)/0 = 0/0. (Indeterminate, so simplify.) - Expand the cube:
(2 + h)3 = 8 + 12h + 6h2 + h3. (Binomial expansion, done carefully.) - Subtract 8: the numerator is
12h + 6h2 + h3. Each remaining term contains a factor of h, so the entire numerator can be divided by h at nonzero inputs. - Divide by h:
12 + 6h + h2. (The 0/0 is gone.) - Let
h → 0: the limit is 12.
The answer 12 is the slope of the cubic curve at the input 2. In the derivative definition, we will repeat this calculation with x in place of 2. That process is called differentiating x3. Evaluating the result at x = 2 will recover the slope 12.
Making a limit exist: a parameter puzzle
The letter c represents a constant we can choose. Which choice makes lim (x → 2) f(x) exist?
The function uses f(x) = cx + 3 when x < 2, and f(x) = x2 + c when x ≥ 2. Work out the limit from each side using the formula assigned to that side. Then require the two answers to agree.
- Left-hand limit: approach 2 through the first rule:
c(2) + 3 = 2c + 3. - Right-hand limit: approach 2 through the second rule:
22 + c = 4 + c. - A two-sided limit exists only when the sides agree:
2c + 3 = 4 + c, soc = 1. - Check: with
c = 1both sides give5. The limit exists and equals 5.
Choosing the constant this way makes the two formulas meet at the same height. In this example, that also makes the function continuous at the join. Matching heights alone does not guarantee matching slopes.
Two worries about 0/0, answered
Keep the expression and its limit separate. The expression 0/0 is undefined. When it appears after substitution in a limit problem, it tells you that substitution has not determined the limit.
Canceling (x − 3) is permitted only at inputs where that factor is nonzero. That is enough here because a limit depends on nearby inputs, not the value at the exact target.
Common misconceptions
- "Seeing 0/0 tells me the limit." The expression 0/0 is undefined. A quotient whose numerator and denominator both approach zero has an indeterminate limit form: further work may reveal a finite limit, unbounded behavior, or no limit.
- "You can never divide by something that becomes zero." For a limit you may cancel a factor that is only zero at the target point, because the limit ignores that exact point.
- "sin(x)/x is undefined at 0, so its limit does not exist." The value at 0 is undefined, but the limit is a clean 1.
- "Rationalizing changes the problem." Multiplying by a conjugate over itself multiplies by 1, so the value is unchanged; only the appearance is.
Putting it together
First check direct substitution. If the function is continuous at the target, it gives the limit. If substitution gives 0/0, inspect the expression: factoring or multiplying by a conjugate may produce an equivalent, simpler expression for nearby inputs.
The Squeeze Theorem gives another route by placing a function between two bounds with a shared limit. With angles in radians, the key trigonometric results are sin(x)/x → 1 and (1 − cos x)/x → 0.
Before accepting an answer, state why your method applies. In particular, check which denominators must stay nonzero and whether both sides approach the same value.
Retrieve, explain, and revisit
Close the notes and answer: Choose between factoring, a conjugate, and a radian sine limit for three new problems. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 2.3 The Limit Laws. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.5 Derivatives of Trigonometric Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Direct substitution
- Evaluating a limit by replacing the input with its target value when the function is continuous there.
- Limit laws
- Rules that let the limit of a sum, product, or quotient be built from simpler limits.
- Indeterminate form
- A limit form such as 0/0 that does not determine the limit from the individual numerator and denominator limits alone.
- Conjugate
- The expression formed by switching the sign between two terms, used to rationalize.
- Squeeze Theorem
- If a function is trapped between two others that share a limit, it shares that limit too.
- Radian
- An angle measure equal to arc length divided by radius; a full turn is 2 pi radians.
One-Sided Limits and Limits at Infinity
- Evaluate one-sided limits and infinite limits at vertical asymptotes.
- Find limits at infinity by comparing leading terms.
- Identify horizontal asymptotes from limits at infinity.
Evaluate 1/(x − 2) at 2.1, then 2.01, then 2.001: the outputs are 10, then 100, then 1000. Come at 2 from the other side, at 1.999, and the output is −1000. Same formula, same point, two runaways in opposite directions. Now push the same function the other way, out to x = 1,000,000, and it flattens to almost exactly zero. Those two behaviors, the wall up close and the cruising height far away, are what this lesson reads off.
Walls nearby, cruising heights far away
Two new questions. First: near a spot where the bottom of a fraction hits zero, the graph can race off toward a wall. That wall is a vertical asymptote. Second: as x runs off to the far right or left, the graph often levels out toward a cruising height. That height is a horizontal asymptote. Both are read off with limits.
Remember: vertical asymptote = a wall the graph races up or down near a point; horizontal asymptote = the cruising height the graph settles toward far away.
Infinite limits and vertical asymptotes
Look at f(x) = 1/x near zero. As x approaches 0 from the right (tiny positive numbers), 1/x grows huge, so lim (x → 0+) 1/x = +∞. From the left (tiny negative numbers) it plunges, so lim (x → 0−) 1/x = −∞. The two sides disagree, so the two-sided limit does not exist, and the line x = 0 is a vertical asymptote. Writing ∞ here is shorthand for "grows without bound," not a number the function reaches.
To get the sign right, do a quick check. For lim (x → 2+) 1/(x − 2):
- Inputs just above 2 make
x − 2a tiny positive number. (Just bigger than 2.) - One divided by a tiny positive is a huge positive. (Small bottom, big result.)
- So the limit is
+∞.
Just below 2, x − 2 is a tiny negative, so the same fraction goes to −∞. Tracking that one sign is the whole skill.
Limits at infinity
To ask what a function does for enormous x, we compute lim (x → ∞) f(x). For a fraction of polynomials, the answer is decided by the leading terms, the highest powers on top and bottom, because for giant x the smaller-power terms barely matter. A clean method is to divide every term by the highest power of x in the bottom.
Worked example. Find lim (x → ∞) (3x2 − 5x + 2)/(6x2 + 4x − 1).
- Divide every term by
x2: it becomes(3 − 5/x + 2/x2)/(6 + 4/x − 1/x2). (Same value, tidier.) - As
x → ∞, every piece with an x on the bottom fades to 0. (A number over something huge is tiny.) - What remains is
3/6, which is1/2.
So the limit is 1/2, and the line y = 1/2 is a horizontal asymptote, the cruising height the graph flattens toward far out.

The three cases, at a glance
| Degrees | Limit at infinity |
| top degree less than bottom degree | 0 |
| top degree equal to bottom degree | ratio of the leading numbers |
| top degree greater than bottom degree | plus or minus infinity (no horizontal asymptote) |
So lim (x → ∞) (2x + 1)/(x2 + 3) = 0 because the bottom grows faster, while lim (x → ∞) (5x3 + 2)/(2x2 + 7) = ∞ because the top wins. Matching leading terms lets you predict the far-off behavior at a glance, no table needed.
Try it: find lim (x → ∞) (4x2 + 1)/(2x2 − x).
Answer: The degrees match (both 2), so take the ratio of the leading numbers: 4/2 = 2. Nice, you read the end behavior straight off the leading terms.
Beyond fractions of polynomials
For x → +∞, an exponential ax with fixed a > 1 grows faster than any fixed positive power xp, and such a power grows faster than ln(x). For example, x2/ex → 0 and e−x → 0. These comparisons need their stated direction and parameters. For the model T(t) = Ta + Ce−kt with constants C, k > 0, the difference from the fixed ambient temperature Ta tends to zero. The modeled temperature tends to Ta, not necessarily zero.[2]
Why this matters
Far-off behavior is the backbone of curve sketching and of real models. A population that levels off has a horizontal asymptote at its carrying capacity; a saturating reaction approaches a ceiling; a dose-response curve flattens at high dose. Each is a limit at infinity, and reading it off the leading terms turns a messy formula into a one-line prediction about the long run.
A complete sign check, narrated
Evaluate lim (x → 3−) (x + 1)/(x − 3), the approach to 3 from the left.
- Check the top near 3:
x + 1 → 4, a solid positive number. (The top is not the problem.) - Check the bottom from the left: inputs like 2.9 and 2.99 make
x − 3equal−0.1and−0.01, tiny and negative. (This is the side-dependent part.) - A positive top over a tiny negative bottom is a huge negative number:
4/(−0.01) = −400, and it only gets more extreme. (Sign logic, not memorization.) - Conclusion: the limit is
−∞, and from the right it is+∞by the same reasoning with a positive bottom.
Write the three checks out every time: sign of the top, sign of the bottom on the given side, then divide. This thirty-second ritual eliminates the most common asymptote errors.
Limits at negative infinity, and a square-root trap
Evaluate lim (x → ∞) (3x + 2)/√(x2 + 1) and then the same limit as x → −∞.
- Divide top and bottom by
x. For the bottom, note thatx = √(x2)when x is positive, so√(x2 + 1)/x = √(1 + 1/x2). - As
x → ∞: top→ 3, bottom→ √1 = 1, so the limit is 3. - Now
x → −∞. Here is the trap: for negative x,√(x2) = |x| = −x, not x. Dividing the root by a negative x flips its sign:√(x2 + 1)/x = −√(1 + 1/x2). - So the limit is
3/(−1) = −3.
One function, two different horizontal asymptotes, y = 3 to the right and y = −3 to the left. This is why "a function has at most one horizontal asymptote" is false: it can have one in each direction, and square roots are the classic source.
Slant asymptotes and polynomial end behavior
When the top degree is exactly one more than the bottom degree, the graph does not level off, but it does snuggle up to a slanted line. Divide (x2 + 1)/x = x + 1/x. Far out, the 1/x piece fades to 0, so the graph hugs the line y = x: a slant asymptote. For plain polynomials, end behavior is even simpler: only the leading term matters. For giant x, x3 − 100x2 behaves like x3, because at x = 1000 the first term is a billion while the second is a hundred million, a tenth its size and shrinking in proportion as x grows. So odd-degree polynomials run from −∞ up to +∞ (or the reverse if the leading coefficient is negative), and even-degree polynomials point both ends the same way. Reading end behavior off the leading term will be a standard final check when we sketch curves in Module 6.

A full asymptote inventory
Find every asymptote of f(x) = (2x2 − 8)/(x2 − 1).
- Factor:
f(x) = 2(x − 2)(x + 2) / [(x − 1)(x + 1)]. (Everything about asymptotes lives in the factors.) - Vertical candidates where the bottom is zero:
x = 1andx = −1. Check the top there: atx = 1the top is2(1) − 8 = −6, not zero, so the fraction blows up: a genuine vertical asymptote. Same atx = −1. (Nonzero over zero means a wall.) - Sign near x = 1: just above 1, the bottom
(x − 1)(x + 1)is a tiny positive times 2, and the top is near−6, sof → −∞; just below 1 the bottom flips sign andf → +∞. - Horizontal: degrees are equal, so
y = 2/1 = 2, the ratio of leading coefficients, in both directions.
Contrast the lookalike (x2 − 4)/(x − 2): at x = 2 the top is also zero, the factor cancels, and the graph has a hole at height 4, not a wall. The diagnostic is always the same: bottom zero with top nonzero gives an asymptote; bottom and top both zero means simplify first and look again.
Infinity is not a value, and not every fraction levels off
The first snag is treating ∞ like an ordinary number and saying "the limit equals infinity, so it exists." Infinity is not a value the function reaches; we write it to describe how the limit fails, by growing without bound. The second snag is assuming every fraction of polynomials levels off. It only does when the top degree is at most the bottom degree. When the top wins, the graph climbs forever and there is no horizontal asymptote.
Common misconceptions
- "Infinity is a number the function hits." No. It records unbounded growth; there is no finite real limit. The notation
+∞or−∞records the direction of unbounded behavior and is valid infinite-limit notation. - "Every rational function has a horizontal asymptote." Only when the top degree is less than or equal to the bottom degree.
- "A graph can never cross a horizontal asymptote." It can, in the middle. An asymptote only governs the far-off behavior, not the interior.
- "The plus or minus in a one-sided infinite limit does not matter." The sign tells you whether the graph races up or down that wall, which is the whole picture.
What you now know
Near a point where the bottom is zero but the top is not, a fraction blows up to +∞ or −∞, giving a vertical asymptote; a quick sign check on the bottom picks the direction. Far out, a limit at infinity gives the cruising height: compare leading terms, or divide every term by the highest power on the bottom. Top degree smaller gives 0, equal gives the ratio of leading numbers, larger gives unbounded magnitude for a rational function, with sign determined by the leading coefficients and the direction of approach. For x approaching positive infinity, fixed-base exponentials with base greater than 1 outgrow fixed positive powers, which outgrow logarithms. You can now describe both the near-singular and the long-range shape of a graph.
Check the reduced expression
A zero denominator is a warning, not a complete classification. For a rational function in lowest terms, a real denominator zero with nonzero numerator gives a vertical asymptote. Before reduction, both numerator and denominator may vanish even when an asymptote remains: x/x2 = 1/x for x ≠ 0 has a vertical asymptote at zero. By contrast, x/x = 1 for x ≠ 0 has a removable hole. Cancellation preserves the original excluded input.[1]
Retrieve, explain, and revisit
Close the notes and answer: Contrast x/x, x/x^2, and 1/(x - 2) near their excluded inputs. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 4.6 Limits at Infinity and Asymptotes. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.8 L'Hôpital's Rule. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Infinite limit
- A limit where the function grows or falls without bound, written as plus or minus infinity.
- Vertical asymptote
- A vertical line the graph approaches as the function blows up near a point.
- Limit at infinity
- The value a function approaches as x grows arbitrarily large or small.
- Horizontal asymptote
- A horizontal line the graph approaches as x goes to plus or minus infinity.
- Leading term
- The term with the highest power, which controls end behavior.
- Slant asymptote
- A line y = mx + b with m != 0 for which f(x) - (mx + b) tends to zero as x tends to positive or negative infinity.
Continuity
- State the three-part definition of continuity at a point.
- Classify removable, jump, and infinite discontinuities.
- Apply the Intermediate Value Theorem.
The polynomial x3 − x − 1 equals −1 at x = 1 and +5 at x = 2. It must therefore be zero somewhere in between, and a computer can hunt that root down to any number of decimals without ever solving the equation. The whole guarantee rests on one property of the graph: no gaps between those two inputs. This lesson turns "no gaps" into a three-item checklist you can run on any function, and then collects the payoff.
No gaps, stated as a checklist
Continuity at an input means nearby function values approach the actual value there. The picture of an unbroken graph is useful intuition, but the limit definition supplies the test. At an endpoint of a domain interval, use the appropriate one-sided limit.[1]
The core of it: continuous at a point means the pen never lifts there. The limit heads to a value, the point exists, and the two match.
The three-part checklist
Formally, f is continuous at x = a when all three of these hold:
f(a)is defined. (The point actually exists.)lim (x → a) f(x)exists. (The two sides head to the same value.)lim (x → a) f(x) = f(a). (Where the graph was heading is where the point actually sits.)
If any one fails, f has a discontinuity at a. So checking continuity is just running the checklist: does the point exist, does the limit exist, do they match. Polynomials pass all three everywhere. Rational, root, trig, exponential, and log functions pass everywhere in their domains, which is exactly why "just plug in" worked for their limits last module. Continuity is the property that makes plugging in legal.

Three common kinds of break
- Removable (a hole): the limit exists but does not match
f(a), orf(a)is missing. You could patch it by filling in one point, which is why it is called removable. - Jump: the left and right limits both exist but differ, so the graph leaps. A step function is an example. In a bracketed tax model, a marginal rate may jump at a threshold even when total tax liability remains continuous.
- Infinite: the function blows up, as
1/xdoes at 0. There is a vertical asymptote, and no single point can patch it.
Let us classify one together, slowly
Where is f(x) = (x2 − 1)/(x − 1) discontinuous, and what type is it?
- Find where the bottom is zero:
x − 1 = 0atx = 1, so the function is undefined there. (Checklist item 1 fails.) - Check the limit anyway: factor the top,
x2 − 1 = (x − 1)(x + 1), cancel, getx + 1. (Same move as the limit lessons.) - So
lim (x → 1) f(x) = 1 + 1 = 2. The limit exists, but the value is missing. - Limit exists, value missing means a removable discontinuity, a hole at the point (1, 2).
That is the whole classification method: run the checklist and see which item fails.
Try it: is f(x) = (x2 − 4)/(x − 2) continuous at x = 2?
Answer: No. It is undefined at 2, but the limit is x + 2 → 4. Limit exists, value missing, so it is a removable discontinuity, a hole at (2, 4). Well spotted.
A piecewise seam
Let f(x) = x + 1 for x < 2, and f(x) = x2 for x ≥ 2. Is it continuous at x = 2? Coming from the left, the values head to 2 + 1 = 3. Coming from the right, they head to 22 = 4. Since 3 and 4 disagree, the two-sided limit does not exist, and there is a jump of size 1 at x = 2. A piecewise function is continuous at a seam only when the pieces actually meet, when the two one-sided limits and the value all line up.
The payoff: the Intermediate Value Theorem
Continuity has a lovely consequence. The Intermediate Value Theorem (IVT) says that if f is continuous on a closed interval [a, b], then it takes every value between f(a) and f(b) at least once. In plain terms, a connected graph cannot skip a height. The practical use is finding roots: if f is continuous with f(1) = −2 and f(2) = 3, then it changes sign, so it must equal 0 somewhere between 1 and 2. This is why a temperature that goes from below freezing to above freezing must pass through exactly 0 degrees at some moment.

Why continuity matters downstream
Continuity is a prerequisite for the big results ahead. A function must be continuous even to have a chance at a derivative. The theorem that guarantees an optimization problem on a closed interval actually has a highest and lowest value requires continuity too. It is the quiet assumption behind most of calculus.
Choosing a constant to force continuity
Engineers often need two formulas to hand off smoothly. Find the value of k that makes f continuous everywhere, where f(x) = kx2 for x ≤ 2 and f(x) = 3x + 2 for x > 2.
- Away from the seam, each piece is a polynomial, continuous on its own stretch. Only
x = 2is in question. (Isolate the risky point.) - Value at the seam: the first rule owns
x = 2, sof(2) = 4k. (Checklist item 1.) - Left-hand limit: through the first rule,
k(2)2 = 4k. Right-hand limit: through the second rule,3(2) + 2 = 8. (Checklist item 2 needs these to agree.) - Set them equal:
4k = 8, sok = 2. With that choice all three checklist items pass, and the two formulas weld into one continuous function.
Check: with k = 2, both sides meet at the point (2, 8). Done.
Using the IVT for real: trapping a root
The Intermediate Value Theorem is not just a promise; it powers a genuine numerical method called bisection. Show that f(x) = x3 − x − 1 has a root, and trap it.
f(1) = 1 − 1 − 1 = −1, negative.f(2) = 8 − 2 − 1 = 5, positive. f is a polynomial, hence continuous, so by the IVT a root lies in(1, 2). (Sign change plus continuity equals a guaranteed crossing.)- Test the midpoint:
f(1.5) = 3.375 − 1.5 − 1 = 0.875, positive. The sign change is now between 1 and 1.5, so the root lives in(1, 1.5). (Half the suspects eliminated.) - Again:
f(1.25) = 1.953125 − 1.25 − 1 = −0.296875, negative. Root in(1.25, 1.5). - Again:
f(1.375) = 2.599609 − 1.375 − 1 = 0.224609, positive. Root in(1.25, 1.375).
Each bisection step preserves a sign-changing bracket and halves its width, provided the function is continuous and signs are evaluated correctly. Starting with a bracket of width 0.125, ten further halvings leave width 0.125/210 = 0.0001220703125; its midpoint is within half that width of a bracketed root. A width bound is more precise than a claim about correctly rounded digits. Bisection is useful even when a closed-form solution is inconvenient. Floating-point evaluation requires care near a zero.[1]
Continuity survives composition
Sums, differences, products, and quotients (away from zero bottoms) of continuous functions are continuous, and so is a composition: if g is continuous at a and f is continuous at g(a), then f(g(x)) is continuous at a. That is why a beast like h(x) = cos(√(x2 + 1)) needs no checklist: x2 + 1 is a polynomial (continuous, and always positive so the root is safe), the square root is continuous on its domain, and cosine is continuous everywhere, so the whole stack is continuous everywhere. Spotting "built from continuous parts, legally assembled" saves enormous time.
One more refinement matters for the theorems ahead: on a closed interval [a, b], continuity at the endpoints means one-sided continuity, the limit from inside matching the value. A function continuous on a closed interval is the exact hypothesis both the IVT here and the Extreme Value Theorem in Module 6 demand, and neither theorem survives without it.
One function, both kinds of break
Classify every discontinuity of f(x) = (x + 3)/(x2 − 9).
- The bottom factors as
(x − 3)(x + 3), so f is undefined atx = 3andx = −3: two suspects. (Domain scan first.) - Simplify: for x away from −3,
f(x) = 1/(x − 3). (The common factor cancels.) - At
x = −3: the limit is1/(−3 − 3) = −1/6, a finite number. Limit exists, value missing: a removable discontinuity, a hole at(−3, −1/6). - At
x = 3: the simplified form1/(x − 3)blows up, positive from the right, negative from the left: an infinite discontinuity with vertical asymptotex = 3.
Same formula, two completely different failures, distinguished by whether the troublesome factor canceled. This is the standard exam problem for this lesson, and the method is fully mechanical: find the undefined points, simplify, then take the limit at each suspect and let the checklist name the break.
The limit is only one of the three items
The most common mix-up is thinking "the limit exists, so the function is continuous." The limit is only one of the three checklist items. The point can still be missing (a hole) or sitting at a different height, and either way the function is not continuous there. Always check all three: point exists, limit exists, and they match.
Common misconceptions
- "If the limit exists, f is continuous." Not necessarily. The point may be missing or at a different height, leaving a removable discontinuity.
- "A hole and a jump are the same kind of break." A hole (removable) has a limit; a jump has two different one-sided limits.
- "The IVT tells you where the root is." It only promises a root exists in the interval. Finding it takes further work.
- "Every function is continuous." Piecewise steps, asymptotes, and holes all break continuity at specific points.
Pulling it together
Continuous at a point means you can draw through it without lifting your pen, captured by a three-item checklist: f(a) exists, the limit exists, and they are equal. Common discontinuities include removable holes, jumps, and infinite blow-ups. This list is not exhaustive: sin(1/x) oscillates without a limit as x approaches zero. Continuity is what makes direct substitution valid, and it powers the Intermediate Value Theorem, which guarantees a continuous function that changes sign must cross zero. It is also the ground floor for derivatives and optimization ahead.
Retrieve, explain, and revisit
Close the notes and answer: State the IVT hypotheses and give a discontinuous sign-changing counterexample. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 2.4 Continuity. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 2.2 The Limit of a Function. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Continuous at a point
- f(a) exists, the limit exists, and the limit equals f(a).
- Discontinuity
- A point where a function fails to be continuous.
- Removable discontinuity
- A hole where the limit exists but the value is missing or different.
- Jump discontinuity
- A break where the left and right limits exist but disagree.
- Infinite discontinuity
- A break where the function grows without bound, giving a vertical asymptote.
- Intermediate Value Theorem
- A continuous function on [a, b] hits every value between f(a) and f(b).
Module 3: The Derivative
Build the derivative from the limit of a difference quotient and interpret what it measures, connecting the slope of a tangent line to the instantaneous rate of change. This is the conceptual heart of the whole course.
The Definition of the Derivative
- Write the difference quotient and take its limit to define the derivative.
- Compute a derivative from the definition for polynomials and simple functions.
- Connect the derivative to the slope of a tangent line.
Your speedometer reads 60 mph. That is a speed at the moment you look, not an average for the whole trip. How can we define a rate at one instant?
Average speed divides distance traveled by elapsed time over an interval. If we set the interval's duration to zero, that calculation gives 0/0, which is undefined. The derivative takes a different route: calculate average rates over nonzero intervals, then find their limit as the intervals shrink.
You have already worked with limits whose direct substitution gives 0/0. We will use that same reasoning to define an instantaneous rate.
Shrinking the gap without dividing by zero
Start with an average rate over an interval. Then calculate rates over shorter intervals around the same input. If these rates approach one finite number as the interval shrinks, that number is the derivative at the input.[1]
Each quotient still uses a nonzero interval. We use a limit to describe what happens as its size approaches zero.
Why this matters: a derivative turns a limit of average rates into a rate at one input. The limit must exist as a finite number.
Starting from average rate
For a function f, start at the input x and move to x + h. The change in input is h, which may be positive or negative but cannot be zero in the quotient. Divide the change in output by this change in input to get the average rate of change.
This fraction is called the difference quotient:
[f(x + h) − f(x)] / h
Read the fraction as "change in output divided by change in input." The letter h records the input change. Hold x fixed while you let h approach zero from either side.
If the quotient approaches a finite number, that limit is the derivative. We write it f'(x), pronounced "f prime of x":
f'(x) = lim (h → 0) [f(x + h) − f(x)] / h
Setting h = 0 in the original quotient produces 0/0, which is undefined. Keep h nonzero while you simplify or otherwise analyze the quotient. Then take its limit.
The picture: secant lines becoming a tangent
A secant line passes through two points on the graph: one at x and another at x + h. Its slope is the difference quotient.
Keep the first point fixed and move the second closer. If the secant slopes approach one finite number, that number is the slope of the tangent line through the fixed point.
This describes the curve's local rate of change. It does not require the tangent to touch the graph at only one point, and a tangent may cross the curve.

Let us build one together, slowly
Find f'(x) for f(x) = x2 from the definition.
- Find the shifted output
f(x + h). Replace each x withx + h, then expand:(x + h)2 = x2 + 2xh + h2. The input x stays fixed while h changes. - Subtract the original output
f(x) = x2. Thex2terms cancel, leaving2xh + h2. This is the change in output, the numerator of the difference quotient. - Divide by the input change
h:(2xh + h2)/h = 2x + h. This cancellation is valid for every nonzero h. - Take the limit as
h → 0. The simplified expression gives2x + 0 = 2x.
We have found f'(x) = 2x, a formula for the slope at each input. For example, at x = 3 the slope is 2(3) = 6.
Step 3 explains why the limit became easier. For nonzero h, the original difference quotient equals the simpler expression. We take the limit of that expression instead of trying to evaluate 0/0.
Try it: use the definition on f(x) = x2 + 3x.
Answer: expand the shifted function and subtract the whole original function. This gives f(x + h) − f(x) = 2xh + h2 + 3h.
Next divide each term by nonzero h to obtain 2x + h + 3. Finally, let h → 0. The result is f'(x) = 2x + 3.
A second example with more terms
Find f'(x) for f(x) = 3x2 − 5x + 1.
- Expand
f(x + h) = 3(x + h)2 − 5(x + h) + 1 = 3x2 + 6xh + 3h2 − 5x − 5h + 1. - Subtract the entire expression
f(x), using parentheses to keep its signs together. The3x2,−5x, and+1terms cancel, leaving6xh + 3h2 − 5h. - Divide by
h:6x + 3h − 5. - Let
h → 0:6x − 5.
The derivative is f'(x) = 6x − 5. The added constant +1 canceled when we subtracted the original function from the shifted function. It contributes no change in output when the input changes.
It works beyond polynomials
For f(x) = 1/x, use a nonzero input x and keep x + h nonzero too. The difference quotient is [1/(x + h) − 1/x]/h.
First combine the two fractions in the numerator using a common denominator. Their difference is −h / [x(x + h)], and the whole result is still divided by h.
For nonzero h, cancel that common factor to obtain −1/[x(x + h)]. Now let h → 0. The derivative is −1/x2, valid for x other than zero.
Notation, and why we do the hard way first
You will see several notations for the derivative: f'(x), pronounced "f prime of x"; dy/dx, pronounced "d y by d x"; and D f(x).
The notation dy/dx reminds us that we are measuring change in y with respect to change in x. At this stage, treat it as a symbol for the derivative defined by a limit, not as ordinary division by a zero input change.
The definition tells you what the derivative measures. The rules in the next module will make the calculation quicker.
A square root, tamed by the conjugate
Find f'(x) for f(x) = √x. Here we work at a positive input x and keep h small enough that x + h stays positive. To simplify the quotient, use the conjugate method from the limits lesson.
- Write the difference quotient:
[√(x + h) − √x]/h. Substitutingh = 0gives 0/0, as always. (The starting point.) - Multiply top and bottom by the conjugate
√(x + h) + √x. The top becomes(x + h) − x = h. (The root difference collapses to a plain h.) - The quotient is now
h / [h(√(x + h) + √x)]; cancel the h to get1/(√(x + h) + √x). (The 0/0 is cleared.) - Let
h → 0: the answer is1/(2√x).
For positive x, the result is f'(x) = 1/(2√x). At x = 4 the slope is 1/4, while at x = 100 it is 1/20. Both slopes are positive, but the second is smaller: the curve is rising more gradually there.
At x = 0, this derivative formula is not defined. The right-hand slopes grow without bound, so there is no finite derivative at the endpoint.
Where derivatives fail: corners, cusps, jumps
A function is differentiable at an input when its derivative exists there as a finite number. This requires more than continuity. A graph can be continuous at a point and still lack a derivative there.
- A corner: for
f(x) = |x|at 0, the difference quotient is|h|/h, which equals+1for positive h and−1for negative h. The one-sided limits disagree, sof'(0)does not exist. The graph is perfectly connected; it just bends too sharply for a single slope. - A vertical tangent: the cube root
x1/3at 0 has difference quotienth1/3/h = 1/h2/3 → ∞. The tangent exists as a picture, but its slope is infinite, so the derivative does not exist as a number. - Any discontinuity: a jump or hole always kills the derivative, because of the fact below.
Differentiable implies continuous. Suppose f'(a) exists. As x → a, write the output change as the difference quotient multiplied by the input change:
f(x) − f(a) = [the difference quotient] × (x − a) → f'(a) × 0 = 0
The quotient approaches a finite derivative, and the input change approaches zero. Their product therefore approaches zero. This means f(x) → f(a), which is continuity at a.
The reverse implication is false. The absolute-value function is continuous at zero, but its left and right slopes disagree. Continuity by itself does not guarantee a derivative.
The derivative as a function, tabulated
Keep the notation's two roles separate. f' names the derivative function, while f'(3) is its value at one input. For f(x) = x2, the derivative rule is f'(x) = 2x:
| x | −2 | −1 | 0 | 1 | 2 | 3 |
| slope f'(x) | −4 | −2 | 0 | 2 | 4 | 6 |
Negative entries describe a graph that falls as you move to the right. The zero entry gives a horizontal tangent. Positive entries describe a graph that rises.
For this quadratic, the negative slopes become less steep as x approaches zero, and the positive slopes become steeper after zero. These are slopes of the original graph, not its heights.
Estimating a derivative numerically
You can also estimate a derivative by evaluating a difference quotient at a small nonzero input change. Use f(x) = x2 at x = 3.
A forward difference uses the target input and an input just to its right. With h = 0.01, the estimate is [f(3.01) − f(3)]/0.01 = (9.0601 − 9)/0.01 = 6.01. The exact derivative is 6, so this estimate is high by 0.01.
A symmetric difference uses inputs equally far to the left and right. Their separation is 0.02 here, so the estimate is [f(3.01) − f(2.99)]/0.02 = (9.0601 − 8.9401)/0.02 = 0.1200/0.02 = 6.0000.
The symmetric estimate is exact for this example. That does not make every numerical estimate exact. Keep track of the chosen inputs, the size of the interval, and whether the function values themselves are rounded or measured.
Setting h to zero too early, and what a tangent really is
Setting h = 0 in the original quotient gives 0/0. In the algebraic examples here, we first simplify so that the denominator factor h cancels at nonzero inputs. Only then do we let h approach zero. Other functions may need other ways to evaluate the limit.
A second common error is defining a tangent by the number of times it touches the graph. The tangent's slope comes from the limit of secant slopes at the chosen point. It can also meet the curve elsewhere.

Common misconceptions
- "Just plug in h = 0." That gives
0/0. Simplify first to cancel the h, then take the limit. - "The derivative is a single fixed number." The notation
f'(x)describes a function that assigns a slope to each input where the derivative exists. Its values can vary, although some functions have the same slope at every input. - "A tangent line touches the curve at exactly one point." Not required. It is the limit of secant slopes; it may cross the curve elsewhere.
- "Average rate and instantaneous rate are the same." The instantaneous rate is the limit of average rates as the gap shrinks to zero.
Where this leaves us
The difference quotient [f(x + h) − f(x)]/h gives an average rate over a nonzero input change. The derivative is its finite limit: f'(x) = lim (h → 0) [f(x + h) − f(x)]/h.
For the polynomial examples, the steps are: expand the shifted function, subtract the whole original function, divide by nonzero h, and take the limit. Fractions and roots may need a common denominator or a conjugate before cancellation is possible.
On the graph, the same limit gives the tangent's slope. A corner, a discontinuity, or unbounded secant slopes can prevent a finite derivative. Check that the limit exists before interpreting it as a slope or rate.
Retrieve, explain, and revisit
Close the notes and answer: Derive the derivative of a new quadratic from its difference quotient. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.1 Defining the Derivative. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.2 The Derivative as a Function. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Difference quotient
- The average rate of change [f(x+h) - f(x)]/h for a nonzero input change h.
- Derivative
- The finite limit of the difference quotient as h approaches 0, when it exists; the instantaneous rate of change.
- Secant line
- A line through two points on a curve.
- Tangent line
- At a differentiable point, the line through the point whose slope is the limit of nearby secant slopes.
- Instantaneous rate of change
- The rate at a single instant, given by the derivative.
- Leibniz notation
- The derivative written dy/dx, echoing rise over run with the gap taken to zero.
Interpreting the Derivative: Slope and Rate
- Write the equation of a tangent line using the derivative.
- Interpret the derivative as velocity in motion problems.
- Read where a function increases or decreases from the sign of its derivative.
A factory's total cost for q items is C(q) = 500 + 4q + 0.01q2 dollars. Building the 101st item actually costs 6.01 dollars. The derivative at q = 100 says 6 dollars per item, in one line, without building anything. Same function, a second reading: C'(q) is not the steepness of a picture here, it is money per item, a quantity the plant manager can act on. Every derivative you compute carries both readings at once, and this lesson is about learning to hear them.
One number, two readings
The derivative is a two-in-one tool. Geometrically it is the steepness of the graph. Physically it is how fast the quantity is changing. Same number, two stories. If you can read a speedometer and read a hill, you can read a derivative.
The upshot: the value of f'(x) is a slope; the sign of f'(x) tells you uphill (rising) or downhill (falling).
The equation of the tangent line
The tangent line at x = a passes through the point (a, f(a)) and has slope f'(a). Using point-slope form, its equation is:
y − f(a) = f'(a) (x − a)
Worked example. Find the tangent line to f(x) = x2 at x = 3.
- Find the point:
f(3) = 32 = 9, so the curve passes through(3, 9). (Where we are.) - Find the slope:
f'(x) = 2x, sof'(3) = 6. (How steep, from last lesson.) - Fill in point-slope:
y − 9 = 6(x − 3). (Plug the point and slope in.) - Tidy up:
y = 6x − 18 + 9 = 6x − 9.
So the tangent line is y = 6x − 9. Near x = 3, this straight line and the curve x2 give almost the same output. That is the idea of linear approximation: a curve, up close, looks like its tangent line, which is how calculators and error estimates lean on calculus.
Try it: find the tangent line to f(x) = x2 − 2x at x = 1.
Answer: f(1) = −1 and f'(x) = 2x − 2, so f'(1) = 0. A zero slope means a flat line: y = −1, the bottom of the parabola. You found a horizontal tangent.
The derivative as velocity
If s(t) gives the position of an object at time t, then s'(t) is the velocity, the instantaneous rate at which position changes. Positive velocity means moving forward, negative means backward, and zero means momentarily at rest, like the top of a tossed ball's arc. Differentiate once more and you get acceleration s''(t), the rate at which velocity changes.
The derivative with respect to time describes an instantaneous rate. In a differentiable cost model, marginal cost is C'(q). In one-dimensional motion, velocity is s'(t). Always specify which quantity is changing, with respect to what variable, and the resulting units.[1]

Worked example: a thrown ball
A ball's height is s(t) = −16t2 + 32t feet after t seconds.
- Velocity is the derivative:
s'(t) = −32t + 32. (Rate of the height.) - At the start,
t = 0:s'(0) = 32ft/s upward. (Thrown up.) - It is momentarily at rest when
s'(t) = 0: solve−32t + 32 = 0to gett = 1second. (The peak.) - Acceleration is the next derivative:
s''(t) = −32ft/s per second, constant gravity pulling down.
After the peak the velocity is negative and the ball falls. Notice how zero velocity marks the very top, the turning point.
Sign of the derivative: uphill or downhill
The sign of f'(x) reveals the shape of the graph:
- Where
f'(x) > 0, the tangent slopes up, sofis increasing (going uphill). - Where
f'(x) < 0, the tangent slopes down, sofis decreasing (going downhill). - Where
f'(x) = 0, the tangent is flat, a possible peak or valley.
For f(x) = x2, we have f'(x) = 2x, which is negative for x < 0 (the left side falls) and positive for x > 0 (the right side rises), with a flat spot at x = 0. That matches the U shape of a parabola exactly. This link between the sign of the derivative and the direction of the graph is the engine behind curve sketching and optimization ahead.
Units: the fastest way to read a derivative
Whenever a derivative models something real, its units are the output units divided by the input units, and saying the units out loud usually explains the number. Suppose a factory's total cost is C(q) = 500 + 4q + 0.01q2 dollars for producing q items. Then C'(q) = 4 + 0.02q dollars per item: the marginal cost, the approximate cost of the next single item.
- At
q = 100:C'(100) = 4 + 2 = 6dollars per item. (The 101st item will cost about 6 dollars to make.) - Check the exact change in this cost model:
C(101) − C(100) = [500 + 404 + 102.01] − [500 + 400 + 100] = 6.01dollars. The derivative said 6; the exact answer is 6.01. (The derivative is the clean approximation to "one more step.")
The same reading works everywhere: if P(t) is population in people and t is in years, P'(t) is people per year; if V(t) is liters and t is seconds, V'(t) is liters per second, a flow rate.
A full motion story with a sign chart
A particle moves along a line with position s(t) = t3 − 6t2 + 9t meters at time t seconds, for t in [0, 5]. Where is it moving forward, and where backward?
- Velocity:
v(t) = s'(t) = 3t2 − 12t + 9 = 3(t2 − 4t + 3) = 3(t − 1)(t − 3). (Differentiate, then factor to expose the zeros.) - Zeros at
t = 1andt = 3: the only moments the particle can turn around. - Sign of v between the zeros: at
t = 0,3(−1)(−3) = 9 > 0, forward. Att = 2,3(1)(−1) = −3 < 0, backward. Att = 4,3(3)(1) = 9 > 0, forward again. - Story: it advances until
t = 1(reachings(1) = 1 − 6 + 9 = 4m), backs up untilt = 3(down tos(3) = 27 − 54 + 27 = 0m), then advances for good. Accelerationa(t) = 6t − 12is negative beforet = 2and positive after, so the velocity itself bottoms out att = 2.
This forward-backward reading from the sign of the derivative is precisely the "sign chart" discipline Module 6 will formalize for arbitrary graphs.
Linear approximation: the tangent line as a calculator
Because a curve hugs its tangent line near the touch point, the tangent's outputs approximate the curve's. The recipe: near x = a, f(x) ≈ L(x) = f(a) + f'(a)(x − a). Estimate √4.1 by hand.
- Pick a friendly nearby point:
a = 4, where√4 = 2exactly. (Anchor at easy arithmetic.) - Slope there:
f'(x) = 1/(2√x), sof'(4) = 1/4. (From last lesson's hard-won formula.) - Tangent line:
L(x) = 2 + (1/4)(x − 4). - Evaluate at 4.1:
L(4.1) = 2 + (1/4)(0.1) = 2.025.
The true value is 2.02485..., so the estimate is off by about 0.00015, from ten seconds of arithmetic. Why it works: zoom in on any differentiable curve and it straightens into its tangent; the smaller the step from a, the better the line stands in for the curve. Why it can fail: step too far (using the same line to estimate √9 gives 3.25, badly off from 3), because far from the touch point the curve and line part ways. Tangent-line approximations lead to Newton's root-finding method later in this course. Higher-order approximations and their error conditions belong to the study of Taylor polynomials.

Average versus instantaneous, side by side
The thrown ball with s(t) = −16t2 + 32t makes the distinction sharp. Over the first second, the average velocity is total change over total time: [s(1) − s(0)]/(1 − 0) = (16 − 0)/1 = 16 ft/s. But the instantaneous velocity v(t) = −32t + 32 tells a richer story: 32 ft/s at launch, 16 ft/s at t = 0.5, 0 at the peak. The average is one number for the whole interval, the slope of the secant line from (0, 0) to (1, 16); the derivative is a number for each instant, the slope of the tangent at that instant. Notice the average value 16 is actually achieved, at t = 0.5, exactly halfway: no coincidence, and Module 6's Mean Value Theorem will turn that observation into a guarantee. When a homework problem says "velocity," check which one it wants; mixing them is the single most common motion-problem error.
Height is not direction
A common mix-up is thinking a big value of f(x) means the function is increasing there. Not so. Increase depends on the derivative, not on how high the graph is. A function can be way up high yet falling (just past a peak) or low down yet rising. Always look at the sign of f'(x), not the size of f(x). A second mix-up is reading zero velocity as "stopped for good." It states the velocity at that instant. A zero velocity can occur with a reversal, without a reversal, or throughout an interval of rest.
Common misconceptions
- "A large f(x) means f is increasing there." Direction comes from the sign of
f'(x), not the height off(x). - "Zero velocity means the object stopped permanently." It states instantaneous rest. For
s(t) = t3, velocity is zero at t = 0 but positive on both sides, so there is no reversal. Constant position gives rest for a whole interval. - "The tangent line only matters in geometry." It is also the best linear approximation to the function near the point.
- "Acceleration is just speed." Acceleration is the rate of change of velocity, the second derivative of position.
Summing up
The derivative reads as both slope and rate. The tangent line at x = a is y − f(a) = f'(a)(x − a), and near a point the curve looks like that line (linear approximation). For motion, s'(t) is velocity and s''(t) is acceleration. And the sign of f'(x) tells direction: positive means rising, negative means falling, zero means a flat spot. To understand any graph, find where its derivative is positive, negative, or zero.
Retrieve, explain, and revisit
Close the notes and answer: Explain how an object can have positive acceleration while slowing down. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.4 Derivatives as Rates of Change. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.2 Linear Approximations and Differentials. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.4 The Mean Value Theorem. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Tangent line equation
- y - f(a) = f'(a)(x - a), the line touching the curve at x = a.
- Linear approximation
- Using the tangent line as the best straight-line estimate of a curve near a point.
- Velocity
- The derivative of position with respect to time.
- Acceleration
- The derivative of velocity, the second derivative of position.
- Increasing
- On an interval, f(x1) < f(x2) whenever x1 < x2. A positive derivative throughout an interval is a sufficient condition.
- Decreasing
- On an interval, f(x1) > f(x2) whenever x1 < x2. A negative derivative throughout an interval is a sufficient condition.
Module 4: Differentiation Rules
Replace the slow limit definition with fast, reliable rules for differentiating any elementary function, from the power rule through the product, quotient, and chain rules. By the end you can differentiate essentially anything a first calculus course throws at you.
The Power, Constant, and Sum Rules
- Apply the power rule to any power of x, including negative and fractional exponents.
- Use the constant multiple and sum or difference rules.
- Differentiate any polynomial quickly.
Differentiating x2 from the definition took four steps and most of a page. Doing 7x4 − 2x3 + x − 9 that way would take four separate limits and a long afternoon. With the rule on this page it takes about eight seconds, and the answer is 28x3 − 6x2 + 1. Nothing here is a trick: every shortcut is provable from the definition you just used, and we will prove the main one before the page is out.
The rule that replaces the limit
The power rule is a two-word recipe for differentiating any power of x. Once you have it, polynomials, roots, and reciprocals all fall in seconds instead of minutes. This is the workhorse of the whole module.
Bottom line: for x to a power, bring the exponent down in front, then knock the exponent down by one.
The power rule
d/dx (xn) = n x(n − 1)
Read the left side "the derivative of x to the n." In words: the exponent hops down to the front as a multiplier, and the new exponent is one less. For every real exponent n, the rule is valid for x > 0. Integer powers and suitable rational powers allow larger real domains, but check those domains and exceptional points separately. For example, the real cube-root function is defined at zero but has no finite derivative there.[1] For example, d/dx (x5) = 5x4. It even agrees with the hard way: last module we found d/dx (x2) = 2x, and the power rule gives 2x1 = 2x instantly. Same answer, far less work.
Three helper rules
- Constant rule: the derivative of a plain number is 0, because a flat line has no slope. So
d/dx (7) = 0. - Constant multiple rule: a number multiplying the function just comes along for the ride.
d/dx (5x3) = 5 × 3x2 = 15x2. - Sum and difference rule: differentiate one term at a time.
d/dx (f ± g) = f' ± g'.
Together these let you differentiate any polynomial in a single pass, term by term, with no limits in sight. Each one follows from the matching limit law in Module 2, so they are trustworthy, not magic.
Let us differentiate a polynomial together, slowly
Find the derivative of f(x) = 7x4 − 2x3 + x − 9, one term at a time.
d/dx (7x4) = 7 × 4x3 = 28x3. (Exponent down, minus one.)d/dx (−2x3) = −2 × 3x2 = −6x2. (Same move, keep the sign.)d/dx (x) = 1, becausex = x1gives1 × x0 = 1. (For nonzero x, x0 = 1. At zero, the limit definition gives the same derivative 1 without using 00.)d/dx (−9) = 0. (A constant has no slope.)
Put the pieces together: f'(x) = 28x3 − 6x2 + 1. Handy check: each term dropped one degree, so a degree-4 polynomial gives a degree-3 derivative. Nicely done, that is the whole skill for polynomials.
Try it: differentiate f(x) = 5x3 − x2 + 4x − 8.
Answer: Term by term: 15x2 − 2x + 4 (the −8 becomes 0). You just did four derivatives at once.
Negative and fractional exponents (the step people skip)
Roots and reciprocals are secretly powers. Rewrite them as powers first, then use the same rule. This one habit is where most errors are avoided.
√x = x(1/2), sod/dx √x = (1/2) x(−1/2) = 1/(2√x).1/x = x(−1), sod/dx (1/x) = −1 × x(−2) = −1/x2.1/x3 = x(−3), so its derivative is−3 x(−4) = −3/x4.- A cube root
x(1/3)has derivative(1/3) x(−2/3).
These match the definition-based answers from Module 3 exactly, but now they take seconds. The routine is always: rewrite every term as a power, apply the rule, then translate back to root or fraction form for a clean answer.

A mixed example
Differentiate f(x) = 4√x + 2/x − 3.
- Rewrite as powers:
4x(1/2) + 2x(−1) − 3. (The key setup step.) - First term:
4 × (1/2) x(−1/2) = 2x(−1/2). - Second term:
2 × (−1) x(−2) = −2x(−2). - Constant:
−3gives 0.
Translate back: f'(x) = 2/√x − 2/x2. Rewrite, apply, translate back, and roots and reciprocals become routine.
Why the power rule is true
The power rule is not handed down from on high; it falls out of the definition you already own. Run the definition on f(x) = x3:
- Expand:
(x + h)3 = x3 + 3x2h + 3xh2 + h3. (Binomial expansion.) - Subtract
x3: the top is3x2h + 3xh2 + h3. - Divide by h:
3x2 + 3xh + h2. - Let
h → 0: everything with an h dies, leaving3x2.
Now look at the pattern instead of the particular. For any positive whole number n, the binomial theorem says (x + h)n = xn + n x(n−1) h + (terms each carrying h2 or higher). Subtract xn, divide by h, and every term still carrying an h vanishes in the limit. The lone survivor is n x(n−1). That is the power rule, and the reason the exponent "hops down": it counts how many ways the single h can pair with the remaining (n − 1) copies of x. Extending the rule to negative and fractional exponents takes the quotient and chain rules (coming soon), but the answers stay the same shape, which is why we state it for all real exponents now.
A full mixed derivative, start to finish
Differentiate f(x) = x3 + 5√x − 2/x2 + 7.
- Rewrite everything as powers:
f(x) = x3 + 5x(1/2) − 2x(−2) + 7. (The non-negotiable setup step.) - Term 1:
3x2. Term 2:5 × (1/2)x(−1/2) = (5/2)x(−1/2). (Exponent down, minus one.) - Term 3:
−2 × (−2)x(−3) = +4x(−3). (Two negatives make the sign flip; this is the step to slow down for.) - Term 4: the constant 7 gives 0.
- Translate back:
f'(x) = 3x2 + 5/(2√x) + 4/x3.
Sanity check at x = 1: f'(1) = 3 + 2.5 + 4 = 9.5, a definite number with no algebra left over, which is what a finished derivative should produce.
Using the derivative immediately: a tangent line
Find the tangent line to f(x) = x3 − 4x at x = 2.
- Point:
f(2) = 8 − 8 = 0, so the line passes through(2, 0). - Slope:
f'(x) = 3x2 − 4, sof'(2) = 12 − 4 = 8. - Assemble:
y − 0 = 8(x − 2), that is,y = 8x − 16.
Ten seconds of rules replaced the limit computation that took a whole page last module. That speed is the entire point of this module.
Derivatives of derivatives
Nothing stops you from differentiating again. For f(x) = x4: f'(x) = 4x3, f''(x) = 12x2, f'''(x) = 24x, f''''(x) = 24, and the fifth derivative is 0. Each pass drops the degree by one, so a degree-n polynomial dies after n + 1 differentiations. When f is position as a function of time, its second derivative is acceleration. More generally, the second derivative describes how the first derivative changes and helps determine concavity. Higher derivatives construct Taylor polynomials; matching a function to an infinite Taylor series requires additional convergence conditions.
Why the helper rules are legal, and a first application
The helper rules inherit their truth from the limit laws of Module 2 in one line each. For the constant multiple rule: [c f(x + h) − c f(x)]/h = c × [f(x + h) − f(x)]/h, and the constant-multiple limit law lets the c ride outside the limit. For the sum rule, the sum limit law splits the quotient in two. Nothing about differentiation is new machinery; it is limit machinery wearing work clothes.
Application: finding flat spots. Where does f(x) = x3 − 3x have a horizontal tangent?
- Differentiate:
f'(x) = 3x2 − 3. (Power and constant multiple rules, term by term.) - Horizontal means slope zero: solve
3x2 − 3 = 0, sox2 = 1, givingx = 1andx = −1. - Locate the points:
f(1) = 1 − 3 = −2andf(−1) = −1 + 3 = 2. Flat tangents at(1, −2)and(−1, 2).
Those two flat spots are the crest and trough of the cubic's S-curve, and finding them by solving f'(x) = 0 is a two-line preview of the entire optimization machinery in Module 6.
Two places the power rule does not go
The most common error is using the power rule on 2x. It does not apply there. The power rule is only for a variable base raised to a constant power, like xn. When the variable is up in the exponent, as in 2x, that is an exponential function with its own rule, coming later this module. Writing √x = x(1/2) is a convenient way to recognize the power rule. The limit definition or implicit differentiation can also produce the derivative; rewriting is a strategy, not a mathematical requirement.
Common misconceptions
- "The power rule works on 2 to the x." No. That is an exponential; the power rule is for
xn, a constant exponent. - "The derivative of a root is the root of the derivative." Rewrite
√xasx(1/2)and apply the rule; the answer is1/(2√x). - "Constants disappear only sometimes." Every plain constant differentiates to 0, always.
- "You can differentiate a fraction like 1/x directly." Rewrite it as
x(−1)first, then use the power rule.
The takeaway
The power rule, d/dx (xn) = n x(n − 1), brings the exponent down and drops it by one, for any real exponent when x > 0, with larger domains possible for particular exponents. Constants differentiate to 0, constant factors ride along, and sums differentiate term by term, so any polynomial falls in one pass. For roots and reciprocals, rewrite as powers first, apply the rule, then translate back. This is the fast machinery that replaces the limit definition for everyday derivatives.
Retrieve, explain, and revisit
Close the notes and answer: Differentiate a polynomial, a reciprocal, and a root, keeping their domains. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.3 Differentiation Rules. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.7 Derivatives of Inverse Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.9 Derivatives of Exponential and Logarithmic Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Power rule
- For real n and x > 0, d/dx(x^n) = n x^(n-1). Integer and suitable rational powers can have larger differentiability domains.
- Constant rule
- The derivative of any constant is 0.
- Constant multiple rule
- A constant factor passes through the derivative unchanged.
- Sum rule
- The derivative of a sum is the sum of the derivatives.
- Exponent form
- Rewriting roots and reciprocals as powers of x so the power rule applies.
- Term-by-term differentiation
- Differentiating a polynomial one term at a time using the sum rule.
The Product and Quotient Rules
- Differentiate products of functions with the product rule.
- Differentiate quotients with the quotient rule.
- Recognize which rule a given expression requires.
Here is a guess almost everyone makes. The derivative of a sum is the sum of the derivatives, so surely the derivative of a product is the product of the derivatives. Test it on the simplest product there is: x × x. That is x2, whose derivative is 2x. The guess predicts 1 × 1 = 1. One counterexample, and the guess is finished. This page works out what is true instead, and why the correct rule has to carry two terms.
Why two factors need two terms
When two functions are multiplied or divided, they interact: nudge the input and both pieces move at once. The derivative has to account for each of them changing while the other holds still for a moment, which is why each of these rules comes in two parts. Learn the shape once and they become automatic.[1]
What matters here: for a product, differentiate one factor at a time and add; for a quotient, do the same with a subtraction and divide by the bottom squared.
Why the naive guess fails
Suppose the derivative of a product were just the product of the derivatives. Test it on x × x = x2. The real derivative is d/dx (x2) = 2x. But the product of the separate derivatives is 1 × 1 = 1, which is wrong. One counterexample settles it: products interact, and the real rule captures that.
The product rule
For a product of two functions u and v:
d/dx (u v) = u' v + u v'
In words: "derivative of the first times the second, plus the first times derivative of the second." A helpful chant is exactly that sentence, repeated until it sticks. The two terms say that as a product grows, each factor contributes its own change while the other is held still for a moment.
Worked example. Differentiate f(x) = x2 sin(x).
- Label the parts:
u = x2sou' = 2x; andv = sin(x)sov' = cos(x). (Name everything before assembling.) - Slot into the rule:
u' v + u v' = 2x sin(x) + x2 cos(x).
So f'(x) = 2x sin(x) + x2 cos(x). Labeling u, u', v, v' first keeps the pieces from getting jumbled.
Try it: differentiate f(x) = x2 ex.
Answer: u = x2, u' = 2x, v = ex, v' = ex, so f'(x) = 2x ex + x2 ex. You handled the product rule.
The quotient rule
For a quotient u/v:
d/dx (u/v) = (u' v − u v') / v2
Order matters here because of the subtraction: "derivative of the top times the bottom, minus the top times derivative of the bottom, all over the bottom squared." A classic memory aid is "low d-high minus high d-low, over low-low," where "d" means "derivative of." Swap the order and you flip the sign of the whole answer, so the mnemonic is worth getting exactly right.
Worked example. Differentiate f(x) = x / (x2 + 1).
- Label:
u = xsou' = 1; andv = x2 + 1sov' = 2x. - Slot in:
(u' v − u v')/v2 = [1(x2 + 1) − x(2x)] / (x2 + 1)2. - Simplify the top:
x2 + 1 − 2x2 = 1 − x2.
So f'(x) = (1 − x2) / (x2 + 1)2. Keep the bottom squared, and do not cancel too early.
A second quotient example
Differentiate f(x) = (2x + 3)/(x − 1). With u = 2x + 3, u' = 2, v = x − 1, v' = 1, the top is 2(x − 1) − (2x + 3)(1) = 2x − 2 − 2x − 3 = −5. So f'(x) = −5/(x − 1)2. The constant top is a good reminder to expand and combine carefully before declaring the answer.
Which rule, and when to simplify first
Spotting the structure is half the job. Two things multiplied means the product rule; one thing divided by another means the quotient rule; only added means the plain sum rule is enough. And sometimes a little algebra dodges the harder rule entirely: (x2 + x)/x = x + 1 simplifies before you differentiate, and 3/x2 = 3x(−2) is easier by the power rule than by the quotient rule. Always pause and ask whether the expression simplifies before you commit to a rule.
Where the product rule comes from
The rule is provable in six lines from the definition, using one clever move: adding and subtracting the same quantity. Start with the difference quotient for u(x)v(x):
[u(x + h)v(x + h) − u(x)v(x)] / h
- Insert
− u(x + h)v(x) + u(x + h)v(x)in the middle of the top. Adding zero changes nothing, but it splits the expression into two workable pieces. (The trick of the proof.) - Group:
u(x + h)[v(x + h) − v(x)]/h + v(x)[u(x + h) − u(x)]/h. (Each bracket is now a difference quotient we recognize.) - Let
h → 0. The first piece:u(x + h) → u(x)(differentiable functions are continuous) and the bracket over h heads tov'(x), givingu(x)v'(x). - The second piece heads to
v(x)u'(x). Sum:u'v + uv'. Done.
Read the two terms as a story: when both factors are nudged, the total change is (change in u) times v, plus u times (change in v); the tiny change-times-change piece dies in the limit. The quotient-rule formula can also be motivated algebraically. Once differentiability of the quotient is established for v != 0, write Q = u/v, so Qv = u. Differentiate both sides with the product rule: Q'v + Qv' = u'. Solve for Q': Q' = (u' − Qv')/v = (u' − (u/v)v')/v = (u'v − uv')/v2. The bottom-squared and the minus sign both fall out of the algebra; nothing is arbitrary.

One derivative, two roads (a built-in answer check)
Differentiate f(x) = (x2 + 1)(x3 − 3x) by the product rule, then again by expanding first.
- Product rule:
u = x2 + 1, u' = 2x, v = x3 − 3x, v' = 3x2 − 3. - Assemble:
2x(x3 − 3x) + (x2 + 1)(3x2 − 3). - Expand each piece:
2x4 − 6x2and3x4 − 3x2 + 3x2 − 3 = 3x4 − 3. Sum:5x4 − 6x2 − 3. - Road two: expand first.
f(x) = x5 − 3x3 + x3 − 3x = x5 − 2x3 − 3x, sof'(x) = 5x4 − 6x2 − 3.
Identical answers, as they must be. When a product of polynomials is small, expanding first is often less error-prone; when a factor is sin x or ex, polynomial expansion is unavailable and the product rule is a direct method. Having both roads means you can audit yourself on the polynomial cases until the rule feels trustworthy.
The reciprocal shortcut, and a sign-error autopsy
A quotient with a constant top is faster by pattern: d/dx [1/v] = −v'/v2 (that is the quotient rule with u = 1, u' = 0). So d/dx [1/(x2 + 1)] = −2x/(x2 + 1)2 in one step.
Now watch the classic sign error happen to f(x) = x/(x2 + 1) so you can recognize it later. The wrong order computes (uv' − u'v)/v2 = [x(2x) − 1(x2 + 1)]/(x2 + 1)2 = (x2 − 1)/(x2 + 1)2, exactly the negative of the true answer (1 − x2)/(x2 + 1)2. A negated derivative is poison downstream: it says the function is falling where it is rising, flips every increasing/decreasing conclusion, and reverses every max/min call in Module 6. Quick audit: at x = 0 the true derivative gives 1 > 0, and indeed x/(x2 + 1) rises through the origin. Test a point whenever you doubt your order.
Simplify first when algebra allows
Differentiate f(x) = (3x2 − 5)/x. The quotient rule works, but splitting the fraction is faster: f(x) = 3x − 5/x = 3x − 5x(−1), so f'(x) = 3 + 5x(−2) = 3 + 5/x2. Same answer, half the writing, and far fewer chances to drop a sign. The order of operations for a seasoned differentiator is: simplify, then choose the lightest rule that fits.
Reading a derivative after computing it
The answer f'(x) = (1 − x2)/(x2 + 1)2 for f(x) = x/(x2 + 1) is not just a formula to box; it is information. The bottom is always positive, so the sign of f' is the sign of 1 − x2: positive between −1 and 1, negative outside. So the curve rises through the middle and falls on both wings, with horizontal tangents at x = ±1, where f(1) = 1/2 and f(−1) = −1/2: a small crest and dip on an otherwise flattening curve. Ten seconds of sign-reading sketched the graph. Building the habit of interrogating each derivative you compute, where is it zero, where positive, is what turns the rules of this module into the applications of Module 6.
The wrong product, and the flipped quotient
The most common error is the naive one we disproved: writing d/dx (u v) = u' v'. It is wrong; the correct rule has two terms, u' v + u v'. The second common error is the quotient-rule order. It is top-derivative first: u' v − u v'. Getting it backward negates your answer. When in doubt, test your memory on a tiny example like x/1 or x2/x, where you already know the answer.
Common misconceptions
- "The derivative of a product is the product of the derivatives." False. It is
u' v + u v'. Counterexample:d/dx (x × x) = 2x, not 1. - "Order does not matter in the quotient rule." The top derivative comes first; swapping negates the whole answer.
- "You must use the quotient rule on every fraction." Often you can simplify first, or rewrite as a negative power and use the power rule.
- "The v squared is optional." The bottom squared is part of the quotient rule; leaving it off changes the answer.
Looking back
Products and quotients interact, so their rules have two parts. Product rule: d/dx (u v) = u' v + u v'. Quotient rule: d/dx (u/v) = (u' v − u v')/v2, top-derivative first, all over the bottom squared. Label u, u', v, v' before you assemble, watch the quotient order, and simplify with algebra when you can to avoid extra work. Those habits make these rules dependable.
Domain checks belong with the answer
The product rule assumes both factors are differentiable at the input. The quotient rule also requires a nonzero denominator. If (x2 + x)/x simplifies to x + 1, the original function still excludes zero. Its derivative is 1 for x ≠ 0; cancellation does not define a derivative at a missing point. State these restrictions even when the simplified derivative has a larger apparent domain.[1]
Retrieve, explain, and revisit
Close the notes and answer: Differentiate a quotient and explain why simplification cannot restore a missing input. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.3 Differentiation Rules. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.1 Defining the Derivative. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Product rule
- d/dx (u v) = u'v + u v'.
- Quotient rule
- d/dx (u/v) = (u'v - u v')/v^2.
- Factor
- One of the functions being multiplied in a product.
- Numerator and denominator
- The top (u) and bottom (v) of a quotient being differentiated.
- Rule selection
- Diagnosing whether an expression is a product, quotient, or sum to pick the right rule.
The Chain Rule
- Recognize a composite function as an outer function wrapped around an inner one.
- Apply the chain rule to differentiate composites.
- Combine the chain rule with the power, product, and quotient rules.
Differentiate (3x2 + 1)4. The power rule seems to answer 4(3x2 + 1)3, and that answer is wrong. The true derivative is 24x(3x2 + 1)3, with an additional factor of 6x. That missing 6x is the derivative of what sits inside the brackets, and leaving it out gives an incorrect derivative. This page is about that factor: where it comes from, why it cannot be dropped, and how to spot every place it is owed.
Layers, and the factor people drop
A composite function is one machine feeding another: an inner function does its job first, and an outer function acts on the result. The chain rule differentiates the outer and the inner separately, then multiplies. That extra inner factor is the whole point, and forgetting it is a common error.
Worth holding on to: derivative of the outside (leaving the inside alone), times the derivative of the inside.
The rule
If y = f(g(x)), then:
d/dx f(g(x)) = f'(g(x)) × g'(x)
Read the pieces: f'(g(x)) is "differentiate the outer function but keep the inner one inside it," and g'(x) is "the derivative of the inner function." People often say "derivative of the outside, times the derivative of the inside." That short phrase is the entire rule.
Why the extra factor makes sense
Think in rates, like gears. Suppose y changes 3 times as fast as u, and u changes 2 times as fast as x. Then y changes 3 × 2 = 6 times as fast as x. The rates simply multiply. In Leibniz notation this reads dy/dx = (dy/du)(du/dx), which is exactly why the inner derivative has to appear.
Let us do one together, slowly: a power of a bundle
Differentiate f(x) = (3x2 + 1)4.
- Spot the pieces: the outer is
( )4and the inner is3x2 + 1. (Name inside and outside.) - Differentiate the outer, keeping the inside:
4(3x2 + 1)3. (Power rule on the bundle.) - Differentiate the inner:
d/dx (3x2 + 1) = 6x. (The extra factor.) - Multiply:
4(3x2 + 1)3 × 6x = 24x (3x2 + 1)3.
So f'(x) = 24x (3x2 + 1)3. If you forgot the 6x, the answer would be wrong; that inner factor is the reason the chain rule exists.
Try it: differentiate f(x) = (2x + 1)10.
Answer: Outer derivative 10(2x + 1)9 times inner derivative 2, giving 20(2x + 1)9. Nicely spotted.
A trig composite
Differentiate f(x) = sin(x2).
- Outer is
sin( ), inner isx2. (Identify the nest.) - Derivative of the outer, keeping the inside:
cos(x2). - Times the inner derivative
2x:cos(x2) × 2x = 2x cos(x2).
Compare this with (sin x)2, which is a different nest (a power of sine) and gives 2 sin(x) cos(x). Reading which part is inside and which is outside changes the answer completely, so slow down and look.
A square root
Differentiate f(x) = √(x2 + 1).
- Rewrite as a power:
(x2 + 1)(1/2). (Roots are powers.) - Outer derivative:
(1/2)(x2 + 1)(−1/2). - Times inner derivative
2x:(1/2)(x2 + 1)(−1/2) × 2x = x / √(x2 + 1).
Combining with the other rules
The chain rule teams up with the product and quotient rules, and nested composites use it more than once. For f(x) = sin(cos(x)), the outer is sine and the inner is cos(x): cos(cos(x)) × (−sin(x)) = −sin(x) cos(cos(x)).
For f(x) = (2x + 1)3 ex, use the product rule with one factor needing the chain rule: u = (2x + 1)3 gives u' = 3(2x + 1)2 × 2 = 6(2x + 1)2, and v = ex, so f'(x) = 6(2x + 1)2 ex + (2x + 1)3 ex. Whenever something sits inside something else, a power of a bundle, a trig of a bundle, a root of a bundle, the chain rule applies.
Why composition multiplies rates
Here is the chain rule seen honestly, not as a formula but as a fact about compounding sensitivities. Suppose y depends on u, and u depends on x. Nudge x by a tiny amount dx. The middle variable moves by roughly du = (du/dx) × dx. That movement in u then moves y by roughly dy = (dy/du) × du. Substitute the first into the second: dy = (dy/du)(du/dx) × dx. The sensitivity of y to x is the product of the two sensitivities, because the second machine amplifies whatever the first machine hands it. Gears mesh the same way: if the middle gear turns twice per turn of the crank, and the last gear turns three times per turn of the middle, the last gear turns six times per crank. One honest caution: treating dy/du × du/dx as fractions that cancel is a memory aid, not a proof, because each is a limit; the real proof patches the case where du is momentarily zero. But the intuition it captures is exactly right.

A concrete rate chain with numbers
A spherical balloon is inflated so its radius grows as r(t) = 2t cm after t seconds, and volume is V = (4/3)πr3. How fast is the volume growing at t = 3?
- Outer rate:
dV/dr = 4πr2. (How volume responds to radius.) - Inner rate:
dr/dt = 2cm/s. (How radius responds to time.) - Chain them:
dV/dt = (dV/dr)(dr/dt) = 4πr2 × 2 = 8πr2. - At
t = 3,r = 6, sodV/dt = 8π(36) = 288π, about 905 cm3/s.
Notice the same steady 2 cm/s of radius produces ever more volume per second as the balloon grows; the outer rate depends on where you are. This computation is the entire engine of Module 5's related rates.
Three layers deep
Differentiate f(x) = sin3(2x), which means [sin(2x)]3. Peel from the outside in.
- Outermost layer: a cube. Derivative:
3[sin(2x)]2, insides untouched. (Layer one.) - Middle layer: sine. Derivative:
cos(2x), its own inside untouched. (Layer two.) - Innermost layer:
2x. Derivative:2. (Layer three.) - Multiply all three:
f'(x) = 3 sin2(2x) × cos(2x) × 2 = 6 sin2(2x) cos(2x).
The pattern generalizes: one factor per layer, outermost first, and you are finished only when the innermost derivative (here the plain 2) has been collected. Writing the layers as a vertical list before multiplying prevents nearly all omissions.
The chain rule explains the exponential rule
The next lesson will hand you the rule d/dx (ax) = ax ln a. Where does that ln a come from? From the chain rule, and you can watch it appear right now. For a positive constant base a, write ax = ex ln a, because eln a = a. Now differentiate the right side as a composite: outer e( ) keeps itself, times the inner derivative d/dx (x ln a) = ln a. Result: ex ln a × ln a = ax ln a. The rule arrives already explained, which is the usual situation in calculus: the shortcut rules are compressed proofs.
Chain plus quotient in one line
Differentiate f(x) = [x/(x + 1)]2. Outer square: 2[x/(x + 1)]. Inner quotient: [(1)(x + 1) − x(1)]/(x + 1)2 = 1/(x + 1)2. Multiply: f'(x) = 2x/(x + 1)3. Two rules, one factor each, assembled without drama, which is what fluency looks like.
Three fast reps to make it automatic
Fluency comes from reps where you name the layers out loud. Cover the answers and try these.
d/dx (5x2 − 3x)7: outer power, inner polynomial. Answer:7(5x2 − 3x)6 × (10x − 3).d/dx cos3(x), meaning(cos x)3: outer cube, inner cosine. Answer:3 cos2(x) × (−sin x) = −3 cos2(x) sin(x).d/dx √(9 − x2): outer half-power, inner9 − x2. Answer:(1/(2√(9 − x2))) × (−2x) = −x/√(9 − x2).
That last one is worth a second look: the graph of √(9 − x2) is the top half of a circle of radius 3, and the formula says the slope is negative x over y, exactly what implicit differentiation will re-derive for circles next module from a completely different direction. When two methods you trust give one answer, that is calculus quietly auditing itself.
Stopping too soon, and reading the nest backwards
The classic mistake is stopping too soon, writing d/dx (3x2 + 1)4 = 4(3x2 + 1)3 and forgetting the inner derivative 6x. Build a tiny habit: after you differentiate the outside, immediately ask "and what is the derivative of the inside?" and multiply by it. The second mistake is confusing sin(x2) with (sin x)2. Ask which operation happens last: in sin(x2) you square first then take sine; in (sin x)2 you take sine first then square. The outer function is whichever happens last.
Common misconceptions
- "Just apply the power rule to the outside." That omits the inner derivative.
d/dx (3x2 + 1)4 = 24x(3x2 + 1)3, not4(3x2 + 1)3. - "sin(x^2) and (sin x)^2 have the same derivative." They are different nests:
2x cos(x2)versus2 sin(x) cos(x). - "The chain rule is a rare special case." It applies whenever the required derivatives exist for a composition, including powers of expressions and trigonometric functions of nontrivial inputs.
- "You cancel the du like a fraction to prove it." That is a memory aid, not a proof;
dy/duanddu/dxare limits, not literal fractions.
What to remember
The chain rule differentiates composites: d/dx f(g(x)) = f'(g(x)) g'(x), the derivative of the outside (inside left alone) times the derivative of the inside. It comes from rates multiplying, like gears. Spot the inner and outer, differentiate the outer keeping the inside, then multiply by the inner derivative, and never skip that last factor. Combined with the power, product, and quotient rules, this lets you differentiate essentially any function in a first calculus course.
Check both functions before multiplying
At x = a, the chain rule requires g to be differentiable at a and f to be differentiable at g(a). The trig examples here use radians. For sqrt(9 − x2), the real function has domain [−3, 3], but the derivative −x/sqrt(9 − x2) is finite only for −3 < x < 3. A domain statement is part of the result.[1]
Retrieve, explain, and revisit
Close the notes and answer: Identify the inner function before differentiating a nested trigonometric expression. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.6 The Chain Rule. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.5 Derivatives of Trigonometric Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.9 Derivatives of Exponential and Logarithmic Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Chain rule
- d/dx f(g(x)) = f'(g(x)) g'(x); outer derivative times inner derivative.
- Composite function
- A function formed by nesting one function inside another, f(g(x)).
- Outer function
- The function applied last, differentiated first in the chain rule.
- Inner function
- The function applied first, whose derivative is the extra chain-rule factor.
- Nested composite
- A composition inside a composition, requiring the chain rule more than once.
Derivatives of Trigonometric, Exponential, and Logarithmic Functions
- State and apply the derivatives of the six basic trig functions.
- Differentiate exponential functions, including e^x and a^x.
- Differentiate logarithmic functions, including ln x and log base a.
For f(x) = ex, height and slope are equal: at x = 2 both are approximately 7.389, and at x = 5 both are approximately 148.413. No nonzero polynomial has its derivative equal to itself at every real input. More generally, a model with a constant proportional growth rate k satisfies y' = ky and has exponential solutions y = Cekx. This lesson develops the derivative rules for exponential, logarithmic, and trigonometric functions.[2]
A short list, then the chain rule does the rest
You do not rederive these every time. You memorize a short list, then let the chain rule handle anything nested inside them. Think of this lesson as stocking your toolbox with a few reliable, named tools.
Key idea: learn a small set of base derivatives, then reach for the chain rule for the inside of any composite.
Trig derivatives
Built from the special limit sin(x)/x → 1, the core results are:
| Function | Derivative |
| sin(x) | cos(x) |
| cos(x) | −sin(x) |
| tan(x) | sec2(x) |
| cot(x) | −csc2(x) |
| sec(x) | sec(x) tan(x) |
| csc(x) | −csc(x) cot(x) |
Here is a friendly pattern to lean on: the three "co" functions (cos, cot, csc) all carry a minus sign. Only sine and cosine are truly fundamental; the other four are ratios of them and follow by the quotient rule. With the chain rule, d/dx cos(5x) = −sin(5x) × 5 = −5 sin(5x), and d/dx tan(x2) = sec2(x2) × 2x = 2x sec2(x2).

Exponential derivatives
The function ex has a remarkable property: it is its own derivative.
d/dx (ex) = ex
Read that once more, because it is genuinely special. At every point, the slope of ex equals its own height. That is the defining feature of the number e (about 2.718). For a general base a, an extra factor of ln a shows up: d/dx (ax) = ax ln a. So d/dx (2x) = 2x ln 2. With the chain rule, d/dx (e3x) = e3x × 3 = 3 e3x, and d/dx e(x2) = e(x2) × 2x = 2x e(x2). This self-copying behavior is why ex models anything whose growth rate matches its current size.

Logarithmic derivatives
The natural logarithm has a beautifully simple derivative:
d/dx (ln x) = 1/x
For a general base, d/dx (loga x) = 1/(x ln a). With the chain rule, the log of a bundle gives the inner derivative over the inside: d/dx ln(g(x)) = g'(x)/g(x). For example, d/dx ln(x2 + 1) = 2x/(x2 + 1). That "inner derivative over the inside" pattern shows up so often it is worth recognizing instantly.
Try it: differentiate f(x) = 3 sin(x) + ex − ln(x).
Answer: Straight from the list: f'(x) = 3 cos(x) + ex − 1/x. You just used three of the new rules in one line.
Combining rules
Differentiate f(x) = x2 ex with the product rule.
- Label:
u = x2sou' = 2x;v = exsov' = ex. - Product rule:
2x ex + x2 ex, which factors tox ex (2 + x).
And f(x) = ex sin(x): with u = ex, u' = ex, v = sin(x), v' = cos(x), the product rule gives ex sin(x) + ex cos(x) = ex(sin x + cos x). With this short list plus the four rules from the module, you can differentiate essentially any function a first course will ask.
Where sin' = cos comes from
The sine rule is not folklore; it falls out of the limit definition plus the two special limits from Module 2. Run the definition on f(x) = sin x:
- Difference quotient:
[sin(x + h) − sin x]/h. - Apply the angle-addition identity
sin(x + h) = sin x cos h + cos x sin h. (Precalculus, earning its keep.) - Regroup:
sin x (cos h − 1)/h + cos x (sin h)/h. (Everything depending on h is isolated in two famous quotients.) - Let
h → 0: from Module 2,(cos h − 1)/h → 0and(sin h)/h → 1. The survivors:sin x × 0 + cos x × 1 = cos x.
So d/dx sin x = cos x, and the same computation with cosine's addition formula gives d/dx cos x = −sin x. This derivation is also exactly why radians are mandatory: the limit (sin h)/h → 1 is a radian fact. In degrees that limit is π/180, and the ugly constant would infect every formula.
The other four, by quotient rule
Tangent is sin x / cos x, so the quotient rule gives:
d/dx tan x = [cos x × cos x − sin x × (−sin x)] / cos2 x. (Top-derivative times bottom, minus top times bottom-derivative.)- Top:
cos2 x + sin2 x = 1. (The Pythagorean identity collapses it.) - So
d/dx tan x = 1/cos2 x = sec2 x.
The secant, cosecant, and cotangent rules all fall the same way; none needs separate memorization so much as five minutes of quotient-rule practice. Knowing the table and where it comes from means a forgotten entry is recoverable rather than fatal.
Why e is the natural base
Run the definition on f(x) = ex: the quotient is [ex + h − ex]/h = ex × (eh − 1)/h, using the exponent law ex + h = exeh. Everything hinges on the number (eh − 1)/h as h shrinks. Watch it numerically:
| h | 0.1 | 0.01 | 0.001 |
| (eh − 1)/h | 1.0517 | 1.00502 | 1.0005 |
The quotient heads to exactly 1, and that is not a coincidence: e is defined as the one base that makes this limit equal 1. For base 2 the analogous limit is ln 2 ≈ 0.693; for base 10 it is ln 10 ≈ 2.303. So every exponential is its own derivative times a base-dependent constant, and e is the base whose constant is 1. That is the entire reason e is "natural," and why scientists write growth laws in base e.
The logarithm inherits its rule from the exponential
Since y = ln x means ey = x, the two graphs are mirror images across the line y = x, and their slopes are reciprocals at mirrored points. Differentiating ey = x (treating y as a function of x, a move next lesson makes routine) gives ey × dy/dx = 1, so dy/dx = 1/ey = 1/x. The general base follows from the change-of-base identity loga x = ln x / ln a: divide the derivative by the constant ln a to get 1/(x ln a).
Worked combo. Differentiate f(x) = x2 ln x. Product rule: u = x2, u' = 2x, v = ln x, v' = 1/x, so f'(x) = 2x ln x + x2(1/x) = 2x ln x + x. At x = 1: f'(1) = 0 + 1 = 1, a positive slope, matching the graph rising through the point (1, 0).
Two consistency checks worth internalizing
The tangent to ex at zero passes through (0, 1) with slope 1, so its equation is y = 1 + x. Thus e0.03 is approximately 1.03. Equality between the curve and this tangent holds at zero; for every nonzero x the curve lies above the tangent. If 0.03 represents a continuously compounded growth rate over one time unit, the exact growth factor is e0.03. The model must be specified before interpreting the number.[2]
Check two: differentiating an identity. The Pythagorean identity says sin2x + cos2x = 1 for every x. A constant has derivative zero, so differentiating the left side must give zero. Try it with the chain rule: 2 sin x cos x + 2 cos x (−sin x) = 0. It does, identically. Running your derivative rules against known identities like this is a free error detector: if the check had failed, one of the memorized formulas would have to be wrong. Mathematicians audit themselves this way all the time, and you should too.
Not a power, and not in degrees
The most common error is using the power rule on ex, writing something like x e(x−1). That is wrong. The power rule is for a variable base with a constant exponent, like x2; here the variable is up in the exponent, so it is exponential, and d/dx (ex) = ex. The second trap is using trig derivatives in degrees. They hold only in radians, because the whole thing rests on sin(x)/x → 1, which is a radian fact. In degrees, an ugly factor of π/180 would clutter every formula.
Common misconceptions
- "d/dx (e^x) = x e^(x-1)." No. That is the power rule, which does not apply.
exis its own derivative. - "Trig derivative formulas work in degrees." Only in radians. Radian measure is what makes
d/dx sin(x) = cos(x)clean. - "The derivative of ln x is complicated." It is just
1/x, one of the simplest results in calculus. - "a^x and e^x differentiate the same way."
exgivesex; a general base gives an extraln afactor.
Recap
Memorize a short list: sine gives cosine, cosine gives negative sine, tangent gives secant squared (the "co" functions carry minus signs). The exponential ex is its own derivative, a general base gives ax ln a, and the natural log gives 1/x, with ln(g(x)) giving g'(x)/g(x). Use the chain rule for anything nested and the product or quotient rule for combinations. Keep everything in radians. The next lesson extends these rules to inverse functions, including inverse trigonometric functions.
Keep the domains with the formulas
For ax, take a positive constant base. A logarithm loga(x) additionally requires a ≠ 1 and x > 0. The rule d/dx ln(g(x)) = g'(x)/g(x) requires g(x) > 0 and differentiability of g. The related rule d/dx ln|g(x)| = g'(x)/g(x) works wherever g is differentiable and nonzero, including negative g. For example, ln(x − 2) has derivative 1/(x − 2) only on x > 2; the derivative expression does not enlarge the original function's domain.[2]
Retrieve, explain, and revisit
Close the notes and answer: Compare the domains of ln(g(x)) and ln|g(x)|, then differentiate both. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.5 Derivatives of Trigonometric Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.9 Derivatives of Exponential and Logarithmic Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Derivative of sine
- d/dx sin(x) = cos(x).
- Derivative of cosine
- d/dx cos(x) = -sin(x); the co-functions carry minus signs.
- Derivative of e^x
- e^x is its own derivative.
- General exponential
- For constant a > 0, d/dx(a^x) = a^x ln(a).
- Derivative of ln x
- For x > 0, d/dx(ln x) = 1/x.
- Logarithmic differentiation
- Taking ln of both sides to differentiate messy products or variable exponents.
Inverse Functions and Their Derivatives
- Determine a suitable domain on which a function has an inverse.
- Calculate inverse derivatives with the inverse-function rule and the chain rule.
- Explain the principal values and differentiability domains of inverse trigonometric functions.
A calibration model converts an input x into a reading y = f(x). Reversing the calibration asks for x from y. Reversing its rate asks a different question: how much does the inferred input change per unit of reading? The derivative of the inverse answers that question, provided the inverse exists and the relevant slope is nonzero.
Retrieve before reading
Without looking back, differentiate sin(x), tan(x), and ex, using radians. Then explain why x2 cannot be inverted uniquely on all real numbers. Check: the derivatives are cos(x), sec2(x), and ex; both 2 and −2 square to 4. Keep this distinction between a derivative and an inverse in mind throughout the lesson.
An inverse reverses a function
A function is one-to-one when different inputs give different outputs. It then has an inverse on its range. The notation f−1 names that inverse, not the reciprocal 1/f. For f(x) = 3x + 6, solve y = 3x + 6 to obtain x = (y − 6)/3. Thus f−1(y) = (y − 6)/3. Check both compositions: applying f and then its inverse returns the original input, as does applying them in the other order within their domains.[1]
On a graph, the horizontal line test identifies one-to-one functions: each horizontal line intersects at most once. The inverse exchanges coordinates, so its graph is the reflection across y = x. A full parabola fails the test. Restrict f(x) = x2 to x ≥ 0 and its inverse is sqrt(x), with nonnegative outputs. Restrict instead to x ≤ 0 and the inverse is −sqrt(x). The chosen domain changes the inverse.

Why inverse slopes are reciprocals
Let g = f−1. If f is one-to-one and differentiable on an interval and f'(g(a)) != 0 at an interior point, the inverse derivative is g'(a) = 1/f'(g(a)). The denominator is evaluated at the original input g(a), not usually at a. To see the formula, differentiate f(g(x)) = x using the chain rule: f'(g(x))g'(x) = 1. Dividing by the nonzero first factor gives the rule. The inverse-function theorem supplies the differentiability guarantee under these hypotheses; the chain-rule calculation explains the resulting formula.[2]
Geometrically, reflection swaps a small rise and run, turning slope m into 1/m when m != 0. In a calibration, the units reverse too. If f' is measured in volts per centimeter, the derivative of its inverse is measured in centimeters per volt. A shallow nonzero calibration slope can therefore correspond to a large inverse slope and greater sensitivity to reading error.
Find an inverse slope without finding the inverse formula
Let f(x) = x3 + x. Since f'(x) = 3x2 + 1 is positive everywhere, f is strictly increasing and one-to-one. Its range is all real numbers. Find the derivative of its inverse at the reading 10.
- Find the original input: f(2) = 8 + 2 = 10, so g(10) = 2.
- Evaluate the original derivative there: f'(2) = 13.
- Take the reciprocal: g'(10) = 1/13.
- Interpret it: near a reading of 10, a small reading change of 0.13 produces an inferred-input change of approximately (1/13)(0.13) = 0.01.
The last step is a local linear approximation. It is not an exact finite-change identity. Substituting 10 into f' would instead give 301, which is the derivative at the wrong input.
Why the nonzero condition matters
The function f(x) = x3 is one-to-one, but f'(0) = 0. Its inverse is the real cube root, and the inverse has no finite derivative at zero. For nonzero inputs, g'(x) = 1/(3x2/3). The inverse still exists at zero; what fails there is a finite derivative. Keep existence, continuity, and differentiability as separate questions.[2]
Principal values for inverse trigonometric functions
Sine and cosine repeat, so they are not one-to-one over the whole real line. Standard inverse functions use selected branches. Arcsin has input domain [−1, 1] and output range [−π/2, π/2]. Arccos has the same input domain and output range [0, π]. Arctan accepts every real input and returns an angle in (−π/2, π/2). These outputs are called principal values.[1]
For example, arcsin(1/2) = π/6. But arcsin(sin(5π/6)) = π/6, not 5π/6, because the inverse must return a principal value. Meanwhile sin(arcsin(u)) = u for every u in [−1, 1]. The order and the domain of the composition matter.

Derive arcsine and arctangent
Set y = arcsin(x), so sin(y) = x and y is in the principal range. Differentiate to get cos(y)y' = 1. At interior inputs −1 < x < 1, cos(y) is positive and equals sqrt(1 − x2). Therefore d/dx arcsin(x) = 1/sqrt(1 − x2). Arcsine is defined at ±1, but this finite derivative formula is not.[2]
For y = arctan(x), tan(y) = x. Differentiating gives sec2(y)y' = 1. Since sec2(y) = 1 + tan2(y) = 1 + x2, d/dx arctan(x) = 1/(1 + x2), valid for every real x. These derivations explain the square-root denominator in one formula and the quadratic denominator in the other.

A compact formula table
| Function | Derivative | Finite derivative domain |
|---|---|---|
| arcsin(x) | 1/sqrt(1 − x2) | −1 < x < 1 |
| arccos(x) | −1/sqrt(1 − x2) | −1 < x < 1 |
| arctan(x) | 1/(1 + x2) | All real x |
| arccot(x), range (0, π) | −1/(1 + x2) | All real x |
| arcsec(x), range [0, π] except π/2 | 1/(|x| sqrt(x2 − 1)) | |x| > 1 |
| arccsc(x), range [−π/2, π/2] except 0 | −1/(|x| sqrt(x2 − 1)) | |x| > 1 |
The last three formulas use the stated branch conventions. The absolute value in the arcsecant and arccosecant formulas is necessary for negative inputs. All angle outputs here use radians.[2]
Apply the chain rule and keep the domain
For h(x) = arcsin(2x), the real domain is [−1/2, 1/2]. The derivative is h'(x) = 2/sqrt(1 − 4x2) on the open interval (−1/2, 1/2). For k(x) = arctan(x2), the derivative is 2x/(1 + x4) for every real x. The inner derivative appears in the numerator in both cases. For arcsin(2x), the endpoint exclusion belongs to the derivative, not to the function itself.
Common misconceptions
- Inverse means reciprocal. An inverse reverses inputs and outputs. A reciprocal divides 1 by a function value.
- Use 1/f'(a) for every inverse derivative. First find g(a), then use 1/f'(g(a)).
- An inverse always has a finite derivative. The inverse of x3 at zero is a counterexample.
- Inverse trig functions undo every angle. They return principal values, so the original angle must lie in the selected branch for the reverse composition to return it.
Practice with less scaffolding
Let f(x) = x3 + 4x and g = f−1. Find g'(5), explaining why g exists. Then differentiate arccos(3x) and state both the function domain and the finite derivative domain. Write the solutions before checking: f' = 3x2 + 4 > 0; f(1) = 5; g'(5) = 1/7. The arccos derivative is −3/sqrt(1 − 9x2); the domains are [−1/3, 1/3] and (−1/3, 1/3), respectively.
Revisit after a delay
Tomorrow, reconstruct the arcsine derivative from sin(y) = x without the table. In one week, mix an inverse derivative, a quotient derivative, and a chain-rule problem, and explain which structure chooses each rule. Record whether an error came from a domain, a branch, an evaluation point, or a missing inner derivative. Correct the reason as well as the final expression.
What to carry forward
Key idea: An inverse reverses a one-to-one function on a chosen domain. Find the original input before taking the reciprocal slope. Check the nonzero-derivative condition, principal branch, and inner derivative.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 1.4 Inverse Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.7 Derivatives of Inverse Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Inverse function
- A function that reverses a one-to-one function on its range.
- One-to-one
- Different inputs produce different outputs.
- Principal value
- The output selected by a specified branch of an inverse function.
- Inverse derivative rule
- For g = f^(-1), g'(a) = 1/f'(g(a)) when the theorem's differentiability and nonzero-slope conditions hold.
- Arcsine
- The inverse of sine restricted to [-pi/2, pi/2].
- Arctangent
- The inverse of tangent restricted to (-pi/2, pi/2).
Module 5: Implicit Differentiation and Related Rates
Differentiate equations that are not solved for y, then use derivatives to link the rates of change of connected quantities as they evolve in time. These two techniques turn the chain rule into a tool for real applied problems, from tangents on a circle to a ladder sliding down a wall.
Implicit Differentiation
- Explain when implicit differentiation is needed.
- Differentiate both sides of an equation, treating y as a function of x.
- Solve for dy/dx and evaluate a slope on a curve.
The circle x2 + y2 = 25 passes through the point (3, 4). What is its slope there? Every method so far wants a function y = f(x), and this equation refuses to be one: above x = 3 the circle has two points, at height 4 and at height −4, so no single rule assigns one output to that input. You could split it into two half-circles full of square roots and differentiate each. Implicit differentiation gets the slope in three lines without splitting anything, and it is really the chain rule wearing a different hat.
Treating y as a hidden function of x
When an equation mixes x and y and you cannot isolate y, you do not have to. You treat y as a hidden function of x, differentiate the whole equation, and solve for the slope dy/dx at the end.
The point: work near a point where the relation defines a differentiable branch y(x). Differentiate that branch with the chain rule, then check where the resulting slope formula is defined. An implicit relation need not define one differentiable function at every point.[1]
The one new habit
Treat y as a function of x, even though you never write that function down. Differentiate both sides of the equation with respect to x. Whenever you differentiate a term with y in it, the chain rule attaches a dy/dx factor, because y is the inner function. So d/dx (y2) = 2y × dy/dx, not just 2y. Then solve the resulting equation for dy/dx. That extra dy/dx factor is the whole method in a nutshell.
Let us do the circle together, slowly
Find dy/dx for x2 + y2 = 25.
- Differentiate both sides with respect to
x. (Same operation on both sides, keeping balance.) - The
x2term:d/dx (x2) = 2x. (Ordinary power rule.) - The
y2term:d/dx (y2) = 2y × dy/dx. (Chain rule, because y hides a function of x.) - The right side:
d/dx (25) = 0. (A constant.) - Put it together:
2x + 2y (dy/dx) = 0. Solve:2y (dy/dx) = −2x, sody/dx = −x/y.
That formula gives the finite slope at circle points with y != 0. At (5, 0) and (−5, 0), the circle has vertical tangents, so there is no finite dy/dx. At (3, 4) the slope is −3/4; at (3, −4) it is 3/4. It makes sense that the slope depends on both coordinates, since a circle has an upper point and a lower point for most x values, with opposite slopes.
Try it: using dy/dx = −x/y, what is the slope of the circle at (3, 4)?
Answer: −x/y = −3/4. You found the slope without first solving for a branch of y. That is the power of the method.

A mixed term (where care pays off)
Find dy/dx for x2 + xy + y2 = 7.
d/dx (x2) = 2x. (Power rule.)- The middle term needs the product rule (it is x times y):
d/dx (xy) = 1 × y + x × dy/dx = y + x (dy/dx). d/dx (y2) = 2y (dy/dx). (Chain rule.)- Combine:
2x + y + x (dy/dx) + 2y (dy/dx) = 0. - Gather the
dy/dxterms:(x + 2y)(dy/dx) = −(2x + y), sody/dx = −(2x + y)/(x + 2y).
The xy term is the spot that rewards attention: it is a product of two things that both depend on x, so the product rule applies, and its second piece carries the dy/dx.
The reliable recipe
- Differentiate every term on both sides with respect to
x. - Attach a
dy/dxwhenever you differentiate ay-term (chain rule), and use the product rule for anyxymix. - Collect all
dy/dxterms on one side, everything else on the other. - Factor out
dy/dxand divide to solve.
A famous curve, start to finish
The folium of Descartes, x3 + y3 = 6xy, is a looping curve for which explicitly solving a cubic equation for y is inconvenient. Find the tangent line at the point (3, 3). First confirm the point is on the curve: 27 + 27 = 54 and 6(3)(3) = 54. Good.
- Differentiate every term with respect to x:
3x2 + 3y2(dy/dx) = 6y + 6x(dy/dx). (Left side: power rule, then chain rule on the y-term. Right side: product rule on6xy, giving6y + 6x(dy/dx).) - Collect the
dy/dxterms on one side:3y2(dy/dx) − 6x(dy/dx) = 6y − 3x2. - Factor and divide:
dy/dx = (6y − 3x2)/(3y2 − 6x) = (2y − x2)/(y2 − 2x). (Canceling the common 3.) - Evaluate at (3, 3):
dy/dx = (6 − 9)/(9 − 6) = −1. - Tangent line:
y − 3 = −1(x − 3), that is,y = −x + 6.
At (3, 3), the computed slope −1 makes the tangent perpendicular to y = x. Symmetry alone does not force that conclusion: a tangent at a symmetry-fixed point can also lie along the symmetry line. Use the derivative calculation to decide the tangent direction.
The second derivative, implicitly
Implicit curves have concavity too. For the circle x2 + y2 = 25 we found dy/dx = −x/y. Differentiate that quotient again with respect to x, remembering y is still a function of x:
- Quotient rule on
−x/y:d2y/dx2 = −[1 × y − x × (dy/dx)]/y2. - Substitute the known
dy/dx = −x/y: the bracket becomesy − x(−x/y) = y + x2/y = (y2 + x2)/y. (Common denominator.) - So
d2y/dx2 = −(x2 + y2)/y3 = −25/y3, using the original equation to replacex2 + y2with 25.
Read the answer: on the upper semicircle (y > 0) the second derivative is negative, concave down, and on the lower semicircle it is positive, concave up. That is exactly how a circle bends. Two habits appeared here that mark clean implicit work: substitute the first derivative back in, and simplify with the original equation whenever it shows up.
Logarithmic differentiation: for functions the rules refuse
For x > 0, what is the derivative of y = xx? The power rule is illegal (the exponent is not constant) and the exponential rule is illegal (the base is not constant). The trick: take the natural log of both sides first, then differentiate implicitly.
ln y = ln(xx) = x ln x. (The log pulls the exponent down, its superpower.)- Differentiate both sides: left side
(1/y)(dy/dx)by the chain rule; right side, product rule:1 × ln x + x × (1/x) = ln x + 1. - Solve:
dy/dx = y(ln x + 1) = xx(ln x + 1).
A bonus insight falls out free: the derivative is zero where ln x = −1, at x = 1/e ≈ 0.368, which is where xx bottoms out (its minimum value is about 0.692). Logarithmic differentiation also tames big products: on the interval x > 0, to differentiate y = x2√(x + 1)/(x + 2)3, take logs, turn the mess into a sum 2 ln x + (1/2)ln(x + 1) − 3 ln(x + 2), differentiate term by term, and multiply back by y at the end. On other parts of the real domain, this calculation needs absolute values in logarithms or a separate argument. Logarithmic differentiation must respect the signs of its inputs.[2]
An ellipse, for contrast
The method is identical for any conic. Find the tangent to the ellipse x2 + 4y2 = 8 at the point (2, 1). First confirm the point: 4 + 4 = 8. Good.
- Differentiate both sides:
2x + 8y(dy/dx) = 0. (Chain rule supplies the dy/dx on the y-term.) - Solve:
dy/dx = −2x/(8y) = −x/(4y). - Evaluate at (2, 1):
dy/dx = −2/4 = −1/2. - Tangent line:
y − 1 = −(1/2)(x − 2), that is,y = −x/2 + 2.
Compare the circle's slope formula −x/y with the ellipse's −x/(4y): the squashed geometry shows up as the 4, flattening the slopes. Implicit differentiation handles every curve in the conic family, circles, ellipses, parabolas, hyperbolas, with the same four moves, which is why it is the standard tool for tangents to orbits and lenses, where these curves actually live.
The missing dy/dx
The defining mistake is differentiating y2 as just 2y, forgetting the dy/dx. Remember: y is a hidden function of x, so it is an inner function and the chain rule always attaches its derivative. A small ritual helps: every time you differentiate a y-term, immediately write "times dy/dx" before moving on. The second stumble is thinking you must solve for y first. Solving for y is optional; implicit differentiation can avoid that algebra.
Common misconceptions
- "d/dx of y^2 is 2y." No. Since
ydepends onx, it is2y × dy/dx. - "You must solve the equation for y before differentiating." The whole point is that you do not; you differentiate as is and solve for
dy/dx. - "The xy term just uses the power rule." It is a product of x and y, so it needs the product rule, giving
y + x(dy/dx). - "A slope formula that divides by zero is a mistake." Often it is honest: at a circle's far left and right edges,
y = 0, the tangent is vertical, and the formula rightly blows up.
What to carry forward
Implicit differentiation finds dy/dx for curves you cannot solve for y. Treat y as a hidden function of x, differentiate every term with respect to x, attach a dy/dx to each y-term via the chain rule, use the product rule for xy mixes, then collect and solve. For the circle x2 + y2 = 25, the slope is dy/dx = −x/y. This same idea powers related rates next lesson, where the hidden variable is time.
A zero denominator can also signal a singular point
For y2 = x2, implicit differentiation gives dy/dx = x/y when y != 0. At the origin the formula becomes 0/0, but the relation consists of two lines, y = x and y = −x. Each branch has a finite slope, and there is no single tangent to the combined crossing. Inspect the relation before labeling an undefined slope formula a vertical tangent.[1]
Retrieve, explain, and revisit
Close the notes and answer: Explain why a zero denominator in an implicit slope formula needs further investigation. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 3.8 Implicit Differentiation. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.9 Derivatives of Exponential and Logarithmic Functions. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Implicit equation
- An equation relating x and y that is not solved for y.
- Implicit differentiation
- Differentiating both sides of an equation while treating y as a function of x.
- dy/dx factor
- The chain-rule term attached whenever a y-containing expression is differentiated.
- Slope on a curve
- The value of dy/dx at a specific point, which may depend on both x and y.
- Vertical tangent
- A tangent line parallel to the y-axis. A zero denominator in a slope formula requires investigation and does not alone prove a vertical tangent.
Module 6: Applications and an Introduction to the Integral
Use derivatives to find extrema, analyze the shape of curves, and solve real optimization problems, then reverse differentiation with antiderivatives to open the door to integration. This capstone module turns every earlier skill into a problem-solving toolkit and previews Calculus II.
Extrema and the First Derivative Test
- Find critical points where the derivative is zero or undefined.
- Classify critical points as local maxima or minima with the first derivative test.
- Distinguish local from absolute extrema on a closed interval.
- State the Mean Value Theorem and use its corollary to justify the sign-of-f' reasoning.
The curve y = x2/3 has an obvious lowest point. It sits at 0 when x = 0 and climbs on both sides. Now hunt for that minimum the usual way, by solving f'(x) = 0, and you will find nothing at all: the derivative 2/(3x1/3) is never zero anywhere. The minimum is real; the search was incomplete. This lesson lays out the full method for finding peaks and valleys, including the ones no horizontal tangent will ever point to.
Peaks, valleys, and the only places they can hide
Picture a hilly landscape. A hilltop is a local maximum, higher than the ground right around it; a valley bottom is a local minimum. The very highest and lowest points over a whole stretch are the absolute extrema. At a smooth peak or valley, the ground is momentarily flat, which is exactly what the derivative detects.
In short: at a smooth peak or valley the tangent is flat, so hunt where f'(x) = 0 (or is undefined), then test which kind it is.

Critical points: the only candidates
An interior critical number c belongs to the domain of f and satisfies either f'(c) = 0 or that f'(c) does not exist. Fermat's theorem states that a differentiable function with a local extremum at an interior point has derivative zero there. Endpoints require separate checks. A pole such as zero for 1/x is not a critical number because the function is not defined there. Critical numbers are candidates, not automatic extrema.[1]
The first derivative test
For the first derivative test, assume f is continuous at c and differentiable just to either side. Check the sign of f' on each of those intervals. The following cases use strictly positive or strictly negative signs, not an interval on which f' is identically zero.[3]
f'goes from positive to negative: the curve rises then falls, a local maximum (a hilltop).f'goes from negative to positive: the curve falls then rises, a local minimum (a valley).f'does not change sign: neither, just a flat pause on a curve that keeps going the same way, likex3at 0.

Let us classify one together, slowly
Find and classify the critical points of f(x) = x3 − 3x2 + 1.
- Differentiate:
f'(x) = 3x2 − 6x = 3x(x − 2). (Factor to find the zeros.) - Set it to zero:
3x(x − 2) = 0, so the critical points arex = 0andx = 2. (The suspects.) - Test the sign on each side. Left of 0 (try
x = −1):3(−1)(−3) = 9, positive, rising. Between 0 and 2 (tryx = 1):3(1)(−1) = −3, negative, falling. Right of 2 (tryx = 3):3(3)(1) = 9, positive, rising. - Read the changes: at
x = 0, plus to minus, a local maximum withf(0) = 1. Atx = 2, minus to plus, a local minimum withf(2) = −3.
A sign chart, a number line marked with the critical points and the sign of f' in each gap, keeps all this organized. Draw one every time; it prevents mistakes.
Try it: find and classify the critical points of f(x) = x2 − 4x + 1.
Answer: f'(x) = 2x − 4 = 0 gives x = 2. The sign of f' goes minus to plus, so it is a local minimum, with f(2) = −3. Nicely done.
Absolute extrema on a closed interval
On a closed interval [a, b], find the absolute highest and lowest with the closed interval method: evaluate f at every critical point inside the interval and at both endpoints, then pick the largest and smallest outputs. Endpoints matter, because the top or bottom value might sit at an edge rather than a peak. The Extreme Value Theorem promises this works: a function continuous on a closed interval always attains both an absolute maximum and an absolute minimum somewhere on it.
Worked example. Find the absolute extrema of f(x) = x3 − 3x2 + 1 on [−1, 3]. The interior critical points are x = 0 and x = 2. Check all four candidates: f(−1) = −3, f(0) = 1, f(2) = −3, f(3) = 1. So the absolute maximum is 1 (at both x = 0 and x = 3) and the absolute minimum is −3 (at both x = −1 and x = 2). Notice the endpoints tied the interior points, which is exactly why you must check them.
Why the Extreme Value Theorem needs its fine print
"Continuous on a closed interval" sounds like lawyer talk until you watch each clause fail.
- Drop the closed interval:
f(x) = xon the open interval(0, 1)has no maximum and no minimum. Outputs get arbitrarily close to 1 and to 0, but no input achieves either, because the endpoints that would do the job are excluded. - Drop boundedness of the interval:
f(x) = xon[0, ∞)is continuous on a closed but unbounded interval and has no absolute maximum. - Drop continuity: define
f(x) = xon[0, 1]exceptf(1) = 0. The single removed point at the top destroys the maximum: outputs approach 1 but never reach it.
With both hypotheses intact, none of these escapes is possible: the function must actually attain a highest and lowest value. That is why every optimization argument in this course either works on a closed interval or supplies a replacement justification (a sign chart showing one interior peak, or end behavior running to +∞ on both sides for a minimum). "Because the theorem applies" is a real reason; get in the habit of saying which theorem and checking its fine print.

A critical point where f' does not exist
Critical points come in two species, and the second is easy to forget. Take f(x) = x2/3, the curve of cube-root-squared.
- Differentiate:
f'(x) = (2/3)x−1/3 = 2/(3x1/3). (Power rule with a fractional exponent.) - Note
f'is never zero (the top is the constant 2), but it is undefined at x = 0. Sox = 0is a critical point of the second species. - Sign test: for
x < 0, the cube root of a negative is negative, sof'is negative, falling. Forx > 0, positive, rising. - Minus to plus: a genuine local minimum at
x = 0, withf(0) = 0, even though no tangent is horizontal there. The graph comes to a sharp cusp, infinitely steep on both sides.
Hunting only for f'(x) = 0 would have missed this minimum entirely. The full definition, zero or undefined, is not pedantry; it is where cusps and corners hide.
The Mean Value Theorem: the law behind the tests
Every sign chart above rests on a claim we have not yet justified: that a positive derivative really does force the function to climb. One theorem signs that guarantee. Drive 150 miles in 3 hours and your average speed is 50 mph; had the needle stayed under 50 the whole way, you could not have covered 150 miles. At some instant it read exactly 50. That everyday certainty, made precise, is the Mean Value Theorem (MVT): if
- f is continuous on the closed interval
[a, b], and - f is differentiable on the open interval
(a, b),
then there is at least one point c with a < c < b where
f'(c) = [f(b) − f(a)]/(b − a)
The right side is the slope of the secant line through the two endpoints: two points, no calculus. The left side is the slope of the tangent at c. So the theorem promises an interior point where the tangent runs parallel to that secant. Notice the deliberate asymmetry in the fine print: continuity is demanded on the closed interval, endpoints included, but differentiability only on the open interval, which is why √x on [0, 1] still qualifies despite its vertical tangent at 0. When the endpoint values happen to match, f(a) = f(b), the secant is horizontal and the promised tangent is flat, f'(c) = 0. That special case has its own name, Rolle's Theorem, and the general statement is simply Rolle's picture tilted.
Worked check. For f(x) = x2 on [0, 2] the average rate is (4 − 0)/(2 − 0) = 2; setting f'(c) = 2c = 2 gives c = 1, safely inside. Now one whose answer surprises people. For f(x) = √x on [1, 4] the secant slope is (2 − 1)/(4 − 1) = 1/3, and f'(x) = 1/(2√x), so solve 1/(2√c) = 1/3: cross-multiplying gives 2√c = 3, so √c = 3/2 and c = 9/4 = 2.25. The midpoint of [1, 4] is 2.5, and c is not there. Landing on the midpoint is a private habit of parabolas, not a rule; solve f'(c) = secant slope every time, and keep only the roots that lie strictly between a and b.

Both hypotheses are load-bearing
Delete either clause and the promise genuinely dies, which is worth watching once so the fine print stops looking like decoration.
- Without differentiability:
f(x) = |x|on[−1, 1]hasf(−1) = f(1) = 1, so Rolle's Theorem would owe us a flat tangent. Butf'is−1to the left of 0 and+1to the right, and never 0. The corner at one interior point voids the guarantee, with no contradiction anywhere. - Without continuity: let
f(x) = xon[0, 1)but setf(1) = 0. The average rate over[0, 1]is(0 − 0)/1 = 0, yetf'(x) = 1at every interior point, never 0. One broken endpoint is enough to sink it.
From the theorem to the sign chart
Here is the payoff for this lesson. Suppose f'(x) > 0 at every point of an interval, and take any two inputs u < v inside it. The MVT applies on [u, v] (a differentiable function is automatically continuous), so for some c between them f(v) − f(u) = f'(c)(v − u): positive times positive, hence positive. So f(v) > f(u) for every such pair, which is exactly what "f is increasing" means, now proved rather than assumed. The same two lines deliver the rest of the family:
f' > 0throughout an interval: f is increasing there.f' < 0throughout: f is decreasing there, since the product turns negative.f' = 0throughout: f is constant there, since the product is always zero.- If
f' = g'throughout, thenf − ghas zero derivative and so is constant: f and g differ by a constant. Hold on to that one. It is the entire reason for the+ Cyou will meet with antiderivatives at the end of this module.
Consider an idealized trip with differentiable position s(t), continuous on the whole time interval. If displacement is 5 miles in 4 minutes, the average velocity is 75 mph. The Mean Value Theorem guarantees an instant at which the modeled velocity is exactly 75 mph. This is a conclusion about the stated mathematical model, not a claim about a particular speedometer reading or an enforcement policy.[2]
A closed-interval rep with a fractional term
Find the absolute extrema of f(x) = x + 1/x on [1/2, 3].
- Differentiate:
f'(x) = 1 − 1/x2. (Rewrite 1/x as a power first.) - Critical points:
f'(x) = 0givesx2 = 1, sox = ±1; x = 0 is outside the domain of f, so it is not a critical number. Of the two critical numbers, onlyx = 1lies inside[1/2, 3]. - Evaluate all candidates:
f(1/2) = 1/2 + 2 = 2.5;f(1) = 1 + 1 = 2;f(3) = 3 + 1/3 ≈ 3.33. - Verdict: absolute minimum 2 at
x = 1, absolute maximum10/3at the endpointx = 3.
This example rehearses every discipline at once: rewrite before differentiating, collect both kinds of critical point, discard the ones outside the interval, and let the endpoint win when it wins. The function itself is a classic: x + 1/x models total cost when one part grows linearly and another shrinks inversely, and its minimum at x = 1 is the balance point between them.
A flat tangent is a candidate, not a verdict
The biggest trap is assuming every place where f'(x) = 0 is a max or a min. It is only a candidate. At x = 0, the function x3 has f'(0) = 0, yet it is neither a peak nor a valley, because f' stays positive on both sides; it is a flat pause. Always run the sign test. The second trap is forgetting the endpoints when hunting an absolute extremum on a closed interval; the winner is often sitting quietly at an edge.
Common misconceptions
- "Every point with f'(x) = 0 is an extremum." Only a candidate. Test the sign change;
x3at 0 is neither. - "For the absolute max, just find the local maxima." The absolute extreme can live at an endpoint, where there is no flat tangent.
- "Critical points are only where f' = 0." Also at domain points where
f'is undefined, like a corner. A point outside the domain is not critical. - "The Extreme Value Theorem always applies." It needs continuity and a closed, bounded interval; drop either and a max may not exist.
- "The Mean Value Theorem tells you where c is." It promises only that some c exists strictly inside the interval. Finding it is your algebra, more than one c can qualify, and it is rarely the midpoint.
Putting it together
Extrema are the peaks and valleys of a function. Interior local extrema can only occur at critical numbers in the domain, where f'(x) = 0 or is undefined, and the cusp of x2/3 is the reminder that the second kind is not optional. The first derivative test classifies each by how the sign of f' changes: plus to minus is a local max, minus to plus a local min, the same strictly positive or strictly negative sign on both sides gives neither, assuming continuity at the point. For absolute extrema on a closed interval, compare f at all interior critical points and both endpoints, backed by the Extreme Value Theorem. Underneath all of it sits the Mean Value Theorem, which is what licenses the move from "the derivative is positive here" to "the function actually climbs here." Draw a sign chart, and never skip the endpoints.
Retrieve, explain, and revisit
Close the notes and answer: State the MVT hypotheses and distinguish a critical number from an excluded input. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 4.3 Maxima and Minima. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.4 The Mean Value Theorem. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.5 Derivatives and the Shape of a Graph. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Extremum
- A maximum or minimum value of a function.
- Local maximum
- A value f(c) at least as large as f(x) for all domain points x sufficiently near c; a strict local maximum is larger at nearby x != c.
- Critical point
- A domain point where f' is zero or does not exist. For the interior-extremum tests in this course, examine interior critical numbers and check endpoints separately.
- First derivative test
- Classifying a critical point by how the sign of f' changes around it.
- Closed interval method
- Finding absolute extrema by checking critical points and endpoints.
- Extreme Value Theorem
- A continuous function on a closed, bounded interval [a, b] attains an absolute maximum and an absolute minimum.
- Mean Value Theorem
- If f is continuous on [a, b] and differentiable on (a, b), some c in (a, b) has f'(c) equal to the average rate of change over [a, b].
- Rolle's Theorem
- The special case of the Mean Value Theorem with f(a) = f(b), where the guaranteed tangent is horizontal.
Concavity and the Second Derivative Test
- Interpret the second derivative as concavity.
- Locate points of inflection where concavity changes.
- Classify critical points with the second derivative test.
Suppose sampled revenue increases by 3, then 5, then 7 million dollars over equal time intervals. The increasing increments suggest growth at an increasing rate. They do not prove a positive derivative or a particular concavity at every moment between observations. With a differentiable model, concavity describes how its slope changes. This lesson separates the mathematical conclusion for a specified function from the pattern suggested by a finite data table.
What bending adds to direction
The second derivative f''(x) (read "f double prime of x") is just the derivative of the derivative. Since f' is the slope, f'' tells you whether the slope is growing or shrinking, which is the same as how the curve bends. It fills in a picture the first derivative alone cannot.
The upshot: concave up bends like a cup (a smile); concave down bends like a frown. The sign of f'' tells you which.
Concave up and concave down
- Where
f''(x) > 0, the curve is concave up, shaped like a cup that could hold water; the slope is increasing. - Where
f''(x) < 0, the curve is concave down, shaped like a frown; the slope is decreasing.
Concave up resembles a cup and concave down resembles a cap. In this course, an inflection point is a point on a continuous curve where concavity changes across that input. Look for candidates where f'' is zero or undefined, then test concavity on both sides. The derivative f''(c) need not exist at the point. A change in the sign of f'' across a vertical asymptote does not give an inflection point because the function is not continuous there.[1]

What concavity means in real life
If s(t) is position, then s''(t) is acceleration. Positive acceleration means velocity is increasing; it does not necessarily mean speed is increasing. For s(t) = t2 − 4t on 0 < t < 2, velocity is negative and acceleration is 2, so the object slows down while its position graph is concave up. When velocity is nonzero, speed increases where velocity and acceleration have the same sign and decreases where they have opposite signs.[2]
The second derivative test
Concavity gives a fast way to classify a critical point where f'(c) = 0:
- If
f''(c) > 0, the curve is concave up there, a valley, socis a local minimum. - If
f''(c) < 0, the curve is concave down there, a peak, socis a local maximum. - If
f''(c) = 0, the test is inconclusive, and you fall back on the first derivative test.
Let us do one together, slowly
Use the second derivative test on f(x) = x3 − 3x2 + 1, whose critical points are x = 0 and x = 2.
- First derivative:
f'(x) = 3x2 − 6x. Second derivative:f''(x) = 6x − 6. (Differentiate twice.) - At
x = 0:f''(0) = −6, which is negative, so concave down, a local maximum. - At
x = 2:f''(2) = 6, which is positive, so concave up, a local minimum. - Inflection point: set
f''(x) = 6x − 6 = 0, givingx = 1, where the bending flips from frown to cup.
This matches the first derivative test from last lesson, but with less sign-checking. When the second derivative is easy to compute and not zero at the critical point, this is usually the quicker route.
Try it: for f(x) = x2, find f''(x) and state the concavity.
Answer: f'(x) = 2x, so f''(x) = 2, which is positive everywhere. The parabola is concave up everywhere, a cup shape. Makes sense.
When the test cannot decide
The f''(c) = 0 case genuinely needs care, because all three outcomes are possible. Look at x4, −x4, and x3 at the origin: each has f'(0) = 0 and f''(0) = 0, yet x4 has a minimum, −x4 a maximum, and x3 neither. The second derivative test simply cannot tell them apart, so return to the first derivative test's sign-change analysis. Knowing the limits of a tool is as valuable as knowing how to use it.
A complete curve sketch, start to finish
Everything from the last two lessons assembles into a portrait of f(x) = x4 − 4x3, drawn without plotting a single random point.
- Intercepts and end behavior. Factor:
f(x) = x3(x − 4), so the graph crosses zero atx = 0andx = 4. The leading termx4sends both ends up to+∞. - First derivative and its chart.
f'(x) = 4x3 − 12x2 = 4x2(x − 3). Critical points:x = 0andx = 3. Signs: atx = −1:4(1)(−4) < 0. Atx = 1:4(1)(−2) < 0. Atx = 4:4(16)(1) > 0. Chart: negative, negative, positive. - Read the chart. Falling on both sides of 0 (no sign change: x = 0 is a flat pause, not an extremum), still falling to
x = 3, then rising forever. So the one local (and absolute) minimum is atx = 3,f(3) = 81 − 108 = −27. - Second derivative and its chart.
f''(x) = 12x2 − 24x = 12x(x − 2). Zeros atx = 0andx = 2. Signs: atx = −1:12(−1)(−3) > 0, concave up. Atx = 1:12(1)(−1) < 0, concave down. Atx = 3:12(3)(1) > 0, concave up. - Inflection points. The sign flips at both zeros, so both are genuine inflections:
(0, 0)and(2, f(2)) = (2, 16 − 32) = (2, −16). - Confirm with the second derivative test. At the critical point
x = 3:f''(3) = 36 > 0, concave up, a minimum, agreeing with the first-derivative chart. Atx = 0:f''(0) = 0, inconclusive, and the first-derivative chart already settled it (no sign change, so neither).
Now narrate the shape left to right: the curve sweeps down from +∞ concave up, flattens momentarily at the origin while switching to concave down (a flat inflection, an S-bend with a horizontal tangent), keeps falling, switches back to concave up at (2, −16), bottoms out at (3, −27), then climbs through (4, 0) and away to +∞. Every feature came from two factored derivatives and two sign charts. That is the entire craft of curve sketching: f gives points, f' gives direction, f'' gives bending, and the three stories must fit together.
A reading habit: the four shape types
On an interval where both f' and f'' have fixed nonzero signs, distinguish four combinations: increasing and concave up, increasing and concave down, decreasing and concave up, or decreasing and concave down. Constant and linear stretches, isolated zeros, and changing signs need their own treatment. Label intervals after checking the two derivatives rather than assuming every part of a graph fits one strict-sign case.[1]
Concavity from raw data: second differences
For f(x) = x2, equally spaced inputs 1, 2, 3, 4, 5 give outputs 1, 4, 9, 16, 25. First differences are 3, 5, 7, 9, and second differences are 2, 2, 2. This agrees with the known formula f''(x) = 2. With an unknown underlying function, the same finite table does not determine what happens between samples. Noise, unequal spacing, and the choice of a fitted model all matter. Use data differences to motivate a model, then state the assumptions behind a derivative-based conclusion.
One more test rep: a W-shaped curve
Classify the critical points of f(x) = x4 − 2x2.
f'(x) = 4x3 − 4x = 4x(x − 1)(x + 1): critical points atx = −1, 0, 1.f''(x) = 12x2 − 4. Evaluate:f''(−1) = 8 > 0(min),f''(0) = −4 < 0(max),f''(1) = 8 > 0(min).- Heights:
f(±1) = 1 − 2 = −1andf(0) = 0: a W shape with twin valley bottoms at(±1, −1)and a local crest at the origin.
Three critical points, three clean verdicts, no sign charts needed: this is the second derivative test at its best, on a function whose f'' is easy and nonzero at every critical point. The inflections sit where f''(x) = 0, at x = ±1/√3 ≈ ±0.577, where the W's walls change their bend.
Zeros of f'' are not automatically inflection points
The most common error is thinking every zero of f'' is an inflection point. The continuous curve must change concavity there. Checking opposite signs of f'' on neighboring intervals is a useful test. For x4, f''(0) = 0 but the curve stays concave up on both sides, so there is no inflection. The second stumble is reading "inconclusive" as "not an extremum." Inconclusive just means this particular test cannot decide; x4 has a clear minimum at 0 even though f''(0) = 0. Switch tools and use the first derivative test.

Common misconceptions
- "Wherever f'' = 0 there is an inflection point." Check continuity and a change in concavity; a zero alone proves neither.
x4at 0 hasf''(0) = 0but no inflection. - "f''(c) = 0 means c is not an extremum." It means the test is inconclusive;
x4still has a minimum there. - "Concave up means increasing." Concavity is about bending, not direction. A concave-up curve can still be going downhill.
- "The second derivative test always works." It stalls when
f''(c) = 0; then use the first derivative test.
What you now know
The second derivative measures bending. Where f'' > 0 the curve is concave up (a cup), where f'' < 0 it is concave down (a frown), and a change of concavity at a continuous point gives an inflection point. If f'(c) = 0, f' exists near c, and f''(c) exists, the second derivative test can classify c: concave up gives a local min, concave down a local max, and f''(c) = 0 is inconclusive, so fall back on the first derivative test. Concavity also reads as acceleration and as diminishing returns in the real world.
Retrieve, explain, and revisit
Close the notes and answer: Give one zero of f'' that is not an inflection point and explain why. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 4.5 Derivatives and the Shape of a Graph. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.4 Derivatives as Rates of Change. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Second derivative
- The derivative of the derivative, written f''(x).
- Concave up
- A cup-shaped bend where f'' > 0 and the slope increases.
- Concave down
- A frown-shaped bend where f'' < 0 and the slope decreases.
- Point of inflection
- A point on a continuous curve where concavity changes across the input; the second derivative at that input may be zero or undefined.
- Second derivative test
- Classifying a critical point by the sign of f'' there.
- Inconclusive test
- When f''(c) = 0 the second derivative test cannot decide, so the first derivative test is used.
Optimization
- Translate a word problem into an objective function and constraint.
- Reduce the objective to one variable and differentiate.
- Find and justify the optimal value.
A farmer has 100 ft of fence and a straight river that needs no fencing. A pen 10 ft deep by 80 ft wide encloses 800 square feet. Try 20 by 60 and you get 1200. Try 30 by 40 and you get 1200 again, exactly the same. So the best pen lies somewhere between those two, but trials alone have not proved which dimensions maximize the area. Two lines of calculus will: 25 ft deep, 50 ft wide, 1250 square feet, and a proof that nothing beats it. The calculus is the easy part here; the work is the setup, and we will do that slowly.
Objective, constraints, and feasible inputs
An optimization problem specifies an objective and a feasible domain. The geometric examples here also have an equality constraint linking two variables, which lets us reduce the objective to one variable. Other problems may already be expressed in one variable or may use inequality constraints. Once the model is set, apply the extrema methods and justify that the winning candidate is best over the entire feasible domain.[1]
What matters here: write the objective, write the constraint, use the constraint to get one variable, then check derivative zeros, nondifferentiable domain points, and feasible boundaries.
A step-by-step strategy
- Name the variables, and draw a picture if it helps. A clear sketch often turns a muddle into a solvable problem.
- Write the objective function, the quantity to optimize.
- Write the constraint, the equation that limits the variables.
- Use the constraint to rewrite the objective in one variable.
- Differentiate, set the derivative to zero, and solve for the critical points.
- Confirm it is the max or min you want (a derivative test or the endpoints), then answer in context, with units.
Spotting which equation is the objective and which is the constraint is the key skill. The examples here use both, but optimization does not always require a separate equality constraint.
Let us do the biggest pen together, slowly
A farmer has 100 ft of fencing to enclose a rectangular pen against a straight river, so no fence is needed on the river side. What dimensions give the largest area?
- Name things: let
xbe each of the two sides perpendicular to the river, andwthe side parallel to it. (Draw it.) - Constraint (only three sides are fenced):
2x + w = 100. (What limits us.) - Objective (what to maximize): area
A = x w. (What we want big.) - Reduce to one variable: solve the constraint for
w = 100 − 2x, then substitute, givingA(x) = x(100 − 2x) = 100x − 2x2. (One variable now.) - Differentiate and set to zero:
A'(x) = 100 − 4x = 0, sox = 25. (Find the critical point.) - Confirm a maximum:
A''(x) = −4, which is negative, concave down, sox = 25is the max. Thenw = 100 − 50 = 50, and the area is25 × 50 = 1250square feet.
The best pen is 25 ft deep and 50 ft wide, enclosing 1250 square feet. A quick sanity check: x = 20, w = 60 gives 1200, less than 1250, so our answer holds up. You just solved a real optimization problem.
A quick second example
Find two nonnegative numbers whose sum is 20 and whose product is as large as possible. Let them be x and 20 − x, so the product is P(x) = x(20 − x) = 20x − x2. Then P'(x) = 20 − 2x = 0 gives x = 10, and the other number is also 10, for a maximum product of 100. The equal split wins, a pattern that also explains why a square encloses more area than any other rectangle of the same perimeter.
Try it: find two nonnegative numbers with sum 12 whose product is largest.
Answer: Let them be x and 12 − x; product P = 12x − x2, so P' = 12 − 2x = 0 gives x = 6. Both are 6, product 36. Equal split again.
The classic can problem
For a closed cylindrical can of fixed volume V > 0, suppose the top, bottom, and side use material of equal thickness and cost per unit area, with seams and waste ignored. Then minimize S = 2πr2 + 2πrh subject to V = πr2h and r, h > 0. Substitution gives h = V/(πr2) and S(r) = 2πr2 + 2V/r. Differentiate: S'(r) = 4πr − 2V/r2. Its zero satisfies r3 = V/(2π), so h = 2r. Since S''(r) = 4π + 4V/r3 > 0 for r > 0, the derivative increases through zero once. Surface area also tends to infinity as r approaches zero or infinity, so this is the global minimum. An open top or unequal material costs changes the objective and can change the optimal ratio.[1]

A caution about the domain
For a nondegenerate pen, x > 0 and w = 100 − 2x > 0, so 0 < x < 50. To compare limiting collapsed pens, extend the area formula continuously to [0, 50]; both endpoint areas are zero. At x = 25, the area is 1250 square feet. The negative second derivative throughout the interval, or the first-derivative sign change together with the endpoint comparison, establishes the global maximum. A local test at one point alone does not generally prove a global optimum.
A geometry problem on an unbounded domain
Closed intervals justify themselves with the Extreme Value Theorem. When the domain runs to infinity, you owe a different justification, so let us do one honestly. Which point on the parabola y = x2 is closest to the point (0, 3)?
- Objective. Distance from
(x, x2)to(0, 3)is√(x2 + (x2 − 3)2). Minimizing a square root is the same as minimizing what is under it (the square root is an increasing function), so minimize the squared distanceD(x) = x2 + (x2 − 3)2instead and spare yourself the root. (A standard, legal simplification; say it out loud when you use it.) - Differentiate with the chain rule:
D'(x) = 2x + 2(x2 − 3)(2x) = 2x[1 + 2(x2 − 3)] = 2x(2x2 − 5). - Critical points:
x = 0and2x2 = 5, sox = ±√(5/2) ≈ ±1.58. - Compare candidates.
D(0) = 0 + 9 = 9. Atx2 = 5/2:D = 5/2 + (5/2 − 3)2 = 5/2 + 1/4 = 2.75. - Justify the winner without EVT. The domain is all of x, so check the ends: as
x → ±∞,D(x) → ∞. A continuous function that runs to infinity in both directions attains its minimum at one of its critical points, and the smallest critical value is 2.75. (The pointx = 0is in fact a local maximum of D, the top of the dip between the two winners; the sign ofD'confirms it: positive just left of 0, negative just right.)
Answer: the two symmetric points (±√(5/2), 5/2), at distance √2.75 ≈ 1.66. The symmetry was predictable: the target sits on the parabola's axis, so ties come in mirror pairs.
A bonus tool from derivatives: L'Hopital's rule
L'Hopital's rule evaluates certain indeterminate quotient limits. In the version used here, f and g are differentiable on a punctured interval near the limiting point, g and g' are nonzero there, and f/g has form 0/0 or an infinity-over-infinity form. If the limit of f'/g' exists as a finite number or as positive or negative infinity, the original quotient has that same limit. Apply the corresponding one-sided version at a boundary or infinity. If the derivative-quotient limit does not exist, the rule gives no conclusion. This is a theorem about limits, not the quotient rule for differentiation.[2]
lim f(x)/g(x) = lim f'(x)/g'(x)
provided the right-hand limit exists. Differentiate top and bottom separately (this is not the quotient rule), then take the limit again.
Worked, twice over. lim (x → 0) (1 − cos x)/x2: substituting gives 0/0, so pass to (sin x)/(2x), which is 0/0 again, so pass once more to (cos x)/2, which is 1/2 by substitution. Each pass requires re-checking that the form is still indeterminate before differentiating again.
Growth contests. lim (x → ∞) (ln x)/x is ∞/∞; one pass gives (1/x)/1 → 0. This proves the pecking order claimed back in Module 2: logs lose to powers. A product like lim (x → 0+) x ln x is the form 0 × (−∞), not directly eligible; rewrite it as a quotient (ln x)/(1/x), now −∞/∞, and one pass gives (1/x)/(−1/x2) = −x → 0. That little limit is exactly the endpoint check that certifies xx → 1 as x → 0+ in the last lesson's logarithmic-differentiation example.
The warning that saves you. L'Hopital applies only to 0/0 and ∞/∞. Apply it to a determinate form and it manufactures a wrong answer with total confidence: lim (x → 1) (x2 + 1)/(x + 1) is simply 2/2 = 1 by substitution, but blind L'Hopital would say 2x/1 → 2. Always substitute first, name the form you see, and reach for the rule only when the form is indeterminate.
Where the compound-interest number comes from
Consider (1 + x)1/x for x > 0 approaching zero. Its logarithm is ln(1 + x)/x. Both numerator and denominator tend to zero; their derivative quotient is 1/(1 + x), whose limit is 1. L'Hopital's rule therefore gives a logarithm limit of 1. Now use continuity of the exponential: (1 + x)1/x = exp(ln(1 + x)/x) tends to e. This argument proves the original limit exists rather than assuming it before taking logarithms. For other indeterminate powers, first verify that the base is positive and that the transformed quotient meets the rule's conditions.[2]
Which equation is the objective?
The first snag is mixing up the objective and the constraint. The objective is what you optimize (area, cost); the constraint is the separate equation that ties the variables (a fixed perimeter or volume). When a suitable equality constraint is available, it can reduce the objective to one variable. The second snag is stopping the moment you solve f'(x) = 0. A critical point still needs to be confirmed as the right kind of extremum, and the physical domain still needs checking, or you may report a minimum when you wanted a maximum.
Common misconceptions
- "The objective and the constraint are the same thing." Opposite roles: the objective is optimized; the constraint limits the variables.
- "Once f'(x) = 0 is solved, you are done." Justify it is the desired max or min, and check the domain, including endpoints.
- "Optimization needs a fancy new method." It is the extrema toolkit applied to a one-variable objective built from the constraint.
- "The domain does not matter." Physical limits (nonnegative lengths, fixed volumes) shape the answer and can put the optimum at an edge.
Pulling it together
Optimization finds the best outcome. Name the variables, write the objective and the constraint, use the constraint to reduce the objective to one variable, then set the derivative to zero and confirm the extremum with a derivative test or the endpoints. Respect the physical domain throughout. The recurring equal-split and symmetric answers, like the pen or the square, are the calculus quietly finding balance.
Retrieve, explain, and revisit
Close the notes and answer: Explain what additional work turns a stationary candidate into a global optimum. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 4.7 Applied Optimization Problems. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.8 L'Hôpital's Rule. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Optimization
- Finding the maximum or minimum value of a quantity.
- Objective function
- The quantity being maximized or minimized.
- Constraint
- An equation or inequality that restricts feasible values of the variables.
- Single-variable reduction
- Using the constraint to express the objective in one variable.
- Optimal value
- The largest or smallest objective value over the feasible domain, justified by comparing candidates or a global argument.
- Feasible domain
- The range of variable values allowed by the physical context, whose endpoints must also be checked.
Antiderivatives: An Introduction to the Integral
- Define an antiderivative and the role of the constant of integration.
- Reverse the power rule and other basic derivatives to integrate.
- Use an initial condition to find a specific antiderivative.
In a simplified vertical-motion model with upward position positive, take constant acceleration a(t) = −32 ft/s2. Integrating once gives v(t) = −32t + C1; integrating again gives s(t) = −16t2 + C1t + C2. Acceleration alone does not determine either initial velocity or initial position. We need two initial values to fix those two constants. This example introduces antidifferentiation, the process of recovering a function from its derivative.[1]
Running differentiation backwards
An antiderivative of f is a function F whose derivative is f, written F'(x) = f(x). Since d/dx (x2) = 2x, an antiderivative of 2x is x2. Where the derivative asked "what is the rate of change," the antiderivative asks the reverse: "what function produced this rate."
Why this matters: integration is differentiation in reverse. To integrate, ask "what would I differentiate to get this?"
The constant of integration
Here is a gentle twist. Both x2 + 5 and x2 − 7 also have derivative 2x, because the derivative of any constant is 0. If a function has an antiderivative on an interval, it has infinitely many there, differing by a constant. A continuous function on an interval has an antiderivative; existence is not guaranteed for every arbitrary function. We capture them all with a constant of integration C, writing the general antiderivative as x2 + C. In integral notation, ∫ 2x dx = x2 + C, where the symbol ∫ is read "the integral of." Picture a whole family of parallel curves, each a vertical shift of the others, all with the same slope everywhere. Forgetting the + C is the most common integration slip, so make it a habit from day one.

Reversing the power rule
The power rule brought the exponent down and dropped it by one. To undo it, do the opposite: add one to the exponent and divide by the new exponent.
∫ xn dx = x(n+1)/(n+1) + C (for n not equal to −1)
Why exclude n = −1? Because it would force division by zero. That one missing case is filled by the logarithm: ∫ (1/x) dx = ln|x| + C, which ties back to d/dx ln x = 1/x.
Let us integrate one together, slowly
Find ∫ (4x3 − 6x + 5) dx, term by term.
∫ 4x3 dx = 4 × x4/4 = x4. (Add one to the exponent, divide by 4.)∫ −6x dx = −6 × x2/2 = −3x2. (Same move.)∫ 5 dx = 5x. (The antiderivative of a constant is that constant times x.)- Add the constant of integration:
x4 − 3x2 + 5x + C.
Here is the nicest part: you can always check by differentiating. d/dx (x4 − 3x2 + 5x + C) = 4x3 − 6x + 5, the original. Unlike most of calculus, integration lets you instantly verify your own answer.
Try it: find ∫ (3x2 + 2x) dx.
Answer: x3 + x2 + C. Check by differentiating: 3x2 + 2x. It matches, so you did it.
A short table of basic antiderivatives
| Function | Antiderivative |
| xn (n not −1) | x(n+1)/(n+1) + C |
| 1/x | ln|x| + C |
| ex | ex + C |
| cos(x) | sin(x) + C |
| sin(x) | −cos(x) + C |
Every row is just a derivative rule read backward. Because sine differentiates to cosine, cosine integrates to sine; because cosine differentiates to negative sine, sine integrates to negative cosine. Know your derivatives well and the antiderivatives come almost for free.
Pinning down C with a starting value
Often a little extra information selects one antiderivative from the family. Suppose f'(x) = 6x and f(0) = 2.
- General antiderivative:
f(x) = 3x2 + C. (Reverse the power rule.) - Use the starting value:
f(0) = 3(0)2 + C = 2, soC = 2. (Solve for the constant.) - The specific function:
f(x) = 3x2 + 2.
This is exactly how physics recovers position from velocity: integrate the velocity, then use the known starting position to fix C.
The road ahead
Antiderivatives connect to the definite integral through the Fundamental Theorem of Calculus. If f is continuous on [a, b] and F' = f there, its integral is F(b) − F(a). The definite integral measures signed accumulation. It equals geometric area when f is nonnegative; portions below the axis contribute negatively. Module 7 develops these ideas, their units, and their applications in detail.[2]
The area problem: adding infinitely many slivers
Integration has a second birthplace, apparently unrelated to undoing derivatives: measuring curved area. What is the area under f(x) = x2 from 0 to 1? No triangle or rectangle formula applies, but we can approximate with rectangles and then take a limit, the same shrink-to-zero move that built the derivative.
- Slice
[0, 1]into 4 strips of widthΔx = 1/4. On each strip, erect a rectangle whose height is the function's value at the strip's right edge: heights(1/4)2, (1/2)2, (3/4)2, 12. - Add the areas:
(1/4)[1/16 + 4/16 + 9/16 + 16/16] = (1/4)(30/16) = 0.46875. (An overestimate: on a rising curve, right edges poke above.) - Left edges instead give
(1/4)[0 + 1/16 + 4/16 + 9/16] = 0.21875, an underestimate. The true area is trapped between. - Refine: with
n = 100right-edge strips the sum is0.33835; with the algebraic identity for12 + 22 + ... + n2one can show the sums close in on exactly 1/3 asn → ∞.
These rectangle totals are Riemann sums, and their limit is the definite integral, written ∫01 x2 dx = 1/3. Read the notation as its own picture: the elongated S is a sum, f(x) is a rectangle's height, dx is its vanishing width, and the numbers 0 and 1 are the endpoints of the ground being covered.

The Fundamental Theorem: why area and slope are inverses
Here is the miracle that fuses the two halves of calculus. Define the accumulation function A(x) = ∫0x f(t) dt, where f is continuous on an interval containing 0 and x. This is signed accumulation, which can decrease when f is negative. How fast does it grow? Nudge x by a sliver h: the new area gained is a skinny strip of width h and height essentially f(x), so A(x + h) − A(x) ≈ f(x) × h. Divide by h and shrink: A'(x) = f(x). The rate at which area accumulates is the height of the curve. That statement is Part 1 of the Fundamental Theorem of Calculus: every continuous function has an antiderivative, namely its own accumulation function.
Part 2 is the payoff for computation. If F is any antiderivative of f, then
∫ab f(x) dx = F(b) − F(a)
because A and F differ only by a constant, which cancels in the subtraction. Watch it demolish the rectangle problem: an antiderivative of x2 is x3/3, so ∫01 x2 dx = 1/3 − 0 = 1/3, agreeing with the Riemann sums but taking five seconds. (For definite integrals the + C may be dropped: any one antiderivative works, since the constant subtracts away.) The theorem links differentiation to signed accumulation.
Substitution: the chain rule in reverse
Each derivative rule reverses into an integration technique, and the reversed chain rule, called u-substitution, is the workhorse. Find ∫ 2x(x2 + 1)5 dx.
- Spot an inside function whose derivative is also a factor: inside
u = x2 + 1has derivative2x, present. (The tell-tale pattern.) - Trade variables:
du = 2x dx, so the integral becomes∫ u5 du. - Integrate in u:
u6/6 + C. - Translate back:
(x2 + 1)6/6 + C. Check by differentiating: chain rule gives6(x2 + 1)5/6 × 2x = 2x(x2 + 1)5. Perfect.
For a definite integral, one consistent method is to convert the endpoints to u and finish in u: ∫01 2x(x2 + 1)5 dx has u running from u(0) = 1 to u(1) = 2, so it equals ∫12 u5 du = (26 − 16)/6 = 63/6 = 21/2. A simpler cousin handles linear insides by inspection: ∫ cos(3x) dx = sin(3x)/3 + C, dividing by the inner derivative 3. If the derivative of the proposed inside function is missing, that substitution may not simplify the integral. Algebraic rewriting or a different substitution may still help. Later methods include integration by parts. Module 7 gives additional substitution practice and applications.
The + C, and the one power the rule cannot undo
The most common slip is dropping the + C. It is not decoration; it stands for the whole family of antiderivatives, and in starting-value problems it is precisely the number you solve for. The second slip is using the reverse power rule on 1/x. The rule x(n+1)/(n+1) divides by zero when n = −1, so 1/x is the special case whose antiderivative is ln|x| + C, not a power at all.
Common misconceptions
- "The + C is optional." It represents infinitely many antiderivatives and is exactly what you solve for in starting-value problems.
- "The reverse power rule works for every power." It fails at
n = −1; the antiderivative of1/xisln|x| + C. - "A function has one antiderivative." If an antiderivative exists on an interval, adding any constant gives another. Constants can be chosen independently on disconnected intervals of the domain.
- "You cannot check an integral." You can, and should: differentiate your answer and see if you get the original function back.
Looking back
An antiderivative F satisfies F' = f. For the general indefinite integral on an interval, include + C; a specific initial condition can determine C. The reverse power rule has the exception n = −1, where an antiderivative is ln|x| on each interval avoiding zero. A definite integral is a number, so the evaluation F(b) − F(a) has no added arbitrary constant. The next module turns these formulas into tools for accumulation and area.[1][2]
Retrieve, explain, and revisit
Close the notes and answer: Explain why recovering position from acceleration requires two initial values. Compare your explanation with the definitions and worked examples, then correct any missing condition. Try the lesson assignment before opening its model answer. Revisit this question tomorrow and again in about a week, mixing it with an earlier topic. These intervals are a practical starting schedule; adjust them when retrieval remains difficult.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 4.10 Antiderivatives. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 5.3 The Fundamental Theorem of Calculus. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 5.1 Approximating Areas. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 5.5 Substitution. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Antiderivative
- A function F whose derivative is f, so F'(x) = f(x).
- Integration
- Finding an indefinite integral (a family of antiderivatives) or evaluating a definite integral (signed accumulation), depending on context.
- Constant of integration
- The +C that accounts for all antiderivatives differing by a constant.
- Reverse power rule
- integral of x^n dx = x^(n+1)/(n+1) + C for n not equal to -1.
- Initial condition
- A known value like f(0) that determines the constant C.
- Fundamental Theorem of Calculus
- For continuous f, differentiation reverses accumulation, and the definite integral from a to b equals F(b) - F(a) for any antiderivative F.
Newton's Method and Reliable Root Finding
- Derive and apply Newton's iteration from a tangent line.
- Recognize failure modes and distinguish a small residual from a small root error.
- Compare Newton iteration with bisection and report an approximation with a justified error statement.
Finding the zero of a function can be much harder than evaluating the function. Newton's method turns a tangent line into a new root estimate, then repeats. It can be fast, but speed is useful only when the result is checked. This lesson develops the iteration, examines cases where it fails, and combines it with the bracket guarantee from continuity.
Retrieve the two ingredients
Write the tangent line to f at x = a and state the Intermediate Value Theorem conditions for a root between a and b. Check: the tangent is y = f(a) + f'(a)(x − a). A continuous f on [a, b] with opposite nonzero endpoint signs has at least one root in (a, b). A tangent provides a local approximation; a sign-changing bracket provides an existence guarantee. These are different kinds of evidence.
Derive the iteration
Start with an estimate x0. Draw the tangent to y = f(x) at that input, then use the tangent's x-intercept as the next estimate x1. Setting y = 0 gives 0 = f(x0) + f'(x0)(x1 − x0). If the derivative is nonzero, solve to obtain x1 = x0 − f(x0)/f'(x0). Repeating yields Newton's iteration:[1]
xn+1 = xn − f(xn)/f'(xn).
The fraction has units of the input, since f/f' divides output units by output-per-input units. If your update adds a quantity with incompatible units, the formula or the model has been set up incorrectly. The next estimate is the zero of the tangent, not generally the zero of f itself.

A worked computation: the positive square root of 3
Use f(x) = x2 − 3, whose positive root is sqrt(3). The derivative is 2x. Newton's formula simplifies to xn+1 = (xn + 3/xn)/2. Start with x0 = 2, keeping extra digits internally.
| n | Estimate xn | Residual f(xn) |
|---|---|---|
| 0 | 2 | 1 |
| 1 | 1.75 | 0.0625 |
| 2 | 1.7321428571 | about 0.000318878 |
| 3 | 1.7320508100 | about 0.000000008473 |
The first update is 2 − 1/4 = 1.75. The second is 1.75 − 0.0625/3.5 = 97/56. These exact expressions let you check the rounded table independently. A table of small numbers is encouraging, but it still needs an error interpretation.
Residual, step size, and root error
The residual is f(xn), which measures how nearly the equation is satisfied in output units. The step size is |xn+1 − xn|. The root error is |xn − r| for a target root r. These three quantities are not interchangeable. Multiplying f by a tiny nonzero constant makes every residual tiny without moving any root.
For example, f(x) = 10−12(x − 100) has residual −10−10 at x = 0, yet the root error is 100. A small absolute residual alone does not prove a small input error. A tiny step can also result from numerical stagnation, so use an iteration limit and check what the program actually returned.
Turn a residual into a justified bound
Suppose f is continuous on the interval joining an estimate x and a root r, differentiable inside it, and |f'| ≥ m > 0 there. The Mean Value Theorem gives f(x) − f(r) = f'(c)(x − r) for some intervening c. Since f(r) = 0, |x − r| ≤ |f(x)|/m. The lower derivative bound is what converts output error into input error.[2]
For the square-root example, the root lies in [1, 2], and all listed positive estimates lie there. On that interval, f'(x) = 2x ≥ 2. Using the unrounded third iterate, the residual gives root error below 4.24 × 10−9. Rounding that iterate to 1.732051 adds at most about 1.91 × 10−7, so the reported value is within 0.0000002 of sqrt(3). State the accuracy of the reported number, not just of an internal iterate.
What can go wrong
A horizontal tangent gives a zero denominator. For f(x) = x2 − 3, starting at zero makes Newton's first step undefined, even though roots exist. A very small nonzero derivative may produce a large step that leaves a useful region or the function's domain. For a logarithm model, a proposed nonpositive input is invalid. Stop and revise the strategy instead of evaluating an undefined expression.[1]
Iterations can also cycle. For f(x) = x3 − 2x + 2, start at zero. Since f(0) = 2 and f'(0) = −2, the next estimate is 1. Then f(1) = 1 and f'(1) = 1, so the following estimate is zero. The sequence repeats 0, 1, 0, 1 without approaching a root. Smoothness alone does not guarantee convergence from an arbitrary starting value.
Even a successful iteration may approach a different root from the one wanted. A plot or a preliminary bracket helps identify the intended root. Near a simple root with suitable smoothness and a sufficiently close starting point, Newton iteration often converges rapidly. Multiple roots can reduce that speed. The conditions and starting point matter more than the number of digits printed by a calculator.[1]

Use bisection for a dependable bracket
If f is continuous and f(a)f(b) < 0, evaluate the midpoint and keep the half whose endpoints still have opposite signs. After n halvings, the width is (b − a)/2n, and the midpoint error is at most half that width. This guarantee assumes valid endpoint evaluations and continuity. The method finds a bracketed root, not necessarily every root, and it can miss an even-multiplicity root that does not change sign.[3]
For x2 − 3 on [1, 2], ten halvings leave width 1/1024 and midpoint error at most 1/2048. Newton reached a much smaller error with a few steps in this example, but bisection supplies a direct geometric error bound without dividing by a derivative.

A safeguarded practical procedure
- Specify the equation, domain, intended root, and required error tolerance.
- Find a continuous sign-changing bracket if possible.
- Try a Newton step from a current estimate. If the derivative is zero, the proposal is invalid, or it lies outside the bracket, use a midpoint step instead.
- Evaluate the accepted point and update the sign-changing bracket. If progress becomes too slow, force a bisection step.
- Stop only when a justified bracket or other error bound meets the requested tolerance. Also impose an iteration limit and report failure if it is reached.
This is a design strategy, not a claim that every numerical solver implements these exact choices. Keeping and shrinking a valid bracket gives the error guarantee; Newton proposals can accelerate the search. Correct sign comparisons become delicate near machine precision.
Practice without a filled table
Use f(x) = x2 − 5 and x0 = 2. Calculate two Newton updates and their residuals. Then find a derivative lower bound between your estimate and the positive root. Check after writing: x1 = 9/4, x2 = 161/72, and the second residual is 1/5184. Both the root and that estimate lie in [2, 3], where f' ≥ 4, so the root error is at most 1/20736. This bound uses a theorem rather than an impression that the digits have settled.
Common misconceptions
- Every Newton sequence converges. Zero derivatives, cycles, and steps outside the domain provide counterexamples.
- A tiny residual proves a tiny root error. The derivative scale matters; use a bracket or a justified derivative bound.
- More printed decimals mean more accuracy. Rounding, conditioning, and the stopping rule determine what the digits support.
- Bisection finds all roots. A sign-changing bracket establishes at least one root; uniqueness needs additional reasoning.
Revisit and explain
Tomorrow, derive the Newton formula from a tangent line without copying it. In one week, solve a new bracketed equation and explain which evidence justifies your final digits. Include the equation, starting value, iterations, residual, and error bound in your solution. If an iteration fails, diagnosing the failure is part of the mathematical answer.
What to carry forward
Key idea: Newton iteration follows tangent intercepts, while bisection preserves a sign-changing bracket. Check the domain and derivative before each step, and justify the final error using a bracket or a theorem.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 4.9 Newton's Method. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 4.4 The Mean Value Theorem. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 2.4 Continuity. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Newton iteration
- A root estimate updated by x_new = x - f(x)/f'(x), when the derivative is nonzero.
- Residual
- The value f(x) at an approximate root, measured in output units.
- Root error
- The distance between an approximate root and the target true root.
- Bracket
- An interval with opposite endpoint signs for a continuous function.
- Bisection
- A method that repeatedly halves a sign-changing bracket.
- Convergence
- Approach of a sequence to a particular limit.
- Stopping criterion
- A rule for ending an iteration, ideally linked to a justified error tolerance.
Module 7: Integration and Accumulation
Build definite integrals from sums, connect them to derivatives with the Fundamental Theorem, and use substitution to calculate net change and areas. Numerical estimates, domain conditions, units, and error bounds remain part of every solution.
Definite Integrals and Numerical Accumulation
- Construct Riemann sums with correct sample points, widths, signs, and units.
- Estimate a definite integral with left, right, midpoint, and trapezoidal rules.
- Distinguish a numerical estimate from a justified error bound.
A flow meter reports a rate, but a storage tank records accumulated volume. If the rate changes, multiplying one reading by the whole elapsed time is generally inadequate. We instead divide time into short intervals, estimate each contribution, and add. A definite integral is the limit of these sums under suitable conditions. This connects a rate graph to the quantity accumulated over an interval.
Retrieve the starting idea
A constant inflow of 4 liters per minute over 3 minutes adds 12 liters. Explain why the units multiply. Then consider a rate that rises from 4 to 8 liters per minute over that period: the first reading times 3 and the last reading times 3 need not agree. The question is now how rates between the endpoints contribute. Those intermediate values are the information an integral uses.
Partition, sample, multiply, add
Partition [a, b] into subintervals with endpoints a = x0 < x1 < ... < xn = b. The width of subinterval i is Δxi = xi − xi−1. Choose a sample point xi* inside each subinterval. The Riemann sum is Σ f(xi*)Δxi. Each term is a height times a width. Widths need not be equal, but every width must match its own subinterval.[1]
For equal widths, Δx = (b − a)/n. Left sums sample xi−1, right sums sample xi, and midpoint sums sample (xi−1 + xi)/2. There are n terms even though the partition has n + 1 endpoints. Counting those separately prevents a frequent extra-rectangle error.
The limit that defines the integral
For a continuous f on [a, b], all Riemann sums approach the same number as the largest subinterval width approaches zero, regardless of the sample choices. That number is written ∫ab f(x) dx. Continuity is a sufficient condition, not a necessary one: many functions with isolated jumps are also integrable. This course uses ordinary proper integrals on bounded intervals unless another setting is explicitly stated.[2]
The notation dx identifies the variable of integration. The bounds identify the interval. Neither is decoration. Integrating a rate in liters per minute with respect to minutes gives liters. Integrating velocity in meters per second with respect to seconds gives displacement in meters. When f is negative, its contribution to the integral is negative, even though a rectangle's geometric area is nonnegative.

Compare four rules on the same function
Approximate the integral of f(x) = x2 from 0 to 2 with n = 4. The width is 1/2. Write the sample inputs before calculating.
| Rule | Sample inputs | Estimate |
|---|---|---|
| Left | 0, 0.5, 1, 1.5 | 0.5(0 + 0.25 + 1 + 2.25) = 1.75 |
| Right | 0.5, 1, 1.5, 2 | 0.5(0.25 + 1 + 2.25 + 4) = 3.75 |
| Midpoint | 0.25, 0.75, 1.25, 1.75 | 0.5(0.0625 + 0.5625 + 1.5625 + 3.0625) = 2.625 |
| Trapezoidal | All endpoints with half weight at the two outer ends | 0.5(0/2 + 0.25 + 1 + 2.25 + 4/2) = 2.75 |
The exact integral is 8/3, approximately 2.666667, as antiderivatives will confirm. The four errors are about 0.916667, 1.083333, 0.041667, and 0.083333 in absolute value. The comparison belongs to this example; it does not prove one rule is best for every possible function.

Why the inequalities go in those directions
The function x2 is increasing on [0, 2]. On each subinterval, the left endpoint gives the smallest height and the right endpoint the largest. Therefore the left sum underestimates and the right sum overestimates. For a decreasing function, the directions reverse. A function that changes direction may require subdividing further before those monotonicity arguments apply.[1]
The trapezoidal rule replaces each curve segment by the line joining its endpoint values. For a concave-up function, those chords lie above the graph, so the trapezoidal estimate is an overestimate. The midpoint rule underestimates for a concave-up function under the usual smoothness conditions. Concave-down functions reverse these directions. These claims concern signed integrals and the curve's concavity over the whole relevant interval.[3]

The trapezoidal formula
For equal widths h = (b − a)/n, the composite trapezoidal rule is Tn = h[f(a)/2 + f(x1) + ... + f(xn−1) + f(b)/2]. Interior endpoint values appear twice when adjacent trapezoids are added, producing the full weights. Equivalently, Tn = (Ln + Rn)/2 for the same partition. This is not the same as the midpoint rule, which evaluates the function at different inputs.[3]
Use actual widths for uneven measurements
A model flow rate has readings 2, 4, and 3 liters per minute at t = 0, 1, and 3 minutes. A piecewise-linear interpolation gives trapezoidal accumulation (1 − 0)(2 + 4)/2 + (3 − 1)(4 + 3)/2 = 3 + 7 = 10 liters. The second interval is twice as long as the first. Averaging the three rates and multiplying by 3 would instead give 9 liters and ignores the unequal time spacing.
The value 10 liters is exact for the chosen piecewise-linear model and an estimate for an unknown true flow. Sparse measurements alone cannot guarantee what happened between them. A narrow unmeasured pulse could change the true total substantially. Report the interpolation assumption and measurement units alongside the estimate.
When an error bound is available
If f has a continuous second derivative and |f''(x)| ≤ K on [a, b], the equal-width trapezoidal and midpoint errors satisfy |ET| ≤ K(b − a)3/(12n2) and |EM| ≤ K(b − a)3/(24n2). The bound K must apply throughout the interval, not just at sampled points.[3]
For x2 on [0, 2], take K = 2. To guarantee a trapezoidal error no larger than 0.01, require 2(2)3/(12n2) ≤ 0.01, so n2 ≥ 133.333... and n ≥ 12. Using n = 11 fails this bound, while n = 12 gives a bound of 1/108, about 0.00926. Always round the required number of subintervals up to a whole number.
Comparing answers at n and 2n is a useful diagnostic, but agreement alone is not a rigorous error guarantee for every function. A justified bound needs assumptions such as the derivative bound above. Measurement error, rounding error, and quadrature error are separate contributors.
Practice with a signed function
For f(x) = 2x − 1 on [0, 2] with two equal subintervals, compute the left, right, midpoint, and trapezoidal sums. Check after attempting: L2 = 0, R2 = 4, M2 = 2, and T2 = 2. The exact integral is 2. The negative height at x = 0 must stay negative in the left sum. Both midpoint and trapezoidal rules are exact for this linear function, consistent with f'' = 0.
Common misconceptions
- The integral is always geometric area. It is signed accumulation; negative function values subtract.
- A table gives the exact continuous total. It supports a numerical estimate unless the interpolation model is part of the problem.
- Every interval has the same width. That is true only for an equal partition.
- More decimals guarantee a smaller error. Extra printed digits do not supply missing information about the curve.
Revisit after a delay
Tomorrow, reconstruct the trapezoidal weights by adding two adjacent trapezoids. Next week, estimate an accumulation from an unevenly spaced table and state the interpolation assumption. In every solution, include the sample inputs, widths, units, estimate, and the reason for any claimed bound. Those five pieces make numerical work auditable.
What to carry forward
Key idea: A Riemann sum combines a sample value with each interval width. Preserve signs and units, distinguish interpolation from observation, and state the assumptions supporting any error bound.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 5.1 Approximating Areas. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 5.2 The Definite Integral. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 3.6 Numerical Integration. Calculus Volume 2. OpenStax, Rice University. Read the section.
- Key terms
- Partition
- An ordered division of an interval into subintervals.
- Riemann sum
- A sum of sampled function values multiplied by their subinterval widths.
- Definite integral
- The limit of Riemann sums, when that common limit exists; a signed accumulation.
- Midpoint rule
- An integral approximation using the function value at each subinterval midpoint.
- Trapezoidal rule
- An integral approximation that joins adjacent endpoint values with straight lines.
- Quadrature error
- The difference between a numerical integration estimate and the exact integral.
- Signed accumulation
- Accumulation in which negative rates contribute negatively.
The Fundamental Theorem and Net Change
- Apply both parts of the Fundamental Theorem with their continuity conditions.
- Differentiate accumulation functions with variable bounds.
- Distinguish displacement, distance, net change, and average value in applications.
Derivative calculations ask how a quantity changes at an instant. Integral calculations add changes across an interval. The Fundamental Theorem of Calculus connects those operations, making many exact integrals possible without computing a limiting sum. Its applications depend on keeping the accumulated quantity, its rate, and its initial value separate.
Retrieve before using the theorem
Find an antiderivative of 3x2, and explain the difference between a general antiderivative and a definite integral. Check: x3 + C is a family of antiderivatives. A definite integral between two specified finite bounds is a number when it exists. The arbitrary constant cancels when endpoint values of an antiderivative are subtracted.
Part 1: differentiate accumulation
If f is continuous on [a, b], define A(x) = ∫ax f(t) dt. For a < x < b, the Fundamental Theorem gives A'(x) = f(x). The variable t is a dummy variable: it runs through the integration interval, while x is the moving upper bound. Writing both roles with distinct symbols helps prevent confusion.[1]
A small change h adds signed accumulation over [x, x + h]. Continuity makes the average value of f on that shrinking interval approach f(x), so [A(x + h) − A(x)]/h approaches f(x). This explains why the theorem requires attention to the function's local behavior. The limit works from either side at an interior point.
For A(x) = ∫1x (t2 + 2) dt, we immediately have A'(x) = x2 + 2. Also A(1) = 0 because the integration interval has zero length. Differentiating A and evaluating A are separate tasks: the derivative is easy even before we write A(x) = x3/3 + 2x − 7/3.

Part 2: evaluate with an antiderivative
If f is continuous on [a, b] and F is any antiderivative of f on that interval, then ∫ab f(x) dx = F(b) − F(a). This is the evaluation part of the theorem. For ∫13 (2x + 1) dx, take F(x) = x2 + x. The result is (9 + 3) − (1 + 1) = 10. Reversing the bounds changes the sign, so the integral from 3 to 1 is −10.[1]
Check an antiderivative by differentiating it before substituting bounds. This separates two potential errors: finding the wrong F and making an endpoint arithmetic error. The theorem does not say that the integral equals f(b) − f(a); endpoint differences belong to an antiderivative, not to the integrand.
Continuity and a forbidden shortcut
Do not apply the proper-integral evaluation rule blindly across a singularity. The function 1/x is not continuous on [−1, 1], and its ordinary improper integral over that interval does not exist: the two one-sided integrals diverge separately. Substituting into ln|x| at the endpoints and subtracting zero from zero is invalid. A symmetric cancellation called a principal value is a different concept and does not make the ordinary improper integral exist.
For a continuous integrand without a convenient elementary antiderivative, Part 1 still defines a differentiable accumulation function. For example, H(x) = ∫0x e−t2 dt satisfies H'(x) = e−x2. A derivative of an accumulation function does not require a closed formula for its integral.[1]
A moving bound brings back the chain rule
Let B(x) = ∫0x2 cos(t) dt. Think of B(x) as A(x2), where A(u) integrates cos(t) from 0 to u. Then B'(x) = cos(x2) × 2x. The factor 2x comes from the motion of the upper bound. Omitting it would repeat the same inner-derivative error seen in differentiation.[1]
For a constant upper bound and moving lower bound, the sign reverses: d/dx ∫x5 f(t) dt = −f(x). More generally, if f is continuous on the relevant interval and both bounds are differentiable, d/dx ∫u(x)v(x) f(t) dt = f(v(x))v'(x) − f(u(x))u'(x). This formula assumes the integrand itself has no additional x-dependence; more general parameter-dependent integrals require another rule.
Work a two-bound example
Differentiate G(x) = ∫xx2 (t + 1) dt. The upper-bound contribution is (x2 + 1)(2x). Subtract the lower-bound contribution (x + 1)(1). Therefore G'(x) = 2x3 + x − 1. At x = 2, this gives 17.
Check independently by evaluating the integral first: G(x) = x4/2 + x2 − x2/2 − x = x4/2 + x2/2 − x. Its derivative is the same expression. The check is useful because a missing lower-bound minus sign produces a plausible-looking but wrong answer.
Net change and the starting quantity
If Q'(t) is a continuous rate, then Q(b) − Q(a) = ∫ab Q'(t) dt. To recover the final quantity, add its initial value: Q(b) = Q(a) + ∫ab Q'(t) dt. A tank with 20 liters initially and net inflow r(t) = 6 − 2t liters per minute for 0 ≤ t ≤ 4 gains [6t − t2]04 = 8 liters. Its final volume is 28 liters, not 8.[2]
Here r becomes negative after t = 3, so the tank loses some of the volume gained earlier. The maximum volume is 20 + 9 = 29 liters at t = 3. This is a simplified net-rate model; its feasible interval must keep the physical quantity valid. A mathematical rate formula does not automatically remain realistic for all time.

Displacement and total distance
For continuous velocity v(t), displacement is ∫ v(t) dt over the time interval, while total distance is ∫ |v(t)| dt. Distance counts motion in both directions positively. Find zeros of velocity and determine signs before integrating the absolute value.[2]
Let v(t) = 2t − 4 meters per second for 0 ≤ t ≤ 3. The object reverses direction at t = 2. Displacement is [t2 − 4t]03 = −3 meters. Distance is ∫02 (4 − 2t) dt + ∫23 (2t − 4) dt = 4 + 1 = 5 meters. The absolute value of displacement, 3 meters, is not the total distance because some motion cancels in displacement.

Average value over an interval
For b > a, the average value of an integrable function is favg = [1/(b − a)] ∫ab f(x) dx. It is the constant height with the same signed accumulation over the interval. For f(x) = x2 on [0, 3], the integral is 9 and the average value is 3. The endpoint average (0 + 9)/2 = 4.5 is different; averaging only endpoints works exactly for linear functions, not for every curve.[3]
In the motion example, average velocity is displacement divided by elapsed time, −1 m/s. Average speed is distance divided by elapsed time, 5/3 m/s. Their names and units can look similar, so state which quantity is being averaged and whether direction matters.
Common misconceptions
- The final amount equals the integral of its rate. Add the initial amount to the net change.
- Distance is the absolute value of displacement. Integrate the absolute value of velocity, splitting at sign changes.
- A moving bound can be ignored. The chain rule multiplies by the bound's derivative.
- Endpoint subtraction works across every singularity. Check the theorem's hypotheses and the definition of the integral first.
Revisit with a new representation
Tomorrow, sketch a velocity graph that has zero displacement but positive total distance, and explain its signed areas. Next week, mix a moving-bound derivative with a net-change problem. Before calculating, label whether the requested result is a derivative, an accumulated change, a final amount, or an average. That decision determines the operation and the units.
What to carry forward
Key idea: Continuity connects differentiation and accumulation. Include the derivative of a moving bound, add the initial value for a final amount, and integrate speed for total distance.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 5.3 The Fundamental Theorem of Calculus. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 5.4 Integration Formulas and the Net Change Theorem. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 5.2 The Definite Integral. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Accumulation function
- A function defined by an integral with a variable bound.
- Fundamental Theorem of Calculus
- The theorem linking differentiation of accumulation and evaluation of definite integrals by antiderivatives.
- Net change
- Final quantity minus initial quantity, obtained by integrating its rate under the theorem's conditions.
- Displacement
- Signed change in position.
- Total distance
- The integral of speed, or absolute velocity, over a time interval.
- Average value
- The integral of a function over [a, b] divided by b - a, for b > a.
Substitution and Areas Between Curves
- Use substitution in indefinite and definite integrals with correct differentials and bounds.
- Set up and evaluate areas between curves, splitting where their order changes.
- Check integral results by differentiation, geometry, signs, and units.
The chain rule differentiates an outside function while accounting for the rate of its inside function. Substitution reverses that structure. The method is useful only when the entire integral, including the differential and any bounds, is transformed consistently. Once an integral can be evaluated, it can measure a region between curves as well as accumulation relative to the horizontal axis.
Retrieve the structure first
Differentiate (x2 + 4)3 without expanding it. The result is 6x(x2 + 4)2. Notice the inside x2 + 4 and its derivative 2x. In an integral, that pair suggests u = x2 + 4. You are looking for a useful composition and its rate factor, not simply a complicated-looking expression to rename.
What substitution asserts
If F' = f and g is differentiable on the relevant interval, the chain rule gives d/dx F(g(x)) = f(g(x))g'(x). Reversing it yields ∫ f(g(x))g'(x) dx = F(g(x)) + C. Writing u = g(x) and du = g'(x) dx is a concise way to record the transformation. For the usual definite substitution rule, take f continuous over the relevant values of g and g continuously differentiable on the integration interval.[1]
The symbol du is not a free extra factor. It represents the transformed combination g'(x) dx. If you change the expression but keep the wrong differential, you have not changed variables consistently. After substitution, an integral in u should contain only u and constants, unless you have explicitly rewritten every remaining x in terms of u.
A complete indefinite example
Evaluate ∫ 6x(x2 + 4)2 dx.
- Choose u = x2 + 4, so du = 2x dx.
- Account for the coefficient: 6x dx = 3 du.
- Transform the whole integral:
3 ∫ u2 du. - Integrate to obtain u3 + C.
- Return to the original variable:
(x2 + 4)3 + C. - Differentiate the answer to recover the original integrand.
The coefficient check is essential. Forgetting the factor 3 in the third line would produce an answer one-third of the correct size. Expanding the polynomial and integrating term by term is another valid method; matching derivatives checks both results even when their constants look different.
A logarithm pattern and its domain
For ∫ 2x/(x2 + 4) dx, set u = x2 + 4 and du = 2x dx. The result is ln|u| + C, which simplifies to ln(x2 + 4) + C because x2 + 4 is always positive. In contrast, ∫ 2x/(x2 − 4) dx = ln|x2 − 4| + C on any interval avoiding x = ±2. The absolute value allows negative nonzero inside values, but it does not remove the singularities.[1]
Constants of integration can differ on the three disconnected domain intervals in the second example. A single antiderivative calculation on one interval does not establish a valid definite integral across a pole. Check the original denominator before inserting bounds.
Change definite bounds together with the variable
Evaluate ∫02 x sqrt(x2 + 5) dx. Let u = x2 + 5, so x dx = du/2. The new bounds are u(0) = 5 and u(2) = 9. Thus the integral is (1/2)∫59 u1/2 du = [u3/2/3]59 = (27 − 5sqrt(5))/3, approximately 5.27322.[1]
There are two consistent paths: integrate in u and use u-bounds, or substitute back to x before using the original x-bounds. Mixing an antiderivative in u with the original numbers 0 and 2 is invalid. The integrand is nonnegative on [0, 2], so a negative final result would signal an error before any detailed checking.
Trigonometric substitutions that are just the chain rule reversed
For ∫ cos(5x − 1) dx, use u = 5x − 1 and du = 5 dx. The answer is sin(5x − 1)/5 + C. For ∫ sin(x)cos3(x) dx, choose u = cos(x), so du = −sin(x) dx. The answer is −cos4(x)/4 + C. Differentiation checks both the factor and the sign. All trigonometric arguments use radians.[1]
A familiar denominator gives another useful pattern: ∫ 1/(1 + 9x2) dx. With u = 3x, dx = du/3, so the answer is arctan(3x)/3 + C. This links the inverse-trigonometric derivatives to integration and gives a reason to retrieve those formulas after a delay.
Recognize a substitution that does not help
In ∫ sqrt(x2 + 5) dx, choosing u = x2 + 5 gives du = 2x dx, but there is no x factor to absorb. You cannot simply insert 2x into the integrand. On a restricted branch, rewriting x in terms of u is possible, but it does not yield the same easy power integral as the preceding example. A proposed substitution can be legal and still make the problem harder. Try algebra, another substitution, or a later integration method instead of forcing a pattern.
Area is the integral of the gap
Suppose continuous curves y = f(x) and y = g(x) satisfy f(x) ≥ g(x) on [a, b]. A vertical strip has height f(x) − g(x), so the enclosed area is ∫ab [f(x) − g(x)] dx. This remains true when both curves lie below the axis: the difference between top and bottom is what matters. If the order changes, split at intersection points or integrate |f − g| with the necessary sign analysis.[2]
Sketch the region, solve intersections, test which curve lies above on each interval, and only then integrate. An antiderivative cannot repair an incorrect region setup. If x and y both represent lengths, the answer has square units; in other applications, the units are the product of the two axis units.
A region bounded by a line and a parabola
Find the area enclosed by y = 2x and y = x2. Intersections solve x2 = 2x, giving x = 0 and x = 2. At x = 1, the line has height 2 and the parabola height 1, so the line is above throughout the interior. The area is ∫02 (2x − x2) dx = [x2 − x3/3]02 = 4/3 square units.
The result is positive, as an area must be. A rough bound checks its size: the region fits within a rectangle of width 2 and maximum gap 1, so its area cannot exceed 2. The value 4/3 satisfies that check. This geometric bound does not prove the exact answer, but it can catch an implausible arithmetic result.
A crossing requires a split
Find the area between y = x and y = x3 from −1 to 1. They meet at −1, 0, and 1. On (−1, 0), the cubic is above the line; on (0, 1), the line is above the cubic. Therefore the area is ∫−10 (x3 − x) dx + ∫01 (x − x3) dx = 1/4 + 1/4 = 1/2. Integrating x − x3 across the whole interval gives zero because positive and negative contributions cancel. That is signed difference, not total area.

Horizontal strips are another valid setup
Sometimes the simpler gap is right minus left. For the region between x = y2 and x = 4 from y = −2 to 2, use horizontal strips of length 4 − y2. The area is ∫−22 (4 − y2) dy = 32/3. The variable dy records that strip widths are measured along the y-axis. Choosing a variable is part of modeling the region, not merely notation.[2]
Common misconceptions
- Substitution means replacing only the inside expression. Transform the differential and bounds too.
- A missing derivative factor can be inserted freely. Multiplying an integrand changes the problem unless compensated correctly.
- Area is the absolute value of one signed integral. Split where top and bottom switch; cancellation can hide area.
- Only vertical strips work. Horizontal strips can give a simpler right-minus-left integral.
A mixed practice task
Evaluate ∫01 4x(x2 + 1)3 dx. Then find the area between y = x and y = x2 on [0, 1]. Write both setups before looking at the checks: the substitution integral becomes 2∫12 u3 du = 15/2; the area is ∫01 (x − x2) dx = 1/6. One task tests a change of variables; the other tests selection of an integrand.
Revisit and connect
Tomorrow, differentiate two antiderivatives from this lesson to reconstruct their integrands. In one week, draw a region with a crossing and explain why one unsplit signed integral fails to give its area. Keep a correction log with separate categories for setup, substitution, domain, and arithmetic. A complete solution communicates the reasoning that makes each integral the right one.
What to carry forward
Key idea: Transform the expression, differential, and bounds consistently. For area, sketch the region and integrate a nonnegative gap, splitting wherever the bounding curves change order.
Sources
- Strang, G., and Herman, E. (2016, current web edition). 5.5 Substitution. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Strang, G., and Herman, E. (2016, current web edition). 6.1 Areas Between Curves. Calculus Volume 1. OpenStax, Rice University. Read the section.
- Key terms
- Substitution
- A change of integration variable based on the chain rule.
- Differential
- The notation du = g'(x) dx that records the transformed rate factor in substitution.
- Transformed bounds
- The values of the new variable at the original integration endpoints.
- Area between curves
- The integral of the nonnegative gap between bounding curves over the appropriate intervals.
- Intersection
- A point shared by two curves, found by solving their equations together.
- Horizontal strip
- An area element using right-minus-left length and width dy.
