How to solve this differential equation using Mathematica's Dsolve?

7 replies · 2K views · last reply
Ayoub Tamin
Messages
12
Reaction score
2
TL;DR
i tried the Dsolve and i got no output
Handwritten differential equation on paper: [ -∂²/∂r² + (q/r²)∂/∂r + b/r² + c r² - d ] f(r) = 0, with a partial-derivative operator acting on f(r).
 
Dale said:
When asking for help troubleshooting code it is customary (and necessary) to post the code
I'm actually so beginner in Mathematica, just want to know how to put the code in , idk what i did or what went wrong but i want to know the right way to it ù-ù
 
Dale said:
Try putting a space between g and f
Mathematica notebook showing In[16] DSolve[-f''[r] + (q/(r^2)) f'[r] + b/(r^2) f[r] + c (r^2) f[r] - g f[r] == 0, f[r], r] with a French comment, and Out[16] giving f[r] -> DifferentialRoot of a Function of y, x returning the ODE (-b - x^4 c + x^2 g) y[x] - q y'[x] + x^2 y''[x] == 0 with y[1] == c1 and y'[1] == c2.

thats what i got
 
Dale said:
Excellent! I guess that space was the only mistake then.
Thank you sir
 
  • Like
Likes   Reactions: Dale