1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Just needs maths checking

  1. Jan 17, 2009 #1
    1. The problem statement, all variables and given/known data
    Under the assumption that the hot, X-ray emitting gas in the halo of an elliptical galazy is in hydrostatic equilibrium with the gravitational field of the galaxy, show that the total mass interior to radius r is given by:

    [tex]M(r) = -\frac{kT(r)r}{\mu m_p G}(\frac{dln\rho_g(r)}{dlnr}+\frac{dlnT(r)}{dlnr})[/tex]

    Where [tex]\rho_g(r)[/tex] and [tex]T(r)[/tex] are the gas density and temperature.

    2. Relevant equations
    From my notes:
    [tex]\frac{dP_g(r)}{dr} = -\frac{GM(r)\rho_g(r)}{r^2}[/tex]


    [tex]P_g(r) = N_g(r)kT(r) = \frac{\rho_g(r)}{\mu m_p}kT(r)[/tex]

    3. The attempt at a solution
    I have done this question before I should add, so I know it works. It was part of a homework, but the work was never given back so I can't check it there. I'm just doing it now as part of my revision.

    The way I was going to head about this question was to differentiate the second of the two equations with respect to r, and set them equal to each other. However when doing this I can't see how the final answer has logs in it, as I seem to be getting:
    [tex]\frac{dP_g(r)}{dr} = \frac{k}{\mu m_p}(\rho_g(r)\frac{dT(r)}{dr} + T(r)\frac{d\rho_g(r)}{dr})[/tex]

    Have I gone wrong with my differentiating somewhere? Its been a long time since I've had any real practice this year, so I wouldn't be all that surprised.

    I also think I have one too many factors of r as well, but the equation in the notes has [tex]r^2[/tex]

    Any hints would be appreciated. Thanks
  2. jcsd
  3. Jan 17, 2009 #2


    User Avatar
    Staff Emeritus
    Science Advisor

    You're going along the right lines. Now, you need to replace your derivatives in your expression for dP/dr with the derivatives involving logs in the solution.

    For example, one can write [tex]\frac{d\ln T}{d \ln r}=\frac{d\ln T}{dr}\frac{dr}{d \ln r} [/tex], using the chain rule.

    The second part on the RHS is just the reciprocal of d/dr{lnr}. You can then write the logarithmic derivative of T in terms of the derivative of T. Do the same for \rho, and you should have your answer. Post how you get on, and I'll be happy to give further comments.
  4. Jan 17, 2009 #3
    I'm not really seeing what you mean. Can you expand on this a bit further please?
  5. Jan 17, 2009 #4


    User Avatar
    Staff Emeritus
    Science Advisor

    Well, [tex]\frac{d\ln T}{d \ln r}=\frac{d\ln T}{dr}\frac{dr}{d \ln r} = \frac{dT}{dr}\frac{d \ln T}{dT} \cdot r =\frac{dT}{dr}\frac{1}{T}\cdot r[/tex]

    Then, rearranging, gives [tex]\frac{dT}{dr}=\frac{T}{r}\frac{d \ln T}{d \ln r}[/tex], which you can then substitute into your expression for dP/dr.

    Do this, and the same for rho, and you should obtain the expression in your first post.
  6. Jan 17, 2009 #5

    I think I see it now. Having looked up the rules for differentiating logs!

    Thanks for your help.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?