Can you take a derivative with respect to the dependent variable?

In summary, If you are given an equation y(x), where y is the dependent variable, and x is the independent variable, you can find the derivative of y with respect to x, but not of x with respect to y. However, if you have an equation with multiple independent variables, such as f(x,t), you can use the total derivative to find the derivative of f with respect to t by using the chain rule. The notation \frac{dx}{dy} is not valid, as x is not a function, but the notation \frac{dx}{dt} is valid. Additionally, the notation \frac{df}{dx}=\frac{1}{\frac{df^{-1}}{dx
  • #1
Stalker_VT
10
0
If you are given an equation y(x), where y is the dependent variable, and x is the independent variable, can you take a derivative with respect to the dependent variable?

ex.

y = 5x

dy/dx = 5

dx/dy = 1/5

Thank you for any help
 
Physics news on Phys.org
  • #2
Absolutely, that definitely works.
From a philosophical standpoint, the mathematics doesn't know which is the dependent and which is the independent variable---anything you can do to one, you can do to the other.
 
  • #3
Just be careful to make sure that it makes sense:
You can take the derivative of position with respect to time and get the velocity, which is how fast your position changes per unit time, but the derivative of time with respect to position makes less sense.
 
  • #4
That's what i thought. Thanks!

Now what if you had an equation of multiple independent variables such as f(x,t) and you take the Total Derivative of f(x,t) with respect to t...using the chain rule

[itex]\frac{D f(x,t)}{D t}[/itex] = [itex]\frac{\partial f(x,t)}{\partial x }[/itex][itex]\frac{dx}{dt}[/itex] + [itex]\frac{\partial f(x,t)}{\partial t}[/itex][itex]\frac{dt}{dt}[/itex]

my quesions are

1) [itex]\frac{dt}{dt}[/itex] = 1 ? (i think this is obvious)

2) [itex]\frac{dx}{dt}[/itex] = 0 ? because both x and y are independent of one another?

Thanks again for your help
 
  • #5
Stalker_VT said:
That's what i thought. Thanks!

Now what if you had an equation of multiple independent variables such as f(x,t) and you take the Total Derivative of f(x,t) with respect to t...using the chain rule

[itex]\frac{D f(x,t)}{D t}[/itex] = [itex]\frac{\partial f(x,t)}{\partial x }[/itex][itex]\frac{dx}{dt}[/itex] + [itex]\frac{\partial f(x,t)}{\partial t}[/itex][itex]\frac{dt}{dt}[/itex]

my quesions are

1) [itex]\frac{dt}{dt}[/itex] = 1 ? (i think this is obvious)

2) [itex]\frac{dx}{dt}[/itex] = 0 ? because both x and y are independent of one another?

Thanks again for your help

The total derivative is used when the other variables also depend on t. So [itex]\frac{dx}{dt}\not=0[/itex]. Or else we can just use the partial derivative. It's true that [itex]\frac{dt}{dt}[/itex] = 1. If you check the Wikipedia page, it doesn't even include that (we only have [itex]\frac{\partial f(x,t)}{\partial t}[/itex]).
 
  • #6
So then does

[itex]\frac{dx}{dt}[/itex] = 1?

meaning that [itex]\frac{D f(x,t)}{D t}[/itex] = [itex]\frac{\partial f(x,t)}{\partial x }[/itex] + [itex]\frac{\partial f(x,t)}{\partial t}[/itex]

Thank you
 
  • #7
Stalker_VT said:
So then does

[itex]\frac{dx}{dt}[/itex] = 1?
No. You treat it as a normal derivative (so it can be anything). For example, if [itex]x=t^2+6[/itex], then [itex]\frac{dx}{dt}=2t[/itex].
 
  • #8
Stalker_VT said:
If you are given an equation y(x), where y is the dependent variable, and x is the independent variable, can you take a derivative with respect to the dependent variable?

ex.

y = 5x

dy/dx = 5

dx/dy = 1/5

Thank you for any help

AAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRGGGGGGGGGGHHHHHHHHHH. *faints*

No, you can't do anything like that. y is a function, that is: y is defined as [itex]y:\mathbb{R}\rightarrow \mathbb{R}[/itex] and x is defined as an element of [itex]\mathbb{R}[/itex].

So dy/dx is just a notation for the derivative of the function y with respect to x.
Writing dx/dy has no sense what-so-ever. That is supposed to mean the derivative of a variable with respect to a function. This is ill-defined. Do not write anything like that.
 
  • #9
micromass said:
AAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRGGGGGGGGGGHHHHHHHHHH. *faints*

No, you can't do anything like that. y is a function, that is: y is defined as [itex]y:\mathbb{R}\rightarrow \mathbb{R}[/itex] and x is defined as an element of [itex]\mathbb{R}[/itex].

So dy/dx is just a notation for the derivative of the function y with respect to x.
Writing dx/dy has no sense what-so-ever. That is supposed to mean the derivative of a variable with respect to a function. This is ill-defined. Do not write anything like that.

Actually, I thought it was perfectly sound notation to write [itex]\frac{dx}{dy}[/itex]. The proof of the "reciprocal" thing is a simple consequence of the Chain Rule:

[itex]\frac{dy}{dx} = \frac{\frac{dy}{dy}}{\frac{dx}{dy}} = \frac{1}{\frac{dx}{dy}}[/itex].
 
  • #10
Curious3141 said:
Actually, I thought it was perfectly sound notation to write [itex]\frac{dx}{dy}[/itex]. The proof of the "reciprocal" thing is a simple consequence of the Chain Rule:

[itex]\frac{dy}{dx} = \frac{\frac{dy}{dy}}{\frac{dx}{dy}} = \frac{1}{\frac{dx}{dy}}[/itex].

But x isn't even a function! How can we find the derivative of something that isn't even a function??
 
  • #11
micromass said:
But x isn't even a function! How can we find the derivative of something that isn't even a function??

[itex]x = f^{-1}(y)[/itex], provided the inverse function is well-defined and differentiable.
 
  • #12
Curious3141 said:
[itex]x = f^{-1}(y)[/itex], provided the inverse function is well-defined and differentiable.

That doesn't mean that x is a function. That only means that x is a real number.

That said, it IS true that

[tex]\frac{df}{dx}=\frac{1}{\frac{df^{-1}}{dx}}[/tex]

This is probably what you mean.
 
  • #13
micromass said:
That doesn't mean that x is a function. That only means that x is a real number.

That said, it IS true that

[tex]\frac{df}{dx}=\frac{1}{\frac{df^{-1}}{dx}}[/tex]

This is probably what you mean.

No, sorry, what you wrote is not right.

Let's say [itex]y = f(x)[/itex]. Then [itex]x = f^{-1}(y) = g(y)[/itex] (in other words, we rename the inverse function of f as g for clarity).

What you wrote is: [itex]f'(x) = \frac{1}{g'(x)}[/itex] which is NOT correct.

The correct form is: [itex]\frac{dy}{dx} = f'(x) = \frac{1}{\frac{dx}{dy}} = \frac{1}{g'(y)} = \frac{1}{g'(f(x))}[/itex].

A simple illustration. Let [itex]y = f(x) = x^2[/itex], where [itex]f:\mathbb{R}^+ \rightarrow \mathbb{R}^+[/itex]. Then [itex]g(x) = f^{-1}(x) = \sqrt{x}[/itex], [itex]g:\mathbb{R}^+ \rightarrow \mathbb{R}^+[/itex].

[itex]f'(x) = 2x[/itex], [itex]g'(x) = \frac{1}{2}x^{-\frac{1}{2}}[/itex]

What you're asserting is:

[itex]2x = \frac{1}{\frac{1}{2}x^{-\frac{1}{2}}} = 2\sqrt{x}[/itex], which is obviously false.

What I'm asserting is:

[itex]2x = \frac{1}{\frac{1}{2}y^{-\frac{1}{2}}} = 2\sqrt{y} = 2x[/itex], which is obviously true.

Not a proof, just an illustration. But seriously, this notation is well-worn and widely used.
 
  • #14
Curious3141 said:
No, sorry, what you wrote is not right.

Indeed not; it was nonsense. What I should have written was

[tex]\frac{df^{-1}}{dx}(f(a))=\frac{1}{\frac{df}{dx}(a)}[/tex]

Or in the multivariable version:

[tex]D f^{-1}(f(a))=(Df(a))^{-1}[/tex]

This is exactly the so-called inverse function theorem.

But seriously, this notation is well-worn and widely used.

I don't really care. The notation is wrong. It doesn't make any sense.

A notation [itex]\frac{df}{dx}[/itex] means that f is a function and that x is a dummy variable. Writing it as [itex]\frac{dx}{df}[/itex] makes no sense.
 
  • #15
Yeah, the dy/dx notation ( or dt/dy ) comes up in differential equations quite a bit ( as it would be a useful computational piece of notation I guess ) , wherever you can actually express x as a function of y ( i.e. inverse function is well-defined ).

A lot of people hate the Leibiniz notation conventions haha
 
  • #16
wisvuze said:
A lot of people hate the Leibiniz notation conventions haha

I sure do :biggrin:
 
  • #17
micromass said:
I sure do :biggrin:

Doesn't mean it's wrong! :tongue:

I was about to quote the wiki on the Leibniz notation (oh heck, here it is: http://en.wikipedia.org/wiki/Differentiation_rules#The_inverse_function_rule)), but I guess you already know it and deplore it in advance.:rofl:

What we really need is a professional mathematician to chip in here (unless you're one) and resolve this. :smile:
 
  • #18
Curious3141 said:
Doesn't mean it's wrong! :tongue:

I was about to quote the wiki on the Leibniz notation (oh heck, here it is: http://en.wikipedia.org/wiki/Differentiation_rules#The_inverse_function_rule)), but I guess you already know it and deplore it in advance.:rofl:

What we really need is a professional mathematician to chip in here (unless you're one) and resolve this. :smile:

I think it's been settled that the notation is in well-use. My professor last semester used it all the time. Anyway, notation is just notation, whether or not that specific piece of leibiniz notation is all a matter of naming things in a way you want everything to make sense
 
  • #19
wisvuze said:
I think it's been settled that the notation is in well-use. My professor last semester used it all the time. Anyway, notation is just notation, whether or not that specific piece of leibiniz notation is all a matter of naming things in a way you want everything to make sense

OK, thanks. I've seen this used countless times, in reputable advanced reference texts on Analysis, too. I never had an issue with it.
 
  • #20
Curious3141 said:
OK, thanks. I've seen this used countless times, in reputable advanced reference texts on Analysis, too. I never had an issue with it.

The notation is certainly used a lot. That doesn't mean that I don't consider it to be wrong.

I try to avoid Analysis books that use Leibniz notation because I find them not rigorous enough.
 
  • #21
dalcde said:
No. You treat it as a normal derivative (so it can be anything). For example, if [itex]x=t^2+6[/itex], then [itex]\frac{dx}{dt}=2t[/itex].

But what if there is no equation describing the relation between x and t? As in they are completely independent. Does this not imply that for a differential change in t there would be NO change in x?

i.e.

[itex]\frac{dx}{dt}=0[/itex]
Also, micromass and Curious3141, in reference to wheter one can take the derivative of a variable with respect to a function ( i.e. [itex]\frac{dx}{dy}[/itex] ) , if i am understanding you two correctly, Curious3141 is saying the notation is correct, but micromass is saying that it is improper to use that notation because it is senseless?

Thank you
 
  • #22
Stalker_VT said:
Also, micromass and Curious3141, in reference to wheter one can take the derivative of a variable with respect to a function ( i.e. [itex]\frac{dx}{dy}[/itex] ) , if i am understanding you two correctly, Curious3141 is saying the notation is correct, but micromass is saying that it is improper to use that notation because it is senseless?

Let's just say that the notation is correct and widely used, but I hate it.
 
  • #23
I agree with micromass.

I think the notation is sloppy, which leads to sloppy thinking. it's not much further
along the mathematical evolutionary ladder than the fluctions of Newton.

The good:
Let me give a for instance. Suppose [itex]f: \mathbb{R} \rightarrow \mathbb{R}[/itex],
is a given function like [itex]f(x) =\sin(x)[/itex]. Then the notation for
[itex]\frac{df}{dx}[/itex] makes some sense
[tex]\frac{df}{dx}(x) = \lim_{h\rightarrow 0} \frac{f(x+h) - f(x)}{h}.[/tex]

so if we think of [itex]df \approx \Delta f = f(x+h)-f(x)[/itex] and [itex]dx \approx \Delta x = h[/itex] then
we have something that looks fractional.

The bad:
Then you're invited to write something down without thinking about what you write.
The notation implies [itex] \frac{dx}{df}[/itex] should be the same kind of thing
as [itex]\frac{df}{dx}[/itex]. But take a look at
[tex] \frac{dx}{df}(f) \stackrel{?}{=} \lim_{h \rightarrow 0}
\frac{x(f+h) - x(f)}{h}.
[/tex]

What does that even mean? if your function happens to be 1-1 at a point
you can give this meaning. This is the meat of the implicit/inverse
function theorems.

But what if f isn't even 1-1?
for my examle, if [itex] f(x) = \sin(x)[/itex] what is
[tex] \frac{dx}{df}(\pi/3)? [/tex]
 
  • #24
qbert said:
for my examle, if [itex] f(x) = \sin(x)[/itex] what is
[tex] \frac{dx}{df}(\pi/3)? [/tex]

isn't this just 0?

f(x) = [itex]\frac{\pi}{3}[/itex]

[itex]\frac{df}{dx}[/itex]= 0

[itex]\frac{dx}{df}[/itex]= 0
 
  • #25
^ His point is that if v is a point such that sin(v) = pi/3, then we all know that there is another point, say w such that sin(w) = pi/3. So what is x(pi/3) equal to then? Is it equal to v or is it equal to w? So how can you form the difference quotient [x(pi/3 + h) - x(pi/3)] / h if you cannot assign a unique value to x(pi/3)? You can't.
 
  • #26
Stalker_VT said:
But what if there is no equation describing the relation between x and t? As in they are completely independent. Does this not imply that for a differential change in t there would be NO change in x?

i.e.

[itex]\frac{dx}{dt}=0[/itex]

If they are completely independent, we don't use the total derivative. We simply use the partial derivative (actually the total derivative and the partial derivative are the same when they are independent).
 
  • #27
micromass said:
A notation [itex]\frac{df}{dx}[/itex] means that f is a function and that x is a dummy variable. Writing it as [itex]\frac{dx}{df}[/itex] makes no sense.

I get what you are saying about dx/df in terms of notation, but you can express rates of change in any way you want as long as it makes sense. One instance that this doesn't make sense is when for example a derivative with respect to some variable is 0. The inverse function theorem provides a lot of the clarification for this.

A trivial example is the function y = c. For a two-dimensional cartesian system dy/dx = 0 but dx/dy doesn't make sense for obvious reasons.

In the above case if y = 5x, then there is no problem with saying dx/dy = 1/5 and this is easy to verify on a graph since an inverse function is the reflection of the function against y = x for this particular example and since the relationship is a straight-line, its easy to prove and verify geometrically.
 

1. Can you explain what it means to take a derivative with respect to the dependent variable?

When taking a derivative, you are essentially calculating the rate of change of a function at a specific point. Taking a derivative with respect to the dependent variable means that you are calculating the rate of change of the function with respect to the variable that depends on other variables in the function.

2. Why is it important to specify the dependent variable when taking a derivative?

Specifying the dependent variable is important because it allows us to understand how changes in that variable affect the overall function. It also allows us to calculate the slope of the function at a specific point, which is useful in many applications such as optimization and curve fitting.

3. Can you take a derivative with respect to more than one dependent variable?

Yes, it is possible to take a derivative with respect to more than one dependent variable. This is known as a partial derivative and is commonly used in multivariable calculus to study how changes in multiple variables affect a function.

4. Are there any limitations to taking a derivative with respect to the dependent variable?

One limitation is that the function must be continuous and differentiable in order for a derivative to exist. Additionally, the derivative may not exist at certain points, such as sharp corners or points of discontinuity.

5. How is taking a derivative with respect to the dependent variable used in real world applications?

Taking a derivative with respect to the dependent variable is used in many fields such as physics, engineering, economics, and finance. It is used to analyze rates of change, optimize functions, and model real-world phenomena. For example, in economics, derivatives are used to calculate marginal cost and revenue, which are important in determining the optimal level of production for a company.

Similar threads

  • Calculus
Replies
2
Views
2K
Replies
1
Views
928
Replies
10
Views
1K
Replies
4
Views
1K
Replies
9
Views
1K
Replies
6
Views
2K
Replies
22
Views
2K
Replies
4
Views
1K
Replies
3
Views
2K
Replies
14
Views
1K
Back
Top