Deriving Differential Equations- A Step-by-Step Approach
What Does "Deriving" a Differential Equation Actually Mean?
Most students memorize how to solve differential equations. Far fewer understand how to derive them from scratch. That's a problem. Deriving a differential equation means starting with a real situation and ending up with a mathematical model that describes it.
You're not reversing a solution. You're building the equation from the ground up using rates of change, physical laws, or geometric relationships. This is what engineers, physicists, and applied mathematicians do every day.
This guide cuts through the confusion and gives you a repeatable process.
The Core Concept: What You're Actually Doing
When you derive a differential equation, you're expressing a relationship that involves derivatives. The process usually follows this pattern:
- Identify what's changing (your dependent variable)
- Identify what it's changing with respect to (your independent variable)
- Find the rate of change (the derivative)
- Relate the rate of change to the variables involved
That's it. The complexity comes from the specific situation, not from some mystical process.
Key Terminology You Need First
Before touching any examples, lock these terms down:
Order
The order of a differential equation is determined by the highest derivative present. If you see d²y/dx², you're dealing with a second-order differential equation.
Degree
The degree is the power of the highest order derivative, but only when the equation is polynomial in derivatives. If you have (d²y/dx²)³, the degree is 3.
Linear vs. Nonlinear
A linear differential equation has the dependent variable and all its derivatives to the first power only. If y² shows up, or if you multiply dy/dx by y, it's nonlinear. Most real-world phenomena produce nonlinear equations that are harder to solve.
Step-by-Step Method for Deriving Differential Equations
Follow this sequence every time. Deviating leads to mistakes.
Step 1: Read the Problem Carefully
You're looking for language that indicates change. Words like "rate," "decreases," "increases," "varies jointly," or "is proportional to" are signals. Underline them.
Step 2: Define Your Variables
Assign symbols. Let t = time. Let N = population. Let P = pressure. Pick letters that make sense and stick with them.
Step 3: Translate the Relationship
Convert the English description into math. "Rate of change of N is proportional to N" becomes dN/dt = kN. "The rate of decrease is inversely proportional to the square of the distance" becomes dh/dt = k/h².
Step 4: Check Your Work
Verify that your derived equation actually represents what the problem states. Does it have the right order? Are all variables accounted for?
Common Scenarios and How to Handle Them
Population Growth and Decay
Populations change based on current size. The classic model assumes the rate of change is proportional to the population itself. This gives you:
dP/dt = kP
If k is positive, you get exponential growth. If k is negative, you get decay. Both are simple to derive once you accept that "growth rate depends on current population" is the starting assumption.
Newton's Law of Cooling
The rate at which an object's temperature changes is proportional to the difference between its temperature and the surrounding temperature. In math:
dT/dt = -k(T - Tₛ)
The negative sign appears because heat flows from hot to cold. T is object temperature, Tₛ is surrounding temperature, k is a positive constant.
Falling Objects with Air Resistance
Here you have two forces competing: gravity pulling down and air resistance pushing up. The net force gives you acceleration, which is the second derivative of position. Deriving this requires:
- Setting up forces: mg - cv = net force
- Applying Newton's second law: F = ma
- Substituting: m(dv/dt) = mg - cv
The resulting equation is first-order in velocity but comes from a physical argument involving acceleration.
Mixing Problems
These appear constantly in chemical engineering and environmental modeling. You have a tank with some volume V of liquid. A solution flows in at rate r with concentration Cᵢₙ, and flows out at rate r.
The rate of change of amount of solute equals input rate minus output rate:
dA/dt = rCᵢₙ - r(A/V)
The outflow concentration is A/V because the volume is constant if flow rates are equal.
Comparison: Direct Derivation vs. From First Principles
| Aspect | Direct Translation Method | First Principles Method |
|---|---|---|
| Starting point | Word problem or relationship | Physical laws (Newton's laws, conservation) |
| Complexity | Usually simpler | Can be more involved |
| Common applications | Word problems, applied examples | Physics, engineering derivations |
| Variables | Often given or obvious | Must be defined carefully |
| Requires knowledge of | Interpreting "rate" language | Domain-specific principles |
Most textbook problems use the direct translation method. Research and real-world modeling usually require first principles.
Common Mistakes That Produce Wrong Equations
- Confusing the variable with its rate of change. y and dy/dt are not the same thing.
- Forgetting initial conditions. The derivation produces the equation; initial conditions are separate but necessary for solving.
- Misreading proportional language. "Proportional to" means multiplied by a constant k, not divided or squared unless stated.
- Dropping negative signs. Decreasing quantities need negative signs in their rates.
Practical Getting Started: Your Derivation Checklist
Before starting any derivation problem, run through this:
- What is changing? (dependent variable)
- What is it changing with respect to? (independent variable)
- What does the problem say about the rate of change?
- Are there any constraints or conditions mentioned?
- Write the relationship using derivative notation
- Simplify if possible
- Check: does the equation match the problem statement word-for-word?
When the Situation Gets More Complex
Real systems involve multiple rates interacting. A predator-prey model has two populations, each changing based on the other:
dx/dt = ax - bxy (prey)
dy/dt = -cy + dxy (predators)
The xy terms represent interaction between species. Deriving this requires identifying both populations, their natural rates of change, and the interaction effects.
Partial differential equations arise when you have functions of multiple variables and their partial derivatives. Heat flow, wave propagation, and fluid dynamics all lead to PDEs. The derivation process is similar but involves more variables.
Where to Go After This
Deriving differential equations is a skill. Like any skill, you get better by doing it repeatedly. Work through problems from physics, biology, economics, and engineering. Each field has its own vocabulary but the underlying process stays the same.
Once you can reliably derive equations from word problems, move to real data. Fit models to measurements. That's where the actual value of this skill becomes apparent.