Calculus 1 • Differential Equations (Intro)

Modeling with Differential Equations — Modeling Situations with Differential Equations

Learn how rates of change translate real-world scenarios into powerful mathematical equations you can solve.

A smooth function curve with a function symbol and rising tangent trend.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The idea of describing nature through rates of change is one of the most powerful breakthroughs in the history of mathematics. Long before anyone wrote down a differential equation, scientists struggled to predict how things like planetary motion, population growth, and cooling liquids behaved over time. They could observe what was happening at a single moment, but they lacked the tools to connect that snapshot to the full story of how a quantity evolves.

The development of calculus in the late 1600s changed everything. Once Isaac Newton and Gottfried Wilhelm Leibniz introduced the concept of the derivative, mathematicians could finally write equations that related a quantity to its own rate of change. These equations — differential equations — became the universal language for modeling dynamic systems, from the swing of a pendulum to the spread of a disease.

1687 • Newton's Principia

Isaac Newton publishes Principia Mathematica, using rates of change ("fluxions") to model gravitational motion. This marks the birth of differential equations as a tool for physics.

1736 • Euler's Systematic Methods

Leonhard Euler develops systematic techniques for solving differential equations. He introduces notation and methods that students still use today, making the subject far more accessible.

1798 • Malthus & Population Growth

Thomas Malthus proposes that populations grow proportionally to their current size — an idea that translates directly into the exponential growth differential equation dP/dt = kP.

1840s • Newton's Law of Cooling Formalized

Scientists formally express Newton's cooling observations as a differential equation: the rate of temperature change is proportional to the difference between an object's temperature and its surroundings.

Modern Era • Differential Equations Everywhere

Today, differential equations model everything from viral epidemics (SIR models) to financial markets, climate systems, and even social media trends. They remain the backbone of applied mathematics.

The central question this lesson addresses is straightforward but profound: how do you take a real-world situation — bacteria multiplying, a hot cup of coffee cooling, a bank account earning interest — and translate it into a mathematical equation involving derivatives? Once you can set up the equation, you unlock the ability to predict future behavior, and that is what makes differential equations so valuable.

SECTION 2

Core Principles & Definitions

Before diving into examples, you need a clear understanding of what a differential equation actually is and what it means to "model" something with one. A differential equation is any equation that contains a function and one or more of its derivatives. Instead of telling you the value of a quantity directly, it tells you something about the rate at which that quantity changes. When we say we are "modeling" a situation, we mean we are writing a differential equation that captures the essential behavior of that situation mathematically.

1

Rate = Derivative

Whenever a problem says "rate of change," think derivative. The phrase "the rate at which the population grows" translates directly to dP/dt — the derivative of population P with respect to time t.
2

Proportionality Statements

Many models start with phrases like "the rate is proportional to…" This means the derivative equals a constant k multiplied by some expression. For example, "grows proportionally to its size" becomes dy/dt = ky.
3

Initial Conditions

A differential equation alone has infinitely many solutions. An initial condition like y(0) = 50 pins down exactly one specific solution, giving you a concrete prediction.
4

Solution = A Function

The solution to a differential equation is not just a number — it is an entire function y(t) that, when you take its derivative, satisfies the original equation for all values of t.
5

Positive vs. Negative k

In the equation dy/dt = ky, a positive k means growth (the quantity increases over time), while a negative k means decay (the quantity decreases over time).
✦

KEY TAKEAWAY

Think of a differential equation like a recipe that tells you how fast to stir, based on how thick the batter currently is. It does not tell you the batter's thickness at every moment — instead, it gives you a rule connecting the current state to the rate of change. If you also know the starting thickness (the initial condition), you can follow the recipe forward in time to predict exactly how the batter will behave.

SECTION 3

Visual Explanation — From Words to Equations

The diagram below illustrates the thought process behind modeling with differential equations. On the left, you see a real-world scenario described in plain English. In the middle column, the key verbal phrases are identified and translated into mathematical symbols. On the right, the complete differential equation appears, ready to be solved.

From Real-World Scenario to Differential EquationREAL-WORLD SCENARIO"A colony of bacteriadoubles every 3 hours.Initially there are500 bacteria.""A cup of coffee coolsat a rate proportionalto the differencebetween its tempand room temp.""A tank drains at arate proportional tothe square root ofthe volume."KEY TRANSLATIONS"doubles" → growth raterate ∝ current sizedP/dt = kPP(0) = 500"rate proportional tothe difference"dT/dt = −k(T − Tₐ)T = temp, Tₐ = ambient"proportional to √V"dV/dt = −k√VV = volume of waterDIFFERENTIAL EQUATIONdP/dt = kPP(0) = 500Exponential GrowthdT/dt = −k(T − Tₐ)T(0) = T₀Newton's CoolingdV/dt = −k√VV(0) = V₀Tank Draining
This flowchart shows how three different real-world scenarios (left) are translated through key verbal clues (center) into complete differential equations with initial conditions (right). Notice that each scenario follows the same logical steps: identify the changing quantity, express the rate statement as a derivative, and write the proportionality relationship.

The diagram highlights a crucial pattern: the modeling process always begins with identifying what is changing and what drives that change. In the bacteria example, the population P is changing, and the driver is the current population itself — more bacteria produce more bacteria. In the cooling example, the temperature T is changing, and the driver is the gap between the coffee's temperature and room temperature. Every differential equation model follows this same logic: the derivative on the left side tells you what is changing, and the expression on the right side tells you why it changes.

SECTION 4

Mathematical Framework

There are a few fundamental differential equation forms that appear again and again when modeling real-world situations. Understanding these templates gives you the ability to recognize and set up equations for a wide range of problems. Let's walk through the most important ones.

EXPONENTIAL GROWTH / DECAY

dy/dt=kydy/dt = ky

Here y is the quantity (population, mass, money), t is time, and k is a constant. If k > 0, the quantity grows; if k < 0, it decays. The solution is y(t) = y₀ekt, where y₀ = y(0).

NEWTON'S LAW OF COOLING

dT/dt=−k(T−Ta)dT/dt = −k(T − Tₐ)

T is the object's temperature, Tₐ is the ambient (surrounding) temperature, and k is a positive constant. The negative sign ensures the object cools when T > Tₐ and warms when T < Tₐ. The solution is T(t) = Tₐ + (T₀ − Tₐ)e−kt.

LOGISTIC GROWTH

dP/dt=kP(1−P/M)dP/dt = kP(1 − P/M)

P is the population, M is the carrying capacity (maximum sustainable population), and k is the growth rate constant. When P is small compared to M, growth is nearly exponential. As P approaches M, the factor (1 − P/M) approaches 0, slowing growth to zero.

MIXING / TANK PROBLEMS

dA/dt=(ratein)−(rateout)dA/dt = (rate in) − (rate out)

A is the amount of substance in the tank. Rate in is the concentration of incoming fluid times its flow rate. Rate out is the concentration of outgoing fluid (A divided by the tank volume) times the outflow rate.

The key skill here is not memorizing these formulas — it is learning to read a word problem and match it to the correct template. Words like "proportional to the current amount" point to exponential models. Phrases like "difference between" or "gap" suggest Newton's cooling law. Descriptions of inflow and outflow naturally lead to mixing models. Once you translate the English into the right equation form, the calculus takes over.

SECTION 5

Classifying Common Models

Differential equation models can be organized by the type of behavior they describe. The diagram below shows three classic growth/decay curves side by side, helping you visualize how the same mathematical framework produces different shapes depending on the model.

Three Fundamental Differential Equation ModelsExponential Growthdy/dt = ky, k > 0Time →yUnlimited, acceleratingExponential Decaydy/dt = ky, k < 0Time →y→ 0Approaches zero, slowingLogistic GrowthdP/dt = kP(1−P/M)Time →PMS-shaped, levels off at M
Three fundamental curve shapes produced by common differential equation models. Exponential growth (left, pink) accelerates without bound. Exponential decay (center, cyan) drops rapidly at first, then slows as it approaches zero. Logistic growth (right, emerald) combines both behaviors — starting like exponential growth but leveling off at the carrying capacity M.
Model TypeEquationTypical ApplicationsBehavior
Exponential Growthdy/dt = ky (k > 0)Bacteria, compound interest, unchecked population growthIncreases without bound
Exponential Decaydy/dt = ky (k < 0)Radioactive decay, drug metabolism, depreciationDecreases toward zero
Newton's CoolingdT/dt = −k(T − Tₐ)Cooling/heating objects, thermal equilibriumApproaches ambient temperature
Logistic GrowthdP/dt = kP(1 − P/M)Populations with limited resources, disease spread, market saturationS-shaped; levels off at M
Mixing / TankdA/dt = (rate in) − (rate out)Salt in a tank, pollutant concentration, IV dripApproaches equilibrium concentration

Summary of fundamental differential equation models and their applications

SECTION 6

Worked Example — Setting Up and Solving a Model

Let's walk through a complete example that takes a word problem and turns it into a differential equation, then solves it. Problem: A biologist places 200 bacteria in a nutrient-rich dish. The bacteria population grows at a rate proportional to the number of bacteria present. After 4 hours, there are 800 bacteria. Write and solve a differential equation for the population P(t), then predict the population after 10 hours.

Bacterial Growth Model

  1. 1

    Step 1 — Identify the Changing Quantity and the Rate Statement

    The quantity changing is the population P. The problem says the growth rate is "proportional to the number of bacteria present." This means the rate of change dP/dt is proportional to P.
    Rate statement identified: dP/dt ∝ P
  2. 2

    Step 2 — Write the Differential Equation

    Translating "proportional to" into math means we introduce a constant k. The differential equation is:
    dP/dt = kP
  3. 3

    Step 3 — State the Initial Condition

    The problem says there are 200 bacteria at the start (t = 0). This gives us our initial condition.
    P(0) = 200
  4. 4

    Step 4 — Write the General Solution

    The equation dP/dt = kP has the well-known general solution P(t) = P₀ekt. Substituting P₀ = 200, we get P(t) = 200ekt. We still need to find k.
    P(t) = 200ekt
  5. 5

    Step 5 — Use the Second Data Point to Find k

    We know P(4) = 800. Substituting: 800 = 200e4k. Dividing both sides by 200 gives e4k = 4. Taking the natural log: 4k = ln(4), so k = ln(4)/4 ≈ 0.3466.
    k = ln(4)/4 ≈ 0.3466
  6. 6

    Step 6 — Write the Particular Solution and Predict

    The complete model is P(t) = 200e0.3466t. To predict the population after 10 hours: P(10) = 200e0.3466 × 10 = 200e3.466 ≈ 200 × 32 = 6400.
    P(10) ≈ 6,400 bacteria
💡

Pro Tip

Notice we needed two pieces of information from the problem: the initial condition (P(0) = 200) to choose the right solution curve, and the second data point (P(4) = 800) to determine the constant k. Most modeling problems follow this same pattern — the initial condition alone is not enough to fully determine the model.

SECTION 7

Strengths and Limitations of Differential Equation Models

Differential equations are incredibly versatile tools, but every model is a simplification of reality. Understanding when these models work well — and when they break down — is just as important as knowing how to set them up. The table below summarizes the key strengths and limitations.

StrengthsLimitations
Capture dynamic behavior: they describe how quantities change over time, not just their static values.Assumptions may not hold: real bacteria don't grow at a perfectly constant proportional rate forever.
Make predictions: once you have the model, you can forecast future values by plugging in different times.Require accurate data: a wrong initial condition or growth constant leads to wrong predictions.
Unify diverse phenomena: the same equation dy/dt = ky models bacteria, money, and radioactive atoms.Simple models ignore complexity: factors like competition, seasonal effects, or random events are omitted.
Provide exact solutions: many first-order equations can be solved analytically for a precise formula.Not all equations are solvable: some differential equations require numerical (computer) methods.

Strengths vs. Limitations of Differential Equation Models

✦

KEY TAKEAWAY

A differential equation model is like a weather forecast: it uses current conditions and known rules to project what happens next. Just as a weather forecast gets less accurate over longer time frames and doesn't account for every cloud, a differential equation model gets less reliable when its simplifying assumptions break down. The power lies in choosing the right model for the right situation and understanding its boundaries.

SECTION 8

Connection to Advanced Theory

The models you've learned in this lesson — exponential growth, Newton's cooling, and logistic growth — are all examples of first-order ordinary differential equations (ODEs). "First-order" means they involve only the first derivative (dy/dt), and "ordinary" means there is only one independent variable (usually time). As you progress in calculus and beyond, you will encounter more sophisticated equation types.

FeatureIntroductory Models (This Lesson)Advanced Models (Future Courses)
OrderFirst-order (dy/dt only)Second-order and higher (d²y/dt², d³y/dt³, ...)
VariablesOne independent variable (time)Multiple variables → partial differential equations (PDEs)
EquationsOne equation at a timeSystems of coupled equations (e.g., predator-prey models)
SolutionsExact, closed-form formulasOften numerical or approximate (Euler's method, Runge-Kutta)
ApplicationsGrowth, decay, cooling, simple mixingVibrations, wave motion, fluid dynamics, quantum mechanics

Introductory vs. Advanced Differential Equation Models

The good news is that the modeling process you learned today — identify what's changing, express the rate in terms of known quantities, and write the equation — is exactly the same process used for all differential equations, no matter how advanced. Master this foundation, and you'll be well prepared when the equations become more complex.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A student says: "The equation dy/dt = 3y is not a differential equation because it doesn't have a y″ in it." Is this student correct? Explain your reasoning.
Show answer
The student is incorrect. A differential equation is any equation that involves a function and at least one of its derivatives. The equation dy/dt = 3y contains the first derivative dy/dt and the function y, which is sufficient. There is no requirement for a second derivative to be present. This particular equation is a first-order differential equation, and it models exponential growth with k = 3.

Question 2: BASIC CALCULATION

A radioactive substance decays at a rate proportional to the amount present. If there are initially 100 grams, write the differential equation and the general solution with the initial condition applied. (You do not need to find k.)
Show answer
Since the decay rate is proportional to the amount, the differential equation is dA/dt = kA, where k < 0 because the substance is decaying. The general solution of this equation is A(t) = A₀eᵏᵗ. Applying the initial condition A(0) = 100 gives A(t) = 100eᵏᵗ. The negative value of k ensures that A(t) decreases over time, approaching zero as t → ∞.

Question 3: INTERMEDIATE

A cup of coffee at 90°C is placed in a room at 20°C. After 5 minutes, the coffee's temperature is 70°C. Write the differential equation, find the value of k, and determine the temperature after 15 minutes.
Show answer
Newton's Law of Cooling gives dT/dt = −k(T − 20) with T(0) = 90. The solution is T(t) = 20 + 70e⁻ᵏᵗ. Using T(5) = 70: 70 = 20 + 70e⁻⁵ᵏ, so 50 = 70e⁻⁵ᵏ, giving e⁻⁵ᵏ = 5/7. Therefore k = −ln(5/7)/5 = ln(7/5)/5 ≈ 0.0673. For t = 15: T(15) = 20 + 70e⁻⁰·⁰⁶⁷³ˣ¹⁵ = 20 + 70e⁻¹·⁰⁰⁹⁵ ≈ 20 + 70(0.3644) ≈ 20 + 25.5 ≈ 45.5°C. The coffee has cooled significantly but is still above room temperature.

Question 4: APPLIED

A savings account earns interest at a continuous rate of 5% per year. You deposit $1,000 initially. Write a differential equation for the balance B(t), solve it, and determine how long it takes for the balance to reach $2,000.
Show answer
Continuous interest at 5% means the balance grows at a rate proportional to itself with k = 0.05. The differential equation is dB/dt = 0.05B with B(0) = 1000. The solution is B(t) = 1000e⁰·⁰⁵ᵗ. To find when B = 2000: 2000 = 1000e⁰·⁰⁵ᵗ, so e⁰·⁰⁵ᵗ = 2, giving 0.05t = ln(2) ≈ 0.6931. Therefore t = 0.6931/0.05 ≈ 13.86 years. This is the "doubling time" for a 5% continuous growth rate, a concept that appears frequently in finance and biology.

Question 5: CRITICAL THINKING

A biologist models a fish population with dP/dt = 0.4P(1 − P/5000). Explain in words what each part of the equation means. What happens when P is very small compared to 5000? What happens as P approaches 5000? Is exponential growth (dP/dt = 0.4P) or this logistic model more realistic for the fish population, and why?
Show answer
In this logistic equation, 0.4 is the intrinsic growth rate (fish reproduce at a rate of 40% per unit time if unconstrained), P is the current population, and 5000 is the carrying capacity — the maximum number of fish the environment can sustain. The factor (1 − P/5000) acts as a "brake" on growth. When P is very small (say P = 100), the factor equals 1 − 100/5000 = 0.98 ≈ 1, so the growth is nearly exponential at rate 0.4. As P approaches 5000, the factor approaches 0 and growth slows dramatically. At exactly P = 5000, dP/dt = 0 and the population stabilizes. The logistic model is far more realistic because real fish populations face limited food, space, and predation. Exponential growth would predict the population increasing forever, which is physically impossible.

SUMMARY

Lesson Summary

Summary

A differential equation is an equation relating a function to its own derivatives, and modeling with differential equations means translating a real-world rate-of-change statement into such an equation. The most common introductory models include exponential growth and decay (dy/dt = ky), Newton's Law of Cooling (dT/dt = −k(T − Tₐ)), and logistic growth (dP/dt = kP(1 − P/M)). Each model captures a different type of dynamic behavior.

The modeling process follows a consistent pattern: identify the changing quantity, express the rate of change as a derivative, translate proportionality statements into equations using a constant k, and apply the initial condition to pin down a unique solution. These simple first-order models form the foundation for all advanced differential equations you will encounter in future courses — from systems of equations to partial differential equations used in physics and engineering.

Varsity Tutors • Calculus 1 • Modeling with Differential Equations — Modeling Situations with Differential Equations