1. Home
  2. Explore
  3. Mathematics
  4. Intro to Differential Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Intro to Differential Equations

Differential Equations: An Introduction

What is an Ordinary Differential Equation?

An ordinary differential equation (ODE) is an equation that relates a function to some of its derivatives. For example, an equation might involve yyy, y′y'y′, and y′′y''y′′ together. The function depends on one single independent variable — in contrast to partial differential equations, where the function depends on multiple independent variables (e.g., space and time).

Key Terminology

  • Solution: A function (e.g., y=cos⁡x+x2y = \cos x + x^2y=cosx+x2) that makes the differential equation true when substituted into it.

  • Order: The highest-level derivative that appears in the equation. If y′′y''y′′ is the highest derivative, the equation is second-order.

  • Autonomous vs. Non-autonomous:

    • Autonomous: The independent variable does not appear explicitly in the equation (only the dependent variable and its derivatives).

    • Non-autonomous: The independent variable appears somewhere in the equation (e.g., an xxx on the right-hand side).

  • Initial Value Problem (IVP): An ODE together with additional information about the value of the function (and possibly its derivatives) at a specific point in the domain. The number of conditions needed equals the order of the ODE.

  • Parameters: Constants in the ODE that may vary across different scientific contexts (e.g., birth rate kkk, half-life). They look like variables (letters such as kkk or nnn) but are fixed constants for a given situation.

  • Equilibrium Solution: A constant solution to the ODE — one that does not change over time. If y(t)y(t)y(t) is constant, then its derivative(s) are zero.

Definition: An ordinary differential equation relates a function of one independent variable to its derivatives. A solution is a function that satisfies the equation. The order is the highest derivative present. An autonomous ODE has no explicit dependence on the independent variable; a non-autonomous ODE does. An initial value problem pairs an ODE with enough initial conditions to determine a unique solution. Parameters are constants that adjust the equation to different settings. An equilibrium solution is a constant solution.


Examples of Differential Equations

Example 1: First-Order Non-Autonomous ODE

dydx=x+y\frac{dy}{dx} = x + ydxdy​=x+y
  • Order: First (only dy/dxdy/dxdy/dx appears).

  • Autonomous? No — the independent variable xxx appears explicitly on the right-hand side. This makes it non-autonomous.

  • Independent variable: xxx; dependent variable: yyy (a function of xxx).

Verifying a Solution

Show that y=−5ex−x−1y = -5e^x - x - 1y=−5ex−x−1 is a solution.

  1. Compute the left-hand side: dydx=−5ex−1\frac{dy}{dx} = -5e^x - 1dxdy​=−5ex−1.

  2. Compute the right-hand side: x+y=x+(−5ex−x−1)=−5ex−1x + y = x + (-5e^x - x - 1) = -5e^x - 1x+y=x+(−5ex−x−1)=−5ex−1.

  3. Both sides match, so the function satisfies the ODE.

General Solution

The family of solutions is y=Cex−x−1y = Ce^x - x - 1y=Cex−x−1, where CCC is an arbitrary constant. The particular solution above corresponds to C=−5C = -5C=−5.


Example 2: Second-Order Autonomous ODE

y′′=−4yy'' = -4yy′′=−4y
  • Order: Second (contains y′′y''y′′).

  • Autonomous? Yes — the independent variable (name not important, could be xxx or ttt) does not appear.

  • Independent variable: xxx; dependent variable: y(x)y(x)y(x).

Verifying a Solution

Show that y=cos⁡(2x)y = \cos(2x)y=cos(2x) is a solution.

  1. y′=−2sin⁡(2x)y' = -2 \sin(2x)y′=−2sin(2x).

  2. y′′=−4cos⁡(2x)y'' = -4 \cos(2x)y′′=−4cos(2x).

  3. But y=cos⁡(2x)y = \cos(2x)y=cos(2x), so y′′=−4yy'' = -4yy′′=−4y. The equation holds.

Similarly, y=sin⁡(2x)y = \sin(2x)y=sin(2x) and y=5cos⁡(2x)y = 5 \cos(2x)y=5cos(2x) also work.

General Solution

y=Acos⁡(2x)+Bsin⁡(2x)y = A \cos(2x) + B \sin(2x)y=Acos(2x)+Bsin(2x)

where AAA and BBB are arbitrary constants.

Equilibrium Solution

y=0y = 0y=0 is a constant solution: y′′=0y'' = 0y′′=0 and −4y=0-4y = 0−4y=0, so it satisfies the ODE. This is an equilibrium solution.


Example 3: Exponential Growth/Decay

dydt=ky\frac{dy}{dt} = k ydtdy​=ky
  • Order: First.

  • Autonomous? Yes — no ttt appears.

  • Independent variable: ttt; dependent variable: y(t)y(t)y(t).

  • Parameter: kkk (a constant that determines growth rate if positive, decay rate if negative).

Equilibrium Solution

Set dydt=0\frac{dy}{dt} = 0dtdy​=0 and solve ky=0k y = 0ky=0. The only constant solution is y=0y = 0y=0.

Interpretation: For bacterial growth, y=0y=0y=0 means no bacteria; the population stays at zero forever. For positive yyy, the population changes over time.


Example 4: Logistic Population Model

dPdt=k(1−PN)P\frac{dP}{dt} = k \left(1 - \frac{P}{N}\right) PdtdP​=k(1−NP​)P
  • Order: First.

  • Autonomous? Yes — independent variable ttt does not appear.

  • Independent variable: ttt; dependent variable: P(t)P(t)P(t).

  • Parameters: kkk and NNN (positive constants that adjust for different populations).

Finding Equilibrium Solutions

Write the right-hand side as a function of PPP: f(P)=k(1−PN)Pf(P) = k \left(1 - \frac{P}{N}\right) Pf(P)=k(1−NP​)P. For equilibrium, we need f(P)=0f(P) = 0f(P)=0.

  • P=0P = 0P=0 makes the factor PPP zero.

  • P=NP = NP=N makes 1−PN=01 - \frac{P}{N} = 01−NP​=0.

Thus the equilibrium solutions are P=0P = 0P=0 and P=NP = NP=N.

Interpretation: P=0P=0P=0 means no population; P=NP=NP=N is the carrying capacity — the population size that the environment can sustain indefinitely.


Example 5: Pendulum Equation

θ′′+gLsin⁡θ=0\theta'' + \frac{g}{L} \sin \theta = 0θ′′+Lg​sinθ=0
  • Order: Second (contains θ′′\theta''θ′′).

  • Autonomous? Yes — no ttt appears.

  • Independent variable: ttt (time); dependent variable: θ(t)\theta(t)θ(t) (angle from vertical).

  • Parameters: LLL (length of pendulum) and ggg (gravitational constant). Together they form one parameter gL\frac{g}{L}Lg​.

Equilibrium Solutions

For a constant angle, θ′′=0\theta'' = 0θ′′=0, so the equation reduces to sin⁡θ=0\sin \theta = 0sinθ=0. Solutions are θ=kπ\theta = k\piθ=kπ for integer kkk.

  • Even multiples of π\piπ (θ=0,±2π,…\theta = 0, \pm 2\pi, \dotsθ=0,±2π,…) correspond to the pendulum hanging straight down.

  • Odd multiples of π\piπ (θ=±π,±3π,…\theta = \pm\pi, \pm 3\pi, \dotsθ=±π,±3π,…) correspond to the pendulum pointing straight up.

Physical interpretation: The pendulum can remain stationary at the bottom (stable equilibrium) or perfectly balanced at the top (unstable equilibrium).


Example 6: Lotka-Volterra Predator-Prey Equations

This is a system of two coupled first-order ODEs:

dRdt=αR−βRF\frac{dR}{dt} = \alpha R - \beta R FdtdR​=αR−βRF
dFdt=−γF+δRF\frac{dF}{dt} = -\gamma F + \delta R FdtdF​=−γF+δRF
  • Order: Each equation is first-order; the system is called a pair of coupled first-order ODEs.

  • Autonomous? Yes — time ttt does not appear explicitly.

  • Independent variable: ttt; dependent variables: R(t)R(t)R(t) (prey, e.g., rabbits) and F(t)F(t)F(t) (predator, e.g., foxes). Solutions are two functions of time taken together.

  • Parameters: α,β,γ,δ\alpha, \beta, \gamma, \deltaα,β,γ,δ (positive constants representing growth, death, and interaction rates).

Equilibrium Solutions

Set dRdt=0\frac{dR}{dt}=0dtdR​=0 and dFdt=0\frac{dF}{dt}=0dtdF​=0, then factor:

0=R(α−βF)0 = R(\alpha - \beta F)0=R(α−βF)
0=F(−γ+δR)0 = F(-\gamma + \delta R)0=F(−γ+δR)

Case 1: R=0R=0R=0. Then the second equation becomes 0=−γF0 = -\gamma F0=−γF, so F=0F=0F=0. This gives the trivial equilibrium (R,F)=(0,0)(R,F) = (0,0)(R,F)=(0,0) — no rabbits, no foxes forever.

Case 2: α−βF=0\alpha - \beta F = 0α−βF=0 (i.e., F=α/βF = \alpha/\betaF=α/β). Substitute into the second equation: 0=F(−γ+δR)0 = F(-\gamma + \delta R)0=F(−γ+δR). Since F>0F > 0F>0, we need −γ+δR=0-\gamma + \delta R = 0−γ+δR=0, so R=γ/δR = \gamma/\deltaR=γ/δ. This gives the nontrivial equilibrium (R,F)=(γ/δ,α/β)(R,F) = (\gamma/\delta, \alpha/\beta)(R,F)=(γ/δ,α/β).

Interpretation: (0,0)(0,0)(0,0) is extinction. The other equilibrium represents a sustainable balance — the rabbit population stays at γ/δ\gamma/\deltaγ/δ and the fox population stays at α/β\alpha/\betaα/β, both constant over time. The predator and prey coexist in harmony.


Solving Initial Value Problems

An initial value problem (IVP) combines an ODE with initial conditions. To solve it, we use the general solution and then determine the constants using the given conditions.

IVP for Example 1

Consider dydx=x+y\frac{dy}{dx} = x + ydxdy​=x+y with y(0)=1y(0) = 1y(0)=1. General solution: y=Cex−x−1y = Ce^x - x - 1y=Cex−x−1.

Plug x=0x=0x=0, y=1y=1y=1:

1=Ce0−0−1⇒1=C−1⇒C=2.1 = C e^0 - 0 - 1 \quad\Rightarrow\quad 1 = C - 1 \quad\Rightarrow\quad C = 2.1=Ce0−0−1⇒1=C−1⇒C=2.

Thus the solution to the IVP is y=2ex−x−1y = 2e^x - x - 1y=2ex−x−1.

IVP for Example 2

Consider y′′=−4yy'' = -4yy′′=−4y with y(0)=0y(0) = 0y(0)=0, y′(0)=1y'(0) = 1y′(0)=1. General solution: y=Acos⁡(2x)+Bsin⁡(2x)y = A\cos(2x) + B\sin(2x)y=Acos(2x)+Bsin(2x).

  • y(0)=0y(0)=0y(0)=0: 0=Acos⁡0+Bsin⁡0=A0 = A\cos 0 + B\sin 0 = A0=Acos0+Bsin0=A. So A=0A=0A=0.

  • y′(x)=−2Asin⁡(2x)+2Bcos⁡(2x)y'(x) = -2A\sin(2x) + 2B\cos(2x)y′(x)=−2Asin(2x)+2Bcos(2x). Then y′(0)=1y'(0)=1y′(0)=1 gives 1=2Bcos⁡0=2B1 = 2B \cos 0 = 2B1=2Bcos0=2B. So B=12B = \frac12B=21​.

The solution is y=12sin⁡(2x)y = \frac12 \sin(2x)y=21​sin(2x).

Key idea: For a first-order ODE, one initial condition determines one constant. For a second-order ODE, two conditions determine two constants. The number of conditions always matches the order.


Summary of Classifications

When analyzing any ODE, identify the following:

  • Order (highest derivative)

  • Autonomous or non-autonomous (independent variable appears?)

  • Dependent and independent variables

  • Parameters (constants that vary by context)

  • Equilibrium solutions (set derivative(s) to zero, solve for constant functions)

  • General solution (family of solutions with arbitrary constants)

  • Particular solution (specific constants from initial or boundary conditions)

Not all ODEs can be solved explicitly, but these concepts provide the foundation for further analysis.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent