Mathematica NDSolve different solutions same eq's

  • Context: Mathematica 
  • Thread starter Thread starter Vrbic
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Vrbic
Messages
400
Reaction score
18
Hello, I have peculiar trouble with mathematica. I'm playing with lagrangians of some systems and I hit on "central problem". If I use my procedure in mathematica it solve 2 eq. of second order. But if you solve it by hand, you know, ##\phi## coord is "cyclic". And second eq. is reduced to ## \delta_t (mr^2 \phi)=0 ## and we introduce constant of angular momentum ##L##.
And the problem: If I let solve mathematica general equation without introduction ##L## I get another solution than if I transform second equation by introduction ##L##
(different eq.'s: ##2mr\phi'+mr^2\phi''=0## and ##mr^2\phi'=L##)
I used same initial condition.
Could you somebody advise where is the problem or how to resolve it?
 
on Phys.org
My bad, I found out that, the initial conditions aren't same. But it is for me still mystery. Why for this two same eq.'s in different forms, the initial conditions setted in same way aren't same?