Basic MathematicsUnit 79 min read
Differential Equations – Solving and Applications
Unit 7 of Basic Mathematics: introduces differential equations, methods of solving first‑order and second‑order ODEs, and real‑world applications such as population growth, RC circuits, and queue dynamics.
Key points
- A differential equation relates a function to its derivatives and models change.
- First‑order ODEs can be separable, linear, exact, homogeneous or Bernoulli.
- Second‑order linear ODEs with constant coefficients are solved via characteristic equations.
- Particular solutions are added to the complementary solution to satisfy non‑homogeneous equations.
- Real‑world systems (population, electronics, logistics) are modeled by simple ODEs.
Introduction
A differential equation (DE) is an equation that contains an unknown function and its derivatives.
The order of a DE is the highest derivative present.
A DE is linear if the unknown function and its derivatives appear to the first power and are not multiplied together.
A DE is homogeneous if it contains only terms involving the unknown function and its derivatives; otherwise it is non‑homogeneous.
The general solution of a DE is the sum of the complementary (homogeneous) solution and a particular solution.
Initial or boundary conditions are used to determine the constants that appear in the general solution.
First‑Order Differential Equations
1. Separable Equations
A DE of the form
is separable.
Procedure
- Rewrite as .
- Integrate both sides.
- Solve for .
Worked Example – Population Growth
The user base of a mobile app grows proportionally to its current size:
with day and .
Exponentiating and applying :
The graph of is an exponential curve.
2. Linear Equations
A DE of the form
is linear.
Integrating Factor
Multiplying the DE by gives
Integrate and solve for .
Mermaid Diagram – Solving a Linear DE
flowchart TD
A["Start: \(\frac{dy}{dx}+P(x)y=Q(x)\)"] --> B["Compute \(\mu(x)=e^{\int P(x)dx}\)"]
B --> C["Multiply DE by \(\mu(x)\)"]
C --> D["Recognize \(\frac{d}{dx}[\mu y]\)"]
D --> E["Integrate: \(\mu y=\int \mu Q dx + C\)"]
E --> F["Solve for \(y\)"]
F --> G["Apply initial condition"]
G --> H["Final solution"]Worked Example – RC Circuit
The voltage across a capacitor in an RC circuit satisfies
with , , , and .
Integrate:
Using : .
The charging curve is shown below.
Real‑world Picture
3. Exact Equations
A DE is exact if
Then there exists a potential function such that
Integrate with respect to and add an arbitrary function of , then differentiate with respect to to find that function.
4. Homogeneous and Bernoulli Equations
A homogeneous first‑order DE has the form
Substitute .
A Bernoulli equation
is linear in .
Second‑Order Linear Differential Equations
1. Homogeneous with Constant Coefficients
The general form
has characteristic equation
Solve for .
- Distinct real roots :
- Repeated real root :
- Complex conjugate roots :
Mermaid Diagram – Solving a Second‑Order Linear DE
flowchart TD
A["Start: \(ay''+by'+cy=0\)"] --> B["Form characteristic \(ar^2+br+c=0\)"]
B --> C["Solve for roots \(r_1,r_2\)"]
C --> D["Case analysis"]
D --> E1["Distinct real: \(y_c=C_1e^{r_1x}+C_2e^{r_2x}\)"]
D --> E2["Repeated: \(y_c=(C_1+C_2x)e^{rx}\)"]
D --> E3["Complex: \(y_c=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)\)"]
E1 & E2 & E3 --> F["Add particular solution if non‑homogeneous"]
F --> G["Apply initial/boundary conditions"]
G --> H["Final solution"]Worked Example – Damped Oscillator
Solve
Characteristic equation:
Roots: .
Complementary solution:
If the system is forced by a sinusoid , the non‑homogeneous equation
has a particular solution .
Substituting and solving for gives .
Thus
The graph of the damped oscillation is shown below.
2. Non‑Homogeneous Equations
Two common methods:
- Method of Undetermined Coefficients – guess a particular solution based on the form of .
- Variation of Parameters – use the complementary solution to construct a particular solution.
Worked Example – Logistic Growth
The logistic model for a population with carrying capacity and intrinsic growth rate is
This is a separable first‑order DE.
Partial fractions give
Integrate:
Solve for :
If users, day, and , then
The logistic curve is plotted below.
Comparison of First‑Order Methods
| Method | Condition | Typical Form | Key Idea |
|---|---|---|---|
| Separable | Separate variables | ||
| Linear | Integrating factor | ||
| Exact | Potential function | ||
| Homogeneous | Substitution | ||
| Bernoulli | Transform to linear in |
In the Real World
- Mobile Phone Battery Charging (Ncell, NTC)
The voltage across a capacitor in the charging circuit satisfies
The solution predicts how quickly the battery reaches full charge.
Daraz Order Queue (E‑commerce)
Let be the average number of orders in the queue.
where is the arrival rate and the service rate.
Solving gives , showing how the queue stabilises.NEPSE Stock Price Trend (Finance)
A simple model for the rate of change of a stock price is
with reflecting market sentiment.
The exponential solution captures rapid growth or decay observed in volatile markets.
Exam Tip
- Identify the type of DE first: separable, linear, exact, homogeneous, Bernoulli, or second‑order linear.
- Write down the integrating factor immediately for linear equations.
- For second‑order constant‑coefficient equations, always solve the characteristic equation and check the nature of its roots.
- Remember the structure of the general solution: complementary part + particular part.
- Use initial conditions to find constants; show each substitution step clearly.
- Show the graph of the solution if the question asks for a visual interpretation.
- Practice converting real‑world rates (e.g., growth, decay, charging) into differential equations before solving.
Good luck!
Based on the TU BITM syllabus for Basic Mathematics (MTH204), unit 7.
Discussion
Loading…