About divergence, gradient and thermodynamics

Click For Summary
SUMMARY

This discussion focuses on evaluating the divergence of the product of a scalar function, ##\mu##, and a vector field, ##\vec F##, within the context of thermodynamics. The correct formulation of the divergence is established as ##\nabla \cdot (\mu \vec F) = \nabla \mu \cdot \vec F + \mu \nabla \cdot \vec F##, with the divergence of ##\vec F## being zero in this case. The gradient of ##\mu## is clarified using the chain rule, leading to the expression ##\nabla \mu = \sum_{i=1}^n \frac{\partial \mu}{\partial u_i} \nabla u_i##, where ##u_i## represents the variables that ##\mu## depends on, such as temperature and position.

PREREQUISITES
  • Understanding of vector calculus, specifically divergence and gradient operations.
  • Familiarity with thermodynamic concepts and scalar/vector fields.
  • Knowledge of the chain rule in multivariable calculus.
  • Proficiency in Cartesian coordinate systems for expressing mathematical equations.
NEXT STEPS
  • Study the application of the divergence theorem in thermodynamics.
  • Learn about the implications of scalar and vector fields in physical systems.
  • Explore advanced topics in multivariable calculus, focusing on the chain rule and its applications.
  • Investigate the role of thermodynamic potentials and their gradients in physical processes.
USEFUL FOR

Students and professionals in physics, particularly those specializing in thermodynamics, as well as mathematicians and engineers working with vector calculus and its applications in physical systems.

fluidistic
Gold Member
Messages
3,932
Reaction score
283
At some point, in Physics (more precisely in thermodynamics), I must take the divergence of a quantity like ##\mu \vec F##. Where ##\mu## is a scalar function of possibly many different variables such as temperature (which is also a scalar), position, and even magnetic field (a vector field).

My question is, how to evaluate that divergence? I am tempted to set it equal to ##\nabla \cdot (\mu \vec F)=\nabla \mu \cdot \vec F + \mu \nabla \cdot \vec F##. I know it doesn't matter here, but it turns out that thanks to some physical fact, the divergence of ##\vec F## vanishes, so we can focus solely on the first term if we want.

And that is where my doubt lies. Precisely, the gradient of ##\mu##. Is it like a total derivative? So that if ##\mu## depends on temperature, magnetic field and position, then I should evaluate ##\nabla \mu## as ##\left ( \frac{\partial \mu}{\partial T}\right)_{\vec B,x}\frac{\partial T}{\partial x} + \left ( \frac{\partial \mu}{\partial x}\right)_{\vec B,T}\frac{\partial x}{\partial x} + \left ( \frac{\partial \mu}{\partial B_x}\right)_{B_y, B_z,x,T}\frac{\partial B_x}{\partial x}+... ##? I am a bit confused on the number of terms and whether what I wrote is correct.
 
Physics news on Phys.org
To answer the first part of the question, just write it out in Cartesian component form.

For the second part, you correctly determined the partial with respect to x at constant y and z.
 
  • Like
Likes   Reactions: fluidistic
Chestermiller said:
To answer the first part of the question, just write it out in Cartesian component form.
Done, I confirm what I wrote, namely ##\nabla \cdot (\mu \vec F)=\nabla \mu \cdot \vec F + \mu \nabla \cdot \vec F##

However, more precisely I get (for the first term on the right side): ##\left( \frac{\partial \mu}{\partial x} \right) F_x + \left( \frac{\partial \mu}{\partial y} \right) F_y + \left( \frac{\partial \mu}{\partial z} \right) F_z##. As if only spatial derivatives mattered.

So, even if ##\mu## depends on temperature, I do not see how to reach what I wrote, say the term ##\left ( \frac{\partial \mu}{\partial T}\right)_{\vec B,x}\frac{\partial T}{\partial x}##. How could I reach this?
 
fluidistic said:
Done, I confirm what I wrote, namely ##\nabla \cdot (\mu \vec F)=\nabla \mu \cdot \vec F + \mu \nabla \cdot \vec F##

However, more precisely I get (for the first term on the right side): ##\left( \frac{\partial \mu}{\partial x} \right) F_x + \left( \frac{\partial \mu}{\partial y} \right) F_y + \left( \frac{\partial \mu}{\partial z} \right) F_z##. As if only spatial derivatives mattered.

So, even if ##\mu## depends on temperature, I do not see how to reach what I wrote, say the term ##\left ( \frac{\partial \mu}{\partial T}\right)_{\vec B,x}\frac{\partial T}{\partial x}##. How could I reach this?

Apply the chain rule: if \mu(u_1(x,y,z), \dots, u_n(x,y,z)) then
<br /> \frac{\partial \mu}{\partial x} = \sum_{i=1}^n \frac{\partial \mu}{\partial u_i} \frac{\partial u_i}{\partial x} and thus <br /> \nabla \mu = \sum_{i=1}^n \frac{\partial \mu}{\partial u_i} \nabla u_i.
 
  • Informative
Likes   Reactions: fluidistic
Thank you, I mathematically get it.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
677
  • · Replies 1 ·
Replies
1
Views
602
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
3
Views
2K