Solve equation perturbatively

  • Topic: Mathematica 
  • Thread starter djymndl07
  • Start date
  • Tags Tags
    equation solve
2 replies · 3K views · last reply
djymndl07
Messages
24
Reaction score
1
I have this expression, $$T=2 P r-\frac{q^2}{4 \pi r^3}+\frac{1}{4 \pi r}$$. Now I want to solve this equation for ##r## perturbatively. This will give the expression $$r=\frac{T}{2 P}-\frac{1}{4 \pi T}+\frac{P \left(8 \pi P q^2-1\right)}{8 \left(\pi ^2 T^3\right)}+.......$$. I was reading an article where author did this. How can I do this in mathematica?
 
djymndl07 said:
How can I do this in mathematica?
Mathematica session: In[1] defines Tofr as Series of 2Pr + 1/(4πr) - q^2/(4πr^3) about r = Infinity to order 3, giving Out[1] 2Pr + 1/(4πr) - q^2/(4πr^3) + O[1/r]^4. In[2] computes rofT = InverseSeries[Tofr, T] // Simplify, giving Out[2] T/(2P) - 1/(4πT) + P(-1 + 8Pπq^2)/(8π^2 T^3) + O[1/T]^4.
 
Last edited: