Hi,
I am completely new to Mathematica and I really need some advice on solving a specific initial value problem numerically.
The differential equation is: θ’'[x] - p^2 sin[2θ[x]] == 0 , x = {0,1}
for p = π/(2 Sqrt[2])
The initial values are θ’[0] == 0; θ[0] == {0, 2π}.
So I need to solve the equation for various initial angles θ[0] from 0 to 2π
Ι tried it with a For-Loop, but it is not working.
I would like to get a list of angles θ[1] after solving the equation for different initial angles θ[0]
I need to plot the angle θ[0] over the resulting angle θ[1].
This is the mathematical pendulum equation for the oscillatory case.
Mathematica solves it directly, but the form of the solution is a bit weird, because the Jacobi amplitude is primarily defined for rotational modes with veloctiy :>0 at [Theta] = Pi,.
Its nearly impossible to include the start condtions. As the equation is time independent, one constant C1 is simply the start time and has be set so to meet the start conditions together with .the second constant,determines the velocity at t=-C[2] , that is in the lower dead point.
From this equation it is possible to solve for C1 in terms of Theta
Because of the poor state of implementation of the elliptic function complex in Mathematica, most work has to be done by hand. The rather trival solution can be found in Pendel exakte Lösung
I have another problem, which is even more basic. If I want to solve the differential equation from above for some random initial value problem (let’s leave the For-Loop behind and concentrate only on one specific solution), Mathematica always replies with the same error response:
In this case it is no pendulum equation, but an equilibrium condition for a rod in a crooked channel with an asymmetric cross-section. There is no oscillation going on.
I cannot reproduce the error you get, but it is similar to what we happens when the independent variable of a differential equation is given a value before NDSolve is called:
Sorry, yes, there is a minus sign. But except for an x → i t the algebra is all the same. One is in the uncharted area of the elliptic amplitude unforunately.