Question about a partial derivative

In summary, the conversation discusses a problem with a partial derivative when one variable depends on the other. The main focus is on the geodesic equation for the surface of a sphere and a partial derivative involving the variables of colatitude (angle from north pole) and longitude. The conversation includes various equations and a discussion about the independence of the two coordinates. Ultimately, it is determined that the equations represent a parameterization of a specific path rather than a general dependence between the variables.
  • #1
George Keeling
Gold Member
173
41
TL;DR Summary
Problem with partial derivative when one variable depends on the other.
I apologise for the length of this question. It is probably possible to answer it by reading the first few lines. I fear I have made a childish error:

I am working on the geodesic equation for the surface of a sphere. While doing so I come across the partial derivative
\begin{align}
\frac{\partial}{\partial\theta}\left(\sin^2{\phi}\right)=0?&\phantom {10000}(1)\nonumber
\end{align}where ## \phi, \theta## are colatitude(angle from north pole) and longitude. I could say that the expression must vanish because ## \phi,\theta## are orthogonal. But I know thate ## \phi## is a function ## \theta## so I could say, using the chain rule twice, that the expression is\begin{align}
\frac{\partial}{\partial\theta}\left(\sin^2{\phi}\right)=2\sin{\phi}\cos{\phi}\frac{d\phi}{d\theta}?&\phantom {10000}(2)\nonumber
\end{align}The answer might be very obvious and simple. I think the former is correct but would like some confirmation please.

The detailed reasons for the question are given below. They include my fears about the metric.

The geodesic equation is
\begin{align}
\frac{d^2x^\sigma}{d\lambda^2}+\Gamma_{\mu\nu}^\sigma\frac{dx^\mu}{d\lambda}\frac{dx^\nu}{d\lambda}=0&\phantom {10000}(3)\nonumber
\end{align}where ## \Gamma## is the Christoffel symbol (torsion-free and metric compatible), given by
\begin{align}
\Gamma_{\mu\nu}^\sigma=\frac{1}{2}g^{\sigma\rho}\left(\partial_\mu g_{\nu\rho}+\partial_\nu g_{\rho\mu}-\partial_\rho g_{\mu\nu}\right)&\phantom {10000}(4)\nonumber
\end{align}The coordinates are ##x^0=\phi## and ##\ x^1=\theta## and the metric and inverse metric are
\begin{align}
g_{\mu\nu}=\left(\begin{matrix}1&0\\0&\sin^2{\phi}\\\end{matrix}\right)\ \ ,\ \ g^{\mu\nu}=\left(\begin{matrix}1&0\\0&\sin^{-2}{\phi}\\\end{matrix}\right)&\phantom {10000}(5)\nonumber
\end{align}## \lambda## will parameterise a line which gives the required geodesic. First I derived what these equations mean and I get two second order differential equations involving ## \phi,\theta,\lambda##. I believe these are
\begin{align}
\frac{d^2\phi}{d\lambda^2}-\sin{\phi}\cos{\phi}\left(\frac{d\theta}{d\lambda}\right)^2=0&\phantom {10000}(6)\nonumber
\end{align}and
\begin{align}
\frac{d^2\theta}{d\lambda^2}+2\cot{\phi}\frac{d\phi}{d\lambda}\frac{d\theta}{d\lambda}=0&\phantom {10000}(7)\nonumber
\end{align}There were two ways to work these equations out. Assuming (2) (that ##{\partial f(\phi)}/{\partial\theta}\neq0##) each method gave a different answer for equation (7) unless I made a mistake, which is quite likely.

I have not yet tried to solve these equations, but I know that a geodesic on a sphere is a great circle so I can work out its equation and it can be written
\begin{align}
\theta=\lambda\ \ ,\ \ \phi=\tan^{-1}{\left(\frac{C}{A\cos{\lambda}+B\sin{\lambda}}\right)}&\phantom {10000}(8)\nonumber
\end{align}where ## A,B,C## are constants depending on the start and end points (in quite a complicated way.) It should be simple to check that (8) satisfies (6) and (7). Clearly ## \phi## depends only on ## \theta## and the start and end points, as one would expect. This leads to the original question.

I checked my equation (8) by using my wonderful 3-D plotter. The geodesics look perfect.
junk.png

I also searched the internet for the equation and found one on Wolfram MathWorld (http://www.mathworld.wolfram.com/GreatCircle.html). It was slightly different from mine and cause me great pain. It is incorrect! Their colatitudes and latitudes are mixed up. I have told them, but there is no response. I also plotted their solution and it gave a rather long route to Peking. Whatever the case ## \phi## depends on ## \theta## and the start and end points.

(8) tells us that
\begin{align}
\frac{d^2\theta}{d\lambda^2}=0&\phantom {10000}(9)\nonumber
\end{align}Which does not sit well with (7). If I had the metric at (5) 'the wrong way round', it would be
\begin{align}
g_{\mu\nu}=\left(\begin{matrix}\sin^2{\phi}&0\\0&1\\\end{matrix}\right)\ \ ,\ \ g^{\mu\nu}=\left(\begin{matrix}\sin^{-2}{\phi}&0\\0&1\\\end{matrix}\right)&\phantom {10000}(10)\nonumber

\end{align}this would have given (9) at (7). However I want to cross one bridge at a time …
 
Physics news on Phys.org
  • #2
George Keeling said:
Summary: Problem with partial derivative when one variable depends on the other.

I am working on the geodesic equation for the surface of a sphere. While doing so I come across the partial derivative
\begin{align}
\frac{\partial}{\partial\theta}\left(\sin^2{\phi}\right)=0?&\phantom {10000}(1)\nonumber
\end{align}where ## \phi, \theta## are colatitude(angle from north pole) and longitude. I could say that the expression must vanish because ## \phi,\theta## are orthogonal. But I know thate ## \phi## is a function ## \theta## so I could say, using the chain rule twice, that the expression is\begin{align}
\frac{\partial}{\partial\theta}\left(\sin^2{\phi}\right)=2\sin{\phi}\cos{\phi}\frac{d\phi}{d\theta}?&\phantom {10000}(2)\nonumber
\end{align}The answer might be very obvious and simple. I think the former is correct but would like some confirmation please.
It seems to me that ##\phi## and ##\theta## are independent, meaning that ##\phi## is not a function of ##\theta##. As you said, ##\phi## is the angle measured from the north pole (z-axis), and ##\theta## is the angle measured from what would be the x-axis in the x-y plane. The two coordinates are independent, so ##\partial \left(\frac{ \sin^2(\phi)}{\partial \theta}\right) = 0##.
 
  • Like
Likes George Keeling
  • #3
Thanks, but then there's my equation (8) which effectively says that$$
\phi=\tan^{-1}{\left(\frac{C}{A\cos{\theta}+B\sin{\theta}}\right)}
$$ so it might seem that ##\phi## does depend on ##\theta##. This is my quandary. :cry:
 
  • #4
George Keeling said:
Thanks, but then there's my equation (8) which effectively says that$$
\phi=\tan^{-1}{\left(\frac{C}{A\cos{\theta}+B\sin{\theta}}\right)}
$$ so it might seem that ##\phi## does depend on ##\theta##. This is my quandary. :cry:
But this isn't consistent with your descriptions of what ##\phi## and ##\theta## represent. If they truly are spherical coordinates, they are unrelated to each other.
 
  • #5
Equations ##(8)## look like a parameterization of a certain path, not a general dependence.
 
  • Like
Likes George Keeling
  • #6
fresh_42 said:
Equations (8) look like a parameterization of a certain path, not a general dependence.
Indeed it is the equation of a curve, light dawns! 💡Thanks, I can get on.
 
Last edited:
  • #7
Maybe unnecessary, but students have similar confusion when you give them a path in classical mechanics,

[tex]
x(t)
[/tex]

with a certain speed ##\frac{dx(t)}{dt}##, and then the remark that spacetime is spanned by space and time coordinatens, and hence

[tex]
\partial_t x = 0
[/tex]

Of course, this last equation holds for general coordinates; but as soon as you introduce a path ##x(t)## in space(time), you introduce for that path a certain relation between the coordinates ##t## and ##x##.
 
  • #8
haushofer said:
Maybe unnecessary, but students have similar confusion when you give them a path in classical mechanics,

[tex]
x(t)
[/tex]

with a certain speed ##\frac{dx(t)}{dt}##, and then the remark that spacetime is spanned by space and time coordinatens, and hence

[tex]
\partial_t x = 0
[/tex]

Of course, this last equation holds for general coordinates; but as soon as you introduce a path ##x(t)## in space(time), you introduce for that path a certain relation between the coordinates ##t## and ##x##.
... and let's not get into field theory where you have to teach students to tell apart partial derivatives with respect to the space-time variables from partial derivatives of the Lagrangian - especially when the Lagrangian has an explicit dependence on the space-time variables ...
 

1. What is a partial derivative?

A partial derivative is a mathematical concept used in multivariable calculus to measure the rate of change of a function with respect to one of its variables while holding all other variables constant. It is denoted by ∂ (pronounced "partial") and is often used to analyze how a function changes in response to small changes in its inputs.

2. Why are partial derivatives important?

Partial derivatives are important because they allow us to analyze how a function changes in response to changes in multiple variables. This is useful in many fields, such as physics, economics, and engineering, where systems often depend on multiple variables. By calculating partial derivatives, we can determine the sensitivity of a system to changes in each variable and make predictions about its behavior.

3. How do you calculate a partial derivative?

To calculate a partial derivative, we use the same rules as for ordinary derivatives, but we only differentiate with respect to one variable while treating all other variables as constants. This means that we can use the power rule, product rule, quotient rule, and chain rule, as well as any other differentiation techniques we would use for single-variable functions.

4. What is the difference between a partial derivative and a total derivative?

A partial derivative measures the rate of change of a function with respect to one variable while holding all other variables constant. In contrast, a total derivative measures the overall rate of change of a function with respect to all of its variables. In other words, a partial derivative is a specific type of total derivative where we only consider the change in one variable.

5. How are partial derivatives used in real-world applications?

Partial derivatives have many real-world applications, such as in economics where they are used to analyze how changes in different variables affect the production and pricing of goods. In physics, they are used to study how physical quantities like velocity and acceleration change in response to changes in multiple variables. In engineering, they are used to optimize systems by determining the best values for different variables. In general, partial derivatives are a powerful tool for understanding and predicting the behavior of complex systems.

Similar threads

  • Differential Geometry
Replies
4
Views
3K
  • Differential Geometry
Replies
7
Views
3K
Replies
6
Views
923
  • Special and General Relativity
Replies
1
Views
43
  • Differential Geometry
Replies
1
Views
1K
  • Differential Geometry
Replies
3
Views
2K
  • Differential Geometry
Replies
3
Views
3K
  • Classical Physics
Replies
22
Views
2K
Replies
4
Views
1K
  • Introductory Physics Homework Help
Replies
6
Views
2K
Back
Top