Tangents and normals
The derivative f ′ ( a ) f'(a) f ′ ( a ) is the slope of the line tangent to the graph of f f f at the point ( a , f ( a ) ) (a, f(a)) ( a , f ( a )) . The normal at the same point is the line perpendicular to the tangent. These two lines reveal local geometry , how the curve bends and how a normal would push away from it.
Equation of the tangent
The line tangent to y = f ( x ) y = f(x) y = f ( x ) at ( a , f ( a ) ) (a, f(a)) ( a , f ( a )) :
y − f ( a ) = f ′ ( a ) ( x − a ) . y - f(a) = f'(a)(x - a). y − f ( a ) = f ′ ( a ) ( x − a ) .
Equation of the normal
The normal is perpendicular to the tangent. If the tangent has slope m m m , the normal has slope − 1 / m -1/m − 1/ m :
y − f ( a ) = − 1 f ′ ( a ) ( x − a ) , provided f ′ ( a ) ≠ 0. y - f(a) = -\frac{1}{f'(a)}(x - a), \quad \text{provided } f'(a) \neq 0. y − f ( a ) = − f ′ ( a ) 1 ( x − a ) , provided f ′ ( a ) = 0.
If f ′ ( a ) = 0 f'(a) = 0 f ′ ( a ) = 0 , the tangent is horizontal and the normal is the vertical line x = a x = a x = a .
A worked example
For y = x 2 y = x^2 y = x 2 at the point ( 2 , 4 ) (2, 4) ( 2 , 4 ) :
f ′ ( x ) = 2 x f'(x) = 2x f ′ ( x ) = 2 x , f ′ ( 2 ) = 4 f'(2) = 4 f ′ ( 2 ) = 4 . Tangent: y − 4 = 4 ( x − 2 ) y - 4 = 4(x - 2) y − 4 = 4 ( x − 2 ) , i.e., y = 4 x − 4 y = 4x - 4 y = 4 x − 4 .
Normal: y − 4 = − 1 4 ( x − 2 ) y - 4 = -\tfrac{1}{4}(x - 2) y − 4 = − 4 1 ( x − 2 ) , i.e., y = − 1 4 x + 9 2 y = -\tfrac{1}{4}x + \tfrac{9}{2} y = − 4 1 x + 2 9 .
For a curve given parametrically by x = f ( t ) , y = g ( t ) x = f(t), y = g(t) x = f ( t ) , y = g ( t ) , the slope of the tangent at parameter t t t is g ′ ( t ) f ′ ( t ) \dfrac{g'(t)}{f'(t)} f ′ ( t ) g ′ ( t ) .
For an implicit curve F ( x , y ) = 0 F(x, y) = 0 F ( x , y ) = 0 , differentiate implicitly to get d y d x \dfrac{dy}{dx} d x d y at the point of interest.
Length of tangent / normal / subtangent / subnormal
At a point P = ( x 0 , y 0 ) P = (x_0, y_0) P = ( x 0 , y 0 ) with d y d x = m \dfrac{dy}{dx} = m d x d y = m :
Subtangent length: ∣ y 0 m ∣ \big|\dfrac{y_0}{m}\big| m y 0 .
Subnormal length: ∣ m y 0 ∣ |m y_0| ∣ m y 0 ∣ .
Tangent length: ∣ y 0 ∣ 1 + 1 / m 2 |y_0|\sqrt{1 + 1/m^2} ∣ y 0 ∣ 1 + 1/ m 2 .
Normal length: ∣ y 0 ∣ 1 + m 2 |y_0|\sqrt{1 + m^2} ∣ y 0 ∣ 1 + m 2 .
These appear in older problems and in some applications to geometry.
Worked examples
Example 1. Find the equation of the tangent to y = x 3 − 3 x + 5 y = x^3 - 3x + 5 y = x 3 − 3 x + 5 at x = 1 x = 1 x = 1 .
y ( 1 ) = 1 − 3 + 5 = 3 y(1) = 1 - 3 + 5 = 3 y ( 1 ) = 1 − 3 + 5 = 3 . y ′ ( x ) = 3 x 2 − 3 y'(x) = 3x^2 - 3 y ′ ( x ) = 3 x 2 − 3 , y ′ ( 1 ) = 0 y'(1) = 0 y ′ ( 1 ) = 0 . So tangent is horizontal: y = 3 y = 3 y = 3 .
Example 2. Find tangent and normal to y = ln x y = \ln x y = ln x at ( 1 , 0 ) (1, 0) ( 1 , 0 ) .
y ′ ( x ) = 1 / x y'(x) = 1/x y ′ ( x ) = 1/ x , y ′ ( 1 ) = 1 y'(1) = 1 y ′ ( 1 ) = 1 . Tangent: y = x − 1 y = x - 1 y = x − 1 . Normal: y = − ( x − 1 ) = 1 − x y = -(x - 1) = 1 - x y = − ( x − 1 ) = 1 − x .
Example 3. Find the points on y = x 3 y = x^3 y = x 3 at which the tangent is parallel to y = 3 x + 1 y = 3x + 1 y = 3 x + 1 .
Need y ′ ( x ) = 3 x 2 = 3 y'(x) = 3x^2 = 3 y ′ ( x ) = 3 x 2 = 3 , i.e., x = ± 1 x = \pm 1 x = ± 1 . Points: ( 1 , 1 ) (1, 1) ( 1 , 1 ) and ( − 1 , − 1 ) (-1, -1) ( − 1 , − 1 ) .
Example 4. Find the tangent to x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 at ( 3 , 4 ) (3, 4) ( 3 , 4 ) .
Implicit: 2 x + 2 y d y d x = 0 2x + 2y \dfrac{dy}{dx} = 0 2 x + 2 y d x d y = 0 , so d y d x = − x / y = − 3 / 4 \dfrac{dy}{dx} = -x/y = -3/4 d x d y = − x / y = − 3/4 .
Tangent: y − 4 = − 3 4 ( x − 3 ) y - 4 = -\tfrac{3}{4}(x - 3) y − 4 = − 4 3 ( x − 3 ) , i.e., 3 x + 4 y = 25 3x + 4y = 25 3 x + 4 y = 25 . (Standard tangent equation to a circle.)
Example 5. Find the angle between the tangents to y = x 2 y = x^2 y = x 2 at ( 1 , 1 ) (1, 1) ( 1 , 1 ) and at ( − 1 , 1 ) (-1, 1) ( − 1 , 1 ) .
Slopes: 2 2 2 and − 2 -2 − 2 . The angle θ \theta θ between two lines of slopes m 1 , m 2 m_1, m_2 m 1 , m 2 satisfies tan θ = ∣ m 1 − m 2 1 + m 1 m 2 ∣ = ∣ 4 − 3 ∣ = 4 / 3 \tan\theta = \big|\dfrac{m_1 - m_2}{1 + m_1 m_2}\big| = \big|\dfrac{4}{-3}\big| = 4/3 tan θ = 1 + m 1 m 2 m 1 − m 2 = − 3 4 = 4/3 .
So θ = tan − 1 ( 4 / 3 ) \theta = \tan^{-1}(4/3) θ = tan − 1 ( 4/3 ) .
Example 6. Find the equation of the normal to the curve y = x 2 + 2 x + 1 y = x^2 + 2x + 1 y = x 2 + 2 x + 1 which passes through ( 1 , 4 ) (1, 4) ( 1 , 4 ) .
Let the normal be at ( a , a 2 + 2 a + 1 ) (a, a^2 + 2a + 1) ( a , a 2 + 2 a + 1 ) . Slope of tangent there: 2 a + 2 2a + 2 2 a + 2 . Slope of normal: − 1 / ( 2 a + 2 ) -1/(2a + 2) − 1/ ( 2 a + 2 ) .
Normal equation: y − ( a 2 + 2 a + 1 ) = − 1 2 a + 2 ( x − a ) y - (a^2 + 2a + 1) = -\dfrac{1}{2a + 2}(x - a) y − ( a 2 + 2 a + 1 ) = − 2 a + 2 1 ( x − a ) . Passes through ( 1 , 4 ) (1, 4) ( 1 , 4 ) :
4 − a 2 − 2 a − 1 = − 1 − a 2 a + 2 4 - a^2 - 2a - 1 = -\dfrac{1 - a}{2a + 2} 4 − a 2 − 2 a − 1 = − 2 a + 2 1 − a .
3 − a 2 − 2 a = − 1 − a 2 ( a + 1 ) = a − 1 2 ( a + 1 ) 3 - a^2 - 2a = -\dfrac{1 - a}{2(a + 1)} = \dfrac{a - 1}{2(a + 1)} 3 − a 2 − 2 a = − 2 ( a + 1 ) 1 − a = 2 ( a + 1 ) a − 1 .
Multiply: 2 ( a + 1 ) ( 3 − a 2 − 2 a ) = a − 1 2(a + 1)(3 - a^2 - 2a) = a - 1 2 ( a + 1 ) ( 3 − a 2 − 2 a ) = a − 1 . Solving this cubic gives the points of tangency for the normals passing through ( 1 , 4 ) (1, 4) ( 1 , 4 ) .
Try it yourself
Find the tangent and normal to y = x 3 − x y = x^3 - x y = x 3 − x at x = 1 x = 1 x = 1 .
Find points on y = x 2 − 4 x + 5 y = x^2 - 4x + 5 y = x 2 − 4 x + 5 where tangent is horizontal.
Find tangent to x 2 + y 2 = 1 x^2 + y^2 = 1 x 2 + y 2 = 1 at the point ( cos θ , sin θ ) (\cos\theta, \sin\theta) ( cos θ , sin θ ) .
At what point on y = sin x y = \sin x y = sin x is the tangent slope equal to 1 / 2 1/2 1/2 ?
Find equation of tangent at ( 1 , 1 ) (1, 1) ( 1 , 1 ) to y = 1 x 2 − 3 x + 3 y = \dfrac{1}{x^2 - 3x + 3} y = x 2 − 3 x + 3 1 .
Find the equation of the tangent at ( a cos 3 t , a sin 3 t ) (a\cos^3 t, a\sin^3 t) ( a cos 3 t , a sin 3 t ) on the astroid x 2 / 3 + y 2 / 3 = a 2 / 3 x^{2/3} + y^{2/3} = a^{2/3} x 2/3 + y 2/3 = a 2/3 .
Find the points where the tangent to y = x 3 − 11 x + 5 y = x^3 - 11 x + 5 y = x 3 − 11 x + 5 has slope 1 1 1 .
Find the angle between the tangents to y 2 = 4 x y^2 = 4x y 2 = 4 x at the points ( 1 , 2 ) (1, 2) ( 1 , 2 ) and ( 1 , − 2 ) (1, -2) ( 1 , − 2 ) .
Show that the tangent to y = e x y = e^x y = e x at ( 0 , 1 ) (0, 1) ( 0 , 1 ) has equation y = 1 + x y = 1 + x y = 1 + x .
Find the equation of the normal to x y = c 2 xy = c^2 x y = c 2 at ( c , c ) (c, c) ( c , c ) .
A curve y = f ( x ) y = f(x) y = f ( x ) has f ( 1 ) = 2 f(1) = 2 f ( 1 ) = 2 and f ′ ( 1 ) = − 3 f'(1) = -3 f ′ ( 1 ) = − 3 . Write tangent and normal at ( 1 , 2 ) (1, 2) ( 1 , 2 ) .
Find the length of the subtangent at any point on the curve y 2 = 4 a x y^2 = 4ax y 2 = 4 a x .
Find tangent to y = ( log x ) 2 y = (\log x)^2 y = ( log x ) 2 at x = 1 x = 1 x = 1 .
At what angle does y = x 3 − 3 x y = x^3 - 3x y = x 3 − 3 x cross the x x x -axis at x = 0 x = 0 x = 0 ?
Pitfalls / Tricks
The slope of the normal is − 1 / m -1/m − 1/ m (negative reciprocal), not just − m -m − m .
A horizontal tangent gives a vertical normal: x = a x = a x = a .
When asked for a tangent from a point not on the curve, set up the point of tangency as unknown.
For implicit curves, differentiate implicitly , do not try to solve for y y y first.
Always plug the value of x = a x = a x = a into y ′ y' y ′ to get a number, before writing the line equation.
Next, approximations using differentials.