Need some help with nonlinear integration

mattm
Messages
2
Reaction score
0
Hello

I study animation, and I wanted to make a script where I can automate pendulums in my scene with some kind of realistic physics, rather than animate them manually.

So 'right' I think, 'I need to go study some physics and maths' - but it wasnt as easy as I hoped, I've hit a wall, and it is the nonlinear integration of the second order D.E:

y" = -(g/L)sin(y)

So from my limited understanding, this equation is non-linear due to the absence of y', and because y is a function of sin.

Its seems the only hints I've been able to get is that integrating it is not a particually easy thing to do, with references only giving me parameters to enter into mathematics software for computation.The problem is, I essentially need to write my own software(script), and without understanding what is going on, I cant.

If I could get some better idea of what is involved, then I can decide if its going to be worth my while spending more time trying to do this now, or if I need a diploma in advanced mathematics first :)

thanks
 
Physics news on Phys.org
Non linear problems are best dealt with numerically. If you must solve the nonlinear equation look into a Runga Kutta method. If you keep the oscillations of your pendulum small (< .2 rad or ~10deg) you can use the usual approach and let sin \Theta = \Theta then the problem is linear and easily solved.
 
Thankyou Integral, I will look into the Runga-Kutta method.

I would like to be able to calculate large angle pendulums, upto 180 degrees, so unfortunatly(for me) I cannot linearise the equation.
 
You should, however, integrate once:
Multiply your equation with y':
y&#039;&#039;y&#039;=-\frac{g}{L}\sin(y)y&#039;
Integrated from t=0 to some arbitrary t-value, you get:
\frac{y&#039;(t)^{2}}{2}=\frac{g}{L}(\cos(y(t))-cos(y(0))+\frac{y&#039;(0)^{2}}{2}
Or:
y&#039;(t)=\pm\sqrt{y&#039;(0)^{2}+2\frac{g}{L}(\cos(y(t))-cos(y(0))
 
Last edited:
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top