Finding a particular solution to second order differential equation

8 visualizaciones (últimos 30 días)
Deniz
Deniz el 26 de Mzo. de 2018
Comentada: Christopher Creutzig el 27 de Mzo. de 2018
Hello,
I am struggling on solving the expression attached. m,n,v, omega, E are real values; but could also leave as sym. Tried the following but could not make it work:
syms rr u(r)
sol=dsolve(diff(u,rr,2)+(2*m*rr/(m*rr^2+n*rr))*diff(u,rr)-(v/rr^2-1/rr^2+v/rr*(2-m-rr+n)/(m*rr^2+n*r))*u==0,rr)
Thanks in advance!
  1 comentario
Christopher Creutzig
Christopher Creutzig el 27 de Mzo. de 2018

You declare u(r), a function of r. That makes diff(u,rr,2) and diff(u,rr) equal to zero, since you said u does not depend on r. Did you maybe want to use diff(u(rr),rr)?

Iniciar sesión para comentar.

Respuestas (1)

Torsten
Torsten el 27 de Mzo. de 2018
Doesn't look as if you could get an analytical solution for this equation.
Give values to the parameters involved and try a numerical solver instead (ODE45, BVP4C).
Best wishes
Torsten.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by