Lecture-21-Handout
Lecture-21-Handout
Implicit Differentiation
Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Implicit vs Explicit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Equations and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Functions defined implicitly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
The slope by implicit differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
The slope by implicit differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Implicit differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Tangent line by implicit differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Tangent to a circle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Tangent to a circle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Folium of Descartes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Folium of Descartes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Second derivative by implicit differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Finding maximum and minimum on the curves. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Second derivative test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Hyperbola. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
How to get dx/dy ?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
What is dx/dy geometrically? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Summary/Comprehension checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1
Objectives
In this lecture we will learn how an equation in two variables may define a function in one variable.
We will learn how to differentiate such a function,
even if we do not know a formula which defines this function explicitly.
We will learn how to find the equation of a tangent line to a curve
which is not the graph of a function.
2 / 20
Implicit vs Explicit
Explicit means expressed clearly, without any ambiguity.
For example: The professor gave explicit instructions for the midterm.
Implicit means not directly expressed, but to be understood.
For example: His speech contained an implicit criticism of the government.
So far, we studied functions y = f (x) given by an explicit formula for f , like f (x) = x2 + x .
However, there are many situations in which the explicit formula is not known or even does not exist
and a function is defined in a more complicated way.
It may happen that the independent variable x and the dependent variable y
are related by an equation F (x, y) = 0 in which x and y are involved equally,
like in x2 + y 2 + xy − 1 = 0 .
Geometrically, the equation F (x, y) = 0 represents a curve on the xy -plane.
For example, x2 + y 2 + xy − 1 = 0 represents an ellipse. y
This curve is not the graph of a function,
since it fails the vertical line test.
There is no convenient explicit formula for y as a function of x . x
But for many purposes, the equation F (x, y) = 0 is most convenient.
We just need to learn how to use it.
3 / 20
2
Equations and functions
Example 1. Consider the equation x2 − y = 0 . It defines a parabola:
y
The parabola is the graph of a function y(x) = x2 .
We say that the equation x2 − y = 0 defines
the function y(x) = x2 implicitly,
x
while the equation y = x2 defines it explicitly.
The graph of the equation x2 − y = 0 is indeed the graph of a function
since it satisfies the conditions of the vertical line test.
2
Example 2. Consider the equation x − y = 0 . It also defines a parabola:
y
The graph of the equation is not a graph of any function,
since it fails the vertical line test.
x
So the equation x − y 2 = 0 does not define a single function
√
y = y(x) .
y y1 = x
4 / 20
5 / 20
3
The slope by implicit differentiation
Problem. Find the slope of the tangent line to the ellipse x2 + y 2 + xy = 1
at the point (0, −1) .
dy
Solution. The slope of the tangent line at (0, −1) is , where y = y(x) is the function
dx x = 0
y = −1
defined by the equation x2 + y 2 + xy = 1 implicitly.
We find this derivative by implicit differentiation.
Let us rewrite the equation replacing y by y(x) :
x2 + y 2 (x) + x · y(x) = 1 . Differentiate this equation with respect to x .
Keep in mind that y 2 (x) should be differentiated by the chain rule
as a composition of two functions:
d
dx dy dy
x2 + y 2 (x) + x · y(x) = 1 −→ 2x + 2y(x) ·
+ y(x) + x · = 0 . Or, equivalently,
dx dx
′ ′
2x + 2yy + y + xy = 0 . When x = 0, y = −1 , we get
6 / 20
(0, −1)
slo
p e=
− 1/
2
7 / 20
4
Implicit differentiation
dy
Problem. Find if x − y 2 = 0 .
dx
√
Solution. We know that the implicit equation x − y 2 = 0 defines two functions, y1 = x and
√ dy1 1 dy2 1
y2 = − x . Their derivatives are = √ and =− √ .
dx 2 x dx 2 x
dy
However, we may find without solving the equation x − y 2 = 0 for y .
dx
Let us rewrite the equation replacing y by y(x) :
x − y 2 (x) = 0 . Differentiate this equation. Keep in mind that y 2 (x) should be differentiated by the
chain rule as a composition of two functions.
d
dy dy 1 Notice that the derivative
x − y 2 (x) = 0 −→
dx
1 − 2y = 0 =⇒ = is given in terms of y
dx dx 2y
This formula agrees with the derivatives
√ √
calculated for both of the explicit solutions y1 = x and y2 = − x :
dy1 1 1 dy2 1 1
= = √ and = =− √ .
dx 2y1 2 x dx 2y2 2 x
8 / 20
(1, −1)
9 / 20
5
Tangent to a circle
Problem. Find the slope of the tangent line to the circle x2 + y 2 = 25
at the point (−3, 4) .
dy
Solution. The slope of the tangent at (−3, 4) is .
dx x = −3
y=4
The derivative can be found by the implicit differentiation.
Let y = y(x) be a function defined by the equation x2 + y 2 = 25 .
Then x2 + y 2 (x) = 25 .
Differentiate this equation implicitly with respect to x :
dy dy x dy x −3 3
2x + 2y = 0 =⇒ = − . So =− =− = .
dx dx y dx x = −3 y x = −3 4 4
y=4 y=4
3
Therefore, the slope is .
4
10 / 20
Tangent to a circle
4
y 3/
=
pe
slo
(−3, 4)
x2 + y 2 = 25
The slope of the tangent line
to the circle x2 + y 2 = 25 at (−3, 4) is 3/4 .
x
5
y
Control question.
For which points on the circle is the tangent vertical?
As we see from the picture, for (−5, 0) and (5, 0) . x
dy −5 5
These are the only points where is undefined.
dx
dy x
Indeed, = − and is undefined if y = 0 .
dx y
11 / 20
6
Folium of Descartes
The equation x3 + y 3 − 6xy = 0 defines a curve on the xy -plane.
It is called the folium of Descartes:
y
y=x
P
12 / 20
Folium of Descartes
Solution. We have to show that the slope of the tangent line at P
and the slope of y = x are negative reciprocals of each other.
The slope of the tangent can be found by the implicit differentiation of the equation of the folium:
d
dy dy
x3 + y 3 (x) − 6xy(x) = 0 −→
dx
3x2 + 3y 2 (x) − 6y(x) − 6x = 0 , that is
dx dx
2y − x2
x2 + y 2 y ′ − 2y − 2xy ′ = 0 . From which we get y ′ = 2 .
y − 2x
The point P belongs the line y = x , so y = x at P .
y
1
=
pe
2x − x2
slo
Therefore, y ′ = 2 = −1 , P
P x − 2x
slo
pe
x
1
13 / 20
7
Second derivative by implicit differentiation
d2 y
Example. Find y ′′ = if x2 + y 2 = 1 .
dx2
Solution. Differentiate implicitly the equation x2 + y 2 = 1 and get
2x + 2yy ′ = 0 , that is x + yy ′ = 0 . (∗)
Differentiate the obtained equation one more time:
1 + y ′ y ′ + yy ′′ = 0 , or, equivalently, 1 + (y ′ )2 + yy ′′ = 0 .
1 + (y ′ )2 x
Solve for y ′′ : y ′′ = − . From (∗) we get y ′ = − .
y y
2
x
1 + −
1 + (y ′ )2 y x2 + y 2 1
Therefore, y ′′ = − =− =− = − 3 , since x2 + y 2 = 1 .
y y y3 y
Riddle. How to interpret the obtained result geometrically?
14 / 20
15 / 20
8
Second derivative test
After the first implicit differentiation, we have
d
dy
−x2 + y 2 = 1 −→
dx
−2x + 2y = 0 ⇐⇒ −x + yy ′ = 0.
dx
Differentiate the latter equation once more:
d
dx
−x + yy ′ = 0 −→ −1 + y ′ · y ′ + y · y ′′ = 0 ⇐⇒ −1 + (y ′ )2 + yy ′′ = 0.
At a critical point, y ′ = 0 . Therefore, −1 + yy ′′ = 0 (∗)
Calculate y ′′ at the critical points (0, 1) and (0, −1) .
Plug x = 0 and y = 1 in (∗) : −1 + 1 · y ′′ = 0 =⇒ y ′′ = 1 > 0.
(0,1)
16 / 20
Hyperbola
The curve −x2 + y 2 = 1 is a hyperbola:
y −x2 + y 2 = 1
17 / 20
9
How to get dx/dy ?
Problem. Show that the point (1, 0) belongs to the curve 1 + sin(xy) = x + y
dx
and find at (1, 0) .
dy
Solution. For x = 1 and y = 0 the equation turns into
a true numerical identity: 1 + sin(1 · 0) = 1 + 0 ⇐⇒ 1 = 1 X
Therefore, the point (1, 0) belongs to the curve.
The equation 1 + sin(xy) = x + y defines implicitly a function x = x(y) . We have to find the
derivative of this function when x = 1 and y = 0 .
Differentiate 1 + sin(xy) = x + y implicitly with respect to y :
d
dy dx dx
1 + sin(x(y) · y) = x(y) + y −→ cos(x(y) · y) y + x(y) · 1 = + 1.
dy dy
In other words, (x′ y + x) cos(xy) = x′ + 1 . Plug in x = 1 and y = 0 :
dx
(x′ · 0 + 1) cos(1 · 0) = x′ + 1 =⇒ x′ = 0 . So = 0.
dy x = 1
y=0
18 / 20
1 + sin(xy) = x + y
1 x
dx
We have got that = 0 at (1, 0) .
dy
dy 1 dy
Since = , then = ∞ at (1, 0) ,
dx dx/dy dx
and the curve has the vertical tangent line at (1, 0) .
19 / 20
10
Summary/Comprehension checkpoint
In this lecture we learned how to differentiate a function defined implicitly.
• Show that the point (1, 0) belongs to the curve x ln(x2 + y 2 ) + y = 0 and find the equation of the
tangent line to the curve at this point.
20 / 20
11