No history yet

ODE Fundamentals

Equations of Change

In calculus, you focused on finding the derivative of a given function. Differential equations flip that script. Here, you're given an equation that connects a function to its derivatives, and your job is to find the function itself.

An ordinary differential equation, or ODE, is an equation involving an unknown function of a single independent variable and one or more of its derivatives. Think of it as a set of rules describing how something changes. For a computer engineer, this might describe the rate at which a GPU's temperature changes based on its current temperature and processing load, or how the voltage in a circuit decays over time.

The core idea is that ODEs model dynamic systems, where the state of the system is constantly evolving according to a specific rule.

The order of an ODE is determined by the highest derivative present in the equation. A first-order ODE contains only the first derivative, yy', while a second-order ODE involves the second derivative, yy'', and so on. We'll start with first-order equations, which can be written in their most general form like this:

dydx=f(x,y)\frac{dy}{dx} = f(x, y)

Linearity Matters

One of the most important ways to classify ODEs is by whether they are linear or nonlinear. This distinction is critical because linear equations are generally much easier to solve. A first-order ODE is if it can be written in a specific form where the dependent variable yy and its derivative yy' appear only to the first power. They can't be multiplied together, nor can they be inside another function like sin(y)\sin(y) or (y)2(y')^2.

The standard form for a first-order linear ODE is:

a1(x)dydx+a0(x)y=g(x)a_1(x)\frac{dy}{dx} + a_0(x)y = g(x)

If an equation can't be massaged into this form, it's nonlinear. For example, y=y2y' = y^2 is nonlinear because of the y2y^2 term. Similarly, y+sin(y)=xy' + \sin(y) = x is nonlinear because of the sin(y)\sin(y) term.

Finding a Specific Path

Solving a differential equation often yields a whole family of functions, not just one. For example, the ODE y=2xy' = 2x has solutions like y=x2+1y = x^2 + 1, y=x25y = x^2 - 5, and so on. The general solution is y=x2+Cy = x^2 + C, where CC is an arbitrary constant. Each value of CC represents a different curve in the solution family.

To pin down a single, unique solution, we need more information. This is where an initial condition comes in. It's a specific point (x0,y0)(x_0, y_0) that our solution curve must pass through. The combination of an ODE and an initial condition is called an Initial Value Problem (IVP).

An IVP asks the question: out of all possible solutions, which one starts at this specific spot?

Verification and Validity

How do you know if a function is actually a solution to an ODE? You check it. Substitute the function and its derivatives into the differential equation. If the equation holds true, you've found a solution.

Let's verify that y=ex2y = e^{-x^2} is a solution to the ODE y+2xy=0y' + 2xy = 0. First, we find the derivative of our proposed solution:

dydx=ddx(ex2)=2xex2\frac{dy}{dx} = \frac{d}{dx}(e^{-x^2}) = -2x e^{-x^2}

Now, substitute both yy and yy' back into the original ODE:

(2xex2)+2x(ex2)=0(-2x e^{-x^2}) + 2x(e^{-x^2}) = 0

The left side simplifies to 0, which equals the right side. The equation holds, so y=ex2y = e^{-x^2} is indeed a solution.

Finally, a solution is not necessarily valid for all possible values of the independent variable. The is the largest open interval on which the solution is defined and satisfies the ODE. For our solution y=ex2y = e^{-x^2}, the function is defined for all real numbers, so its interval of validity is (,)(-\infty, \infty). However, for a solution like y=1/xy = 1/x, the interval of validity could be (,0)(-\infty, 0) or (0,)(0, \infty), but not both, because the function is undefined at x=0x=0.

Understanding these fundamental concepts—order, linearity, initial conditions, and validity—is the first step before diving into the methods for actually finding these solutions.

Quiz Questions 1/6

What is the primary objective when solving a differential equation?

Quiz Questions 2/6

What is the order of the differential equation y+2(y)45y=cos(x)y''' + 2(y')^4 - 5y = \cos(x)?