10 Differential Equations

Basic Mathematics · Unit 10

Differential Equations

Exam-focused notes for Differential Equations (Basic Mathematics, MTH104): what the TU syllabus asks and how it has actually been tested, with 8 solved past questions from this unit.

Differential Equations in short

A differential equation connects a function with its derivatives. Such equations describe growth, cooling, motion and many other changes, so solving them is a core skill.

Differential Equations: notes

First order differential equations

A differential equation (DE) contains an unknown function and its derivatives. Its order is the highest derivative present. A first order equation has the form $\dfrac{dy}{dx} = F(x, y)$. A general solution has an arbitrary constant. A particular solution is found by fixing the constant.

For example $y' = 2x$ has the general solution $y = x^2 + C$.

Separable differential equations

An equation is separable if it can be written as $\dfrac{dy}{dx} = g(x)h(y)$. Move all $y$ terms to one side and all $x$ terms to the other, then integrate:

$$\int\frac{dy}{h(y)} = \int g(x),dx.$$

Example. Solve $x y' = y$ with $y(1) = 2$.

$$\begin{aligned} \frac{dy}{y} &= \frac{dx}{x} \ \ln|y| &= \ln|x| + c \ y &= Cx \end{aligned}$$

Using $y(1) = 2$ gives $C = 2$, so $y = 2x$.

Linear differential equations

A first order linear equation has the standard form

$$\frac{dy}{dx} + P(x),y = Q(x).$$

Multiply by the integrating factor $\mu(x) = e^{\int P(x),dx}$. The left side becomes $(\mu y)'$, so

$$\mu y = \int \mu,Q,dx.$$

Example. Solve $x\dfrac{dy}{dx} = x^2 + 3y$ for $x > 0$.

Write it as $y' - \dfrac{3}{x}y = x$. Here $P = -\dfrac{3}{x}$.

$$\begin{aligned} \mu &= e^{-3\ln x} = x^{-3} \ (x^{-3}y)' &= x^{-2} \ x^{-3}y &= -\frac{1}{x} + C \ y &= -x^2 + Cx^3 \end{aligned}$$

Example. Solve $x y' - y = x^2$. Divide by $x$: $y' - \dfrac{y}{x} = x$. The integrating factor is $\dfrac{1}{x}$.

$$\left(\frac{y}{x}\right)' = 1 \implies \frac{y}{x} = x + C \implies y = x^2 + Cx$$

What this unit covers

  • First order differential equations
  • Separable differential equations
  • Linear differential equations
  • Initial value problems
  • Second order linear differential equations
  • Homogeneous differential equations
  • Phase lines and qualitative analysis
  • Newton's method for root finding

Initial value problems

2081 · 10 marks

Question

What is initial value problem? Find the solution of the initial value problem $x\frac{dy}{dx} - y = x^2$, $y(2) = 5$. Evaluate: $\lim_{x \to \infty} \frac{3x^2 - 5x + 2}{5x^2 + 8x + 7}$. [1+4+5]

Show solved answer

Model Answer

1. Initial Value Problem (1 mark)

An Initial Value Problem (IVP) is a differential equation together with the value of the unknown function (and possibly its derivatives) specified at a single point, called the initial condition.

General form: $$\frac{dy}{dx} = f(x,y), \qquad y(x_0) = y_0$$

The initial condition pins down the arbitrary constant in the general solution, giving a unique particular solution.


2. Solution of the IVP (4 marks)

Given: $x\dfrac{dy}{dx} - y = x^2$, with $y(2) = 5$.

Step 1: Standard form. Divide by $x$: $$\frac{dy}{dx} - \frac{1}{x},y = x$$ This is linear with $P(x) = -\dfrac{1}{x}$, $Q(x) = x$.

Step 2: Integrating factor. $$\mu(x) = e^{\int -\frac{1}{x},dx} = e^{-\ln x} = \frac{1}{x}$$

Step 3: Multiply through by $\mu$. $$\frac{1}{x}\frac{dy}{dx} - \frac{y}{x^2} = 1 \quad\Longrightarrow\quad \frac{d}{dx}!\left(\frac{y}{x}\right) = 1$$

Step 4: Integrate. $$\frac{y}{x} = x + C \quad\Longrightarrow\quad y = x^2 + Cx$$

Step 5: Apply $y(2) = 5$. $$5 = (2)^2 + C(2) = 4 + 2C \implies 2C = 1 \implies C = \frac{1}{2}$$

Particular solution: $$\boxed{,y = x^2 + \frac{x}{2},}$$

Check: $y(2) = 4 + 1 = 5$ ✓


3. Evaluate the Limit (5 marks)

Given: $$\lim_{x\to\infty} \frac{3x^2 - 5x + 2}{5x^2 + 8x + 7}$$

Divide numerator and denominator by the highest power $x^2$: $$= \lim_{x\to\infty} \frac{3 - \dfrac{5}{x} + \dfrac{2}{x^2}}{5 + \dfrac{8}{x} + \dfrac{7}{x^2}}$$

As $x \to \infty$, all terms $\dfrac{5}{x}, \dfrac{2}{x^2}, \dfrac{8}{x}, \dfrac{7}{x^2} \to 0$: $$= \frac{3 - 0 + 0}{5 + 0 + 0} = \frac{3}{5}$$

$$\boxed{,\lim_{x\to\infty} \frac{3x^2 - 5x + 2}{5x^2 + 8x + 7} = \frac{3}{5},}$$

Open this answer on its own page →

2077 · 5 marks

Find the initial value problem in $\frac{dy}{dx} + 2y = 3$, $y(0) = 1$. [5]

  • Differential equation: $\dfrac{dy}{dx} + 2y = 3$ - Initial condition: $y(0) = 1$ All required data is present. Identify form: First-order linear ODE $$\frac{dy}{dx} + P(x)y = Q(x), \quad P(x) = 2, \quad Q(x) = 3$$ Integrating factor: $$\mu(x) = e^{\int 2,dx} = e^{2x}$$ Multiply through by
Open this answer on its own page →

Newton's method for root finding

2081 · 5 marks

Use Newton's method to find $\sqrt[4]{10}$ correct to four decimal places. [5]

  • Target value: $\sqrt[4]{10}$ (fourth root of 10) - Required accuracy: 4 decimal places Let $x = \sqrt[4]{10}$, so $x^4 = 10$, giving: $$f(x) = x^4 - 10 = 0$$ $$f'(x) = 4x^3$$ $$x{n+1} = xn - \frac{f(xn)}{f'(xn)} = xn - \frac{xn^4 - 10}{4xn^3} = \frac{3xn^4 + 10}{4xn^3}$$ Since $1^4 = 1$ and
Open this answer on its own page →

First order differential equations

2079 · 5 marks

What is a first order linear differential equation? Solve the initial value problem: $t\frac{dy}{dt} + 2y = t^3$, $t > 0$, $y(2) = 1$. [1+4]

Show solved answer

Model Answer: First Order Linear Differential Equations

Part 1: Definition [1 mark]

A first order linear differential equation is one that can be written in the standard form:

$$\frac{dy}{dt} + P(t)y = Q(t)$$

where $P(t)$ and $Q(t)$ are functions of the independent variable $t$ alone. It is called first order because it involves only the first derivative $\frac{dy}{dt}$, and linear because $y$ and $\frac{dy}{dt}$ appear only to the first power (no products, powers, or nonlinear functions of $y$).


Part 2: Solve the IVP [4 marks]

Given data:

  • ODE: $t\dfrac{dy}{dt} + 2y = t^3$, $t > 0$
  • Initial condition: $y(2) = 1$

Step 1: Standard form

Divide through by $t$ (valid since $t>0$):

$$\frac{dy}{dt} + \frac{2}{t}y = t^2$$

So $P(t) = \dfrac{2}{t}$, $Q(t) = t^2$.

Step 2: Integrating factor

$$\mu(t) = e^{\int \frac{2}{t},dt} = e^{2\ln t} = t^2$$

Step 3: Multiply through

$$t^2\frac{dy}{dt} + 2ty = t^4 \quad\Longrightarrow\quad \frac{d}{dt}\big(t^2 y\big) = t^4$$

Step 4: Integrate

$$t^2 y = \frac{t^5}{5} + C$$ $$y = \frac{t^3}{5} + \frac{C}{t^2}$$

Step 5: Apply $y(2) = 1$

$$1 = \frac{2^3}{5} + \frac{C}{2^2} = \frac{8}{5} + \frac{C}{4}$$ $$\frac{C}{4} = 1 - \frac{8}{5} = -\frac{3}{5} \quad\Longrightarrow\quad C = -\frac{12}{5}$$

Step 6: Particular solution

$$\boxed{y = \frac{t^3}{5} - \frac{12}{5t^2} = \frac{t^5 - 12}{5t^2}}$$

Check: At $t=2$: $y = \dfrac{32 - 12}{5\cdot 4} = \dfrac{20}{20} = 1.$ ✓

Open this answer on its own page →

Linear differential equations

2078 · 5 marks

Solve the following differential equation: $x\frac{dy}{dx} = x^2 + 3y$, $x > 0$. [5]

  • Differential equation: $x\dfrac{dy}{dx} = x^2 + 3y$ - Domain: $x 0$ Divide by $x$ (valid since $x 0$): $$\frac{dy}{dx} = x + \frac{3y}{x}$$ $$\frac{dy}{dx} - \frac{3}{x}y = x$$ This is linear: $\dfrac{dy}{dx} + P(x)y = Q(x)$ with $P(x) = -\dfrac{3}{x}$, $Q(x) = x$. $$\mu(x) = e^{\int -\frac{3}{...
Open this answer on its own page →

Separable differential equations

2081.2 · 5 marks

Solve: $xy' = y$, when $y(1) = 2$. [5]

  • Differential equation: $xy' = y$ - Initial condition: $y(1) = 2$ All required data is present. Step 1: Separate variables $$x\frac{dy}{dx} = y$$ $$\frac{dy}{y} = \frac{dx}{x}$$ Step 2: Integrate both sides $$\int \frac{dy}{y} = \int \frac{dx}{x}$$ $$\lny = \lnx + C$$ Step 3: General solution Ex...
Open this answer on its own page →

Second order linear differential equations

2081.2 · 5 marks

Solve: $y'' - y' - 6y = 0$. [5]

Given data: - Differential equation: $y'' - y' - 6y = 0$ - Constant coefficients: $1, -1, -6$ - Homogeneous, second-order, linear ODE. Characteristic equation: Assume $y = e^{rx}$, so $y' = re^{rx}$, $y'' = r^2 e^{rx}$. Substituting: $$r^2 e^{rx} - r e^{rx} - 6 e^{rx} = 0$$ Since $e^{rx} \neq 0$:...

Open this answer on its own page →

Phase lines and qualitative analysis

0 · 5 marks

Draw a phase line for the equation $\frac{dy}{dx} = (y + 1)(y - 2)$ and use it to sketch solutions to the equation. [5]

  • Autonomous ODE: $\dfrac{dy}{dx} = (y+1)(y-2)$ Set $\dfrac{dy}{dx} = 0$: $$(y+1)(y-2) = 0 \implies y = -1 \quad \text{or} \quad y = 2$$ These are the equilibrium solutions (constant solutions). Region Test Point $(y+1)$ $(y-2)$ $\frac{dy}{dx}$ Motion ---------------------------------------------...
Open this answer on its own page →