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.
If calculus has always looked like a wall of strange symbols, this is a good place to start. Before we touch anything new, we are going to warm up with functions, the idea every later page rests on. Here is the reassuring part: you already use functions all the time. A vending machine is a function. You press B4, and one specific snack drops out. Press the same button tomorrow, and you get the same snack. That is all a function really is, and we will go slowly, one small step at a time. No question is too small.
The big picture
A function is a machine with one rule: take an input, give back exactly one output. That is the whole idea. 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 gently 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. Nice work, that is exactly what you will do with harder functions all course long.
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 like
√x(read "the square root of x"): only defined where the inside is not negative. - 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 legal inputs. When a function is just a formula, only two things can make an input illegal:
- 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
A function is even if f(−x) = f(x), meaning its graph is a mirror image across the y-axis, like x2. It is odd if f(−x) = −f(x), meaning a spin-around symmetry through the center, like x3. Most functions are neither, and that is completely fine. These labels just name a nice symmetry when it happens.
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.)
Reading a formula for its hazards, then intersecting the conditions, is the complete domain method. It never gets harder than this; there are just more hazards to list.
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.
Where people get stuck
The most common stumble is reading f(x) as "f times x" and trying to multiply. It is not multiplication. Whenever you see f(3), say to yourself "put 3 into machine f," and you will not mix it up. The second common stumble is declaring a domain "all real numbers" without checking. Before you answer, always scan for a fraction bottom that could be zero and a square root that could go negative. Those are the only two troublemakers at this stage.
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 is feeding one output into the next machine, and it is almost never reversible. Above,
f(g(4)) = 101butg(f(4)) = 49. - "Every formula allows all real numbers." Fractions ban a zero bottom; square roots ban a negative inside.
Recap
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 (never divide by zero, never square-root a negative), 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. That was the hard part of getting started.
Sources
- OpenStax. (2016). 1.1 Review of functions. In Calculus volume 1. openstax.org
- OpenStax. (2016). 1.2 Basic classes of functions. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Calculus I course notes. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). What is a function? mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 18.01SC Single variable calculus, Fall 2010. Massachusetts Institute of Technology. ocw.mit.edu
- Sanderson, G. (3Blue1Brown). (n.d.). The essence of calculus. 3blue1brown.com
- 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 with f(-x) = f(x), symmetric about the y-axis.
- Odd function
- A function with f(-x) = -f(x), symmetric about the origin.
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.
The word "limit" sounds technical, but the idea is gentle, and you already think this way. When you watch a car slow toward a stop sign, you can tell where it is going to end up a moment before it gets there. A limit is exactly that: reading where a function is heading, even before, or even if, it ever arrives. If limits have felt slippery before, we are going to take them one tiny step at a time, and it is going to make sense.
The big picture
The limit of f(x) as x approaches a number is the value the outputs are heading toward as the inputs creep closer and closer to that number, from both sides. We write it lim (x → a) f(x) = L, read aloud as "the limit, as x approaches a, of f of x, equals L." The one surprising part, and the reason limits are powerful, is this: we care about what happens near a, not at a. The function does not even have to be defined at a for the limit to exist.
Key idea: a limit is a destination, not a stop. It asks where the outputs are going, not whether they get there.
A picture: think of zooming in
Imagine zooming a camera in on a graph near one input. If the curve looks like it is aiming straight at one height from both the left and the right, that height is the limit. It does not matter if there is a tiny hole exactly at that spot; your eye still sees where the curve was headed.
Why the value at the point does not matter
Look at f(x) = (x2 − 9)/(x − 3). If you plug in x = 3 directly, you get 0/0, which is undefined, so there is a hole in the graph there. But the limit still exists. Watch what the outputs do as x creeps toward 3 from both sides:
| 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 |
From both sides the outputs zero in on 6. So lim (x → 3) f(x) = 6, even though f(3) does not exist. Here is the algebra that agrees: (x2 − 9)/(x − 3) = (x − 3)(x + 3)/(x − 3) = x + 3 for every x except 3, and x + 3 at 3 is 6. The table and the algebra tell the same story.
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.) - Both sides are aiming at the same number, 4. (They agree, so the limit is that shared target.)
So the limit is 4. Quick algebra check: (x2 − 4)/(x − 2) = x + 2 away from 2, and 2 + 2 = 4. You just estimated a limit and confirmed it.
One side at a time
Sometimes a function heads toward different values from the left and the right. The left-hand limit uses inputs slightly less than a, written x → a− and read "x approaches a from the left." The right-hand limit uses inputs slightly greater, written x → a+. A full two-sided limit exists only when both one-sided limits exist and agree. Picture a step in a staircase: come up to the step from below and you are at one height; step down onto it from above and you are at another. Because the two heights differ, there is no single value the function is heading toward.
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.
Recognizing these three patterns tells you, at a glance, when to stop hunting for a value that simply is not there. That is a real skill, not a failure.
Why limits exist at all: the speed problem
Limits were not invented for fun; they answer a question ordinary arithmetic cannot. Suppose a rock falls so that after t seconds it has dropped s(t) = 16t2 feet. What is its speed at exactly t = 1? Speed is distance over time, but at a single instant both the distance and the time are zero, and 0/0 is not a number. The way out is to compute average speeds over shrinking windows starting at t = 1 and watch the trend:
| 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 entry yourself: distance fallen is 16(1.1)2 − 16(1)2 = 19.36 − 16 = 3.36 feet in 0.1 seconds, and 3.36/0.1 = 33.6. The averages are marching toward 32 ft/s, and that limit is what we mean by the speed at the instant t = 1. Every derivative in this course is exactly this move, so you have already seen the punchline of Module 3.
The honest definition: epsilon and delta
"The outputs get close to L" is intuition. Mathematics eventually needs a version with no wiggle room, and here it is in plain words. Writing ε (epsilon) for an output tolerance and δ (delta) for an input tolerance:
lim (x → a) f(x) = L means: for every tolerance ε > 0 someone demands, we can find a distance δ > 0 so that whenever x is within δ of a (but not equal to a), f(x) is within ε of L.
Think of it as a game. A skeptic challenges: "get the outputs within 0.1 of L." You answer with an input window around a that guarantees it. If you can win for every challenge, no matter how tiny, the limit really is L. The definition never mentions x = a itself, which is why holes do not matter.
One full proof, for a linear function
Claim: lim (x → 3) (2x + 1) = 7. Here is the complete epsilon-delta argument.
- 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.)
Concretely, if the challenge is ε = 0.1, we answer δ = 0.05: any input within 0.05 of 3 lands the output within 0.1 of 7. Try x = 3.05: output 7.1, exactly at the edge. For a line of slope m, the same argument gives δ = ε/|m|: steeper lines need tighter input windows. Curvier functions need more careful bookkeeping, and a full course in analysis lives there, but the game is always this game. In this course we will mostly compute limits with algebra and trust that this definition is standing underneath, the way a driver trusts the engine without watching the pistons.
A limit from two formulas
Piecewise functions make the two-sided idea concrete. Let 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? Approach from the left through the first formula: outputs head toward 1 + 2 = 3. Approach from the right through the second: outputs head toward 5 − 2 = 3. The two sides agree, so the limit exists and equals 3, even though the function has no value at 1 at all. If the second formula had been 4 − 2x, the right side would head to 2, the sides would disagree, and the limit would not exist. With piecewise functions, always compute each side through its own formula; the two answers either meet or they do not, and that single comparison is the whole verdict.
Where people get stuck
The most common trap is thinking "to find the limit, just plug in a." That works only when the function is nicely connected at a. The whole reason limits earn their keep is the cases where plugging in gives 0/0 or a hole, and you must look at the trend instead. The second trap is not getting close enough in a table. Always test both sides and step in by tenths (2.9, 2.99, 2.999), so you can actually see the outputs settling down.
Common misconceptions
- "The limit is just f(a)." Only when the graph is connected there. A limit describes the approach, 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.
Recap
A limit reads where a function is heading as the input closes in on a target, from both sides. Read lim (x → a) f(x) = L as "as x approaches a, f of x approaches L." What happens exactly at a does not matter, which is why a hole still has a limit.
A two-sided limit exists only when the left and right sides agree, and a limit fails at a jump, a blow-up, or an endless wobble. Estimate with a two-sided table or by zooming a graph. Next lesson we trade estimates for exact algebra, but the instinct you built here, that a limit is a destination, carries the whole course.
Sources
- OpenStax. (2016). 2.2 The limit of a function. In Calculus volume 1. openstax.org
- OpenStax. (2016). 2.5 The precise definition of a limit. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). The limit. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). The definition of the limit. Paul's Online Math Notes. tutorial.math.lamar.edu
- Sanderson, G. (3Blue1Brown). (n.d.). Limits, L'Hopital's rule, and epsilon delta definitions. 3blue1brown.com
- Math is Fun. (n.d.). Limits (an introduction). mathsisfun.com
- Tall, D., & Vinner, S. (1981). Concept image and concept definition in mathematics with particular reference to limits and continuity. Educational Studies in Mathematics, 12(2), 151-169. doi.org/10.1007/BF00305619
- Grabiner, J. V. (1983). Who gave you the epsilon? Cauchy and the origins of rigorous calculus. The American Mathematical Monthly, 90(3), 185-194. doi.org/10.2307/2975545
- 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)
- A limit fails to exist when the left and right limits disagree or grow without bound.
- Oscillation
- Repeated swinging of outputs, as in sin(1/x) near 0, which prevents a limit.
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.
Building tables is convincing, but it is slow, and it never gives you a value you can be totally sure of. The good news is that most limits can be found exactly, with a little algebra, and the moves are ones you already know from earlier math. A fraction that turns into 0/0 looks like a dead end, but by the end of this page you will have a reliable way to handle it.
The big picture
For nice, connected functions, finding a limit is as easy as plugging in. The interesting cases are when plugging in gives 0/0. That is not a dead end and not an error; it is a signal that says "do a little more algebra first." We will learn the two moves that clear it almost every time.
Key idea: 0/0 means "not enough information yet," not "impossible." Simplify, then take the limit.
Move 0: direct substitution (try the easy thing first)
If f is a polynomial, a rational function, a root, or a trig, exponential, or log function, and the target is inside its domain, then lim (x → a) f(x) = f(a). You just plug in.
- Take
lim (x → 2) (3x2 − x). This is a polynomial, so plugging in is allowed. (Polynomials are connected everywhere.) - Put in 2:
3(22) − 2. (Fill the slot.) - Simplify:
3(4) = 12, then12 − 2 = 10.
So the limit is 10. Always try substitution first; it settles the easy majority of problems in one line.
The limit laws (why substitution is allowed)
Limits play nicely with arithmetic. If two limits exist, then the limit of their sum is the sum of the limits; the limit of a product is the product of the limits (so a constant factor can slide out front); the limit of a quotient is the quotient of the limits (as long as the bottom limit is not zero); and the limit of a power or root is that power or root of the limit. Because a polynomial is just sums and products of simple pieces, these laws are exactly why plugging in works for it.
The tricky case: 0/0, and Move 1, factor and cancel
When substitution gives 0/0, the form is called indeterminate: the answer could be almost anything, so you have to work a bit more. The first move is to factor and cancel.
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.
So the limit is 6, matching the table from last lesson. Canceling is allowed because the limit never actually visits x = 3; it only looks nearby, where x − 3 is a fine nonzero number.
Try it: find lim (x → 1) (x2 + 2x − 3)/(x − 1).
Answer: Factor the top as (x − 1)(x + 3), cancel (x − 1), then substitute: 1 + 3 = 4. Nicely done, that was the same move.
Move 2: rationalize (when a square root is in the way)
If a square root sits inside a difference that collapses to 0/0, multiply the top and bottom by the conjugate, the same two terms with the middle sign flipped. It clears the root.
Worked example. Find lim (x → 0) (√(x + 9) − 3)/x.
- Substitution gives
0/0. (Move to algebra.) - Multiply top and bottom by the conjugate
√(x + 9) + 3. (Same value, written cleverly.) - The top becomes
(x + 9) − 9 = x, so we havex / [x(√(x + 9) + 3)]. (The root difference collapsed.) - Cancel the
x, leaving1/(√(x + 9) + 3), then substitute:1/(3 + 3) = 1/6.
So the limit is 1/6. The conjugate is the tool that turns a stubborn root difference into a plain subtraction.
The Squeeze Theorem and one famous limit
The Squeeze Theorem is the "trapped in the middle" idea: if a function is stuck between two others, g(x) ≤ f(x) ≤ h(x), and both the top and bottom head to the same value L, then the middle one has nowhere else to go and must head to L too. It proves the single most important trig limit:
lim (x → 0) sin(x)/x = 1
Plugging in gives 0/0, but a geometry argument traps sin(x)/x between cos(x) and 1 near zero, and both squeeze to 1, pinning the value to exactly 1. A close cousin is lim (x → 0) (1 − cos(x))/x = 0. These two are worth memorizing; they power the trig derivatives coming in Module 4.
Reshaping to reveal a known limit
Find lim (x → 0) sin(3x)/x. The trick is to make the inside and the bottom 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.
So the limit is 3. Reshaping until a known limit appears is a move you will use again and again.
Naming the laws as they work
To see the limit laws earn their keep one at a time, evaluate lim (x → 2) (x2 + 3x)/(x + 1) the slow, honest way.
- 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 would give 10/3 in one line, and now you know why that shortcut is legal: it is these laws, applied silently. The laws matter on their own when a problem gives you limits without formulas. If you are told lim f(x) = 5 and lim g(x) = −2 at the same point, then without knowing f or g you can say lim [2f(x) − 3g(x)] = 2(5) − 3(−2) = 16 and lim [f(x)g(x)] = −10.
A limit that is secretly a slope
Here is a 0/0 limit of the exact shape that will define the derivative next module. Evaluate lim (h → 0) [(2 + h)3 − 8]/h.
- 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 top is
12h + 6h2 + h3. Every surviving term carries an h, which is the signature of these problems. - Divide by h:
12 + 6h + h2. (The 0/0 is gone.) - Let
h → 0: the limit is 12.
Keep this one in mind. In Module 3 the same computation, with x in place of 2, will be called "differentiating x3," and the answer 12 will be the slope of that curve at x = 2.
Making a limit exist: a parameter puzzle
For what value of the constant c does lim (x → 2) f(x) exist, where f(x) = cx + 3 for x < 2 and f(x) = x2 + c for x ≥ 2?
- 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.
Problems like this are how engineers splice two formulas into one smooth model: choose the constants so the pieces agree where they meet.
Where people get stuck
The biggest trap is announcing an answer the moment you see 0/0. It does not mean 0, it does not mean 1, and it does not mean undefined. It means "keep going," usually by factoring or rationalizing. The second trap is worrying that canceling (x − 3) is cheating because it is zero at 3. It is not: the limit only looks near 3, never at 3, where the factor is perfectly nonzero.
Common misconceptions
- "0/0 equals 0 (or 1, or is always undefined)." It is indeterminate. Depending on the functions, it can come out to 6, to 1/6, to infinity, or fail to exist.
- "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.
Recap
Try direct substitution first; for connected functions it just works. If you get 0/0, that is a prompt, not a wall: factor and cancel, or rationalize with a conjugate, then substitute into the simpler form. The Squeeze Theorem traps a function between two that share a limit, which is how we know sin(x)/x → 1 and (1 − cos x)/x → 0. And reshaping an expression until a known limit appears is a habit worth keeping. You now have exact tools where last lesson you had only estimates.
Sources
- OpenStax. (2016). 2.3 The limit laws. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Computing limits. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Evaluating limits. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- Sanderson, G. (3Blue1Brown). (n.d.). Limits, L'Hopital's rule, and epsilon delta definitions. 3blue1brown.com
- MIT OpenCourseWare. (2010). 18.01SC Single variable calculus, Fall 2010. Massachusetts Institute of Technology. ocw.mit.edu
- Grabiner, J. V. (1983). Who gave you the epsilon? Cauchy and the origins of rigorous calculus. The American Mathematical Monthly, 90(3), 185-194. doi.org/10.2307/2975545
- Key terms
- Direct substitution
- Evaluating a limit by plugging the target value into the function when it is defined there.
- Limit laws
- Rules that let the limit of a sum, product, or quotient be built from simpler limits.
- Indeterminate form
- An expression like 0/0 whose value cannot be decided without further work.
- 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
- The angle measure that makes sin(x)/x approach 1, required for clean trig calculus.
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.
So far a limit has been a finite destination near a finite point. This lesson stretches the idea in two friendly directions: what happens when a function shoots up near a bad point, and what happens far, far out to the right or left. Both sound abstract, but they are really just asking "where is this graph headed," and you already know how to answer that.
The big picture
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.
Key idea: 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
The same question fits other families, and there is a simple pecking order: exponentials beat powers beat logarithms. So ex outruns every polynomial, giving lim (x → ∞) x2/ex = 0. A shrinking exponential fades away: lim (x → ∞) e−x = 0, which is why y = 0 is the cruising line of a cooling cup of coffee. The logarithm climbs forever but painfully slowly, so lim (x → ∞) ln(x) = ∞ even though it never levels off. Knowing this order resolves many limits by inspection.
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.
Where people get stuck
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; strictly, the limit does not exist, and
∞says how. - "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.
Recap
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 infinity. And exponentials beat powers beat logarithms. You can now describe both the near-singular and the long-range shape of a graph.
Sources
- OpenStax. (2016). 4.6 Limits at infinity and asymptotes. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). One-sided limits. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Infinite limits. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Limits at infinity, part I. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Limits to infinity. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 18.01SC Single variable calculus, Fall 2010. Massachusetts Institute of Technology. ocw.mit.edu
- 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 diagonal line the graph approaches when the top degree is one more than the bottom.
Continuity
- State the three-part definition of continuity at a point.
- Classify removable, jump, and infinite discontinuities.
- Apply the Intermediate Value Theorem.
Here is a word that sounds fancier than it is. A function is continuous at a point if you can draw right through that point without lifting your pen. A smooth road with no gaps, no sudden jumps, no missing chunk. That mental picture is most of what continuity means, and we are going to turn it into a simple three-item checklist you can actually use.
The big picture
Continuity is the property of being connected, of the graph and the point agreeing with no surprises. It matters because nearly every big theorem ahead, and the very idea of a derivative, quietly assumes it. When a modeler says a function is "nice," continuity is usually what they mean.
Key idea: 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 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. Think postage rates or tax brackets that step up suddenly.
- 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 step halves the interval; ten more steps would pin the root (about 1.3247) to three decimal places. This is exactly how calculators and computers find roots of equations no algebra can solve, and the IVT is the reason the method cannot miss.
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.
Where people get stuck
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.
Recap
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. Breaks come in three flavors: removable holes, jumps, and infinite blow-ups. 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.
Sources
- OpenStax. (2016). 2.4 Continuity. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Continuity. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Continuous functions. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 18.01SC Single variable calculus, Fall 2010. Massachusetts Institute of Technology. ocw.mit.edu
- Tall, D., & Vinner, S. (1981). Concept image and concept definition in mathematics with particular reference to limits and continuity. Educational Studies in Mathematics, 12(2), 151-169. doi.org/10.1007/BF00305619
- OpenStax. (2016). 2.5 The precise definition of a limit. In Calculus volume 1. openstax.org
- 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.
This is the heart of the whole course, so we are going to build it slowly and gently. The derivative answers one honest question: how fast is a function changing right now, at a single instant? Think of the speedometer in a car. It does not show your average speed for the trip; it shows how fast you are going at this exact moment. The derivative is the speedometer of any function. If that has ever sounded mysterious, by the end of this page you will have built it yourself, one small step at a time.
The big picture
You already know average speed: distance divided by time over a stretch. The derivative sharpens that into instantaneous speed by shrinking the stretch down to nothing. The clever part is doing that without ever dividing by zero, and a limit is exactly the tool that lets us.
Key idea: average rate over a tiny gap, then shrink the gap to zero. What it settles on is the derivative.
Starting from average rate
The average rate of change of f from x to x + h is the rise over the run, called the difference quotient:
[f(x + h) − f(x)] / h
Read it as "the change in output divided by the change in input, h." Here h is the width of the little gap. To get the instantaneous rate, we shrink h to zero by taking a limit. That limit is the derivative, written f'(x) and read "f prime of x":
f'(x) = lim (h → 0) [f(x + h) − f(x)] / h
We cannot just set h = 0, because that gives 0/0. But the limit captures the trend as h shrinks without ever dividing by zero, which is precisely the indeterminate-form skill from Module 2 doing real work.
The picture: secant lines becoming a tangent
Each difference quotient is the slope of a secant line, a line through two points on the curve, at x and at x + h. Now imagine sliding the second point toward the first. The secant lines pivot, and in the limit they settle into the tangent line, the line that just grazes the curve at one point. So the derivative is the slope of the tangent, the exact steepness of the curve there. That is the bridge: a limit of quotients (algebra) equals a slope (geometry), which is why one number answers both "how fast" and "how steep."
Let us build one together, slowly
Find f'(x) for f(x) = x2 from the definition.
- Write
f(x + h): replace x withx + h, giving(x + h)2 = x2 + 2xh + h2. (Just expanding.) - Subtract
f(x) = x2: thex2cancels, leaving2xh + h2. (Top of the quotient.) - Divide by
h:(2xh + h2)/h = 2x + h. (Legal, because h is not zero yet.) - Now let
h → 0:2x + 0 = 2x. (The gap closes.)
So f'(x) = 2x. At x = 3 the slope is 2(3) = 6. The whole trick lives in step 3: canceling the h clears the 0/0 so the limit can be taken cleanly. Take a moment to notice what happened. You turned a bulky definition into a two-symbol answer. That is real calculus, and you just did it.
Try it: use the definition on f(x) = x2 + 3x.
Answer: f(x + h) − f(x) = 2xh + h2 + 3h; divide by h to get 2x + h + 3; let h → 0 for f'(x) = 2x + 3. Same four steps, new function.
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
f(x): the3x2,−5x, and+1all cancel, leaving6xh + 3h2 − 5h. - Divide by
h:6x + 3h − 5. - Let
h → 0:6x − 5.
So f'(x) = 6x − 5. Notice every constant term canceled in step 2, the definition's own way of saying a constant has zero slope.
It works beyond polynomials
The definition handles fractions too. For f(x) = 1/x, the difference quotient becomes [1/(x + h) − 1/x]/h. Combine the top over a common bottom to get −h / [x(x + h)], all over h, which simplifies to −1/[x(x + h)]. Letting h → 0 gives −1/x2. Next module a shortcut rule produces this instantly, but seeing it come from the definition is why the shortcut can be trusted.
Notation, and why we do the hard way first
Several notations mean the same derivative: f'(x) (read "f prime of x"), dy/dx (read "d y d x"), and D f(x). The dy/dx form is a deliberate echo of rise over run, the change in y over the change in x, with the gap taken to zero. Working a few derivatives by hand builds genuine understanding of what a derivative is, so that when the fast rules arrive and feel like magic, you will know they are honest.
A square root, tamed by the conjugate
The definition also handles roots, using the rationalizing move from Module 2. Find f'(x) for f(x) = √x.
- 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).
So f'(x) = 1/(2√x). Two readings worth pausing on. At x = 4 the slope is 1/4; at x = 100 it is 1/20: the square root curve keeps climbing but ever more slowly, which matches its shape. And at x = 0 the formula blows up: the curve leaves the origin vertically, a first hint that derivatives can fail to exist at specific points.
Where derivatives fail: corners, cusps, jumps
Differentiability is a stronger demand than continuity, and the failures are worth recognizing on sight.
- 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. Here is the one-line reason. If f'(a) exists, then as x → a the change in outputs satisfies f(x) − f(a) = [the difference quotient] × (x − a) → f'(a) × 0 = 0, so f(x) → f(a), which is continuity. Flip it around: no continuity, no derivative. But the absolute value shows the reverse fails: continuous everywhere, yet not differentiable at the corner. Differentiable functions are the "smooth" ones, connected and bend-limited.
The derivative as a function, tabulated
It pays to keep the two roles straight: f' is a whole function; f'(3) is one of its outputs. For f(x) = x2 with f'(x) = 2x:
| x | −2 | −1 | 0 | 1 | 2 | 3 |
| slope f'(x) | −4 | −2 | 0 | 2 | 4 | 6 |
Read the row aloud as a story: steep downhill, gentler downhill, flat at the bottom, then steeper and steeper uphill. Being able to read a derivative table as the shape of the original graph, and vice versa, is the literacy this whole course is building.
Estimating a derivative numerically
When a function arrives as data or is too gnarly for algebra, the difference quotient becomes an estimator. For f(x) = x2 at x = 3, the forward estimate with h = 0.01 is [f(3.01) − f(3)]/0.01 = (9.0601 − 9)/0.01 = 6.01, off by 0.01. The symmetric estimate straddles the point: [f(3.01) − f(2.99)]/0.02 = (9.0601 − 8.9401)/0.02 = 0.1200/0.02 = 6.0000, exact here and dramatically more accurate in general, because the overshoot on one side cancels the undershoot on the other. This centered-difference trick is precisely how graphing calculators and spreadsheets display "the" derivative of your data. Knowing that the machine is quietly computing a difference quotient, and that its accuracy depends on the h it chose, is the difference between using a black box and understanding one.
Where people get stuck
The number one trap is trying to set h = 0 too early. Do that and you get 0/0, a dead end. The fix is the order: first simplify the quotient until the h in the bottom cancels, and only then let h go to zero. The second trap is picturing a tangent line as a line that touches the curve at only one point. That is not the definition; a tangent can meet the curve elsewhere too. What makes it the tangent is that it is the limiting slope of the secants.
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." For most functions
f'(x)is itself a function; it gives a different slope at each x. - "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.
Recap
The derivative is the instantaneous rate of change, the speedometer of a function. Build it from the difference quotient [f(x + h) − f(x)]/h and shrink the gap with a limit: f'(x) = lim (h → 0) [f(x + h) − f(x)]/h. Geometrically, secant lines pivot into the tangent line, so the derivative is the tangent's slope. The reliable four steps are expand, subtract, divide by h, then let h go to zero. Do a few by hand and the shortcut rules ahead will make complete sense.
Sources
- OpenStax. (2016). 3.1 Defining the derivative. In Calculus volume 1. openstax.org
- OpenStax. (2016). 3.2 The derivative as a function. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). The definition of the derivative. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Introduction to derivatives. mathsisfun.com
- Sanderson, G. (3Blue1Brown). (n.d.). The paradox of the derivative. 3blue1brown.com
- MIT OpenCourseWare. (2010). 1. Differentiation. 18.01SC Single variable calculus. Massachusetts Institute of Technology. ocw.mit.edu
- Grabiner, J. V. (1983). The changing concept of change: The derivative from Fermat to Weierstrass. Mathematics Magazine, 56(4), 195-206. doi.org/10.2307/2689807
- Key terms
- Difference quotient
- The average rate of change [f(x+h) - f(x)]/h over a gap of width h.
- Derivative
- The limit of the difference quotient as h approaches 0, the instantaneous rate of change.
- Secant line
- A line through two points on a curve.
- Tangent line
- The line touching a curve at one point, whose slope is the derivative there.
- 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.
You just built the derivative. Now for the fun part: what it actually tells you. Once you can compute f'(x), it hands you two practical readings at every point, the slope of the curve and the rate of change of whatever the function measures. One is geometric, one is physical, and they are the reason the derivative shows up everywhere from physics to business.
The big picture
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.
Key idea: 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.
This was the original problem calculus was invented to solve, and the pattern generalizes: the derivative of a quantity with respect to time is its rate of flow. Marginal cost is the derivative of total cost; electric current is the derivative of charge; a reaction rate is the derivative of concentration.
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 against reality:
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. Linear approximation, done at scale, is how computers evaluate roots, logs, and trig functions internally, and it returns in Calculus II as the first term of Taylor series.
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.
Where people get stuck
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 is only a momentary pause, like the top of the ball's flight, where it is about to reverse.
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 is instantaneous rest, as at a ball's peak, with nonzero acceleration turning it around.
- "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.
Recap
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.
Sources
- OpenStax. (2016). 3.4 Derivatives as rates of change. In Calculus volume 1. openstax.org
- OpenStax. (2016). 3.2 The derivative as a function. In Calculus volume 1. openstax.org
- OpenStax. (2016). 4.2 Linear approximations and differentials. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Rates of change. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Linear approximations. Paul's Online Math Notes. tutorial.math.lamar.edu
- Sanderson, G. (3Blue1Brown). (n.d.). The paradox of the derivative. 3blue1brown.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- 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
- A function is increasing where its derivative is positive.
- Decreasing
- A function is decreasing where its derivative is negative.
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.
Computing every derivative from the limit definition would wear anyone out. The happy news is that patterns show up, and we can package them as quick rules that give the same answers in seconds. Each rule is provable from the definition you just learned, so nothing here is a trick; it is your hard work from last lesson, bottled for speed. Let us start with the most useful rule of all.
The big picture
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.
Key idea: 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. It works for every real exponent, positive, negative, or fractional. 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. (Anything to the 0 is 1.)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. The second derivative f'' already has a physical name, acceleration, and it will carry the geometry of "bending" in Module 6. Higher derivatives power Taylor series in Calculus II, where they encode a function's entire local personality.
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.
Where people get stuck
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. The second stumble is trying to differentiate √x without rewriting it. Always convert to x(1/2) first; there is no shortcut that skips that step.
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.
Recap
The power rule, d/dx (xn) = n x(n − 1), brings the exponent down and drops it by one, for any real exponent. 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.
Sources
- OpenStax. (2016). 3.3 Differentiation rules. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Differentiation formulas. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Proof of various derivative properties. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Derivative rules. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 1. Differentiation. 18.01SC Single variable calculus. Massachusetts Institute of Technology. ocw.mit.edu
- Sanderson, G. (3Blue1Brown). (n.d.). Higher order derivatives. 3blue1brown.com
- Key terms
- Power rule
- d/dx (x^n) = n x^(n-1); drop the exponent in front and reduce it by one.
- 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.
The sum rule let you split addition and differentiate one term at a time, which felt friendly. Products and quotients need their own rules, and here is the thing to know up front: the derivative of a product is not the product of the derivatives. That surprises almost everyone, so if it trips you, you are in good company. We will see exactly why, and then the correct rules are short and reliable.
The big picture
When two functions are multiplied or divided, they interact, and the derivative has to account for both pieces changing. Each of these rules has two parts for exactly that reason. Learn the shape once and they become automatic.
Key idea: 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 then comes free: 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, expanding is impossible and the product rule is the only road. 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.
Where people get stuck
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.
Recap
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.
Sources
- OpenStax. (2016). 3.3 Differentiation rules. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Product and quotient rule. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Proof of various derivative properties. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Derivative rules. mathsisfun.com
- Sanderson, G. (3Blue1Brown). (n.d.). Visualizing the chain rule and product rule. 3blue1brown.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 1. Differentiation. 18.01SC Single variable calculus. Massachusetts Institute of Technology. ocw.mit.edu
- 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.
The chain rule is the one that unlocks almost everything, because almost every real function is one function tucked inside another. If nested functions have felt like a knot you could not undo, this page gives you the single move that loosens all of them. We will go slowly, and by the end you will spot the pattern on sight.
The big picture
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 the most common slip in all of differential calculus.
Key idea: 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
Where does the mysterious ln a in d/dx (ax) = ax ln a come from? From the chain rule. Any base can be rewritten on base e: 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 you memorized last lesson is the chain rule in disguise, 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.
Where people get stuck
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 is the most used rule; most realistic functions are composites.
- "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.
Recap
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.
Sources
- OpenStax. (2016). 3.6 The chain rule. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Chain rule. Paul's Online Math Notes. tutorial.math.lamar.edu
- Sanderson, G. (3Blue1Brown). (n.d.). Visualizing the chain rule and product rule. 3blue1brown.com
- Math is Fun. (n.d.). Derivative rules. mathsisfun.com
- OpenStax. (2016). 3.9 Derivatives of exponential and logarithmic functions. In Calculus volume 1. openstax.org
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 1. Differentiation. 18.01SC Single variable calculus. Massachusetts Institute of Technology. ocw.mit.edu
- 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.
Beyond polynomials, three families do most of the heavy lifting in science: trig, exponential, and logarithmic functions. Their derivatives are worth knowing by heart, and the reassuring part is that there are only a handful, and each one teams up cleanly with the chain rule you just learned. Let us meet them gently, one family at a time.
The big picture
You do not need to rederive these every time; you memorize a short list, then let the chain rule handle anything nested. Think of this lesson as stocking your toolbox with a few reliable, named tools.
Key idea: learn a small set of base derivatives, then apply 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
Check one: a famous tangent line. The tangent to y = ex at x = 0 passes through (0, 1) with slope e0 = 1, giving the line y = 1 + x. That is the workhorse approximation ex ≈ 1 + x for small x, used constantly in physics and finance: 3 percent growth compounds to roughly e0.03 ≈ 1.03. The full curve always sits above this line (it is concave up everywhere), so the approximation slightly undershoots, and knowing the direction of the error is half the value.
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.
Where people get stuck
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. You now have derivatives for every elementary function.
Sources
- OpenStax. (2016). 3.5 Derivatives of trigonometric functions. In Calculus volume 1. openstax.org
- OpenStax. (2016). 3.9 Derivatives of exponential and logarithmic functions. In Calculus volume 1. openstax.org
- OpenStax. (2016). 3.7 Derivatives of inverse functions. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Derivatives of trig functions. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Derivatives of exponential and logarithm functions. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Derivative rules. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- 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
- d/dx (a^x) = a^x ln a.
- Derivative of ln x
- d/dx (ln x) = 1/x.
- Logarithmic differentiation
- Taking ln of both sides to differentiate messy products or variable exponents.
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.
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.
Up to now, every function has been neatly solved for y, like y = x2 + 1. But some curves refuse to be untangled that way. The circle x2 + y2 = 25 is the classic case: you cannot write it as a single y = f(x), because most x values sit under two points. Implicit differentiation is the gentle trick that finds the slope anyway, without ever solving for y. And here is the encouraging part: it is really just the chain rule, wearing a slightly different hat.
The big picture
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.
Key idea: pretend y is secretly a function of x. Every time you differentiate a y-term, the chain rule tacks on a dy/dx.
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 one formula gives the slope anywhere on the circle. 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 read a slope off a curve you could not even solve for. 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 no one can solve for y. 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.
A slope of exactly −1 at the symmetric point is no accident: the folium is mirror-symmetric across the line y = x, and the tangent at the point on that mirror must be perpendicular to it. When geometry and algebra agree like this, you can trust the computation.
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
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: 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. It converts multiplication problems into addition problems, which is what logarithms were invented for.
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.
Where people get stuck
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. You never do; that is the entire point of the technique.
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.
Recap
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.
Sources
- OpenStax. (2016). 3.8 Implicit differentiation. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Implicit differentiation. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Logarithmic differentiation. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Implicit differentiation. mathsisfun.com
- Sanderson, G. (3Blue1Brown). (n.d.). Implicit differentiation, what's going on here? 3blue1brown.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- MIT OpenCourseWare. (2010). 1. Differentiation. 18.01SC Single variable calculus. Massachusetts Institute of Technology. ocw.mit.edu
- 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 point where dy/dx is undefined because the denominator is zero, as at a circle's left and right edges.
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.
One of the most useful things a derivative does is find the high points and low points of a function, its extrema. Where is a curve at its peak? Where does it bottom out? These are the "best" and "worst" of a situation, and they are the foundation for optimization coming up. If finding maxima and minima has ever felt like guesswork, this page gives you a dependable, step-by-step way to pin them down.
The big picture
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.
Key idea: 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
Because the tangent is flat at a smooth peak or valley, extrema can only happen where f'(x) = 0 or where f'(x) is undefined. Those inputs are called critical points. They are the suspects. Not every suspect is guilty, though, which is the content of Fermat's Theorem: if f has a local extremum at a point and the derivative exists there, then the derivative is 0. The reverse is not guaranteed, so we screen every critical point with a test.
The first derivative test
To classify a critical point, look at the sign of f' just to its left and just to its right. The sign tells you whether the function is rising or falling on each side:
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:
f(x) = 1/xon(0, 1]has no maximum at all; it blows up without bound as x nears 0. - 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
One more theorem completes this lesson's toolkit, and it is the quiet engine behind the sign-chart logic we have been using. The Mean Value Theorem (MVT): if f is continuous on [a, b] and differentiable on (a, b), then somewhere strictly between, at some point c, the instantaneous rate equals the average rate:
f'(c) = [f(b) − f(a)]/(b − a)
Plainly: over any stretch, at some instant your speedometer reads exactly your trip-average speed. A toll road that clocks you entering and exiting 120 miles apart in 2 hours can prove you hit exactly 60 mph at some moment, no radar needed. Worked check on f(x) = x2 over [0, 2]: average rate = (4 − 0)/(2 − 0) = 2; set f'(c) = 2c = 2 to find c = 1, safely inside the interval. The special case f(a) = f(b) (average rate zero, so some f'(c) = 0) is called Rolle's Theorem. The MVT is what makes the first derivative test trustworthy: if f' > 0 throughout an interval, the MVT forces f(b) > f(a) for every pair in it, which is exactly the claim "positive derivative means genuinely increasing."
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; alsof'is undefined atx = 0. Onlyx = 1lies inside[1/2, 3]. (Discard candidates outside the interval, including the undefined point.) - 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.
Where people get stuck
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 where
f'is undefined, like a corner. - "The Extreme Value Theorem always applies." It needs continuity and a closed, bounded interval; drop either and a max may not exist.
Recap
Extrema are the peaks and valleys of a function. They can only occur at critical points, where f'(x) = 0 or is undefined. 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, no change is neither. For absolute extrema on a closed interval, compare f at all interior critical points and both endpoints, backed by the Extreme Value Theorem. Draw a sign chart, and never skip the endpoints.
Sources
- OpenStax. (2016). 4.3 Maxima and minima. In Calculus volume 1. openstax.org
- OpenStax. (2016). 4.4 The mean value theorem. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Minimum and maximum values. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). The shape of a graph, part I. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). The mean value theorem. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Finding maxima and minima using derivatives. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- Key terms
- Extremum
- A maximum or minimum value of a function.
- Local maximum
- A point higher than all nearby points.
- Critical point
- An input where the derivative is zero or undefined, the only candidate for a local extremum.
- 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 interval attains an absolute max and min.
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.
The first derivative told you whether a curve is going uphill or downhill. The second derivative tells you something the first one misses: how the curve bends. Two roads can both head uphill, but one curves like the inside of a bowl and the other arches over like a hill. That bending is called concavity, and it turns out to be easy to read once you know the two shapes to look for.
The big picture
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.
Key idea: 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.
A quick memory aid: concave up looks like a cup or a smile; concave down looks like a frown. A point where the bending switches from one to the other is a point of inflection. It usually happens where f''(x) = 0 and the sign of f'' actually flips across it. A zero of f'' that does not flip sign is not an inflection point.
What concavity means in real life
If f is position, then f'' is acceleration, so concave up means speeding up. In business, a concave-down profit curve means diminishing returns: each extra unit adds a little less than the one before. When the news says inflation is "still rising but slowing," that is a positive first derivative (still rising) with a negative second derivative (slowing), concave down. Reading concavity turns a graph into a story about acceleration and change.
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
Every smooth stretch of any graph is one of exactly four shapes, and naming them speeds up both sketching and reading: rising concave up (speeding up uphill, like compound interest), rising concave down (uphill but tiring, like a saturating population), falling concave down (accelerating downhill), and falling concave up (a leveling descent, like a cooling coffee approaching room temperature). When you sketch, label each interval between critical points and inflections with its type and the picture nearly draws itself. When you read a news graph, the type is the story: "cases still rising but concave down" is the phrase "the surge is slowing" in mathematics.
Concavity from raw data: second differences
Concavity is visible even without a formula. Take equally spaced outputs of f(x) = x2: at x = 1, 2, 3, 4, 5 the values are 1, 4, 9, 16, 25. First differences (each value minus the last): 3, 5, 7, 9, climbing, so the slope is increasing: concave up. Difference the differences: 2, 2, 2, constant, echoing f''(x) = 2. A data table whose first differences shrink instead signals concave down. Analysts eyeball exactly this when they scan quarterly numbers: revenue up 3, then 5, then 7 is an accelerating (concave up) story even before anyone fits a curve. Second differences are the discrete shadow of the second derivative.
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.
Where people get stuck
The most common error is thinking every zero of f'' is an inflection point. It is only an inflection point if f'' actually changes sign there. 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." Only if
f''changes sign.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.
Recap
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 where it flips sign there is a point of inflection. The second derivative test classifies a critical point fast: 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.
Sources
- OpenStax. (2016). 4.5 Derivatives and the shape of a graph. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). The shape of a graph, part I. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). The shape of a graph, part II. Paul's Online Math Notes. tutorial.math.lamar.edu
- Math is Fun. (n.d.). Concave upward and downward. mathsisfun.com
- Math is Fun. (n.d.). Second derivative. mathsisfun.com
- Sanderson, G. (3Blue1Brown). (n.d.). Higher order derivatives. 3blue1brown.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- 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 where concavity changes, typically where f'' = 0 and switches sign.
- 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.
Optimization is where calculus earns its keep: finding the best possible outcome, the largest area, the smallest cost, the maximum profit, the shortest time. If word problems have ever made you want to close the book, you are not alone, and here is the reassuring truth: the calculus part is the easy part. The real work is the setup, turning a sentence into an equation, and we will do that slowly with a clear recipe.
The big picture
Every optimization problem has two pieces: something you want to make as big or small as possible (the objective), and a rule that ties the variables together (the constraint). You use the constraint to boil the objective down to one variable, then let the derivative find the best value, exactly the extrema skill from the last two lessons.
Key idea: write the objective, write the constraint, use the constraint to get one variable, then set the derivative to zero.
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. Every optimization problem has both.
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
A staple of every calculus course: use the least metal for a cylindrical can holding a fixed volume. The objective is surface area S = 2π r2 + 2π r h, and the constraint is the fixed volume V = π r2 h. Solve the constraint for h, substitute into S to get a function of r alone, differentiate, and set to zero. The tidy result: the cheapest can has height equal to its diameter, h = 2r. Real cans differ because of lids, labels, and stacking, but the calculus gives the ideal baseline, which is exactly how optimization guides engineering.
A caution about the domain
Always respect the physical domain. A length cannot be negative, so x in the pen problem lives in [0, 50]. Here the best value fell safely inside, but sometimes the true optimum sits at an endpoint of the allowed range, so checking the ends is part of a complete solution, just like the closed interval method.
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
Optimization endpoint checks often produce limits of tug-of-war form, so this is the natural place to meet the last derivative technique of the course. L'Hopital's rule: if lim f(x)/g(x) lands on exactly 0/0 or ∞/∞, and the functions are differentiable near the point, then
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
L'Hopital settles one more famous indeterminate form, 1∞, and it is worth seeing because the answer is a celebrity. What is lim (x → 0+) (1 + x)1/x? (Equivalently, compound interest at rate 1 split into ever more periods.) The base heads to 1, the exponent to infinity: a tug of war. Take logs to bring the exponent down: ln L = lim ln(1 + x)/x, which is honest 0/0, so L'Hopital applies: pass to [1/(1 + x)]/1 → 1. So ln L = 1, meaning L = e ≈ 2.71828. The banker's number is a limit, and the log-first maneuver you just watched, convert a power form to a quotient, apply L'Hopital, exponentiate back, is the standard recipe for every 1∞, 00, and ∞0 form on any exam.
Where people get stuck
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). You always use the constraint to shrink 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.
Recap
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.
Sources
- OpenStax. (2016). 4.7 Applied optimization problems. In Calculus volume 1. openstax.org
- OpenStax. (2016). 4.8 L'Hopital's rule. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Optimization. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). L'Hospital's rule and indeterminate forms. Paul's Online Math Notes. tutorial.math.lamar.edu
- Sanderson, G. (3Blue1Brown). (n.d.). Limits, L'Hopital's rule, and epsilon delta definitions. 3blue1brown.com
- Math is Fun. (n.d.). Finding maxima and minima using derivatives. mathsisfun.com
- Khan Academy. (n.d.). Calculus 1 [Online course]. Khan Academy. khanacademy.org β
- Key terms
- Optimization
- Finding the maximum or minimum value of a quantity.
- Objective function
- The quantity being maximized or minimized.
- Constraint
- An equation that limits the variables in the problem.
- Single-variable reduction
- Using the constraint to express the objective in one variable.
- Optimal value
- The maximum or minimum output, justified by a derivative test.
- 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.
You have spent this whole course finding derivatives, taking a function and finding its rate of change. Now we run the movie backward. Given a rate of change, can we recover the function it came from? That reverse process is called antidifferentiation, or integration, and it is the doorway to the entire second half of calculus. You already have every tool you need, because undoing a derivative just means reading your derivative rules the other way.
The big picture
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."
Key idea: 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. So a function has infinitely many antiderivatives, all differing by a constant. 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 are the bridge to the definite integral and the Fundamental Theorem of Calculus, which opens Calculus II. That theorem reveals something wonderful: this same reverse-of-slopes idea also computes exact areas under curves, by adding up infinitely many thin strips. The area under f from a to b turns out to equal F(b) − F(a), where F is any antiderivative. You have reached the doorway to integration, and you got here by mastering derivatives. Every rule you learned is about to pay off again, in reverse. That is a real accomplishment.
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) = the area under f from 0 to x, a function that grows as x sweeps right. 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.) Slope-finding and area-finding, invented centuries apart, are one subject read in two directions, and this theorem is the hinge.
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, convert the endpoints too and never return to x: ∫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. When the required factor is missing entirely, substitution does not apply, and Calculus II supplies further tools (integration by parts, the reversed product rule, among others). You now stand exactly at that doorway, with the complete differential calculus behind you and the integral calculus opening ahead.
Where people get stuck
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." It has infinitely many, all differing by a constant.
- "You cannot check an integral." You can, and should: differentiate your answer and see if you get the original function back.
Recap
An antiderivative F satisfies F'(x) = f(x), so integration is differentiation in reverse. Because constants vanish under differentiation, always include + C. Reverse the power rule by adding one to the exponent and dividing (except n = −1, which gives ln|x|), and read the other derivative rules backward for a table of antiderivatives. A starting value pins down C. This opens the door to the definite integral and areas in Calculus II. You made it to the end, and you built the whole thing yourself.
Sources
- OpenStax. (2016). 4.10 Antiderivatives. In Calculus volume 1. openstax.org
- OpenStax. (2016). 5.1 Approximating areas. In Calculus volume 1. openstax.org
- OpenStax. (2016). 5.3 The fundamental theorem of calculus. In Calculus volume 1. openstax.org
- OpenStax. (2016). 5.5 Substitution. In Calculus volume 1. openstax.org
- Dawkins, P. (n.d.). Indefinite integrals. Paul's Online Math Notes. tutorial.math.lamar.edu
- Dawkins, P. (n.d.). Definition of the definite integral. Paul's Online Math Notes. tutorial.math.lamar.edu
- Sanderson, G. (3Blue1Brown). (n.d.). Integration and the fundamental theorem of calculus. 3blue1brown.com
- Math is Fun. (n.d.). Introduction to integration. mathsisfun.com
- Key terms
- Antiderivative
- A function F whose derivative is f, so F'(x) = f(x).
- Integration
- The process of finding antiderivatives, the inverse of differentiation.
- 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
- The result linking antiderivatives to areas, giving the integral from a to b as F(b) - F(a).