5. Calculus

Differential Equations

Differential Equations

students, imagine trying to predict how a population grows, how a cup of tea cools, or how money in an account changes over time 📈🌡️💰. In many real situations, we do not know the exact rule for the quantity itself, but we do know how fast it is changing. That is the key idea behind a differential equation.

In this lesson, you will learn:

  • what a differential equation is and why it matters,
  • how to recognize and interpret differential equations in context,
  • how to solve a basic first-order differential equation, and
  • how differential equations connect to the rest of calculus.

Differential equations are one of the most powerful tools in applied mathematics because they model change. In IB Mathematics: Applications and Interpretation HL, they help describe patterns in growth, decay, motion, and many other real-world processes.

What Is a Differential Equation?

A differential equation is an equation that involves an unknown function and one or more of its derivatives. In symbols, it may include expressions like $\frac{dy}{dx}$, $\frac{d^2y}{dx^2}$, or $\frac{dy}{dt}$.

For example, consider

$$\frac{dy}{dt}=3y.$$

This says that the rate of change of $y$ with respect to $t$ is proportional to the current value of $y$. The function $y$ is unknown, and the equation tells us how it changes.

This is different from a normal algebra equation such as $2x+5=11$, where the unknown is just a number. In a differential equation, the unknown is a function, and calculus is used to find it.

There are two important ideas here:

  • The equation links a quantity to its rate of change.
  • The solution is a function, not just a single value.

A differential equation can be ordinary or partial. In IB AI HL, the focus is usually on ordinary differential equations, which involve derivatives with respect to one independent variable, like $t$ or $x$.

Why Differential Equations Matter in Real Life

students, differential equations are everywhere in science, economics, and engineering 🔬📊. They are useful whenever a change depends on the current state of the system.

Here are some common examples:

  • Population growth: If the population grows faster when there are more people, the rate of change may be proportional to the current population.
  • Radioactive decay: The amount of a substance decreases at a rate proportional to how much remains.
  • Cooling: An object cools faster when it is much hotter than its surroundings.
  • Banking: Interest can be modeled by a rate of change proportional to the amount in an account.

These models are not always perfectly exact, but they are often very good approximations. That is why differential equations are so valuable: they turn real-world observations into mathematical predictions.

For example, if a bacterial culture doubles quickly at first, a model like $\frac{dP}{dt}=kP$ can describe the growth, where $P$ is the population and $k$ is a constant.

Solving Simple Separable Differential Equations

A common type of differential equation in calculus is a separable differential equation. This means the variables can be separated so that all the $y$ terms are on one side and all the $x$ or $t$ terms are on the other side.

Suppose we have

$$\frac{dy}{dx}=xy.$$

To solve it, separate the variables:

$$\frac{1}{y}\,dy=x\,dx.$$

Now integrate both sides:

$$\int \frac{1}{y}\,dy=\int x\,dx.$$

This gives

$$\ln|y|=\frac{x^2}{2}+C.$$

Exponentiating both sides, we get

$$|y|=e^{C}e^{x^2/2}.$$

Since $e^{C}$ is just another constant, we can write

$$y=Ae^{x^2/2},$$

where $A$ is a constant.

This is the general solution. If an initial condition is given, such as $y(0)=4$, we can find the particular solution:

$$4=Ae^0,$$

so $A=4$. Therefore,

$$y=4e^{x^2/2}.$$

This process is important in IB because it shows how calculus can move from a rate equation to an actual formula for the quantity.

Initial Conditions and Interpretation in Context

In real applications, a differential equation often has many possible solutions, so we need extra information to choose the correct one. That extra information is called an initial condition.

An initial condition might look like $y(0)=10$ or $P(2)=500$.

If a model gives

$$\frac{dP}{dt}=0.03P,$$

then the general solution is

$$P=Ce^{0.03t}.$$

If the initial population is $P(0)=200$, then

$$200=Ce^0,$$

so $C=200$. The model becomes

$$P=200e^{0.03t}.$$

This is important because the constant $C$ changes the whole story. Two systems can obey the same differential equation but start at different values, leading to different solutions.

In context, always think about what the variables mean:

  • $t$ may represent time in days,
  • $P$ may represent population,
  • $y$ may represent height, mass, temperature, or concentration.

Interpreting the solution matters just as much as finding it. If the model is $P=200e^{0.03t}$, then the population is growing exponentially at about $3\%$ per unit time.

Connection to Accumulation and Integral Calculus

Differential equations are closely connected to accumulation, which is another major idea in calculus. If a derivative tells us the rate of change, then integration tells us the total accumulated change.

For example, if

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

then the function $y$ can be found by integrating:

$$y=\int f(x)\,dx + C.$$

This shows the connection between differentiation and integration. A differential equation often asks us to reverse the differentiation process.

Think of a tank being filled with water. If the inflow rate is known, then the total amount of water after some time is found by accumulation. But if the rate depends on the amount already in the tank, then the problem becomes a differential equation.

For example, if the temperature $T$ of an object changes according to

$$\frac{dT}{dt}=-k(T-T_s),$$

where $T_s$ is the surrounding temperature, then the object cools faster when the difference $T-T_s$ is larger. This is a rate-based model, and its solution describes how temperature accumulates toward equilibrium over time.

This idea shows that differential equations are not separate from calculus. They are built directly from derivatives and integrals.

Technology and Differential Equations in IB HL

Technology is very useful for exploring differential equations, especially when the equation is hard to solve exactly. Graphing tools, calculators, and dynamic software can help you visualize solutions.

For example, you can use technology to:

  • sketch slope fields,
  • compare different solutions for different initial conditions,
  • check whether a proposed solution fits the differential equation,
  • estimate values when an exact formula is difficult to find.

A slope field shows the direction of the solution curves by drawing short line segments with slope $\frac{dy}{dx}$. If the differential equation is

$$\frac{dy}{dx}=x-y,$$

then each point $(x,y)$ has slope $x-y$. Technology can display this pattern clearly and help you see how solutions behave.

If a solution curve crosses many segments smoothly, the graph is visually consistent with the differential equation. This is a strong way to build understanding before doing more advanced algebra.

Technology also helps with modeling because real data is often noisy. You may need to estimate a parameter like $k$ in

$$\frac{dP}{dt}=kP$$

from observed growth data. Then you can test whether the model fits the situation well.

What You Should Remember for IB Problems

When you meet a differential equation problem, students, use a clear method:

  1. Identify the dependent and independent variables.
  2. Read the equation as a statement about rate of change.
  3. Decide whether it is separable or another familiar type.
  4. Solve for the general function.
  5. Use any initial condition to find the constant.
  6. Interpret the answer in context and check that it makes sense.

Common forms to recognize include:

  • exponential growth or decay: $\frac{dy}{dt}=ky$,
  • separation of variables: $\frac{dy}{dx}=g(x)h(y)$,
  • cooling models: $\frac{dT}{dt}=-k(T-T_s)$.

You should also check units. If $t$ is measured in days, then $k$ has units of reciprocal days. Good modelling always respects units and context.

Conclusion

Differential equations bring calculus to life because they describe how one quantity changes in response to another. Instead of only finding slopes or areas, you use calculus to model real systems and predict future behavior. In IB Mathematics: Applications and Interpretation HL, this topic connects rate of change, accumulation, functions, and technology-supported analysis.

If you understand that a differential equation is a rule about change, you are already thinking like a mathematician who models the real world. From population growth to cooling, from banking to motion, these equations show how calculus helps explain patterns in everyday life 🌍.

Study Notes

  • A differential equation is an equation involving an unknown function and one or more derivatives, such as $\frac{dy}{dx}$ or $\frac{dy}{dt}$.
  • In IB AI HL, the main focus is usually on ordinary differential equations, which involve one independent variable.
  • The solution to a differential equation is a function, not just a number.
  • Initial conditions like $y(0)=4$ are used to find a unique particular solution.
  • Separable differential equations can often be rearranged so that variables are on opposite sides.
  • A common model for exponential growth or decay is $\frac{dy}{dt}=ky$.
  • A cooling model is often written as $\frac{dT}{dt}=-k(T-T_s)$.
  • Differential equations connect differentiation and integration because solving them often involves integrating both sides.
  • Technology can help with slope fields, graphs, and checking solutions.
  • Always interpret the answer in context and check that it matches the meaning of the variables and units.

Practice Quiz

5 questions to test your understanding