Skip to content
Published on

Engineering Math Series 2: Concepts of First-Order ODEs

Authors

Engineering Math Series 2: Concepts of First-Order ODEs

The first-order differential equation is the starting point of engineering mathematics. Although the name may seem unfamiliar, it becomes much more approachable if you think of it as "a problem of recovering the movement of a quantity when you know the rate of change of that quantity."

The Core Question

In most real-world systems, the process of change is more important than static values. Rather than the current temperature, current voltage, or current speed, it is often "how fast it changes" that determines the nature of the system. A differential equation is precisely this rule of change written as an equation.

A first-order differential equation means an equation where the highest-order derivative appears only once. It is generally written as

F(x,y,y)=0F(x, y, y') = 0

or more directly as

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

Here xx is the independent variable, yy is the unknown function, and yy' is its rate of change.

What Does It Mean to Find a Solution

Finding the solution of a first-order differential equation means finding a function y(x)y(x) that satisfies the equation.

For example, the function that satisfies

dydx=2x\frac{dy}{dx} = 2x

is

y=x2+Cy = x^2 + C

because differentiating it indeed gives 2x2x. In other words, the solution to a differential equation is usually not a single number but an entire function.

Why Does an Integration Constant Appear

Differentiation erases some information. Differentiating x2x^2 gives 2x2x, and differentiating x2+5x^2 + 5 also gives 2x2x. Therefore, when solving a differential equation in reverse, you must restore the lost information with a constant CC.

Because of this, the general solution usually has the form

y=some expression+Cy = \text{some expression} + C

And when initial conditions or boundary conditions are given, CC is then determined.

The Meaning of Initial Value Problems

In real-world problems, the current state is often given along with the equation. For example, if

dydx=2x,y(0)=3\frac{dy}{dx} = 2x, \quad y(0) = 3

then substituting y(0)=3y(0) = 3 into the general solution y=x2+Cy = x^2 + C gives C=3C = 3, and we obtain the particular solution

y=x2+3y = x^2 + 3

A problem where a differential equation and initial conditions are given together is called an initial value problem. In engineering, information such as the initial voltage when a circuit is turned on, or the position and velocity at system startup, plays this role.

Intuition Through Slope Fields

The equation

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

tells you the slope at each point on the coordinate plane. If you draw this information as arrows or small line segments, it becomes a slope field, and the solution is a curve that follows this slope field.

For example, in

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

the slope is steeper where yy is large, and nearly flat near y=0y=0. So the solution takes the form of an exponential function.

This intuition is very important even for problems where it is difficult to find the exact solution later. Even if you cannot solve it completely by hand, you should be able to read whether the solution is increasing or decreasing, or toward which value it is being pulled.

Representative Example

Consider the following problem.

dydt=0.5y,y(0)=10\frac{dy}{dt} = -0.5y, \quad y(0) = 10

This equation represents a phenomenon where the quantity decreases at half its current rate. The general solution is

y(t)=Ce0.5ty(t) = Ce^{-0.5t}

Substituting the initial condition gives

10=Ce0=C10 = Ce^0 = C

so

y(t)=10e0.5ty(t) = 10e^{-0.5t}

This solution shows a decay phenomenon where the value approaches 0 as time passes.

Engineering Applications

Cooling Problems

The process of an object's temperature approaching the ambient temperature is often modeled as

dTdt=k(TTs)\frac{dT}{dt} = -k(T - T_s)

This means that the greater the difference between the current temperature and the ambient temperature, the faster it cools.

Simple RC Circuits

The voltage change across a capacitor also begins as a first-order differential equation. This is the most typical first example seen before moving to second and third-order systems in circuit analysis.

Service Traffic Decay Model

From a developer's perspective, traffic decreasing after cache TTL, queue lengths gradually stabilizing, and simple feedback systems can all be viewed with a similar structure.

Common Mistakes

Not distinguishing between the equation and the solution

A differential equation is a rule that a function must satisfy, and the solution is a function that satisfies that rule. They are not the same thing.

Applying initial conditions too late

Forgetting the flow of first finding the general solution and then applying initial conditions to get the particular solution often leads to tangled calculations.

Confusing the rate of change with the function value

yy and yy' are completely different pieces of information. A large value does not necessarily mean a large rate of change, and conversely, a small value can still have a large rate of change.

One-Line Summary

A first-order differential equation is a problem of recovering "the movement of a function over time" from "a rule about rates of change."

Next Post Preview

In the next post, we will go through the three main methods for actually solving first-order differential equations: separation of variables, integrating factor, and exact equations.

References

  • Erwin Kreyszig, Advanced Engineering Mathematics, 10th Edition
  • Dennis G. Zill, A First Course in Differential Equations
  • Paul Dawkins, Differential Equations Notes