The idea in one sentence
A derivative measures a functionβs local slope β how f f f changes βjust next toβ a point.
Equivalently: itβs the slope of the tangent line to the curve at that point.
See it: the tangent in action
Slide the cursor to move the point along the curve. The red tangent follows, and its slope updates live:
Things to notice :
When x 0 < 0 x_0 < 0 x 0 β < 0 β slope is negative (curve going down)
When x 0 = 0 x_0 = 0 x 0 β = 0 β slope is zero (bottom of parabola)
When x 0 > 0 x_0 > 0 x 0 β > 0 β slope is positive (curve going up)
Formula check: f β² ( x ) = 2 x f'(x) = 2x f β² ( x ) = 2 x . At x 0 = 1 x_0 = 1 x 0 β = 1 , slope = 2. At x 0 = β 2 x_0 = -2 x 0 β = β 2 , slope = β 4 -4 β 4 .
Rigorous definition
The derivative of f f f at a a a , written f β² ( a ) f'(a) f β² ( a ) , is the limit (if it exists):
f β² ( a ) = lim β‘ h β 0 f ( a + h ) β f ( a ) h f'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h} f β² ( a ) = lim h β 0 β h f ( a + h ) β f ( a ) β
The quotient f ( a + h ) β f ( a ) h \dfrac{f(a + h) - f(a)}{h} h f ( a + h ) β f ( a ) β is the difference quotient between a a a and a + h a+h a + h : the slope of the secant line through those two points. As h β 0 h \to 0 h β 0 , the secant tends to the tangent.
Equation of the tangent line
The tangent to f f f at x = a x = a x = a has equation:
y = f β² ( a ) β
( x β a ) + f ( a ) y = f'(a) \cdot (x - a) + f(a) y = f β² ( a ) β
( x β a ) + f ( a )
Example : For f ( x ) = x 2 f(x) = x^2 f ( x ) = x 2 at a = 3 a = 3 a = 3 :
f ( 3 ) = 9 f(3) = 9 f ( 3 ) = 9
f β² ( 3 ) = 6 f'(3) = 6 f β² ( 3 ) = 6
Tangent: y = 6 ( x β 3 ) + 9 = 6 x β 9 y = 6(x - 3) + 9 = 6x - 9 y = 6 ( x β 3 ) + 9 = 6 x β 9 .
Memorize these. Everything builds on them.
f ( x ) f(x) f ( x ) f β² ( x ) f'(x) f β² ( x ) Domain k k k (constant)0 0 0 R \mathbb{R} R x x x 1 1 1 R \mathbb{R} R x n x^n x n (n β Z n \in \mathbb{Z} n β Z )n β
x n β 1 n \cdot x^{n-1} n β
x n β 1 R \mathbb{R} R (or R β \mathbb{R}^* R β if n < 0 n < 0 n < 0 )x \sqrt{x} x β 1 2 x \dfrac{1}{2\sqrt{x}} 2 x β 1 β x > 0 x > 0 x > 0 1 x \dfrac{1}{x} x 1 β β 1 x 2 -\dfrac{1}{x^2} β x 2 1 β x β 0 x \neq 0 x ξ = 0 ln β‘ ( x ) \ln(x) ln ( x ) 1 x \dfrac{1}{x} x 1 β x > 0 x > 0 x > 0 e x e^x e x e x e^x e x R \mathbb{R} R sin β‘ ( x ) \sin(x) sin ( x ) cos β‘ ( x ) \cos(x) cos ( x ) R \mathbb{R} R cos β‘ ( x ) \cos(x) cos ( x ) β sin β‘ ( x ) -\sin(x) β sin ( x ) R \mathbb{R} R
Derivative operations
Operation Formula Sum ( u + v ) β² = u β² + v β² (u + v)' = u' + v' ( u + v ) β² = u β² + v β² Constant Γ function ( k β
u ) β² = k β
u β² (k \cdot u)' = k \cdot u' ( k β
u ) β² = k β
u β² Product ( u v ) β² = u β² v + u v β² (uv)' = u'v + uv' ( uv ) β² = u β² v + u v β² Quotient ( u v ) β² = u β² v β u v β² v 2 \left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2} ( v u β ) β² = v 2 u β² v β u v β² β Chain rule ( v β u ) β² = u β² β
( v β² β u ) (v \circ u)' = u' \cdot (v' \circ u) ( v β u ) β² = u β² β
( v β² β u )
Examples
Example 1 (sum): f ( x ) = 3 x 2 β 5 x + 7 f(x) = 3x^2 - 5x + 7 f ( x ) = 3 x 2 β 5 x + 7
f β² ( x ) = 6 x β 5 f'(x) = 6x - 5 f β² ( x ) = 6 x β 5 .
Example 2 (product): f ( x ) = x 2 β
e x f(x) = x^2 \cdot e^x f ( x ) = x 2 β
e x
f β² ( x ) = 2 x β
e x + x 2 β
e x = e x ( 2 x + x 2 ) f'(x) = 2x \cdot e^x + x^2 \cdot e^x = e^x(2x + x^2) f β² ( x ) = 2 x β
e x + x 2 β
e x = e x ( 2 x + x 2 ) .
Example 3 (quotient): f ( x ) = x x 2 + 1 f(x) = \dfrac{x}{x^2 + 1} f ( x ) = x 2 + 1 x β
f β² ( x ) = 1 β
( x 2 + 1 ) β x β
2 x ( x 2 + 1 ) 2 = 1 β x 2 ( x 2 + 1 ) 2 f'(x) = \dfrac{1 \cdot (x^2 + 1) - x \cdot 2x}{(x^2 + 1)^2} = \dfrac{1 - x^2}{(x^2 + 1)^2} f β² ( x ) = ( x 2 + 1 ) 2 1 β
( x 2 + 1 ) β x β
2 x β = ( x 2 + 1 ) 2 1 β x 2 β .
Example 4 (chain): f ( x ) = sin β‘ ( 3 x + 1 ) f(x) = \sin(3x + 1) f ( x ) = sin ( 3 x + 1 )
f β² ( x ) = 3 β
cos β‘ ( 3 x + 1 ) f'(x) = 3 \cdot \cos(3x + 1) f β² ( x ) = 3 β
cos ( 3 x + 1 ) .
Key applications
1. Monotonicity
f β² > 0 f' > 0 f β² > 0 on an interval β f f f is increasing.
f β² < 0 f' < 0 f β² < 0 β decreasing.
f β² = 0 f' = 0 f β² = 0 at an isolated point β local extremum (confirm with sign table).
2. Finding an extremum
f ( x ) = β x 2 + 4 x + 1 f(x) = -x^2 + 4x + 1 f ( x ) = β x 2 + 4 x + 1 .
f β² ( x ) = β 2 x + 4 f'(x) = -2x + 4 f β² ( x ) = β 2 x + 4 .
f β² = 0 β
β βΊ β
β x = 2 f' = 0 \iff x = 2 f β² = 0 βΊ x = 2 .
Sign change (+ then β) β max at 2, value f ( 2 ) = 5 f(2) = 5 f ( 2 ) = 5 .
-1 1 2 3 4 5 -1 1 2 3 4 5 6 7 max f(x) = -xΒ² + 4x + 1
3. Tangent equation
See section above.
Common mistakes
Forgetting u β² u' u β² in a chain rule : ( sin β‘ ( 2 x ) ) β² = 2 cos β‘ ( 2 x ) (\sin(2x))' = 2\cos(2x) ( sin ( 2 x ) ) β² = 2 cos ( 2 x ) , NOT cos β‘ ( 2 x ) \cos(2x) cos ( 2 x ) .
Confusing product and composition : ( u v ) β² β ( v ( u ) ) β² (uv)' \neq (v(u))' ( uv ) β² ξ = ( v ( u ) ) β² .
Sign in quotient rule : itβs u β² v β u v β² u'v - uv' u β² v β u v β² (minus).
Derivative of a constant is 0, not the constant.
Solved exercises
Exercise 1
Compute the derivative of f ( x ) = ( x 2 + 1 ) 3 f(x) = (x^2 + 1)^3 f ( x ) = ( x 2 + 1 ) 3 .
Show solution Chain rule: u = x 2 + 1 u = x^2 + 1 u = x 2 + 1 , u β² = 2 x u' = 2x u β² = 2 x . Outer: v ( x ) = x 3 v(x) = x^3 v ( x ) = x 3 , v β² ( x ) = 3 x 2 v'(x) = 3x^2 v β² ( x ) = 3 x 2 .
f β² ( x ) = 2 x β
3 ( x 2 + 1 ) 2 = 6 x ( x 2 + 1 ) 2 f'(x) = 2x \cdot 3(x^2 + 1)^2 = 6x(x^2 + 1)^2 f β² ( x ) = 2 x β
3 ( x 2 + 1 ) 2 = 6 x ( x 2 + 1 ) 2 .
Exercise 2
Find the tangent to f ( x ) = e x f(x) = e^x f ( x ) = e x at x = 0 x = 0 x = 0 .
Show solution f ( 0 ) = 1 f(0) = 1 f ( 0 ) = 1 , f β² ( 0 ) = 1 f'(0) = 1 f β² ( 0 ) = 1 .
Tangent: y = x + 1 y = x + 1 y = x + 1 .
Exercise 3
Study the monotonicity of f ( x ) = x 3 β 3 x + 2 f(x) = x^3 - 3x + 2 f ( x ) = x 3 β 3 x + 2 on R \mathbb{R} R .
Show solution f β² ( x ) = 3 ( x β 1 ) ( x + 1 ) f'(x) = 3(x-1)(x+1) f β² ( x ) = 3 ( x β 1 ) ( x + 1 ) .
Positive for x < β 1 x < -1 x < β 1 , negative on ( β 1 , 1 ) (-1, 1) ( β 1 , 1 ) , positive for x > 1 x > 1 x > 1 .
So f f f is increasing on ( β β , β 1 ] (-\infty, -1] ( β β , β 1 ] , decreasing on [ β 1 , 1 ] [-1, 1] [ β 1 , 1 ] , increasing on [ 1 , + β ) [1, +\infty) [ 1 , + β ) .
Local max at β 1 -1 β 1 : f ( β 1 ) = 4 f(-1) = 4 f ( β 1 ) = 4 . Local min at 1 1 1 : f ( 1 ) = 0 f(1) = 0 f ( 1 ) = 0 .
Takeaways
f β² ( a ) f'(a) f β² ( a ) = slope of the tangent at a a a .
Tangent: y = f β² ( a ) ( x β a ) + f ( a ) y = f'(a)(x - a) + f(a) y = f β² ( a ) ( x β a ) + f ( a ) .
Monotonicity = sign of the derivative.
Local extremum β f β² = 0 f' = 0 f β² = 0 (converse not always).
Master the 9 standard formulas and 5 operations .
Going further