CAMT154 Mathematics II

Mathematics IIUnit 512 min read

Ordinary Differential Equations (ODEs): Types, Solutions & Applications

Unit 5 of Mathematics II covers first-order ODEs (separable, linear, exact), second-order linear ODEs with constant coefficients, and real-world modeling (population growth, cooling laws, RC circuits). Learn classification, solution methods, and applications to engineering, economics, and biology with visual step-by-st

TAKEAWAYS:

  • ODEs model real-world rates of change: From population growth (e.g., Nepal’s demographic projections) to cooling coffee (Newton’s Law of Cooling) and drug concentration in blood.
  • First-order ODEs solve separable, linear, and exact equations using substitution, integrating factors, or exactness conditions—each with a distinct method and verification step.
  • Second-order ODEs with constant coefficients require characteristic equations, roots (real/distinct, real/repeated, complex), and general solutions built from eigenfunctions.
  • Initial/boundary conditions turn general solutions into unique particular solutions (e.g., determining a specific loan repayment schedule or bridge deflection).
  • Applications span physics (spring-mass systems), biology (predator-prey models), and finance (interest compounding)—always tie theory to concrete examples.
  • Exam focus: Solve ODEs step-by-step, classify types, and interpret real-world scenarios (e.g., "A tank’s salt concentration over time" or "Pathao’s rider demand growth").

1. What Are Ordinary Differential Equations (ODEs)?

ODEs describe how a single variable (e.g., temperature , population , voltage ) changes with respect to one independent variable (usually time or position ). They are fundamental to modeling dynamic systems.

Classification by Order and Linearity

classDiagram
    class ODE {
        <<abstract>>
        +order: integer
        +linearity: boolean
    }
    class FirstOrder {
        +form: dy/dx = f(x,y)
        +methods: Separable, Linear, Exact
    }
    class SecondOrder {
        +form: d²y/dx² + p(x)dy/dx + q(x)y = g(x)
        +methods: Constant Coefficients, Reduction of Order
    }
    ODE <|-- FirstOrder
    ODE <|-- SecondOrder

Key Definitions:

  • Order: Highest derivative in the equation (e.g., → 2nd order).
  • Linearity: An ODE is linear if:
    • The dependent variable and all its derivatives appear linearly (no , , etc.).
    • Coefficients depend only on the independent variable (e.g., , ).
  • Homogeneous: (no forcing term). Non-homogeneous: .

2. First-Order ODEs: Solving Methods

First-order ODEs have the form: We solve them using three primary methods, each with a unique approach.

A. Separable Equations

Form: Method: Rewrite as , then integrate both sides.

Worked Example 1: Population Growth (Nepal’s Demographic Model) Suppose Nepal’s population grows at a rate proportional to its current size: Solution:

  1. Separate variables:
  2. Integrate:
  3. Exponentiate:
  4. Apply initial condition :
  5. Final solution: Visualization: Real-World Tie: This models Nepal’s population growth (2% annual growth rate). For years, million.

B. Linear First-Order ODEs

Form: Method: Use an integrating factor .

Worked Example 2: Newton’s Law of Cooling (Khalti’s Server Temperature) A Khalti server’s temperature cools in a room at . The cooling rate is proportional to the temperature difference: Solution:

  1. Rewrite in standard form:
  2. Identify , .
  3. Compute integrating factor:
  4. Multiply through by : Left side is .
  5. Integrate:
  6. Solve for :
  7. Apply :
  8. Final solution: Visualization: Real-World Tie: This models how a Daraz server’s CPU temperature drops after shutdown. At minutes, .

C. Exact Equations

Form: is exact if . Method: Find potential function such that and .

Worked Example 3: Work Done by a Variable Force (Pathao Rider’s Effort) A Pathao rider’s effort depends on speed and distance : Check exactness: Since , the equation is not exact. However, if we adjust to: Now , so it’s exact. Solution:

  1. Integrate w.r.t. :
  2. Differentiate w.r.t. and set equal to :
  3. Integrate :
  4. General solution: Visualization:

3. Second-Order Linear ODEs with Constant Coefficients

Form: Method:

  1. Solve the homogeneous equation () using the characteristic equation.
  2. Find a particular solution for (e.g., polynomial, exponential, trigonometric).
  3. Combine solutions.

A. Homogeneous Solutions

The characteristic equation is: Roots and Solutions:

Root Type Characteristic Roots General Solution
Real and distinct ()
Real and repeated ()
Complex ()

Worked Example 4: Spring-Mass System (NTC’s Power Grid Oscillation) A mass kg on a spring with N/m and damping N·s/m satisfies: Solution:

  1. Characteristic equation:
  2. Roots:
  3. General solution: Visualization:

B. Particular Solutions (Non-Homogeneous Case)

Use method of undetermined coefficients for of the form:

  • Polynomial:
  • Exponential:
  • Trigonometric: or

Worked Example 5: RC Circuit (Ncell’s Charging Battery) A battery charges a capacitor with voltage satisfying: Solution:

  1. Homogeneous solution: Characteristic equation:
  2. Particular solution (guess ):
  3. General solution: Visualization:

4. Applications of ODEs in Real World

ODEs model dynamic systems where change depends on current state. Here’s how Nepalese and global companies use them:

1234567891020406080100120140160180xyPopulation P(t) = 100e^(0.05t)Simple Harmonic Motion y = sin(t)
ODE solutions for population growth (exponential) and SHM (sinusoidal)
Company/Product ODE Application Equation Type
Nepal Rastra Bank (NRB) Loan repayment schedules (interest compounding) First-order linear ODE
Pathao Rider demand growth based on time of day Separable ODE
Daraz Inventory management (rate of sales vs. stock) Second-order linear ODE
NTC Power grid frequency regulation (oscillations) Damped harmonic motion ODE
Khalti Server cooling/heating cycles Newton’s Law of Cooling
Google Maps Traffic flow modeling (car density over time) Partial ODEs (beyond scope)
Nepal Electricity Authority Solar panel output vs. temperature Exact ODE (energy balance)

Worked Example 6: Loan Amortization (Bank Loan Interest) A bank offers a loan with monthly payments and interest rate (0.5% per month). The remaining balance satisfies: Solution:

  1. Rewrite:
  2. Integrating factor:
  3. Multiply and integrate:
  4. Apply and (loan paid off at time ):
  5. Solve for : For months (10 years), NPR/month.

5. Exam Tips for ODEs

  1. Classify the ODE first: Is it first-order separable, linear, or exact? Or second-order with constant coefficients?
  2. Check exactness carefully: must hold for exact equations.
  3. For second-order ODEs:
    • Always write the characteristic equation.
    • Handle repeated/complex roots correctly.
    • For non-homogeneous terms, guess a particular solution based on .
  4. Initial conditions are crucial: They determine constants . Never skip applying them!
  5. Real-world interpretation: Exams often ask to explain the physical meaning (e.g., "What does represent in the population model?").
  6. Common mistakes to avoid:
    • Forgetting the integrating factor in linear ODEs.
    • Misapplying initial conditions (e.g., using incorrectly).
    • Skipping the homogeneous solution for non-homogeneous ODEs.

6. Practice Problems (Exam-Style)

  1. Separable ODE: Solve with . Hint: Separate and integrate.

  2. Linear ODE: Solve with .

  3. Exact ODE: Verify and solve .

  4. Second-Order ODE: Solve with , .

  5. Application: A tank contains 1000 L of brine with 50 kg of salt. Pure water enters at 5 L/min, and the mixture drains at 5 L/min. Find the salt amount over time. Hint: Use a first-order linear ODE based on rate of change.


7. Summary Table of Solution Methods

ODE Type Form Method Example
First-order separable Separate variables, integrate Population growth
First-order linear Integrating factor Newton’s Law of Cooling
Exact Potential function Work done by variable force
Second-order homogeneous Characteristic equation Spring-mass system
Second-order non-homogeneous Homogeneous + particular solution RC circuit charging

8. Final Visual: ODE Solution Roadmap

Based on the TU BCA syllabus for Mathematics II (CAMT154), unit 5.

Discussion

Loading…