Derivatives
The derivative measures how fast a function changes and gives the slope of the tangent line. Learn the definition, the table of derivatives, the power, product, quotient and chain rules, tangent lines, implicit differentiation and how to find maxima and minima.
In calculus, the derivative of a function measures how fast the function changes. The derivative f′(a) is the slope of the tangent line to the graph at x = a, and it is defined as a limit: f′(a) = limh→0 [f(a + h) − f(a)] / h. For f(x) = x², the derivative is f′(x) = 2x, so the tangent line at x = 3 has slope 6.
Definition of the derivative
Between the points at x = a and x = a + h, the average rate of change of f is [f(a + h) − f(a)] / h, the slope of the secant line through both points. As h shrinks to 0, the second point slides toward the first, the secant turns into the tangent line, and the average rate becomes the instantaneous rate of change: the derivative.
The notation dy/dx comes from Leibniz and reminds you that the derivative is a ratio of tiny changes in y and x. The prime notation f′(x) is shorter. Both are standard. The limit itself is explained on the page about limits.
Derivative rules
In practice nobody uses the definition every time. These rules, each proved once from the definition, handle almost every function.
| Rule | Formula | Example |
|---|---|---|
| Constant | (c)′ = 0 | (7)′ = 0 |
| Power rule | (xⁿ)′ = n · xⁿ⁻¹ | (x⁵)′ = 5x⁴ |
| Constant multiple | (c · f)′ = c · f′ | (3x²)′ = 6x |
| Sum and difference | (f ± g)′ = f′ ± g′ | (x³ + x)′ = 3x² + 1 |
| Product rule | (f · g)′ = f′g + fg′ | (x · sin x)′ = sin x + x cos x |
| Quotient rule | (f/g)′ = (f′g − fg′) / g² | (1/x)′ = (0 · x − 1 · 1)/x² = −1/x² |
| Chain rule | [f(g(x))]′ = f′(g(x)) · g′(x) | [(3x + 1)²]′ = 2(3x + 1) · 3 |
Table of derivatives
| f(x) | f′(x) | f(x) | f′(x) |
|---|---|---|---|
| xⁿ | n · xⁿ⁻¹ | sin x | cos x |
| √x | 1 / (2√x) | cos x | −sin x |
| 1/x | −1/x² | tan x | sec² x |
| eˣ | eˣ | sec x | sec x tan x |
| aˣ | aˣ · ln a | csc x | −csc x cot x |
| ln x | 1/x | cot x | −csc² x |
| loga x | 1 / (x · ln a) | arcsin x | 1 / √(1 − x²) |
| c (constant) | 0 | arctan x | 1 / (1 + x²) |
The trigonometric derivatives require x in radians. The function eˣ is its own derivative, which is why it is called the natural exponential function.
Using the power rule
Rewrite roots and fractions as powers first: √x = x1/2 and 1/xⁿ = x⁻ⁿ. Then bring the exponent down and subtract 1.
The product rule
The derivative of a product is not the product of the derivatives. Instead: derivative of the first times the second, plus the first times the derivative of the second.
The quotient rule
Memory aid: “low d-high minus high d-low, over the square of what's below”.
The chain rule
A composite function f(g(x)) has an outer function f and an inner function g. Differentiate the outer function, keep the inner function inside it, and multiply by the derivative of the inner function. In Leibniz notation with u = g(x): dy/dx = dy/du · du/dx.
Equation of the tangent line
The tangent line at x = a passes through the point (a, f(a)) and has slope f′(a). In point-slope form:
Implicit differentiation
For curves like the circle x² + y² = 25, y is not given as a function. Differentiate both sides with respect to x and treat y as a function of x, so every y-term gets a factor y′ by the chain rule: 2x + 2y · y′ = 0, so y′ = −x/y. At the point (3, 4) the slope is −3/4.
Rates of change: velocity and acceleration
If s(t) is the position of an object at time t, then the derivative s′(t) is its velocity, and the second derivative s″(t) is its acceleration.
Increasing, decreasing, maxima and minima
If f′(x) > 0 on an interval, f is increasing there; if f′(x) < 0, it is decreasing. Candidates for local maxima and minima are the critical points, where f′(x) = 0 or f′ does not exist.
- Find f′(x) and solve f′(x) = 0.
- First derivative test: if f′ changes from + to −, there is a local maximum; from − to +, a local minimum.
- Or the second derivative test: f″(a) < 0 means a maximum, f″(a) > 0 a minimum.
- Compute the y-values by substituting into f.
Common mistakes
- Product of derivatives: (x² · x³)′ = (x⁵)′ = 5x⁴, not 2x · 3x² = 6x³.
- Forgetting the chain rule: (sin 5x)′ = 5 cos 5x, not cos 5x.
- Sign errors: (cos x)′ = −sin x, and the quotient rule has a minus in the numerator.
- Constants: (7)′ = 0, but (7x)′ = 7.
- Power rule on exponentials: (2ˣ)′ is not x · 2ˣ⁻¹; it is 2ˣ ln 2.
- Assuming f′(a) = 0 always gives an extremum: for f(x) = x³, f′(0) = 0, but the function keeps increasing.
Practice problems
Frequently asked questions
What is a derivative in simple terms?
The derivative tells you how fast something changes at one instant: the slope of the graph at a point, or the speed of a moving object at a given moment.
What are the basic derivative rules?
The power rule (xⁿ)′ = nxⁿ⁻¹, the constant multiple and sum rules, the product rule, the quotient rule and the chain rule. See the table of rules and the table of derivatives.
What is the chain rule?
The rule for composite functions: [f(g(x))]′ = f′(g(x)) · g′(x). Differentiate the outer function, keep the inner one, then multiply by the derivative of the inner function.
What are derivatives used for?
To find slopes and tangent lines, velocities and accelerations, marginal cost in economics, and the maximum or minimum of a quantity, such as the largest volume or the lowest cost.
What is the difference between a derivative and an integral?
The derivative measures the rate of change; the integral adds up a quantity, such as the area under a curve. By the Fundamental Theorem of Calculus, they are inverse operations.
Keep learning
- Previous topic: limits, on which the definition rests.
- Next topic: integrals, the reverse of derivatives.
- Review: maximum and minimum problems without calculus.
- In German: Ableitung.
Spotted a mistake or have a request? Send us a short message and we will take care of it.