Implicit differentiation for single variable functions

 
 
 
 
 

What is implicit differentiation?

Up to now, we’ve been differentiating functions defined for f(x)f(x) in terms of xx, or equations defined for yy in terms of xx. In other words, every equation we’ve differentiated has had the variables separated on either side of the equal sign.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

For instance, the equation y=3x2+2x+1y=3x^2+2x+1 has the yy variable on the left side, and the xx variable on the right side. We don’t have xx and yy variables mixed together on the left, and they aren’t mixed together on the right, either.

Separable or not

We sometimes have equations where the variables are mixed together, but they can be easily separated. If we’re given the equation y2x=3x2+1y-2x=3x^2+1, we do have xx and yy variables mixed together on the left side, but we can easily separate the variables by simply adding 2x2x to both sides of the equation to get y=3x2+2x+1y=3x^2+2x+1.

Other times, we’ll have the variables mixed together, and it’s actually impossible to separate them. For instance, the equation xy=3(xy)2+2x+1xy=3(x-y)^2+2x+1 can’t be rewritten with all the yy variables on the left and all the xx variables on the right. When the variables can’t be separated, we can use implicit differentiation to find the function’s derivative.

In other words, implicit differentiation allows us to take the derivative of a function that contains both xx and yy on the same side of the equation.

How to use implicit differentiation

When we use implicit differentiation, we have to treat yy differently than we have in the past. With implicit differentiation, we treat yy as a function and not just as a variable. We treat xx just as we have before, as a variable, but we treat yy as a function.

Practically, this means that each time we take the derivative of yy, we multiply the result by the derivative of yy. We can write the derivative of yy as either yy or as dy/dxdy/dx.

To use implicit differentiation, we’ll follow these steps:

  1. Differentiate both sides with respect to xx.

  2.  Whenever we encounter yy, we differentiate it like we would xx, but we multiply that term by the derivative of yy, which we write as yy or as dy/dxdy/dx.

  3.  Move all terms involving dy/dxdy/dx to the left side and everything else to the right.

  4.  Factor out dy/dxdy/dx on the left and divide both sides by the other left-side factor so that dy/dxdy/dx is the only thing remaining on the left.

Once we get dy/dxdy/dx (or yy) alone on the left, we’ve solved for the derivative of yy, which was our goal when we started differentiating.

 
 

How to use implicit differentiation to find the derivative


 
Krista King Math Signup.png
 
Calculus 1 course.png

Take the course

Want to learn more about Calculus 1? I have a step-by-step course for that. :)

 
 

 
 

Step-by-step example of how to use implicit differentiation

Let’s walk through an example so that we can see how this set of steps gets us to the derivative.

Example

Use implicit differentiation to find the derivative.

x3+y3=9xyx^3+y^3=9xy

We’ll differentiate both sides with respect to xx. When we do, we’ll treat xx as we normally do, but we’ll treat yy as a function.

Working term-by-term, we take the derivative of x3x^3 like we normally would and we get 3x23x^2. When we take the derivative of y3y^3, we get 3y23y^2, but since we took the derivative of yy, we have to multiply by dy/dxdy/dx.

To take the derivative of the right side of the equation, we need to use product rule, since xx and yy are both variables and therefore need to be treated as separate functions. So we’ll say that one function is 9x9x and that the other is yy. The derivative of 9x9x will be 99, like normal. The derivative of yy would be 11, but since we’re taking the derivative of yy, we have to multiply by dy/dxdy/dx.

Therefore, after implicit differentiation, the derivative looks like this:

3x2+3y2dydx=(9)(y)+(9x)(1)dydx3x^2+3y^2\frac{dy}{dx}=(9)(y)+(9x)(1)\frac{dy}{dx}

3x2+3y2dydx=9y+9xdydx3x^2+3y^2\frac{dy}{dx}=9y+9x\frac{dy}{dx}

With implicit differentiation, we treat y as a function and not just as a variable. We treat x just as we have before, as a variable, but we treat y as a function.

Move all terms that include dy/dxdy/dx to the left side, and move everything else to the right side.

3y2dydx9xdydx=9y3x23y^2\frac{dy}{dx}-9x\frac{dy}{dx}=9y-3x^2

Factor out dy/dxdy/dx on the left,

dydx(3y29x)=9y3x2\frac{dy}{dx}(3y^2-9x)=9y-3x^2

and then divide both sides by (3y29x)(3y^2-9x) in order to get dy/dxdy/dx by itself.

dydx=9y3x23y29x\frac{dy}{dx}=\frac{9y-3x^2}{3y^2-9x}

dydx=3yx2y23x\frac{dy}{dx}=\frac{3y-x^2}{y^2-3x}

We can leave the derivative this way, or we can replace dy/dxdy/dx with yy if we prefer that notation.

y=3yx2y23xy'=\frac{3y-x^2}{y^2-3x}


Notice how this answer looks similar to all the derivatives we’ve found before. It’s a derivative equation that’s solved for yy on the left side, which is exactly what we’re used to seeing.

In the past, we were able to easily get the derivative in this form, because the equations we were differentiating were already solved for yy. As we’ve seen from this example, when we get an equation that isn’t already solved for yy, we can still get to the derivative equation we want, we just have to use implicit differentiation to get there.

 
Krista King.png
 

Get access to the complete Calculus 1 course