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 <|-- SecondOrderKey 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:
- Separate variables:
- Integrate:
- Exponentiate:
- Apply initial condition :
- 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:
- Rewrite in standard form:
- Identify , .
- Compute integrating factor:
- Multiply through by : Left side is .
- Integrate:
- Solve for :
- Apply :
- 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:
- Integrate w.r.t. :
- Differentiate w.r.t. and set equal to :
- Integrate :
- General solution: Visualization:
3. Second-Order Linear ODEs with Constant Coefficients
Form: Method:
- Solve the homogeneous equation () using the characteristic equation.
- Find a particular solution for (e.g., polynomial, exponential, trigonometric).
- 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:
- Characteristic equation:
- Roots:
- 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:
- Homogeneous solution: Characteristic equation:
- Particular solution (guess ):
- 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:
| 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:
- Rewrite:
- Integrating factor:
- Multiply and integrate:
- Apply and (loan paid off at time ):
- Solve for : For months (10 years), NPR/month.
5. Exam Tips for ODEs
- Classify the ODE first: Is it first-order separable, linear, or exact? Or second-order with constant coefficients?
- Check exactness carefully: must hold for exact equations.
- For second-order ODEs:
- Always write the characteristic equation.
- Handle repeated/complex roots correctly.
- For non-homogeneous terms, guess a particular solution based on .
- Initial conditions are crucial: They determine constants . Never skip applying them!
- Real-world interpretation: Exams often ask to explain the physical meaning (e.g., "What does represent in the population model?").
- 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)
Separable ODE: Solve with . Hint: Separate and integrate.
Linear ODE: Solve with .
Exact ODE: Verify and solve .
Second-Order ODE: Solve with , .
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…