Main content

## Differential Calculus

### Course: Differential Calculus > Unit 4

Lesson 4: Introduction to related rates- Related rates intro
- Analyzing problems involving related rates
- Analyzing related rates problems: expressions
- Analyzing related rates problems: expressions
- Analyzing related rates problems: equations (Pythagoras)
- Analyzing related rates problems: equations (trig)
- Analyzing related rates problems: equations
- Differentiating related functions intro
- Worked example: Differentiating related functions
- Differentiate related functions

© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Worked example: Differentiating related functions

AP.CALC:

CHA‑3 (EU)

, CHA‑3.D (LO)

, CHA‑3.D.1 (EK)

, CHA‑3.D.2 (EK)

Sometimes we have an equation that relates to functions of the same variable. Learn how to use implicit differentiation to find the derivatives of the functions with respect to that variable.

## Want to join the conversation?

- hi i am very confused :((28 votes)
- Don't be discouraged, calculus can be very difficult for many people. It would be helpful if you could be specific about what confuses you, making sure you include the time on the video which corresponds to the place where you start to get confused. Good luck!(36 votes)

- Oh i've just used pythagorian identity to find cos(x), is anything wrong with it?(4 votes)
- No, there is nothing wrong with that. You can use any method you want as long it's correct.(11 votes)

- How did d/dt become d/dx and d/dy? I thought the chain rule only worked for functions, so how can you derive taking the derivative of something?(4 votes)
- The chain rule does only work for functions! Luckily, both x and y in this case are functions of t, so we can use the chain rule.(6 votes)

- Why does sinx change to cosx in3:41and later cos x change to sinx(2 votes)
- Because they are taking the derivative of sinx which is cosx and the derivative of cosx which is -sinx. As you can see from your time stamp, d/dx is removed from the equation. Which happens when you take the derivative.(4 votes)

- Instead of doing the algebra at the end like Sal did at6:35, couldn't you get straight to 5 because we know that y=x and the derivative of x with respect to t is equal to the derivative of y with respect to t. We know that the derivative of x with respect to t is equal to 5, so the derivative of Y with respect to t is also 5. Is this thinking wrong?(3 votes)
- You're not wrong; however, it was important for Sal to do the question as he did for the sake of his explanation, jumping the gun would probably confuse a lot of learners.(1 vote)

- At5:47, isn't the value of x both π/4 and 3π/4 making the final answers both 5 and -5?(3 votes)
- Well, not quite.

Notice that the question mentioned that x**must**be between 0 and pi/2, if the domain was different, your answer would work.(1 vote)

- I feel like I'm getting the hang of this, but there's one particular class of questions that I'm completely lost on: take something like 3x^2 = xy. I can do almost any other question by following the kind of steps in this video, but when I try to apply it to this one, for some reason I get the wrong answer. The problem seems to happen with the "xy" part specifically - I always assume each should be converted to the derivative at the same step that "3x^2" is, so as follows:

1) 3x^2 * dx/dt = (x * dx/dt) * (y * dy/dt)

2) 6x * dx/dt = (1 * dx/dt) * (1 * dy/dt)

...because if I'm not mistaken, 1 is the derivative of a single variable without a multiplier or power. But the explanation for the answer tells me this is incorrect and that I should instead be taking the base values of x and y, as in the following:

2) 6x * dx/dt = (x * dx/dt) * (y * dy/dt)

This appears intuitively wrong to me because it's inconsistent; why would I differentiate the x on one side but not the x and y on the other? Nevertheless, it's apparently considered to be the right way to do it, because the other way gives incorrect answers. Can someone please tell me what I'm doing wrong?(1 vote)- Both your answer and the one given seem to be wrong. Here's why.

First off, a bit of notation: d/dt[3x^2] is what you should be writing. It's definitely not the same thing as 3x^2 * dx/dt.

Left hand side: d/dt[3x^2] = d[3x^2]/dx * dx/dt (chain rule) = 6x * dx / dt.

Right hand side: d/dt[xy] = dx / dt * y + dy / dt * x (product rule).

6x * dx / dt = (x * dy / dt) + (y * dx / dt).

Video on chain rule and product rule: https://www.youtube.com/watch?v=YG15m2VwSjA.(3 votes)

- When X and Y are related angles, aren't they always the same angle?5:58(2 votes)
- At5:52, how does Sal know that x is actually pi/4? Where did he get that from?(2 votes)
- In the last video (differentiating related functions intro), Sal used the expression dy/dt = (dy/dx)(dx/dt) to figure out the value of dy/dt. However, in this video, it seems that he applied "implicit differentiation" in some ways, used chain rule twice, and substituted some values to solve for dy/dt.

Which method is more general, and which one should I use when doing the exercises on KA?**edit**: x and y are both functions of t, so is it okay to apply the derivative operator d/dt to both sides of the equation every time I see an equation with x and y in it?(2 votes)- It depends on the question. But I think 'implicit differentiation' is more general and commonly used.(1 vote)

## Video transcript

- The differentiable
functions x and y are related by the following equation. The sine of x plus cosine of y is equal to square root of two. They also tell us that the derivative of x with respect to t is equal to five. They also ask us find the derivative of y with respect to t when y
is equal to pi over four and zero is less than x
is less than pi over two. So given that they are
telling us the derivative of x with respect to t and we wanna find the derivative of y with respect to t, it's a safe assumption that
both x and y are functions of t. So you could even rewrite
this equation right over here. You could rewrite it as sine of x, which is a function of t, plus cosine of y, which is a function of t, is equal to square root of two. Now, it might confuse you a little bit, you're not used to seeing x as a function of a third variable or y as a function of something other than x. But remember, x and y are just variables. This could be f of t,
and this could be g of t instead of x of t and y of t, and that might feel a
little more natural to you. But needless to say,
if we wanna find dy dt, what we want to do is take the derivative with respect to t of both
sides of this equation. So let's do that. So we're gonna do it
on the left-hand side, so it's gonna be we take
that with respect to t, derivative of that with respect to t. We're gonna take the derivative
of that with respect to t. And then we're gonna take the derivative of the right-hand side, this
constant with respect to t. So let's think about each of these things. So what is this. Let me do this in a new color. The stuff that I'm doing in
this aqua color right over here, how could I write that? So I'm taking the derivative
with respect to t, I have sine of something, which
is itself a function of t. So I would just apply the chain rule here. I'm first going to take the
derivative with respect to x of sine of x, I could write sine of x of t, but I'll just revert back
to the sine of x here for simplicity. And then I will then multiply
that times the derivative of the inside, you could
say, with respect to t times the derivative
of x with respect to t. This might be a little counterintuitive to how you've applied
the chain rule before when we only dealt with xs and ys, but all that's happening,
I'm taking the derivative of the outside of the sine of something with respect to the something,
in this case, it is x, and then I'm taking the
derivative of the something, in this case, x with respect to t. Well, we can do the same thing here, or this second term here. So I wanna take the
derivative with respect to y of, I guess you could say the outside, of cosine of y, and then I would multiply that times the derivative
of y with respect to t. And then all of that is
going to be equal to what? Well, the derivative with
respect to t of a constant, square root of two is a constant, it's not gonna change as t changes, so its derivative, its
rate of change is zero. All right, so now we
just have to figure out all of these things. So first of all, the
derivative with respect to x of sine of x is cosine of
x times the derivative of x with respect to t, I'll
just write that out here. The derivative of x with respect to t. And then we're going to have,
it's gonna be a plus here, the derivative of y with respect to t. So plus the derivative
of y with respect to t. I'm just flopping the order here, so that this goes out front. Now, what's the derivative of
cosine of y with respect to y? Well, that is negative sine of y. And so, actually let me
just put a sine of y here, then I'm gonna have a negative. Erase this and put a negative there. And that is all going to be equal to zero. And so what can we figure out now? They've told us that the
derivative of x with respect to t is equal to five, they tell
us that right over here. So this is equal to five. We wanna find the derivative
of y with respect to t. They tell us what y is, y is pi over four. This, y is pi over four, so
we know this is pi over four. And let's see, we have to figure out what, we still have two unknowns here. We don't know what x is and we don't know what the derivative of
y with respect to t is. This is what we need to figure out. So what would x be? What would x be when y is pi over four? Well, to figure that out, we can go back to this original
equation right over here. So when y is pi over four, you get, let me write down. Sine of x plus cosine of pi over four is equal to square root of two. Cosine of pi over four, we revert to our unit or we
think about our unit circle. We're in the first quadrant. If we think in degrees,
it's a 45 degree angle, that's gonna be square
root of two over two. And so we can subtract
square root of two over two from both sides, which is going to give us sine of x is equal to, well,
if you take square root of two over two from square root of two, you're taking half of it away, so you're gonna have half of it left. So square root of two over two. And so, what x value, when
I take the sine of it, and remember, where the angle, if we're thinking when the
unit circle is going to be in that first quadrant, x
is an angle in this case right over here. Well, that's going to be
once again pi over four. So this tells us that x
is equal to pi over four when y is equal to pi over four. And so we know that this
is pi over four as well. So let me just rewrite this, because it's getting a little bit messy. So we know that five times cosine of pi over four minus dy dt, the derivative
of y with respect to t, which is what we want to figure out, times sine of pi over four, is equal to zero, is equal to zero, and we
put some parentheses here, just to clarify things a little bit. All right, so let's see. Now, it's just a little bit of algebra. Cosine of pi over four, we already know is square
root of two over two. Sine of pi over four is also
square root of two over two. Now let's see, what if
we divide both sides of this equation by square
root of two over two? Well, what's that gonna give us? Well, then, this square
root of two over two divided by square root of two over, square root of two over two
divided square root of two over two is gonna be one. Square root of two over two divided square root of two over
two is gonna be one. And then zero divided by
square root of two over two is just still going to be zero. And so this whole thing simplifies to five times one, which is just five, minus the derivative
of y with respect to t is equal to zero, and so there you have it. You add the derivative of y
with respect to t to both sides, and we get the derivative of y
with respect to t is equal to five, when all of these
other things are true. When the derivative of x
with respect to t is five, and the derivative and y, I should say, is equal to pi over four.