Search Knowledge

© 2026 LIBREUNI PROJECT

Mathematics / Differential Equations

Ordinary Differential Equations (ODEs)

Ordinary Differential Equations (ODEs)

Differential equations are the language of physics and engineering, describing systems where the rate of change of a variable depends on the variable itself or independent parameters. An Ordinary Differential Equation (ODE) involves functions of a single variable and their derivatives.

1. Classification of ODEs

An -th order ODE is an equation relating an independent variable , a dependent variable , and its derivatives up to .

Order and Linearity

  • Order: The highest derivative present in the equation.
  • Linearity: An ODE is linear if it can be written as: If , the equation is homogeneous; otherwise, it is non-homogeneous.

2. Existence and Uniqueness: Picard-Lindelöf

For a first-order initial value problem (IVP):

The Picard-Lindelöf Theorem states that if is continuous and Lipschitz continuous in on some domain containing , then there exists a unique solution in some interval around .

Failure of Lipschitz continuity often leads to non-uniqueness, such as in with , which has both and as solutions.

3. First-Order Techniques

Separable Equations

If , we separate and integrate:

Linear Equations (Integrating Factors)

For , we multiply by the integrating factor :

Exact Equations

An equation is exact if . This implies the existence of a potential function such that . The solution is . This is a direct application of Poincaré’s Lemma in the context of differential forms.

4. Second-Order Linear Equations

Consider .

Homogeneous Solutions

For the homogeneous case (), we assume , leading to the auxiliary equation:

  1. Distinct Real Roots ():
  2. Repeated Roots ():
  3. Complex Roots ():

Linear Independence and the Wronskian

Two solutions are linearly independent if their Wronskian is non-zero:

Non-homogeneous: Variation of Parameters

While Undetermined Coefficients works for simple , Variation of Parameters is universal. If , then where:

5. Power Series and the Method of Frobenius

When coefficients are functions (e.g., Bessel’s equation), we seek solutions as power series: For regular singular points, the Method of Frobenius assumes , where is determined by the indicial equation.

6. Modeling: The Harmonic Oscillator

The motion of a mass on a spring with damping and driving forces is modeled as:

  • Underdamped: , oscillations decay exponentially.
  • Critically Damped: , Returns to equilibrium fastest without oscillation.
  • Overdamped: , Slow return to equilibrium.

7. Numerical Solution: The Nonlinear Pendulum

The exact equation for a pendulum is non-linear: . We use SciPy to solve this numerically.

import numpy as np
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt

# Parameters: gravity g, length L
g, L = 9.81, 1.0

# System of first-order ODEs:
# Let y = [theta, omega] where omega = theta'
# y' = [omega, -g/L * sin(theta)]
def pendulum_dynamics(t, y):
    theta, omega = y
    return [omega, -(g/L) * np.sin(theta)]

# Initial conditions: 45 degrees, 0 velocity
y0 = [np.pi/4, 0.0]
t_span = (0, 10)
t_eval = np.linspace(0, 10, 500)

sol = solve_ivp(pendulum_dynamics, t_span, y0, t_eval=t_eval)

plt.plot(sol.t, sol.y[0], label='Angle (rad)')
plt.title("Nonlinear Pendulum Motion")
plt.xlabel("Time (s)")
plt.ylabel("Theta")
plt.grid(True)
plt.show()
Conceptual Check

Which condition is sufficient for the local uniqueness of a solution to y' = f(x, y)?

Conceptual Check

What does a vanishing Wronskian (W = 0) imply for two solutions y1, y2 of a second-order linear ODE?

Conceptual Check

In the context of second-order linear ODEs, when is the Method of Variation of Parameters preferred over Undetermined Coefficients?