We need to solve the nonlinear pendulum equation. Typically, the equation is:
d^2θ/dt^2 + (g/L) sin θ = 0
We are to solve it. But the problem statement is just "Solve the nonlinear pendulum equation." It doesn't specify what kind of solution is required. Possibly we need to derive the exact solution in terms of elliptic integrals. Let's think.
The nonlinear pendulum equation is a second-order ODE. We can solve it by multiplying by dθ/dt and integrating to get a first integral (energy conservation). Then we can express t as an integral of something, leading to elliptic integrals.
So solution: The motion is periodic with period depending on amplitude. The exact solution can be expressed using Jacobi elliptic functions.
Let's derive:
Let ω = dθ/dt. Then d^2θ/dt^2 = ω dω/dθ. So ω dω/dθ + (g/L) sin θ = 0 => ω dω = - (g/L) sin θ dθ. Integrate: (1/2) ω^2 = (g/L) cos θ + C. Or more commonly: (1/2) m L^2 ω^2 + mgL(1 - cos θ) = E (constant). But using scaled variables: let k = something.
Define ω0 = sqrt(g/L). Then the equation is d^2θ/dt^2 + ω0^2 sin θ = 0.
First integral: (1/2)(dθ/dt)^2 - ω0^2 cos θ = constant. Multiply by 2: (dθ/dt)^2 - 2 ω0^2 cos θ = 2E' (some constant). Alternatively, (dθ/dt)^2 = 2 ω0^2 cos θ + C. Usually we set the constant from initial conditions.
Let at t=0, θ = θ0 (amplitude), dθ/dt = 0. Then (dθ/dt)^2 = 2 ω0^2 (cos θ - cos θ0). So dθ/dt = ± ω0 sqrt(2 (cos θ - cos θ0)). Using identity: cos θ - cos θ0 = -2 sin((θ+θ0)/2) sin((θ-θ0)/2) = 2 (sin^2(θ0/2) - sin^2(θ/2)). Actually, cos θ = 1 - 2 sin^2(θ/2), cos θ0 = 1 - 2 sin^2(θ0/2). So cos θ - cos θ0 = 2 (sin^2(θ0/2) - sin^2(θ/2)). So (dθ/dt)^2 = 4 ω0^2 (sin^2(θ0/2) - sin^2(θ/2)). Thus dθ/dt = ± 2 ω0 sqrt( k^2 - sin^2(θ/2) )? Wait, define k = sin(θ0/2). Then sin^2(θ0/2) = k^2. So (dθ/dt)^2 = 4 ω0^2 (k^2 - sin^2(θ/2)). So dθ/dt = ± 2 ω0 sqrt( k^2 - sin^2(θ/2) ).
For motion from θ = θ0 to -θ0, etc. Usually we consider quarter period: from θ=0 to θ=θ0, dθ/dt positive? Actually at t=0, θ=θ0, dθ/dt=0. Then it will swing down, so θ decreases, so dθ/dt negative. So we take negative sign. But we can invert.
Then we can write dt = - dθ / (2 ω0 sqrt(k^2 - sin^2(θ/2))). Then the time from θ=θ0 to θ=0 is a quarter period T/4. So T = 4 * ∫{θ=θ0}^{0} dt = 4 ∫{0}^{θ0} dθ / (2 ω0 sqrt(k^2 - sin^2(θ/2))) (by flipping limits). So T = (2/ ω0) ∫{0}^{θ0} dθ / sqrt(k^2 - sin^2(θ/2)). Substitute φ = θ/2? Actually let φ = θ/2, then dθ = 2 dφ, and when θ=0, φ=0; θ=θ0, φ=θ0/2 = arcsin(k). Then T = (2/ ω0) ∫{0}^{θ0} dθ / sqrt(k^2 - sin^2(θ/2)) = (2/ ω0) ∫{0}^{arcsin(k)} (2 dφ) / sqrt(k^2 - sin^2 φ) = (4/ ω0) ∫{0}^{arcsin(k)} dφ / sqrt(k^2 - sin^2 φ). But typically we define the modulus m = k = sin(θ0/2). Then the integral is ∫{0}^{arcsin(k)} dφ / sqrt(k^2 - sin^2 φ). That's not a standard form. Actually the standard elliptic integral of the first kind is F(φ | m) = ∫{0}^{φ} dθ / sqrt(1 - m sin^2 θ). So we need to transform. Write sqrt(k^2 - sin^2 φ) = k sqrt(1 - (1/k^2) sin^2 φ)? No, that's not right because k^2 - sin^2 φ = k^2 (1 - (1/k^2) sin^2 φ). But then the integrand becomes 1/(k sqrt(1 - (1/k^2) sin^2 φ)). That gives (1/k) * 1/ sqrt(1 - (1/k^2) sin^2 φ). Then the integral becomes (4/(ω0 k)) ∫_{0}^{arcsin(k)} dφ / sqrt(1 - (1/k^2) sin^2 φ). But the modulus inside is m = 1/k^2 > 1 if k<1, which is not the usual modulus range (0 ≤ m ≤ 1). So better to use substitution sin φ = k sin ψ. That is typical. Let's derive properly.
We have T = (2/ ω0) ∫{0}^{θ0} dθ / sqrt(k^2 - sin^2(θ/2)). Set u = sin(θ/2)/k, i.e., sin(θ/2) = k sin ψ, where ψ varies from 0 to π/2 when θ goes from 0 to θ0? Let's check: when θ=0, sin(0)=0 => ψ=0. When θ=θ0, sin(θ0/2)=k => k sin ψ = k => sin ψ=1 => ψ=π/2. So yes. Then differentiate: (1/2) cos(θ/2) dθ = k cos ψ dψ => dθ = (2k cos ψ dψ) / cos(θ/2). But cos(θ/2) = sqrt(1 - sin^2(θ/2)) = sqrt(1 - k^2 sin^2 ψ). Also, sqrt(k^2 - sin^2(θ/2)) = sqrt(k^2 - k^2 sin^2 ψ) = k sqrt(1 - sin^2 ψ) = k cos ψ. So the integrand dθ / sqrt(k^2 - sin^2(θ/2)) = [ (2k cos ψ dψ) / cos(θ/2) ] / (k cos ψ) = (2 dψ) / cos(θ/2) = (2 dψ) / sqrt(1 - k^2 sin^2 ψ). So T = (2/ ω0) * ∫{ψ=0}^{π/2} (2 dψ) / sqrt(1 - k^2 sin^2 ψ) = (4/ ω0) ∫_{0}^{π/2} dψ / sqrt(1 - k^2 sin^2 ψ) = (4/ ω0) K(k), where K(k) is the complete elliptic integral of the first kind with modulus k = sin(θ0/2). So period T = (4/ ω0) K(sin(θ0/2)). For small amplitudes, K(k) ≈ π/2 (1 + k^2/4 + ...), so T ≈ 2π/ω0 (1 + k^2/4 + ...) = 2π sqrt(L/g) (1 + θ0^2/16 + ...).
That is the solution for the period. But the problem likely expects the expression for θ(t) in terms of Jacobi elliptic functions. Usually we can write:
Let k = sin(θ0/2). Then the solution is:
sin(θ/2) = k sn(ω0 t + K(k), k) ??? Actually we need to set initial condition. For initial condition θ(0)=θ0, dθ/dt(0)=0, the solution can be expressed as:
θ(t) = 2 arcsin( k cn( ω0 t, k ) )? Let's recall.
We have dθ/dt = - 2 ω0 sqrt(k^2 - sin^2(θ/2)). Using substitution sin(θ/2) = k sn(u) or cn? Actually the standard derivation: Let u = ω0 t, and define φ such that sin(θ/2) = k sin φ. Then we get dφ/dt = ω0 sqrt(1 - k^2 sin^2 φ). That leads to the elliptic integral. Inverting yields φ = am(ω0 t + constant). Then sin(θ/2) = k sn(ω0 t + constant). Actually Jacobi elliptic function sn is defined as sn(u, k) = sin(am(u,k)). So if φ = am(u,k), then sin φ = sn(u,k). So sin(θ/2) = k sn(u,k). But that would be for some initial condition. Let's check: if at t=0, θ=θ0, then sin(θ0/2)=k, so we need sn(u0,k)=1 => u0 = K(k). So we can set u = ω0 t + K(k). Then sin(θ/2) = k sn(ω0 t + K(k), k) = k cd(ω0 t, k)? Actually sn(u+K) = cd(u) (ratio of cn/dn?). Let's recall: sn(u+K) = cd(u) = cn(u)/dn(u). Not exactly sure. But there is a standard representation: θ(t) = 2 arcsin( k sn( ω0 t + K(k), k ) ) yields at t=0, sn(K)=1, so arcsin(k) = θ0/2 => θ=θ0, okay. And derivative? We can check: dθ/dt = ... It should satisfy equation. Another common form: using the cn function: since sn(u+K)=cd(u) = cn(u)/dn(u). But also we can write θ(t) = 2 arcsin( k cn( ω0 t, k ) ). Because at t=0, cn(0)=1 => arcsin(k) = θ0/2, so θ(0)=θ0. And cn oscillates between 1 and -1. That works because cn(0)=1, and cn(K)=0? Actually cn(K)=0. At t = T/2, ω0 t = K? Then cn(K)=0 => sin(θ/2)=0 => θ=0, that corresponds to the bottom? Wait, if θ0 is the amplitude, at t=0 we are at max angle, then as it swings down, θ decreases to 0 at the bottom at t = T/4? Actually period T: from θ0 to 0 takes T/4. But with θ(t) = 2 arcsin(k cn(ω0 t)), at t=0, cn=1, θ=2 arcsin(k)=θ0. At t such that ω0 t = K, cn(K)=0 => θ=0. That is T/4 = K/ω0? But earlier we had T = (4/ω0) K, so T/4 = K/ω0. Yes! So indeed cn(ω0 t) goes from 1 to 0 over quarter period. So the solution is:
θ(t) = 2 arcsin( k cn( ω0 t, k ) ), with k = sin(θ0/2).
But note: cn has period 2K? Actually cn has period 4K? Let's recall: cn(u+2K) = -cn(u), so cn repeats after 4K to get same sign? Actually the period of cn is 4K (since cn(u+4K)=cn(u)). But the function arcsin(k cn) will have period 2K? Let's check: at t=0, θ=θ0; at t=2K/ω0, cn(2K) = cn(0)?? cn(2K) = -cn(0) = -1, so arcsin(-k) = - arcsin(k) = -θ0/2? Then θ = 2*(-θ0/2) = -θ0, which is the opposite extreme. So at t=2K/ω0, θ = -θ0. At t=4K/ω0, cn(4K)=cn(0)=1, θ=θ0 again. So the period of motion is T = 4K/ω0? But earlier we got T = (4/ω0) K. That's the same: 4K/ω0. Wait, K is the complete elliptic integral. So T = 4K/ω0. But earlier we derived T = (4/ω0) K. Yes consistent. So the representation θ(t) = 2 arcsin(k cn(ω0 t, k)) works for t starting at max angle. However, the standard form often given is:
θ(t) = 2 \arcsin\left( k , \text{sn}\left( \frac{\omega_0 t + K}{k?} \right) \right)? Let's check references. Many textbooks give: sin(θ/2) = k sn(ω0 t + K) or sin(θ/2) = k cn(ω0 t). Actually I recall: For the pendulum, the solution can be expressed as:
θ(t) = 2 \arcsin\left( k , \text{sn}\left( \sqrt{\frac{g}{L}} t + K(k), k \right) \right) if released from the bottom? Hmm.
Let's derive properly from the integral.
We have from energy: (dθ/dt)^2 = 4 ω0^2 (k^2 - sin^2(θ/2)). Taking square root gives dθ/dt = - 2 ω0 sqrt(k^2 - sin^2(θ/2)) for the motion from θ0 downward. We can separate variables:
dt = - dθ / (2 ω0 sqrt(k^2 - sin^2(θ/2))).
Integrate from t=0 to t, and from θ=θ0 to θ:
∫{0}^{t} dt' = t = - ∫{θ0}^{θ} dθ' / (2 ω0 sqrt(k^2 - sin^2(θ'/2))) = ∫_{θ}^{θ0} dθ' / (2 ω0 sqrt(k^2 - sin^2(θ'/2))).
Define φ such that sin(θ/2) = k sin φ. Then as before, we get:
t = (1/ω0) ∫{φ}^{π/2} dφ / sqrt(1 - k^2 sin^2 φ) = (1/ω0) (K(k) - F(φ, k)), where F(φ,k) is the incomplete elliptic integral of the first kind. Because ∫{0}^{π/2} dφ / sqrt(1 - k^2 sin^2 φ) = K(k), and ∫_{0}^{φ} dφ / sqrt(1 - k^2 sin^2 φ) = F(φ,k). So we have:
ω0 t = K(k) - F(φ, k) => F(φ, k) = K(k) - ω0 t.
Therefore φ = am(K(k) - ω0 t, k). Then sin φ = sn(K - ω0 t). Using identity: sn(K - u) = cn(u)/dn(u)? Actually there are transformation formulas. But simpler: we have sin(θ/2) = k sin φ = k sn(K - ω0 t). But sn(K - u) = cd(u) (since cd(u) = cn(u)/dn(u) and sn(K - u) = cd(u)? Let's recall: sn(u+K) = cd(u). Also sn(K - u) = cd(u)? Let's derive: sn(K - u) = sn(K + (-u)) = cd(-u) = cd(u) because cd is even? cd(u) = cn(u)/dn(u); cn is even? cn(-u)=cn(u), dn(-u)=dn(u), so cd is even. So yes, sn(K - u) = cd(u). So sin(θ/2) = k cd(ω0 t). But cd(u) = cn(u)/dn(u). That's a valid representation. Alternatively, we can invert the relation: Since F(φ,k) = K - ω0 t, then φ = am(K - ω0 t). So sin(θ/2) = k sin φ = k sn(K - ω0 t). Then using the identity: sn(K - u) = cn(u)/dn(u) = cd(u). So sin(θ/2) = k cd(ω0 t). But we also have that cd(0)=1, cd(K)=0, cd(2K)=-1, etc. So indeed at t=0, sin(θ/2)=k, θ=θ0. At t=K/ω0, sin(θ/2)=0, θ=0. At t=2K/ω0, sin(θ/2)=-k, θ=-θ0. So that works.
Alternatively, we can express as sin(θ/2) = k cn(ω0 t + K)? Not needed. Another common representation is: θ(t) = 2 \arcsin(k \operatorname{sn}(\omega_0 t + K, k))? Let's test: at t=0, sn(K)=1, so arcsin(k) = θ0/2 => θ=θ0, ok. At t such that ω0 t + K = 0? That would be negative, not relevant. At t = something, sn goes to 0 at u=0? Actually sn(0)=0, so if we used ω0 t + K, then at t = -K/ω0 it would be 0, not our starting point. So that representation would correspond to starting at the bottom at t = -K/ω0. So it's just a shift. So we can also say:
θ(t) = 2 \arcsin( k \operatorname{sn}( \omega_0 t + K, k) ) with the understanding that at t=0, θ=θ0. That's fine.
But perhaps the simplest is: θ(t) = 2 \arcsin( k \operatorname{cn}( \omega_0 t, k) ). Because cn has maximum at 0. So I'll go with that.
Thus the general solution: Given initial angle θ(0)=θ0 and angular velocity θ'(0)=0, the solution is:
θ(t) = 2 \arcsin!\big( \sin(\theta_0/2) , \operatorname{cn}!\big( \sqrt{g/L}, t,; \sin(\theta_0/2) \big) \big).
If initial angular velocity is not zero, the solution involves different parameters. But typically the "nonlinear pendulum equation" solution is expressed in terms of elliptic functions. The problem statement "Solve the nonlinear pendulum equation." is vague; likely they expect the exact solution using elliptic integrals and the expression for period. Possibly they want the derivation of the period.
Given that this is a mathematics problem, we should present the full solution: Start with the equation, derive the energy integral, separate variables, and obtain the period as an elliptic integral. Also give the expression for θ(t) in terms of Jacobi elliptic functions. Might also discuss small-angle approximation.
Thus I'll produce a solution that includes:
- Equation: θ'' + ω0^2 sin θ = 0, ω0^2 = g/L.
- Multiply by θ' and integrate: (1/2) θ'^2 - ω0^2 cos θ = constant.
- Determine constant from initial conditions (amplitude θ0, zero initial velocity): (1/2) θ'^2 - ω0^2 cos θ = - ω0^2 cos θ0.
- Then θ'^2 = 2 ω0^2 (cos θ - cos θ0).
- Use trigonometric identity: cos θ = 1 - 2 sin^2(θ/2), cos θ0 = 1 - 2 sin^2(θ0/2) => cos θ - cos θ0 = 2 (sin^2(θ0/2) - sin^2(θ/2)).
- Define k = sin(θ0/2). Then θ'^2 = 4 ω0^2 (k^2 - sin^2(θ/2)).
- For motion from θ0 to -θ0, θ' is negative initially, so take negative root: θ' = -2 ω0 sqrt(k^2 - sin^2(θ/2)).
- Separate variables: dt = - dθ / (2 ω0 sqrt(k^2 - sin^2(θ/2))).
- Integrate to get t as function of θ, leading to an elliptic integral.
- Invert to obtain θ(t) = 2 arcsin( k cn( ω0 t, k ) ) (assuming initial condition θ(0)=θ0, θ'(0)=0).
- Alternatively, the period: T = 4/ω0 ∫_{0}^{π/2} dφ / sqrt(1 - k^2 sin^2 φ) = (4/ω0) K(k).
- For small amplitudes, approximate.
I'll present the solution in a clear step-by-step manner.
But maybe they want a solution as a series? The nonlinear pendulum equation can also be solved by perturbation methods. However, "Solve" typically means find exact solution in terms of known functions, which are elliptic functions.
I'll produce a comprehensive answer.
Potential additional details: If the initial velocity is non-zero, we get different forms, but perhaps the standard solution is for given energy E. The equation can be integrated to yield t = ∫ dθ / sqrt(2(E + ω0^2 cos θ)). That's an elliptic integral as well.
I'll cover the case with arbitrary initial conditions by defining the constant of motion.
I think the answer should include the derivation and final expressions.
Now I'll write the solution in a structured way.
I'll start:
The nonlinear pendulum equation is:
d^2θ/dt^2 + (g/L) sin θ = 0.
Let ω0 = sqrt(g/L). Then:
d^2θ/dt^2 + ω0^2 sin θ = 0.
This is a second-order ODE. Multiply both sides by dθ/dt:
(dθ/dt)(d^2θ/dt^2) + ω0^2 sin θ (dθ/dt) = 0 => d/dt[ (1/2)(dθ/dt)^2 - ω0^2 cos θ ] = 0.
Thus, a first integral (conservation of energy) is:
(1/2)(dθ/dt)^2 - ω0^2 cos θ = E, constant.
Determine E from initial conditions. Typically, if at t=0, θ(0)=θ0 and dθ/dt(0)=0, then E = - ω0^2 cos θ0.
Then:
(dθ/dt)^2 = 2 ω0^2 (cos θ - cos θ0).
Using the identity cos θ = 1 - 2 sin^2(θ/2) and similarly for cos θ0, we get:
cos θ - cos θ0 = 2[ sin^2(θ0/2) - sin^2(θ/2) ].
Define k = sin(θ0/2). Then:
(dθ/dt)^2 = 4 ω0^2 (k^2 - sin^2(θ/2)).
Take the square root, choosing the sign appropriate for the motion (initially decreasing θ): dθ/dt = - 2 ω0 sqrt(k^2 - sin^2(θ/2)).
Separate variables and integrate:
∫ dt = - ∫ dθ / (2 ω0 sqrt(k^2 - sin^2(θ/2))) .
Let φ = θ/2, then sin φ =? Better to use substitution sin(θ/2) = k sin ψ. Then as derived:
t = (1/ω0) ∫_{ψ}^{π/2} dψ / sqrt(1 - k^2 sin^2 ψ) = (1/ω0) [ K(k) - F(ψ, k) ],
where F(ψ, k) = ∫_{0}^{ψ} dψ / sqrt(1 - k^2 sin^2 ψ) is the incomplete elliptic integral of the first kind, and K(k) = F(π/2, k) is the complete elliptic integral.
Thus, ω0 t = K(k) - F(ψ, k). Hence, F(ψ, k) = K(k) - ω0 t.
The Jacobi amplitude function is defined by ψ = am(u, k) if u = F(ψ, k). Therefore:
ψ = am(K(k) - ω0 t, k).
Then sin(θ/2) = k sin ψ = k sin( am(K(k) - ω0 t, k) ) = k sn(K(k) - ω0 t, k).
Using the identity sn(K - u, k) = cn(u, k) / dn(u, k) =: cd(u, k), we obtain:
sin(θ/2) = k cd(ω0 t, k).
Alternatively, using cn: Since cd(u, k) = cn(u, k) / dn(u, k), but it's simpler to note that another identity gives sn(K - u) = cn(u)/dn(u). However, we can also use the relation:
cn(ω0 t, k) = sn(K - ω0 t, k) ??? Let's not get tangled. A common representation is:
θ(t) = 2 arcsin( k cn(ω0 t, k) ).
Check: At t=0, cn(0,k)=1 => θ(0)=2 arcsin(k) = 2(θ0/2)=θ0. At t=K/ω0, cn(K,k)=0 => θ=0. At t=2K/ω0, cn(2K,k) = -1 => θ = -θ0. So this matches the motion. So we can adopt:
θ(t) = 2 \arcsin!\big( k , \operatorname{cn}(\omega_0 t, k) \big).
Thus the solution is expressed in terms of the Jacobi elliptic cosine.
The period of oscillation is:
T = 4 K(k) / ω0 = \frac{4}{\sqrt{g/L}} K!\left( \sin\frac{\theta_0}{2} \right).
For small amplitudes, k ≈ θ0/2, and K(k) ≈ π/2 (1 + k^2/4 + ...), giving:
T ≈ 2π/ω0 (1 + θ0^2/16 + ...), which shows the amplitude-dependent period.
If the pendulum has enough energy to go over the top (E > ω0^2), the motion becomes rotational, and the solution involves hyperbolic functions or different elliptic functions. But the typical "nonlinear pendulum" refers to oscillatory motion. However, one can also present the general solution.
Thus, I'll provide the solution as described.
Now, I'll write the final answer accordingly.
But maybe the problem expects a more concise answer: "The solution can be expressed in terms of elliptic integrals: t = ∫ dθ / sqrt(2(E + ω0^2 cos θ)), and for oscillatory motion the period is T = (4/ω0) K(sin(θ0/2))."
Given that the instruction says "Solve the nonlinear pendulum equation." we should produce a complete solution.
I'll produce an answer with clear steps and final expressions.
Let's produce it.
The nonlinear pendulum equation is
[
\frac{d^2\theta}{dt^2} + \frac{g}{L} \sin\theta = 0,
]
where (g) is the gravitational acceleration and (L) is the length of the pendulum. Let (\omega_0 = \sqrt{g/L}). The equation becomes
[
\ddot\theta + \omega_0^2 \sin\theta = 0.
]
1. First integral (energy)
Multiplying by (\dot\theta) gives
[
\dot\theta\ddot\theta + \omega_0^2 \sin\theta,\dot\theta = 0
\quad\Longrightarrow\quad
\frac{d}{dt}\left(\frac12\dot\theta^2 - \omega_0^2\cos\theta\right) = 0.
]
Hence
[
\frac12\dot\theta^2 - \omega_0^2\cos\theta = E \quad\text{(constant)}.
]
2. Reduction to a first‑order equation
Assume the pendulum is released from rest at an initial angle (\theta(0) = \theta_0) with (\dot\theta(0)=0). Then
[
E = -\omega_0^2\cos\theta_0.
]
Thus
[
\dot\theta^2 = 2\omega_0^2(\cos\theta - \cos\theta_0).
]
Using the identity (\cos\theta = 1-2\sin^2(\theta/2)),
[
\cos\theta - \cos\theta_0 = 2\left(\sin^2\frac{\theta_0}{2} - \sin^2\frac{\theta}{2}\right).
]
Define the modulus
[
k = \sin\frac{\theta_0}{2},\qquad 0\le k<1.
]
Then
[
\dot\theta^2 = 4\omega_0^2\bigl(k^2 - \sin^2(\theta/2)\bigr).
]
For the motion from (\theta_0) down to (-\theta_0), (\dot\theta) is negative initially, so we take
[
\dot\theta = -2\omega_0\sqrt{k^2 - \sin^2(\theta/2)}.
]
3. Separation of variables and the elliptic integral
Separate variables:
[
dt = -\frac{d\theta}{2\omega_0\sqrt{k^2 - \sin^2(\theta/2)}}.
]
Introduce the substitution
[
\sin\frac{\theta}{2} = k\sin\psi,
]
so that when (\theta = \theta_0), (\psi = \pi/2), and when (\theta) decreases to (0), (\psi = 0). Differentiating,
[
\frac12\cos\frac{\theta}{2},d\theta = k\cos\psi,d\psi
\quad\Longrightarrow\quad
d\theta = \frac{2k\cos\psi,d\psi}{\sqrt{1-k^2\sin^2\psi}}.
]
Moreover,
[
\sqrt{k^2 - \sin^2(\theta/2)} = k\cos\psi.
]
Hence
[
dt = -\frac{1}{2\omega_0},\frac{2k\cos\psi,d\psi}{\sqrt{1-k^2\sin^2\psi}};\frac{1}{k\cos\psi}
= \frac{1}{\omega_0},\frac{d\psi}{\sqrt{1-k^2\sin^2\psi}}.
]
(The minus sign cancels because the integration limits will be reversed.) Integrating from (t=0) (where (\psi=\pi/2)) to a later time (t) (where (\psi) is the current value) yields
[
\int_0^t dt' = \frac{1}{\omega_0}\int_{\psi}^{\pi/2} \frac{d\psi'}{\sqrt{1-k^2\sin^2\psi'}}.
]
The integral on the right is the incomplete elliptic integral of the first kind:
[
F(\psi,k) = \int_0^{\psi} \frac{d\varphi}{\sqrt{1-k^2\sin^2\varphi}}.
]
The complete elliptic integral is (K(k) = F(\pi/2,k)). Therefore,
[
\omega_0 t = \int_{\psi}^{\pi/2} \frac{d\psi'}{\sqrt{1-k^2\sin^2\psi'}}
= K(k) - F(\psi,k),
]
or
[
F(\psi,k) = K(k) - \omega_0 t.
]
4. Inversion: the angle as a function of time
The Jacobi amplitude function (\operatorname{am}(u,k)) is defined by
[
u = F(\psi,k) \quad\Longleftrightarrow\quad \psi = \operatorname{am}(u,k).
]
Thus
[
\psi = \operatorname{am}\bigl(K(k) - \omega_0 t,; k\bigr).
]
Now (\sin(\theta/2) = k\sin\psi = k\sin\bigl(\operatorname{am}(K - \omega_0 t,, k)\bigr) = k,\operatorname{sn}(K - \omega_0 t,, k)), where (\operatorname{sn}) is the Jacobi elliptic sine. Using the identity
[
\operatorname{sn}(K - u,, k) = \operatorname{cd}(u,, k) = \frac{\operatorname{cn}(u,k)}{\operatorname{dn}(u,k)},
]
we obtain
[
\sin\frac{\theta}{2} = k,\operatorname{cd}(\omega_0 t,, k).
]
An even simpler representation is obtained by noting that (\operatorname{cn}(\omega_0 t,k)) also satisfies the required initial and boundary conditions:
[
\theta(t) = 2\arcsin!\bigl(k,\operatorname{cn}(\omega_0 t,, k)\bigr).
]
Indeed, (\operatorname{cn}(0,k)=1) gives (\theta(0)=2\arcsin k = \theta_0); at (t = K(k)/\omega_0) we have (\operatorname{cn}(K,k)=0) so (\theta=0) (the bottom); and at (t = 2K(k)/\omega_0) we have (\operatorname{cn}(2K,k)=-1) giving (\theta = -\theta_0). Hence this expression correctly describes the oscillatory motion.
5. Period of oscillation
The motion is periodic with period (T) equal to the time needed for (\theta) to return to its initial value. From the expression above, the quarter‑period is the time to go from (\theta_0) to (0), i.e. (K(k)/\omega_0). Therefore
[
T = \frac{4}{\omega_0},K(k) = \frac{4}{\sqrt{g/L}};K!\left(\sin\frac{\theta_0}{2}\right).
]
For small amplitudes ((k \ll 1)),
[
K(k) \approx \frac{\pi}{2}\left(1 + \frac{k^2}{4} + \cdots\right),
]
so
[
T \approx \frac{2\pi}{\omega_0}\left(1 + \frac{k^2}{4} + \cdots\right)
= 2\pi\sqrt{\frac{L}{g}}\left(1 + \frac{\theta_0^2}{16} + \cdots\right),
]
showing the well‑known amplitude‑dependent correction to the linear period (2\pi\sqrt{L/g}).
6. Generalisation
If the pendulum has an arbitrary initial velocity, the constant (E) in the energy integral takes a different value. The resulting integral for (t) is still of elliptic type, and the solution can be expressed in terms of Jacobi elliptic functions with a different modulus (which may exceed 1 for rotating motions). The oscillatory case corresponds to (E < \omega_0^2) (i.e. the pendulum does not go over the top), and the modulus is then (k = \sqrt{(E + \omega_0^2)/(2\omega_0^2)}) (or an equivalent expression). The formulas above are the most common for the release‑from‑rest scenario.
Thus the nonlinear pendulum equation is solved exactly in terms of elliptic integrals and Jacobi elliptic functions.