5. Calculus

Solving Differential Equations By Separation

Solving Differential Equations by Separation

students, imagine trying to predict how fast a population grows, how a tank empties, or how a medicine leaves the bloodstream. In all of these situations, the rate of change depends on what is happening right now. That is exactly where differential equations come in 🔍. A differential equation is an equation that includes a derivative, such as $\frac{dy}{dx}$, and it describes how one quantity changes in relation to another.

In this lesson, you will learn how to solve a special and very useful type of differential equation called a separable differential equation. The key idea is to rearrange the equation so that all the $y$-terms are on one side and all the $x$-terms are on the other side. Then you integrate both sides to find the solution.

What a differential equation means

A differential equation connects a function with its rate of change. For example, if $y$ represents a quantity that changes with respect to $x$, then an equation like $\frac{dy}{dx} = 3x^2$ tells us that the slope of the graph of $y$ depends on $x$.

In real life, differential equations appear in many contexts:

  • population growth 🌱
  • radioactive decay ☢️
  • cooling and heating 🌡️
  • motion with drag 🚗
  • finance and continuous growth 💰

For IB Mathematics: Applications and Interpretation HL, you are expected not only to solve these equations, but also to interpret what the solution means in context. That means the mathematics is connected to a real situation, not just symbols on a page.

A differential equation is often written in a form such as $\frac{dy}{dx} = f(x,y)$. If it can be rearranged into the form $g(y)\,dy = h(x)\,dx$, then it is separable.

The word separable means that the variables can be separated into different sides of the equation. This is powerful because it turns a differential equation into two integrals.

The separation method step by step

To solve a separable differential equation, follow a clear sequence.

First, rewrite the equation so that all terms involving $y$ are with $dy$ and all terms involving $x$ are with $dx$. Then integrate both sides. After that, simplify the result and, if possible, solve for $y$. Finally, use any initial condition to find the constant of integration.

A general separable equation might look like this:

$$

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

$$

If $g(y) \neq 0$, divide both sides by $g(y)$ to get

$$

$\frac{1}{g(y)}\frac{dy}{dx} = f(x)$

$$

and then multiply by $dx$:

$$

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

$$

Now integrate both sides:

$$

$\int \frac{1}{g(y)}\,dy = \int f(x)\,dx$

$$

This is the core of separation of variables.

A common mistake is forgetting the constant of integration. When you integrate both sides, one constant is enough because both constants can be combined into a single constant. So you usually write

$$

$\int$ $\frac{1}{g(y)}$\,dy = $\int$ f(x)\,dx + C

$$

or include the constant after integrating.

students, always check whether the equation is truly separable before starting. Not every differential equation can be solved this way.

Example 1: simple exponential growth

Suppose a population $P$ satisfies

$$

$\frac{dP}{dt} = 0.4P$

$$

This says the growth rate is proportional to the current population. This is a classic model for growth.

Separate the variables:

$$

$\frac{1}{P}\,dP = 0.4\,dt$

$$

Now integrate both sides:

$$

$\int \frac{1}{P}\,dP = \int 0.4\,dt$

$$

which gives

$$

$\ln |P| = 0.4t + C$

$$

Exponentiate both sides:

$$

$|P| = e^{0.4t+C} = e^C e^{0.4t}$

$$

Since $e^C$ is just another constant, write

$$

$P = Ae^{0.4t}$

$$

where $A$ is a constant. If you know an initial condition, such as $P(0)=200$, then

$$

$200 = Ae^0$

$$

so $A=200$. The particular solution is

$$

$P = 200e^{0.4t}$

$$

This means the population increases exponentially over time 📈.

Example 2: logistic growth idea

Sometimes growth slows down because resources are limited. A more realistic model is

$$

$\frac{dP}{dt} = kP\left(1-\frac{P}{M}\right)$

$$

Here $k$ is a growth constant and $M$ is the carrying capacity. This equation is separable because the $P$-terms can be moved to one side.

We rearrange as

$$

$\frac{dP}{P\left(1-\frac{P}{M}\right)} = k\,dt$

$$

Then integrate. In full IB work, partial fractions are often needed to evaluate the left-hand side. The result leads to a logistic function, which models growth that starts fast and then levels off.

The important mathematical idea is that the derivative depends on the current value of $P$, and the solution describes how the quantity changes over time. This is useful for modelling things like bacteria growth, spread of ideas, or limited-resource populations.

Example 3: decay and half-life

A substance with quantity $N$ may decay according to

$$

$\frac{dN}{dt} = -kN$

$$

where $k>0$. This means the quantity decreases at a rate proportional to how much is present.

Separate variables:

$$

$\frac{1}{N}\,dN = -k\,dt$

$$

Integrate:

$$

$\ln |N| = -kt + C$

$$

so

$$

$N = Ae^{-kt}$

$$

If $N(0)=N_0$, then $A=N_0$, giving

$$

$N = N_0e^{-kt}$

$$

This formula is used for radioactive decay, medicine concentration, and cooling models. If you know the half-life, you can find $k$ by using the condition that $N$ becomes half of its original value after a specific time.

For example, if the half-life is $T$, then

$$

$\frac{1}{2}N_0 = N_0e^{-kT}$

$$

which simplifies to

$$

$\frac{1}{2} = e^{-kT}$

$$

and therefore

$$

$\ln\left(\frac{1}{2}\right) = -kT$

$$

This gives

$$

$k = \frac{\ln 2}{T}$

$$

Initial conditions and particular solutions

A general solution contains a constant such as $C$ or $A$. To get a specific solution, you need an initial condition, also called a boundary or starting condition in some contexts.

An initial condition is a value like $y(0)=5$ or $P(2)=120$. It tells you where the solution must pass. Once you substitute the condition into the general solution, you can find the constant.

For example, if

$$

$\frac{dy}{dx} = 2y$

$$

then separation gives

$$

$\frac{1}{y}\,dy = 2\,dx$

$$

Integrating gives

$$

$\ln |y| = 2x + C$

$$

so

$$

$y = Ae^{2x}$

$$

If $y(1)=10$, then

$$

$10 = Ae^2$

$$

hence

$$

$A = 10e^{-2}$

$$

and the particular solution is

$$

$y = 10e^{2x-2}$

$$

This is a good example of how algebra, calculus, and context work together.

Interpreting solutions in context

Solving the differential equation is only part of the job. You also need to interpret what the solution means.

For example, if $\frac{dP}{dt}=0.4P$, then the population grows faster when the population is larger. If $\frac{dN}{dt}=-kN$, then the substance decreases quickly at first and then more slowly as the amount becomes smaller.

In a word problem, the sign of the derivative matters:

  • if $\frac{dy}{dt}>0$, the quantity is increasing
  • if $\frac{dy}{dt}<0$, the quantity is decreasing
  • if $\frac{dy}{dt}=0$, the quantity is momentarily constant

The units matter too. If $t$ is measured in hours and $y$ is measured in liters, then $\frac{dy}{dt}$ has units of liters per hour.

When you write your answer in IB style, make sure it fits the context. A formula alone is not enough. You may need to explain whether the model is realistic and what the parameters mean.

Technology and checking your work

Technology can help you graph solutions, verify algebra, and solve equations that are hard to integrate by hand. In IB HL, this is very useful when the integral is complicated or when you want to check whether your answer matches the initial condition.

Graphing the solution can show whether the curve behaves as expected. For example, an exponential growth solution should rise more and more quickly, while a decay solution should approach $0$ as $t$ becomes large.

You can also compare your exact solution with a numerical method. If a problem gives a differential equation that cannot be solved neatly by separation, technology may still approximate the solution. Even when you do solve by hand, technology is a great way to confirm that your result is correct ✅.

Conclusion

students, solving differential equations by separation is one of the most important calculus skills because it connects rates of change to real-world behaviour. The main idea is simple: rearrange the equation so the variables separate, integrate both sides, and use any initial condition to find the constant.

This topic sits right at the heart of calculus because it links derivatives, integrals, and modelling. It helps explain how quantities grow, shrink, and level off in natural and human systems. In IB Mathematics: Applications and Interpretation HL, being able to solve and interpret separable differential equations shows strong understanding of both the mathematics and its applications.

Study Notes

  • A differential equation contains a derivative such as $\frac{dy}{dx}$.
  • A separable differential equation can be written with all $y$-terms on one side and all $x$-terms on the other.
  • The standard method is to separate variables, integrate both sides, and then solve for the unknown function if possible.
  • A general solution includes a constant such as $C$.
  • An initial condition gives a particular solution by fixing the constant.
  • Common models include exponential growth $\frac{dN}{dt}=kN$ and exponential decay $\frac{dN}{dt}=-kN$.
  • Logistic growth uses $\frac{dP}{dt}=kP\left(1-\frac{P}{M}\right)$ and shows limiting growth.
  • Interpretation matters: the sign and units of the derivative tell you what is happening in context.
  • Technology can help check algebra, graph solutions, and handle harder equations.
  • Separable differential equations connect differentiation, integration, and real-world modelling in calculus.

Practice Quiz

5 questions to test your understanding