No history yet

Introduction to Differential Equations

Equations of Change

A differential equation is a special kind of recipe. Instead of listing ingredients for a cake, it describes how something changes over time or space. It's an equation that connects a function with its derivatives. Derivatives, as you might recall from calculus, are all about rates of change.

Think of it this way: a normal equation might tell you where a car is. A differential equation tells you its velocity and how that velocity is changing, which you can then use to figure out its path.

For example, here's a very simple differential equation:

dydx=y\frac{dy}{dx} = y

This equation says that the rate of change of some quantity yy with respect to a variable xx is equal to the value of yy itself. This relationship pops up everywhere, from modeling population growth to calculating compound interest. The bigger the population, the faster it grows.

Two Main Flavors

Differential equations come in two main categories, based on the number of variables the function depends on.

Ordinary Differential Equation

noun

An equation involving derivatives of a function that depends on only one independent variable.

These are the most common type you'll encounter at first. They're called "ordinary" because the function, like y(x)y(x), only has one input variable, xx. All the derivatives are taken with respect to that single variable. A classic example is the equation for a damped harmonic oscillator:

d2ydx2+2dydx+y=0\frac{d^2y}{dx^2} + 2\frac{dy}{dx} + y = 0

The other main type involves functions of multiple variables.

Partial Differential Equation

noun

An equation involving partial derivatives of a function that depends on two or more independent variables.

When a function depends on more than one variable, like u(x,t)u(x, t), we use partial derivatives. For instance, the heat equation describes how temperature uu changes over position xx and time tt.

ut=α2ux2\frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2}

This equation relates the rate of change of temperature with respect to time to how the temperature is curved with respect to position. PDEs are essential in fields like fluid dynamics, electromagnetism, and quantum mechanics.

Linear vs. Nonlinear

Another crucial distinction is whether an equation is linear or nonlinear. This property dramatically affects how difficult it is to solve.

A linear differential equation must satisfy three criteria: first, the dependent variable ( y ) and its derivatives should not be multiplied together; second, ( y ) and its derivatives must only be raised to the first power; and third, ( y ) and its derivatives should not be the argument of any function.

Basically, if the dependent variable (like yy) and its derivatives (dy/dx,d2y/dx2dy/dx, d^2y/dx^2, etc.) appear in a simple, additive way, the equation is linear. The coefficients in front of them can be functions of the independent variable (xx), but not of yy.

This is a linear ODE:

x2d2ydx2+xdydx+(x24)y=0x^2 \frac{d^2y}{dx^2} + x \frac{dy}{dx} + (x^2 - 4)y = 0

Notice how yy and its derivatives are all to the first power and aren't multiplied by each other. The coefficients, like x2x^2 and xx, only involve the independent variable.

Nonlinear equations are any that break these rules. They might involve terms like y2y^2, (dy/dx)2(dy/dx)^2, or functions like sin(y)\sin(y). This is a nonlinear ODE:

d2θdt2+gLsin(θ)=0\frac{d^2\theta}{dt^2} + \frac{g}{L} \sin(\theta) = 0

This is the equation for a real-world pendulum. The sin(θ)\sin(\theta) term makes it nonlinear. Nonlinear equations are much harder to solve, but they often provide a more accurate description of natural phenomena.

Finding a Specific Solution

Solving a differential equation usually gives you a general solution, which is actually a whole family of functions. For example, the solution to dy/dx=2xdy/dx = 2x is y=x2+Cy = x^2 + C, where CC is any constant. Each value of CC gives a different parabola.

To pin down a single, unique solution, we need more information. This extra information comes in the form of conditions.

There are two main types of conditions:

  1. Initial Conditions: These specify the value of the function and its derivatives all at the same point. For a problem involving time, this is like knowing the position and velocity of an object right at the start (t=0t=0). For the example above, an initial condition like y(1)=1y(1) = 1 would force C=0C=0, singling out the unique solution y=x2y = x^2.

  2. Boundary Conditions: These specify the value of the function or its derivatives at different points. Think of a guitar string held down at both ends. We know its position at the start of the string (x=0x=0) and at the end (x=Lx=L). These conditions at the boundaries help determine the specific ways the string can vibrate.

Initial and boundary conditions are the constraints that transform a general family of solutions into one specific, physically meaningful answer.

Let's check your understanding of these fundamental concepts.

Quiz Questions 1/5

What is the defining characteristic of a differential equation?

Quiz Questions 2/5

The equation d2ydx2+sin(y)=0\frac{d^2y}{dx^2} + \sin(y) = 0 describes the motion of a pendulum. What is the correct classification for this equation?

Understanding these definitions is the first step. Next, you'll learn how to actually start solving some of these powerful equations.