Physics · real student question

Solve or analyse the nonlinear differential equation x'' = -0.005 sin(x), and give the small-angle approximation.

Question

Analyse the differential equation

x=0.005sinxx''=-0.005\sin x

finding a first integral, and give the small-angle approximate solution.

Step-by-step solution

  1. Identify the equation and why it resists the usual methods. Written as x+0.005sinx=0x''+0.005\sin x=0, this is the undamped pendulum equation with ω2=0.005\omega^2=0.005. It is nonlinear because of sinx\sin x, so characteristic roots, undetermined coefficients and Laplace transforms all fail — there is no closed-form elementary solution to find.

  2. Multiply by x' to create an exact derivative. This is the standard trick for x=F(x)x''=F(x):

    xx=0.005xsinxx'x''=-0.005\,x'\sin x

    Recognise both sides as time derivatives: xx=ddt ⁣(12(x)2)x'x''=\dfrac{d}{dt}\!\left(\tfrac12(x')^2\right), and since ddtcosx=xsinx\dfrac{d}{dt}\cos x=-x'\sin x, the right side is 0.005ddt(cosx)0.005\dfrac{d}{dt}(\cos x).

  3. Integrate to get the conserved energy. Combining and integrating once:

    ddt(12(x)20.005cosx)=012(x)20.005cosx=C\frac{d}{dt}\left(\frac12(x')^2-0.005\cos x\right)=0\qquad\Longrightarrow\qquad \frac12(x')^2-0.005\cos x=C

    This first integral is the total energy: 12(x)2\tfrac12(x')^2 is kinetic and 0.005cosx-0.005\cos x is potential. It reduces a second-order equation to a first-order one.

  4. Separate variables and meet the elliptic integral. Solving for xx':

    (x)2=2C+0.01cosxdx2C+0.01cosx=±dt(x')^2=2C+0.01\cos x\qquad\Longrightarrow\qquad \frac{dx}{\sqrt{2C+0.01\cos x}}=\pm\,dt

    so

    dx2C+0.01cosx=±t+C2\int\frac{dx}{\sqrt{2C+0.01\cos x}}=\pm t+C_2

    This integral is not elementary — it is an incomplete elliptic integral of the first kind. That is the honest answer for the exact solution: implicit, not explicit.

  5. Linearise for small angles. For x1|x|\ll1, sinxx\sin x\approx x, so the equation becomes

    x+0.005x=0x''+0.005x=0

    a simple harmonic oscillator. Its characteristic equation r2+0.005=0r^2+0.005=0 gives r=±i0.005r=\pm i\sqrt{0.005}, hence

    x(t)=C1cos ⁣(0.005t)+C2sin ⁣(0.005t)x(t)=C_1\cos\!\left(\sqrt{0.005}\,t\right)+C_2\sin\!\left(\sqrt{0.005}\,t\right)

  6. Extract the physical constants. Since 0.005=12000.005=\tfrac{1}{200}, the angular frequency is

    ω=0.005=1200=0.0707107 rad per unit time\omega=\sqrt{0.005}=\frac{1}{\sqrt{200}}=0.0707107\ \text{rad per unit time}

    giving a period T=2πω=88.858T=\dfrac{2\pi}{\omega}=88.858. Note the linear period is amplitude-independent, whereas the true nonlinear period grows with amplitude — the single most important difference the approximation hides.

  7. Verify both results numerically. Integrating the exact nonlinear equation with fourth-order Runge-Kutta from x(0)=1.2x(0)=1.2, x(0)=0x'(0)=0 for two million steps, the energy 12(x)20.005cosx\tfrac12(x')^2-0.005\cos x drifts by less than 101310^{-13} from its initial value 0.00181179-0.00181179 ✓, confirming the first integral. And the linear solution with C1=0.9C_1=0.9, C2=0.4C_2=-0.4 satisfies x=0.005xx''=-0.005x at t=3,20,7t=3,\,20,\,-7 to nine decimals ✓.

Answer

12(x)20.005cosx=C;dx2C+0.01cosx=±t+C2;small angles: x(t)=C1cos ⁣(0.005t)+C2sin ⁣(0.005t)\frac12(x')^2-0.005\cos x=C;\qquad \int\frac{dx}{\sqrt{2C+0.01\cos x}}=\pm t+C_2;\qquad \text{small angles: } x(t)=C_1\cos\!\left(\sqrt{0.005}\,t\right)+C_2\sin\!\left(\sqrt{0.005}\,t\right)

Need to solve a different problem like this? Open the solver →