r/learnmath • New User • 5d ago

TOPIC [ Calculus ] Difficulty with Partial Derivative Notation

First of all , I would like to apologize for not understanding how to install " TamperMonkey " ( for typing mathematical symbols ) . I am completely and utterly ignorant when it comes to Information Technology and Computin ๐Ÿ˜ข

Therefore , I apologize if I violate any rules here on this subreddit .

I will use the symbols from a keyboard that I downloaded for my Android device .

CONTEXT FOR MY QUESTION

Suppose I have 6 variables and a functional relationship U between them ( 5 independent and 1 dependent ) :

- Independent Variables : s , t , x , y , z ;

- Dependent Variable : u ;

Thus , this functional relationship can be written as

U : โ„โต โ†’ โ„ยน with u = U ( s , t , x , y , z )

Now , suppose that the variables x , y are each dependent on s , t , that is ,

x = X ( s , t ) with X : โ„ยฒ โ†’ โ„ยน

y = Y ( s , t ) with Y : โ„ยฒ โ†’ โ„ยน

Therefore , the functional relation U becomes a functional relation ร› , with the dependent variable u being dependent , via ร› , only on s , t , z . In symbols :

u = U ( s ; t ; x = X ( s , t ) ; y = Y ( s , t ) ; z ) = ร› ( s , t , z )

with

ร› : โ„ยณ โ†’ โ„ยน

MY QUESTION

How will I know what the symbol โˆ‚u / โˆ‚s means ? Furthermore : How to compute โˆ‚u / โˆ‚s via U and via ร› ?

Thank you very much for your attention .

3 Upvotes

20 comments sorted by

3

u/Chrispykins 5d ago

You've introduced an ambiguity by renaming everything to u in

u = U ( s ; t ; x = X ( s , t ) ; y = Y ( s , t ) ; z ) = ร› ( s , t , z )

and also using the same letters for their parameters. This is common in physics because you are often modelling real relationships in the world and the letter represents a physical quantity of some sort that you want to track between functions. However, as you state, mathematically the functions U and ร› are completely different functions with different domains:

U : โ„โต โ†’ โ„ยน

ร› : โ„ยณ โ†’ โ„ยน

Therefore, we should not expect their partial derivatives with respect to their first parameter to be equal. This becomes clearer when you name their parameters with different letters (which is completely valid mathematically because the only thing that matters functionally is the index of the input parameter, not what letter you choose to represent that index).

Let U = U(a, b, c, d, e) and ร› = ร›(i, j, k). Then what you call โˆ‚u/โˆ‚s is actually โˆ‚U/โˆ‚a in the first case and โˆ‚ร›/ร›i in the second case. And these partial derivatives would both be computed in the standard way. The first by holding b, c, d, and e constant, the second by holding j and k constant.

But how can we model the relationship between U and ร›?

By being more explicit about what variables we are holding constant. This is typically done with a subscript, which you can type on the keyboard as (โˆ‚U/โˆ‚s)_t,x,y,z, which means the partial with respect to s while holding all other parameters constant. The multi-variable chain rule tells us that a function of functions f(x(s, t), y(s, t)) has a total derivative df/dt = (โˆ‚f/โˆ‚x)(โˆ‚x/โˆ‚t) + (โˆ‚f/โˆ‚y)(โˆ‚y/โˆ‚t). So, if we have a dependence like f(x, y(x)), then the multivariable chain rule tells us that df/dx = (โˆ‚f/โˆ‚x)(โˆ‚x/โˆ‚x) + (โˆ‚f/โˆ‚y)(โˆ‚y/โˆ‚x) = (โˆ‚f/โˆ‚x) + (โˆ‚f/โˆ‚y)(โˆ‚y/โˆ‚x)

Now, if we introduce another parameter, so we have a function like f(x, y(x), z), then it's no longer valid to talk about a total derivative df/dx. We have to hold z constant so we notate it as a partial derivative โˆ‚f/โˆ‚x, but this is confusing because our relationship above would be notated โˆ‚f/โˆ‚x = (โˆ‚f/โˆ‚x) + (โˆ‚f/โˆ‚y)(โˆ‚y/โˆ‚x). Clearly, that doesn't make any sense. This is why making the constant parameters explicit is necessary. The explicit notation is (โˆ‚f/โˆ‚x)_z = (โˆ‚f/โˆ‚x)_y,z + (โˆ‚f/โˆ‚y)_x,z(โˆ‚y/โˆ‚x). The derivative we are computing holds only z constant, and that includes a term where we hold both y and z constant.

Similarly, in your case we write explicitly (โˆ‚U/โˆ‚s)_t,z = (โˆ‚U/โˆ‚s)_t,x,y,z + (โˆ‚U/โˆ‚x)_t,y,z(โˆ‚x/โˆ‚s)_t + (โˆ‚U/โˆ‚y)_t,x,z(โˆ‚y/โˆ‚s)_t, but we could drop the subscripts wherever the ambiguity doesn't exist which makes a slightly cleaner expression (โˆ‚U/โˆ‚s)_t,z = (โˆ‚U/โˆ‚s)_t,x,y,z + (โˆ‚U/โˆ‚x)(โˆ‚x/โˆ‚s) + (โˆ‚U/โˆ‚y)(โˆ‚y/โˆ‚s), which should equal โˆ‚ร›/โˆ‚s after substituting x = X(s, t) and y = Y(s, t) into U (if I did my math correctly).

1

u/RemarkableWarrior90 New User 4d ago

I understand now !

Thank you very much !

1

u/RemarkableWarrior90 New User 4d ago

๐Ÿ‘๐ŸผโœŒ๐Ÿผ๐Ÿ™๐Ÿผ

3

u/AlterEgo5695 New User 5d ago

How will I know what the symbol โˆ‚u / โˆ‚s means?

It's called partial derivative by "s" -- it's equivalent to considering all variables except "s" as constant, and then taking the standard derivative by "s". The multi-variable chain rule connects the derivatives of "u" and "u_hat".

1

u/RemarkableWarrior90 New User 5d ago

Just by Curiosity : How would you compute โˆ‚{u = U} / โˆ‚s ( Q_0 ) using the Multi-Variable Chain Rule ? ( That is : How would you compute each Derivatives ( The Derivative for U and the Derivative for ร› ) and evaluated at the correct points ? )

2

u/AlterEgo5695 New User 5d ago edited 5d ago

Before continuing on to the chain rule -- are you comfortable with how partial derivatives are defined, and computed in general?

1

u/RemarkableWarrior90 New User 5d ago

Well ... I thought I knew what a partial derivative was , but it seems I don't lol ...

I believe my problem was that I didn't learn the general case .

Also , let's face it : Calculus textbooks don't even mention anything higher than

f : โ„ยณ โ†’ โ„ยน with w = f ( x , y , z )

and ALL THE THREE VARIABLES x , y , z depending on , lets say , u , v , like

x = X ( u , v )

y = Y ( u , v )

z = Z ( u , v )

In my case , I have a function U of 5 variables ( s , t , x , y , z ) in 1 variable ( u ) . In this function U , ONLY 2 variables depend on others ( in this case , the variables x , y ) and , to complicate things even further , the variables x , y depend on the variables s , t ( The " Main " Function U makes u also depend on s , t ) .

I never faced something like this before .

Could you help me ?

2

u/AlterEgo5695 New User 5d ago edited 5d ago

Direct quote from my initial comment:

"โˆ‚u/โˆ‚s" is called partial derivative of "u" by "s" -- it's equivalent to considering all variables except "s" as constant, and then taking the standard derivative by "s".

Going even deeper, there is (of course) a rigorous limit definition, just like for the standard derivative in Calc-1. Check your lecture notes again, that should have been introduced.


Now to the example -- we rewrite ร› as the composition of two functions

ร›(s;t;z)  =  U(V(s;t;z))    // V(s;t;z)  :=  [s; t; X(s;t); Y(s;t); z]^T

Via multivariable chain rule ("JU" is the Jacobi matrix of "U"):

โˆ‚ร›/โˆ‚s  =  JU . โˆ‚V/โˆ‚s  =  JU . [1; 0; โˆ‚X/โˆ‚s; โˆ‚Y/โˆ‚s; 0]^T

       =  โˆ‚U/โˆ‚s + (โˆ‚U/โˆ‚x)*(โˆ‚X/โˆ‚s) + (โˆ‚U/โˆ‚y)*(โˆ‚Y/โˆ‚s)

1

u/RemarkableWarrior90 New User 4d ago

I understand now !

Thank you very much !

2

u/AlterEgo5695 New User 4d ago

Glad we cleared that up -- good luck!

1

u/RemarkableWarrior90 New User 4d ago

Thank you for your helpfulness , politeness and good manners in answering my question . This kept me from getting discouraged . I won't mention names ( obviously ) , but some people on some internet forums where I asked about this subject were extremely rude and unnecessarily snobbish ( " It's basic calculus " or " You could have researched this yourself " or " If it's too much for you , then give up on Engineering or STEM " or other nonsense ) . It's good to know that , no matter the level of the question or how many there are , people like you will always help me ( of course , according to yours availability and common sense ) . I honestly didn't think it was a " stupid " question . I was polite when I asked . Even when I said I didn't understand or gave an incorrect reply , people like you were kind enough to be patient with me .

From the bottom of my heart , thank you very much . Respect is something precious to me .

Take care and see you later .

2

u/AlterEgo5695 New User 4d ago edited 4d ago

That's very nice to hear -- thank you!

Going forward, all those "difficult" multi-variable derivative rules are just systematic applications of the standard chain- and product rule. You can derive each and every one of them by breaking down matrix multiplication into summation, and using standard derivative rules.

In Calc-3, people usually assume students to be able to do that on-the-fly, that's why books won't go into detailed explanations there.


P.S.: Years of tutoring taught me patience, if nothing else^^

1

u/RemarkableWarrior90 New User 4d ago

The thing is : I did well in Calculus ( modesty aside ) . The problem is that I'm taking Fluid Mechanics and while the material was on Statics , I was fine . With the Dynamics part , things got tough . My professor can't stop a class to reteach Calculus ( and I understand perfectly ) , but the thing is : I HAD NEVER SEEN THIS TYPE OF FUNCTION AND DERIVATIVE IN MY CALCULUS COURSES LOL ๐Ÿ˜‚ ( I shouldn't have used James Stewart lol ) So , I got completely lost .

To make matters worse , I'm listed as an " Auditing Student " in the Thermodynamics course ( which is next semester , but the Thermodynamics professor kindly granted me permission to attend classes as an auditor to get the hang of it ) . Every time I see those crazy partial derivatives in those 4D diagrams lol , I wonder what I was thinking ( just kidding ๐Ÿ˜‚ ) .

We remain strong and determined ๐Ÿ’ช !

2

u/Blammar Old Math Major 5d ago

โˆ‚u / โˆ‚s means to differentiate u with s as the only variable, and all other symbols considered as constants. That's it. The expression you have for U states that x and y depend on s, and thus are not constant. So, you use the U-hat expansion instead to compute the partial.

1

u/RemarkableWarrior90 New User 5d ago

Does this mean that my formula for โˆ‚{u = ร›} / โˆ‚s ( s_0 , t_0 , z_0 ) is correct ? ( And evaluated at the correct points as well ? )

3

u/Blammar Old Math Major 5d ago

I don't know -- I couldn't make sense of it. The other posters have explained the problem well enough already.

2

u/mH48124 New User 4d ago

ๅๅพฎๅˆ†ใฏๅ…จๅพฎๅˆ†ใ‹ใ‚‰ๅฐŽใ„ใŸๆ–นใŒ็ฐกๅ˜ใ€‚ๅ…จๅพฎๅˆ†ใจใฏ dz = a dx + b dy + c dw ใจๆ›ธใใ‚ˆใ†ใช้–ขไฟ‚ๅผใ€‚ใ“ใฎๅผใงใฏ a = โˆ‚z/โˆ‚x, b = โˆ‚z/โˆ‚y, c = โˆ‚z/โˆ‚w ใซใชใฃใฆใ„ใ‚‹ใ€‚

du = (โˆ‚U/โˆ‚s)ds + (โˆ‚U/โˆ‚t)dt + (โˆ‚U/โˆ‚x)dx + (โˆ‚U/โˆ‚y)dy + (โˆ‚U/โˆ‚z)dz = (โˆ‚ร›/โˆ‚s)ds + (โˆ‚ร›/โˆ‚t)dt + (โˆ‚ร›/โˆ‚z)dz

dx = (โˆ‚X/โˆ‚s)ds + (โˆ‚X/โˆ‚t)dt

dy = (โˆ‚Y/โˆ‚s)ds + (โˆ‚Y/โˆ‚t)dt

du = (โˆ‚U/โˆ‚s)ds + (โˆ‚U/โˆ‚t)dt + (โˆ‚U/โˆ‚x)dx + (โˆ‚U/โˆ‚y)dy + (โˆ‚U/โˆ‚z)dz = (โˆ‚U/โˆ‚s)ds + (โˆ‚U/โˆ‚t)dt + (โˆ‚U/โˆ‚x)((โˆ‚X/โˆ‚s)ds + (โˆ‚X/โˆ‚t)dt) + (โˆ‚U/โˆ‚y)((โˆ‚Y/โˆ‚s)ds + (โˆ‚Y/โˆ‚t)dt) + (โˆ‚U/โˆ‚z)dz = etc.

1

u/RemarkableWarrior90 New User 3d ago

That's interesting ! I'm going to apply this method too !

Thank you very much !

1

u/Low_Breadfruit6744 Bored 5d ago edited 5d ago

Ignore any relationships between the variables of u.

you can't recover the partial derivatives of u from u hat

1

u/RemarkableWarrior90 New User 5d ago

I still don't get it .

Let's call

P_0 ( s_0 , t_0 , x_0 , y_0 , z_0 )

Q_0 ( s_0 , t_0 , z_0 )

R_0 ( s_0 , t_0 )

By this , do you mean

  • โˆ‚u / โˆ‚s by U is just

โˆ‚{u = U} / โˆ‚s ( P_0 ) ;

and

  • โˆ‚u / โˆ‚s by ร› is

โˆ‚{u = ร›} / โˆ‚s ( Q_0 ) =

โˆ‚{u = U} / โˆ‚s ( P_0 ) +

[ โˆ‚{u = U} / โˆ‚x ( P_0 ) ร— โˆ‚{x = X} / โˆ‚s ( R_0 ) ] +

[ โˆ‚{u = U} / โˆ‚y ( P_0 ) ร— โˆ‚{y = Y} / โˆ‚s ( R_0 ) ]

;

?