01 / 21

Intro to
Differential Equations

Learn what a differential equation is, how to classify them by order and linearity, and what it means for a function to be a solution.

Differential Equations

What Is a Differential Equation?

A differential equation (DE) is any equation that contains one or more derivatives of an unknown function. Instead of solving for a number, you solve for a function.

Differential equations describe rates of change: how populations grow, how heat spreads, how springs oscillate. They are the language of dynamics.

Why Do DEs Matter?

Physics
Newton's second law \(F = ma\) is really \(F = m\dfrac{d^2x}{dt^2}\): a second-order DE.
Biology
Population models like \(\dfrac{dP}{dt} = rP\) predict exponential growth or decay.
Engineering
Circuit analysis uses \(L\dfrac{di}{dt} + Ri = V(t)\) to model current flow.

ODE vs PDE

Ordinary DE (ODE)
Contains derivatives with respect to one independent variable.

\(\dfrac{dy}{dx} + y = e^x\)
Partial DE (PDE)
Contains partial derivatives with respect to two or more independent variables.

\(\dfrac{\partial u}{\partial t} = k\dfrac{\partial^2 u}{\partial x^2}\)

The Order of a DE

The order of a differential equation is the order of the highest derivative that appears in the equation.

1
First order: \(\dfrac{dy}{dx} = 2y\) : highest derivative is \(\dfrac{dy}{dx}\).
2
Second order: \(\dfrac{d^2y}{dx^2} + 3\dfrac{dy}{dx} = 0\) : highest is \(\dfrac{d^2y}{dx^2}\).
3
Third order: \(y''' + y'' - 4y' = x\) : highest is \(y'''\).

Linear vs Nonlinear

A DE is linear if the unknown function \(y\) and all its derivatives appear to the first power and are not multiplied together. The coefficients may depend on \(x\).

Linear
\(y'' + 3y' + 2y = \sin x\)
\(x^2 y' + y = e^x\)
Nonlinear
\(y\,y' = x\) (product of \(y\) and \(y'\))
\((y')^2 + y = 1\) (squared derivative)

Visualizing: Slope Fields

A slope field plots tiny line segments whose slopes equal \(\dfrac{dy}{dx}\) at each point. Solution curves follow the flow of these segments.

x y
\(y = -\frac{x^2}{4} + 2\)
\(y = -\frac{x^2}{4}\)
Slope field for \(\dfrac{dy}{dx} = -\dfrac{x}{2}\)

What Is a Solution?

A solution to a DE is a function \(y = f(x)\) that, when substituted into the equation, makes it a true identity on some interval.

1
General solution: Contains an arbitrary constant (or constants). Example: \(y = Ce^{2x}\).
2
Particular solution: A specific member of the family obtained by applying an initial condition. Example: \(y(0) = 5 \Rightarrow C = 5\).
3
Singular solution: A solution that cannot be obtained from the general solution (rare, but possible for nonlinear DEs).

How to Verify a Solution

To check whether a proposed function is a solution, substitute it and its derivatives into the DE. If both sides match, it is a valid solution.

1
Compute all needed derivatives of the proposed solution.
2
Substitute the function and its derivatives into the DE.
3
Simplify both sides. If \(LHS = RHS\) on the interval, it is a solution.

Order vs Degree

Students often confuse order (which derivative) with degree (the power on that derivative). These are independent properties.

Equation Order Degree
\(\dfrac{dy}{dx} = x + 1\) 1 1
\(\left(\dfrac{dy}{dx}\right)^3 + y = 0\) 1 3
\(\dfrac{d^2y}{dx^2} + y = 0\) 2 1
\(\left(\dfrac{d^2y}{dx^2}\right)^2 = x\) 2 2

How to Classify a DE

1
Identify variables: What is the unknown function? What is the independent variable?
2
Find the highest derivative present. Its order is the order of the DE.
3
Check linearity: Does \(y\) (and every derivative of \(y\)) appear to the first power only, with no products like \(y \cdot y'\)?
4
ODE or PDE? One independent variable means ODE; two or more means PDE.
5
State the degree (if polynomial in derivatives): the power on the highest-order derivative.

Example 1: Classify

1
Variables: unknown \(y\), independent variable \(x\). One independent variable, so this is an ODE.
2
Highest derivative: \(\dfrac{d^2y}{dx^2}\) : order 2.
3
Linearity: \(y\), \(y'\), and \(y''\) all appear to the first power with constant coefficients. Linear.
4
Degree: The highest derivative \(y''\) is raised to the first power : degree 1.

Example 2: Nonlinear DE

1
Variables: unknown \(y\), independent \(x\). One variable : ODE.
2
Highest derivative: \(\dfrac{dy}{dx}\) : order 1.
3
Linearity: The term \(y \cdot y'\) is a product of \(y\) and its derivative. Nonlinear.

Example 3: Verify a Solution

1
Differentiate: \(y' = \dfrac{d}{dx}\[e^{-3x}\] = -3e^{-3x}\).
2
Substitute into the DE: \(y' + 3y = -3e^{-3x} + 3(e^{-3x}) = 0\). ✓
3
\(LHS = RHS = 0\) for all \(x\). So \(y = e^{-3x}\) is indeed a solution.

Common Mistakes

✕ Confusing Order and Degree
Order is about which derivative (first, second, ...). Degree is about the power on that derivative. They are independent.
✕ Missing Nonlinearity
Terms like \(y^2\), \(y \cdot y'\), or \(\sin(y)\) make a DE nonlinear. Only the unknown and its derivatives must be checked, not \(x\).
✕ Forgetting the Constant
The general solution of an \(n\)-th order ODE has \(n\) arbitrary constants. Dropping \(C\) gives only one particular solution.

Summary at a Glance

Property Definition Example
Differential Equation Equation with derivatives of an unknown function \(y' + y = 0\)
Order Highest derivative present \(y'' \Rightarrow\) order 2
Degree Power of the highest-order derivative \((y')^3 \Rightarrow\) degree 3
Linear \(y\) and derivatives: first power, no products \(y'' + 3y = x\)
Nonlinear \(y\) or derivatives raised to powers or multiplied \(y \cdot y' = 1\)
Solution Function that satisfies the DE identically \(y = Ce^{-x}\)

Question 1 of 5

What is the order of the differential equation \(\dfrac{d^3y}{dx^3} + 2\dfrac{dy}{dx} = x^2\)?

Question 2 of 5

Which of the following is a nonlinear ODE?

Question 3 of 5

Is \(y = 2e^{5x}\) a solution to \(y' - 5y = 0\)?

Question 4 of 5

The general solution of a second-order ODE typically contains how many arbitrary constants?

Question 5 of 5

What is the degree of the DE \(\left(\dfrac{d^2y}{dx^2}\right)^4 + y' = 3x\)?