Basics of Differential Equations

Definition of a Linear Differential Equation
A differential equation is an equation relating a function and its derivatives. The goal is to solve for this unknown function!
The order of a differential equation is the highest derivative it contains.
Examples
- y′=3y is a first order differential equation
- y′′+5y′−3y=0 is a second order differential equation
These are also examples of linear differential equations, since y (and its derivatives) are only ever multiplied by constants.
Note: Differential equations can be non-linear, for example:
(y′′)2−ln(y′)=3y
We will only be focusing on linear differential equations.

Simplest Differential Equation: y′=ay
The simplest differential equation (DE) is:
y′=ay
You should memorize the solution to this equation:
y′=ay⟹y(x)=Ceax
where C is an arbitrary constant (it can be any number).
Check
To verify the solution, we plug it into the DE and check that LHS=RHS.
y=Ceax⟹LHS of DE= y′a(Ceax)RHS of DE= aya(Ceax)
Since LHS=RHS, we've shown that our solution does indeed satisfy y′=ay.
Examples
a) y′=−7y. What function satisfies this relationship?
y=Ce−7x
Check your answer by taking the derivative of your solution.
y=Ce−7x⟹y′=−7y(Ce−7x)=−7y
b) y′=53y. What is the solution?
y=Ce53x

Initial Value Problems
We saw that the solution to the differential equation y′=ay is y=Ceax.
If the problem provides initial conditions (an initial value for y), then we can find a specific value for C.
A differential equation with an initial condition is called an initial value problem.
Example
Find the function y such that y′=5y and y(0)=4.
Start by writing the general solution to this DE:
y=Ce5x
Since we want y(0)=4, we know that y=4 when x=0.
Plug these into our solution, and solve for C:
444⟹4=Ce5(0)=Ce0=C(1)=C
Therefore, the solution is y=4e5x

Example: Solving an Initial Value Problem
Find the function such that y′=−6y with y(0)=ln(2).
y′=−6yhas solutiony=Ce−6x
We want y=ln(2) when x=0. Plugging these values into our solution, we solve for C:
ln(2)ln(2)⟹ln(2)=Ce−6(0)=Ce0=C
So the solution is therefore: y=ln(2)e−6x
Practice: Initial Value Problems
Find the function that satisfies the differential equation y′=21y with initial condition y(2)=1.