I have a very simple problem, but can't seem to understand what I need to do. In simulating a pendulum from it's jerk equation, I'm having a hard time setting initial conditions to get it to work out. So for example the equation of motion for a pendulum is
$$\ddot{\theta} = -A \sin{\theta}$$
And I'm interested in modeling from it's jerk,
$$\dddot{\theta}=-A\, \dot{\theta} \cos{\theta}$$
So a little change of coordinates $\theta = x, \dot{\theta}=y$, and $\ddot{\theta} = z$, can yield three equations of motion:
$$\dot{x}=y$$ $$\dot{y}=z$$ $$\dot{z}=-A \, y \cos{x}.$$
My problem are the initial conditions. Since the problem is nonlinear and cannot be solved, how do I pick initial conditions that will yield the correct results (oscillating symmetrically around $x=0$ (from the view only looking at the $x$ axis)). Specifically I would like to know $(x_0,y_0,z_0)=(a,0,?)$ meaning I pull it back at angle $a$ and let it go. The general process is what I'm after, meaning I could also solve,
$$\dot{x}=y$$ $$\dot{y}=z$$ $$\dot{z}=-B\, z-A \, y \cos{x}$$
or anything else that would be a symmetric perturbation (around $x=0$) if you will. I'm able so solve this, but currently I'm cheating. I set $(x_0,y_0,z_0)=(0,v,0)$ (which is always good for any $v$ since the time derivative at the bottom of the swing will be zero for the velocity). I then look at $x_{max}$ and the corresponding $z$, but I would like it to be a lot more clean.
Thanks!