Basic MathematicsUnit 710 min read

Differential Equations: Types, Solutions & Applications

Unit 7 of Basic Mathematics covers first-order and second-order differential equations, their classifications, methods of solving (separation of variables, integrating factors, homogeneous equations), and real-world applications in finance, physics, and population modeling.

TAKEAWAYS:

  • Differential equations model real-world rates of change (e.g., population growth, loan interest, cooling objects).
  • First-order equations are solved by separation of variables, integrating factors, or substitution; second-order equations require characteristic equations or reduction of order.
  • Homogeneous equations use substitution , while linear equations use integrating factors .
  • Exact equations require , solved by integrating and .
  • Applications include compound interest (exponential growth), cooling laws (Newton’s law), and spring-mass systems (harmonic motion).
  • Numerical methods (Euler’s method) approximate solutions when analytical methods fail.

1. Introduction to Differential Equations

A differential equation (DE) is an equation involving an unknown function and its derivatives. It describes how a quantity changes with respect to another (e.g., time, distance).

Types of Differential Equations

Type Form Example Solution Method
Ordinary (ODE) Involves derivatives of one variable Separation of variables, integrating factors
Partial (PDE) Involves partial derivatives Fourier series, separation of variables
First-order Highest derivative is Separation, integrating factors
Second-order Highest derivative is Characteristic equation, reduction of order
Linear Depends linearly on and its derivatives Integrating factor
Nonlinear Depends nonlinearly (e.g., ) Substitution, numerical methods
Homogeneous Substitution
Exact Integrate w.r.t. and w.r.t.

Worked Example 1: Separation of Variables

Problem: Solve with . Solution:

  1. Separate variables: .
  2. Integrate both sides:
  3. Exponentiate: .
  4. Apply initial condition : Final Solution: .

Worked Example 2: Integrating Factor (Linear DE)

Problem: Solve . Solution:

  1. Identify , .
  2. Integrating factor .
  3. Multiply through: .
  4. Left side is , so integrate:
  5. Solve for :

2. Homogeneous Differential Equations

A first-order DE is homogeneous if can be written as . Solve by substitution , so .

Worked Example 3: Homogeneous Equation

Problem: Solve . Solution:

  1. Substitute , :
  2. Separate variables:
  3. Integrate:
  4. Substitute back :

3. Exact Differential Equations

An equation is exact if: Solution: Integrate w.r.t. and w.r.t. , then combine.

Worked Example 4: Exact Equation

Problem: Solve . Solution:

  1. Check exactness: Exact.
  2. Integrate w.r.t. :
  3. Differentiate w.r.t. and compare with :
  4. Integrate :
  5. General solution:

4. Second-Order Linear Differential Equations

Form: . Solve using characteristic equation .

Cases:

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

Worked Example 5: Characteristic Equation

Problem: Solve . Solution:

  1. Characteristic equation:
  2. General solution:
-1-0.50.511.52102030405060xyy = e^(2x) (Repeated Root λ=2)
Graph of solutions for repeated roots in characteristic equation

Worked Example 6: Damped Harmonic Motion (Real-World Application)

Problem: A spring-mass system has equation . Find displacement . Solution:

  1. Characteristic equation:
  2. General solution: Interpretation: The mass oscillates with exponentially decaying amplitude due to damping.

5. Applications of Differential Equations

2468101214161820100150200250yPopulation growth (dy/dt = 0.05y)
Exponential population growth model (y(t) = 100e^(0.05t))

In the Real World

  1. eSewa/Khalti (Loan Interest Calculation):

    • Idea: Exponential Growth (First-Order DE)
    • How: Compound interest is modeled by , where is principal, is interest rate.
    • Example: A loan of Rs. 100,000 at 10% annual interest grows as . After 5 years:
  2. Pathao (Traffic Flow Modeling):

    • Idea: First-Order Linear DE (Traffic Density)
    • How: Traffic flow relates to density via . Pathao’s algorithm optimizes routes by solving DEs for congestion prediction.
  3. NTC (Newton’s Law of Cooling):

    • Idea: First-Order Linear DE
    • How: Temperature of a cooling object satisfies , where is cooling constant.
    • Example: A cup of tea at 90°C in a 25°C room cools to 50°C in 10 minutes. Solve: Separate variables and integrate to find , then predict time to reach 40°C.
  4. NEPSE (Stock Price Trends):

    • Idea: Second-Order DE (Market Dynamics)
    • How: Stock prices may follow , where is external demand.
    • Example: If , solve the homogeneous part first, then find particular solution.

6. Numerical Methods: Euler’s Method

When analytical solutions are difficult, use Euler’s method to approximate solutions: where is step size.

Worked Example 7: Euler’s Method

Problem: Approximate for , , with . Solution:

  1. Iterate:
    • , .
    • .
    • .
  2. Approximate .
0.020.040.060.080.10.120.140.160.180.211.051.11.151.2y(x₀, y₀)(x₁, y₁)(x₂, y₂)
Euler's Method approximation steps for y' = x + y, h = 0.1

Exam Tip

  1. Classify the DE first: Identify order, linearity, homogeneity, or exactness before solving.
  2. Check initial conditions: Always apply them to find constants .
  3. Graph solutions: Sketch graphs for first-order DEs (e.g., exponential growth/decay) and second-order DEs (oscillatory vs. exponential).
  4. Common mistakes:
    • Forgetting to multiply by the integrating factor.
    • Misapplying substitution for homogeneous equations.
    • Incorrectly solving characteristic equations (factor quadratics properly).
  5. Application questions: Relate DEs to real-world scenarios (e.g., "A tank drains water..." or "Population grows..."). Always define variables clearly (e.g., population at time ).

Visual Summary of Solution Methods:

mindmap
  root((Differential Equations))
    First-Order
      Separation of Variables
      Integrating Factor
      Homogeneous Substitution
      Exact Equations
    Second-Order
      Characteristic Equation
      Repeated Roots
      Complex Roots
    Applications
      Finance (Interest)
      Physics (Spring-Mass)
      Biology (Population)
    Numerical Methods
      Euler's Method

Based on the TU BIM syllabus for Basic Mathematics (MTH204), unit 7.

Discussion

Loading…