Difficulty with function dependencies f(u,x)

In summary, the conversation discusses the concept of dependencies and the chain rule in relation to functions. It is mentioned that the total derivative cannot be calculated unless all dependencies eventually depend on the desired variable. The different interpretations of the partial derivative notation are also discussed. The conversation ends with a question about whether x can be seen as a function of z and how to determine the correct way to look at z when solving a problem.
  • #1
D O
14
3
If you have a function [tex] x = x(u,t) [/tex]
then does [itex]u[/itex] necessarily depend on [itex]x[/itex] and [itex]t[/itex]? so [itex]u = (x,t)[/itex]
For example, if [itex] x(u,t)=u^2 t[/itex] it seems that because [itex] t=x/u^2 [/itex], [itex] t=t(x,u) [/itex]

I am having difficulty working out the general equation for [itex] dz \over dx [/itex] if [tex]z=z(x,y,t) [/tex] [tex]x=x(u,t) [/tex][tex]y=y(u,v,t) [/tex]
The chain rule suggests it should be:
mHGrtiD.png

But I don't know how to simplify [itex] dy \over dx[/itex] or [itex] dt \over dx[/itex], as neither [itex]y[/itex] nor [itex]t[/itex] depends on [itex]x[/itex] directly or indirectly.

I can easily work out [itex]dz \over dt[/itex] because [itex]t[/itex] is at the bottom of the tree of dependency, but [itex]x[/itex] is not.

Can you have cyclic dependencies? Or are all dependencies cyclic? What does this mean for the chain rule?
Thanks.
 
  • Like
Likes Stephen Tashi
Mathematics news on Phys.org
  • #2
D O said:
If you have a function [tex] x = x(u,t) [/tex]
then does [itex]u[/itex] necessarily depend on [itex]x[/itex] and [itex]t[/itex]? so [itex]u = (x,t)[/itex]
For example, if [itex] x(u,t)=u^2 t[/itex] it seems that because [itex] t=x/u^2 [/itex], [itex] t=t(x,u) [/itex]

I am having difficulty working out the general equation for [itex] dz \over dx [/itex] if [tex]z=z(x,y,t) [/tex] [tex]x=x(u,t) [/tex][tex]y=y(u,v,t) [/tex]
The chain rule suggests it should be:
mHGrtiD.png

But I don't know how to simplify [itex] dy \over dx[/itex] or [itex] dt \over dx[/itex], as neither [itex]y[/itex] nor [itex]t[/itex] depends on [itex]x[/itex] directly or indirectly.

I can easily work out [itex]dz \over dt[/itex] because [itex]t[/itex] is at the bottom of the tree of dependency, but [itex]x[/itex] is not.

Can you have cyclic dependencies? Or are all dependencies cyclic? What does this mean for the chain rule?
Thanks.

You can look at ##z## either as a function of ##x, y, t## or a function of ##u, v, t##. In either case, you can't have a total derivative ##\frac{dz}{dx}##. If ##u, v## were also functions of ##t##, you could calculate ##\frac{dz}{dt}##.
 
  • Like
Likes D O
  • #3
Thanks for the answer!
So does that mean you can only calculate a total derivative wrt [itex]x[/itex] when ALL the dependencies of [itex]z[/itex] eventually depend on [itex]x[/itex]?
You can look at [itex]z[/itex] as a function of [itex](x,y,t)[/itex] or of [itex](u,v,t)[/itex]; I assume this mens you could also look at it as a function of [itex](x,u,v,t)[/itex] by substituting for [itex]y[/itex].

How do you know which way to look at [itex]z[/itex] when solving a problem?
Can [itex]x[/itex] be seen as a function of [itex]z[/itex] or is the dependency one-way and linear?
 
Last edited:
  • #4
D O said:
If you have a function [tex] x = x(u,t) [/tex]
then does [itex]u[/itex] necessarily depend on [itex]x[/itex] and [itex]t[/itex]? so [itex]u = (x,t)[/itex]
You appear to be asking whether u is a function of (x,t) rather than the more general use of the word "depends".

For example, if [itex] x(u,t)=u^2 t[/itex] it seems that because [itex] t=x/u^2 [/itex], [itex] t=t(x,u) [/itex]

The example relevant to your initial question is [itex] u^2 = x/t [/itex] , which is satisfied by both [itex] u = \sqrt{x/t} [/itex] and [itex] u = - \sqrt{x/t} [/itex], so [itex] u [/itex] is not a function of [itex] (x,t) [/itex]. However [itex] u [/itex] "depends" on [itex] (x,t) [/itex] in the sense that when you are given [itex] (x,t) [/itex] you can't pick the value of [itex] u [/itex] arbitrarily. Your choices are somewhat restricted.

I am having difficulty working out the general equation for [itex] dz \over dx [/itex] if [tex]z=z(x,y,t) [/tex] [tex]x=x(u,t) [/tex][tex]y=y(u,v,t) [/tex]
The chain rule suggests it should be:
mHGrtiD.png

The "general equation" can't be worked out, because, in general, if you have a function [itex] z = f(x,y,t) [/itex] then the notation [itex] \frac{dz}{dx} [/itex] and the concept "the derivative of z with respect to x" isn't necessarily meaningful unless [itex] z [/itex] happens to be a function of [itex] x [/itex] alone - either explicitly or implicitly. The chain rule itself doesn't guarantee the existence of [itex] \frac{dz}{dx} [/itex].A slightly more general question is whether:
eq. 1) [itex] \frac{\partial z}{\partial x} = \frac{\partial z}{\partial x} + \frac{\partial z}{y} \frac{\partial y}{\partial x} + \frac{\partial z}{t} \frac{\partial t}{\partial x} [/itex]

That's a tricky question ! Does " [itex]\frac{\partial z}{\partial x} [/itex]" denote the same thing on the left hand side of eq. 1 as it denotes on the right side of that equation ?

We can distinguish two different meanings for " [itex]\frac{\partial z}{\partial x} [/itex]" . These are:

1. The partial derivative of z(x,y,t) with respect to the variable x
and
2. The partial derivative of z(x,y,t) with respect to the value of its first argument.

For example if [itex] z(x,y,t) = x^2 + yt [/itex] and [itex] y = x^3 [/itex] (and [itex] t [/itex] is independent of [itex] x [/itex] ) then "the partial derivative of z with respect to its first argument) is [itex] 2x [/itex] where "x" denotes the value of the first argument, but the "partial derivative of z with respect to the variable x" is [itex] 2x + 3x^2 t [/itex], where "x" denotes the value of the variable x.

Some books use the subscript notation [itex] z_x(x,y,t) [/itex] to denote interpretation 1) and the notation like [itex] z_1(x,y,t) [/itex] to denote interpretation 2.

The [itex] dx, dy [/itex] style notation is convenient for many purposes, but it obscures the fact that functions are evaluated at particular arguments. For example, the chain rule can be denoted as [itex] (F(g(x)))' = F'(g(x)) g'(x) [/itex] which makes it clear than [itex] F' [/itex] must be evaluated at the argument [itex] g(x) [/itex] rather than the argument [itex] x [/itex].

I'll write more about this topic, but right now I have to leave to meet someone at a hardware store.
 
  • Like
Likes D O
  • #5
D O said:
Thanks for the answer!
So does that mean you can only calculate a total derivative wrt [/itex]x[itex] when ALL the dependencies of [itex]z[/itex] eventually depend on [itex]x[/itex]?
You can look at [itex]z[/itex] as a function of [itex](x,y,t)[/itex] or of [itex](u,v,t)[/itex]; I assume this mens you could also look at it as a function of [itex](x,u,v,t)[/itex] by substituting for [itex]y[/itex].

How do you know which way to look at [itex]z[/itex] when solving a problem?
Can [itex]x[/itex] be seen as a function of [itex]z[/itex] or is the dependency one-way and linear?

A total derivative applies when all variables depend on a single parameter. The most obvious example is time. If you have a function of the spatial coordinates ##x, y, z## (e.g. the gravitational potential), then those spatial coordinates are independent and that function has partial derivatives with respect to each spatial coordinate.

Let's call than function ##V(x, y, z)##.

Now, if you have a particle with a defined trajectory - often parameterised by time - then you have a new function of that single parameter, which we can call ##f##:

##f(t) = V(x(t), y(t), z(t))##

This gives us the potential at each point of the particle's trajectory.

Where ##(x(t), y(t), z(t))## is the particle's trajectory. Note that ##x(t), y(t), z(t)## are no longer independent variables. And now you can apply the chain rule to get the derivative ##\frac{df}{dt}##.

But, if ##x, y, z## are functions of two variables - ##u, v## say - which might define a surface, then we can define:

##g(u, v) = V(x(u, v), y(u, v), z(u,v))##

And his gives us the potential at each point on the surface. Note here that we have partial derivatives (not total derivatives) of ##g## wrt ##u, v##.
 
  • Like
Likes D O
  • #6
Thanks for both your answers, they are very helpful.
I am interested about the different meanings of [itex]\partial z \over \partial x[/itex].
I can see applications for [itex]z_x[/itex] (such as finding the minima/maxima of a 2d function), but when would you use [itex]z_1[/itex]?
It seems that if you want to calculate [itex]z_x[/itex] you can't just ignore what [itex]y[/itex] is a function of, as I would have done if I had been calculating it (and would have instead calculated [itex]z_1[/itex].
 
  • #7
Stephen Tashi said:
The example relevant to your initial question is u2=x/t u^2 = x/t , which is satisfied by both u=√x/t u = \sqrt{x/t} and u=−√x/t u = - \sqrt{x/t} , so u u is not a function of (x,t) (x,t) .

This was a bad example, as there are two solutions for [itex]u[/itex].
Would [itex]u[/itex] be a function of [itex](x,t)[/itex] if instead [itex]x=x(u,t)=u+t[/itex]?
Then you could argue that [itex]u=x-t[/itex] so u depends on x and t.
Do you have to specify which variables are independent and which are dependent?
 
  • #8
D O said:
It seems that if you want to calculate [itex]z_x[/itex] you can't just ignore what [itex]y[/itex] is a function of, as I would have done if I had been calculating it (and would have instead calculated [itex]z_1[/itex].

Yes, you are correct that if you wish to compute the interpretation of [itex] \frac{\partial z}{\partial x} [/itex] in the sense of [itex] z_x [/itex], you must consider all the arguments of the function [itex] z [/itex] that depend on [itex] x [/itex].

In the example, you can get the correct answer from the chain rule by using

## z_x = z_1 \frac{\partial x}{\partial x} + z_2 \frac{\partial y}{\partial x} + z_3 \frac{\partial t}{\partial x} ##

using

##z_1 = 2x ,\ z_2 = t,\ z_3= y ##
## \frac{\partial x}{\partial x} =1,\ \frac{\partial y}{\partial x} = 3x^2 ,\ \frac{\partial t}{\partial x} = 0 ##

How and whether such a formal manipulation makes sense is something I'd have to think about!

From the point of pure mathematics, the notation used in applied mathematics is truly horrifying in its ambiguity. In pure mathematics, a "function" involves two sets, a domain D and a co-domain C. The function is a set of ordered pairs of elements ##F## consisting of ordered pairs ##(d,c)## such that ##d \in D ## and ##\ c \in C ## and no two distinct ordered pairs in ##F## have the same first member.

Two functions are different functions if they have different domains or different co-domains or one contains an ordered pair that the other doesn't.

Take that pure mathematical view and try to reconcile it with a typical applied math scenario like:

Let ##z(x,y,t) = x^2 + yt ## and let ##y = x^3##

How many functions are involved in this scenario ? - and which function does "##z##" denote ?

First we have the function ##z## whose ordered pairs are of the form ##( (x,y,t), x^2 + yt )##. The first member of the ordered pair is a triple of real numbers and the second member of the ordered pair is a real number. For example, this function ##z## contains ( (1,2,3),7 ).

If we incorporate the "side condition" ##y = x^3## into our concept of ##z## we have ##z = x^2 + x^3 t ##, which consists of ordered pairs of the form ## (x,t), x^2 + x^3t) ## where the first member of the ordered pair is an ordered pair of real numbers ##(x,t)## instead of an ordered triple of real numbers. This second concept of ##z## as function does not contain ((1,2,3),7).

Since ##z## is ambiguous as notation for a function, the notation ##\frac{\partial z}{\partial x}## is also ambiguous. The distinction between ##z_1## and ##z_x## isn't because "there are two different partial derivatives for the same function". The distinction arises because there are two different functions that are denoted by the same symbol "z".
In the example. ##z_1## denotes a partial derivative of a function ##z## whose ordered pairs are of the form ##((x,y,t) x^2 + yt)## and ##z_x## denotes a partial derivative of a function ##z## whose ordered pairs are of the form ## ((x,t), x^2 + x^3t) ##.

In addition to the ambiguous notation for functions, we have the complication of the term "variable". It is so difficult to define the notion of "variable" precisely that pure mathematics only does it in contexts like the study of formal languages. In typical math courses (applied or pure) we don't find a clear definition of concept of a "variable" that is on par with other precise definitions - such as the definition of a function or the definition of a derivative etc. If an instructor says "I'll list the variables on the upper left corner of the marker board" we assume "variables" is a term from common speech on par with the terms "upper left corner of the marker board". Both "variable" and "upper left corner of the marker board" can be explained in colloquial language, but the course proceeds without giving either concept a precise mathematical definition.

In the above example, we can ask tricky questions like "Is ##y## a variable? Is ##y## a function? Is ##y## both a function and a variable?.

Those questions don't have specific answers unless we establish a specific context. To use the term "variable" unambiguously, we should being by speaking of a specific function. For example, if the ordered pairs of a function F are of the form ((x,y,t),z then "the variable y" is just away of referring to "the second element of the first member of an ordered pair of F. But if we are considering the function " ##y = x^3 t ##" then ##y## is a way of referring to the function itself and also to the second member of an ordered pair of the form ##((x,t), x^3t)##.

When you have several statements involving the symbol "##y##" you have the problem of deciding whether the "##y##" in one statement has the same meaning as the "##y##" in another statement. In applied math, we learn to cope with such ambiguities.

In applications a "variable" usually represents something like "temperature" that is not a mathematical abstraction. In a context such as "temperature z is a function of x,y,t" then "z"can be used to refer to a function or a "dependent variable" In a context such as "pressure p is function of temperature z", the symbol "z" can refer to a "independent variable".

D O said:
Would [itex]u[/itex] be a function of [itex](x,t)[/itex] if instead [itex]x=x(u,t)=u+t[/itex]?
Then you could argue that [itex]u=x-t[/itex] so u depends on x and t.
Yes, if the relation x = u + t holds among 3 variables then we use ambiguous notation and use "u" to denote both the variable u and also the function defined by ordered pairs ( (x,t) x-t). However this does not mean that the concept of u as a function is identical to the concept of u as a variable.
Do you have to specify which variables are independent and which are dependent?
When you state precisely what function you are considering then this shows which symbols represent dependent and independent variables. The same symbol may be used to denote the dependent variable in one function and an independent variable in a different function.
 

Related to Difficulty with function dependencies f(u,x)

1. What are function dependencies in scientific research?

Function dependencies refer to the relationships between variables in a function. This means that the value of one variable is dependent on the value of another variable.

2. How does difficulty with function dependencies affect scientific experiments?

Difficulty with function dependencies can lead to errors and inaccurate results in scientific experiments. It can also make it challenging to determine the cause and effect relationships between variables.

3. What are some common challenges with function dependencies?

Some common challenges with function dependencies include identifying all the variables that may impact the function, understanding the direction of the relationship between variables, and dealing with confounding variables.

4. How can scientists overcome difficulty with function dependencies?

To overcome difficulty with function dependencies, scientists can carefully design experiments and control for variables, use statistical methods to analyze data, and collaborate with experts in specific fields to gain a better understanding of complex relationships.

5. What are some real-world examples of difficulty with function dependencies in scientific research?

One example is studying the relationship between air pollution and respiratory diseases. There may be multiple variables that impact this relationship, such as age, lifestyle habits, and genetics, making it difficult to determine the exact function dependencies. Another example is studying the effects of a new medication on a disease. The success of the treatment may be dependent on various factors, such as the severity of the disease and the patient's overall health, making it challenging to isolate the function dependencies.

Similar threads

Replies
3
Views
603
  • Classical Physics
Replies
0
Views
237
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
1
Views
760
  • Calculus
Replies
2
Views
2K
Replies
13
Views
1K
Replies
1
Views
848
  • Differential Equations
Replies
27
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
703
Back
Top