Calculus IIUnit 613 min read

Ordinary Differential Equations: Types, Solutions & Applications

Unit 6 of Calculus II covers first-order and second-order ODEs, power series solutions, Bessel’s equation, Legendre polynomials, and real-world modeling (e.g., population growth, electrical circuits, and financial interest). Master exact/approximate methods, existence/uniqueness theorems, and applications to engineerin

TAKEAWAYS:

  • First-order ODEs (separable, linear, exact) and second-order ODEs (homogeneous/nonhomogeneous) are solved using distinct methods, with uniqueness guaranteed by Picard’s theorem under Lipschitz conditions.
  • Power series solutions (Frobenius method) handle ODEs with variable coefficients, yielding recurrence relations for coefficients (e.g., Bessel’s equation for cylindrical systems).
  • Legendre polynomials (Rodrigues’ formula) model physical phenomena like electrostatic potentials and quantum mechanics.
  • Real-world applications include loan interest calculations (first-order linear ODEs), traffic flow modeling (PDEs derived from ODEs), and signal processing (Bessel functions in Fourier analysis).
  • Exam focus: Derive solutions step-by-step, classify ODE types, and connect theory to engineering problems (e.g., RC circuits, spring-mass systems).


1. Introduction to Ordinary Differential Equations (ODEs)

ODEs describe how a quantity changes with respect to a single independent variable (usually time or space). They are fundamental in modeling dynamic systems in engineering, physics, and economics.

1.1 Classification of ODEs

ODEs are classified by:

  • Order: Highest derivative present (e.g., is second-order).
  • Linearity: Linear ODEs have dependent variables and their derivatives to the first power (e.g., ). Nonlinear ODEs include terms like or .
  • Homogeneity: Homogeneous ODEs have ; nonhomogeneous have a non-zero forcing term.
```mermaid
classDiagram
    class ODE {
        <<abstract>>
        +order: int
        +linearity: boolean
        +homogeneity: boolean
    }
    class FirstOrder {
        +dy/dx = f(x,y)
    }
    class SecondOrder {
        +d²y/dx² = f(x,y,y')
    }
    class Linear {
        +dy/dx + p(x)y = q(x)
    }
    class Nonlinear {
        +dy/dx = y² + x
    }
    ODE <|-- FirstOrder
    ODE <|-- SecondOrder
    FirstOrder <|-- Linear
    FirstOrder <|-- Nonlinear
    SecondOrder <|-- Linear
    SecondOrder <|-- Nonlinear

1.2 Real-World Example: Loan Interest Calculation (First-Order Linear ODE)

Banks use ODEs to model loan repayment. The differential equation for a loan balance ( P(t) ) with interest rate ( r ) and fixed payment ( A ) is: [ \frac{dP}{dt} = -A + rP ] Solution: Separate variables and integrate: [ \frac{dP}{A - rP} = dt \implies -\frac{1}{r}\ln|A - rP| = t + C ] Solve for ( P(t) ): [ P(t) = \frac{A}{r} + Ce^{-rt} ] Initial condition: ( P(0) = P_0 ) (loan amount) gives ( C = P_0 - \frac{A}{r} ).

```figure
{"type":"graph","fns":[{"expr":"20000*exp(-0.05*x) + 20000","label":"P(t) = 20000e^(-0.05t) + 20000"}],"x":[0,50],"points":[{"x":0,"y":40000,"label":"P₀ = 40,000"},{"x":20,"y":30000,"label":"P(20) ≈ 30,000"}],"caption":"Loan balance P(t) over time (t in years)"}

2. First-Order ODEs: Methods and Examples

2.1 Separable Equations

Form: . Method: Integrate both sides: Example 1: Solve . Solution:

-2-1.5-1-0.50.511.520.511.522.533.54xydy/dx = x²Separation point
Separable ODE: dy/dx = x² → y = (x³)/3 + C

2.2 Linear First-Order ODEs

Form: . Method: Integrating factor . Example 2: Solve . Solution:

  1. Integrating factor: .
  2. Multiply through: .
  3. Left side is , so integrate:

2.3 Exact Equations

Form: , where . Method: Find potential function such that and . Example 3: Solve . Solution:

  1. Check exactness: .
  2. Integrate w.r.t. : .
  3. Differentiate w.r.t. : .
  4. General solution: .

3. Second-Order ODEs: Homogeneous and Nonhomogeneous Cases

3.1 Homogeneous Linear ODEs with Constant Coefficients

Form: . Method: Characteristic equation . Cases:

  1. Distinct real roots : Solution .
  2. Repeated root : Solution .
  3. Complex roots : Solution .

Example 4: Solve . Solution:

  1. Characteristic equation: .
  2. General solution: .

3.2 Nonhomogeneous ODEs: Method of Undetermined Coefficients

Form: . Method: Guess based on , then solve for coefficients. Example 5: Solve . Solution:

  1. Homogeneous solution: .
  2. Guess (but is already in , so multiply by ): .
  3. Compute derivatives, substitute into ODE, and solve for and : , .
  4. General solution: .

3.3 Real-World Example: Spring-Mass System (Second-Order ODE)

A mass on a spring with damping and forcing obeys: Example 6: Undamped free vibration (, ): Solution: , where .


4. Power Series Solutions: Frobenius Method

For ODEs with variable coefficients (e.g., Bessel’s equation), assume a solution of the form: Steps:

  1. Substitute and its derivatives into the ODE.
  2. Collect powers of and set coefficients to zero.
  3. Solve the resulting recurrence relation for .

4.1 Example: Bessel’s Equation of Order 0

Solution:

  1. Assume .
  2. Substitute and collect terms to find the indicial equation:
  3. Recurrence relation:
  4. Solutions: where are harmonic numbers.

4.2 Real-World Example: Heat Distribution in a Cylinder (Bessel Functions)

Bessel’s equation models temperature in a cylindrical rod: Separation of variables leads to Bessel’s equation for the radial part.


5. Legendre Polynomials and Rodrigues’ Formula

Legendre polynomials satisfy: Rodrigues’ Formula: Example 7: Compute . Solution:

5.1 Real-World Example: Quantum Mechanics (Legendre Polynomials)

Legendre polynomials appear in the solution to the Schrödinger equation for a particle in a spherical potential well.


6. Existence and Uniqueness Theorems

Picard’s Existence Theorem: For , if and are continuous in a region containing , then there exists a unique solution passing through .

Example 8: Check uniqueness for , . Solution:

  • is not Lipschitz continuous at .
  • Multiple solutions exist (e.g., and ).

7. Applications in Engineering

Application ODE Type Example
Electrical Circuits (RC/LR) First-order linear
Spring-Mass Systems Second-order linear
Population Growth First-order nonlinear
Heat Equation Partial (derived from ODE)
Bessel Functions in Cylinders Power series

## In the Real World

  1. eSewa/Khalti (Digital Payments):

    • Idea Used: First-order linear ODEs model transaction processing delays.
    • How: The rate of transactions in a queue follows , where is arrival rate and is service rate. Solving this gives the steady-state number of pending transactions.
  2. Pathao (Ride-Hailing):

    • Idea Used: Second-order ODEs optimize driver acceleration/deceleration.
    • How: The position of a Pathao driver’s vehicle satisfies , where is engine force and is damping. Solving this ensures smooth rides and fuel efficiency.
  3. NTC (Telecom Network Traffic):

    • Idea Used: Bessel functions model signal propagation in fiber optics.
    • How: The wave equation for light in optical fibers reduces to Bessel’s equation in cylindrical coordinates. Engineers use to design low-loss transmission lines.
  4. Nepal Rastra Bank (Loan Modeling):

    • Idea Used: First-order linear ODEs for loan amortization.
    • How: As shown in Example 1, banks use to compute monthly payments that clear the loan in years. This directly impacts interest rates advertised by banks like NMB or Global IME.
  5. YouTube (Video Buffering):

    • Idea Used: Power series solutions for adaptive bitrate streaming.
    • How: The buffer level in a user’s device follows a piecewise ODE. During playback, , where is the playback rate. YouTube’s algorithm solves this dynamically to minimize buffering interruptions.

## Exam Tip

  1. Classify ODEs Correctly:

    • Always state whether an ODE is linear/nonlinear, homogeneous/nonhomogeneous, and its order. Partial credit is lost if classification is skipped.
  2. Show All Steps for Power Series:

    • For Bessel’s equation or Legendre polynomials, write the recurrence relation explicitly. Examiners check if you:
      • Assume .
      • Substitute into the ODE correctly.
      • Solve the indicial equation for .
      • Derive the recurrence for .
  3. Real-World Connections:

    • Link solutions to engineering contexts. For example:
      • A second-order ODE solution could model a damped oscillator (e.g., a car suspension).
      • A first-order solution could represent drug concentration decay in the body.
  4. Graphs Are Mandatory:

    • For every solution (e.g., , ), sketch its graph. Label axes, equilibrium points, and asymptotes.
  5. Common Pitfalls:

    • Forcing Function Mistakes: In undetermined coefficients, never assume a particular solution that is already part of the homogeneous solution (e.g., guess if is in ).
    • Initial Conditions: Always apply initial conditions to find constants . Leaving them as earns zero marks.
  6. Legendre/Bessel Shortcuts:

    • Memorize the first few Legendre polynomials (, , ) and Bessel’s recurrence relation. Examiners may ask to verify these.

| Method                  | Applicable ODE Type          | Key Step                                  | Example Solution Form               |
|-------------------------|------------------------------|-------------------------------------------|--------------------------------------|
| Separation of Variables  | \( \frac{dy}{dx} = g(x)h(y) \) | Integrate \( \int \frac{1}{h(y)} dy = \int g(x) dx \) | \( y = f(x) + C \)                   |
| Integrating Factor       | Linear first-order           | Multiply by \( \mu(x) = e^{\int P(x) dx} \) | \( y = \frac{1}{\mu(x)} \left( \int \mu(x)Q(x) dx + C \right) \) |
| Exact Equations          | \( M dx + N dy = 0 \) exact   | Find \( \psi(x,y) \) s.t. \( \frac{\partial \psi}{\partial x} = M \) | \( \psi(x,y) = C \)                  |
| Characteristic Equation  | Linear with constant coeffs   | Solve \( ar^2 + br + c = 0 \)             | \( y = C_1e^{r_1x} + C_2e^{r_2x} \)  |
| Undetermined Coefficients| Nonhomogeneous linear        | Guess \( y_p \) based on \( g(x) \)        | \( y = y_h + y_p \)                  |
| Frobenius Method         | Variable-coefficient ODEs    | Assume \( y = \sum a_n x^{n+r} \)         | Recurrence relation for \( a_n \)    |
| Legendre Polynomials     | \( (1-x^2)y'' - 2xy' + n(n+1)y = 0 \) | Rodrigues’ formula                     | \( P_n(x) = \frac{1}{2^n n!} \frac{d^n}{dx^n} (x^2 - 1)^n \) |

Based on the PU BE Computer (PU) syllabus for Calculus II, unit 6.

Discussion

Loading…