Timedora

First-Order Differential Equations: Models and Solutions

A guided lesson on modeling change with first-order differential equations, solving common forms, and interpreting solutions in context.

From Rate Balance to an Initial-Value Problem

Build a model from a rate balance

To model a changing quantity, first define what the unknown represents and its units. Then identify processes that add to or remove from it. The balance principle is

rate of change=rate in−rate out.\text{rate of change} = \text{rate in} - \text{rate out}.

For a well-mixed tank, let S(t)S(t) be the amount of dissolved substance. The amount entering per unit time is the inflow rate times the incoming concentration; the amount leaving is the outflow rate times the tank concentration. Since concentration is amount divided by volume, the tank’s volume—and any change in volume—must be included.

In the salt-tank example, the volume is constant at 100 L. Brine with concentration 0.30.3 kg/L enters at 22 L/min, while the well-mixed solution leaves at the same rate. Salt enters at 2(0.3)=0.62(0.3)=0.6 kg/min. The tank concentration is S/100S/100 kg/L, so salt leaves at 2(S/100)=0.02S2(S/100)=0.02S kg/min. The balance therefore gives S′=0.6−0.02SS'=0.6-0.02S, with rates measured in kg/min.

Add the starting state

A gives the rule governing change. An initial condition specifies the value at a particular starting point. Together they form an IVP, often written

y′=f(t,y),y(t0)=y0.y'=f(t,y), \qquad y(t_0)=y_0.

A solution must satisfy both statements: its derivative follows the rate rule, and its value at t0t_0 is y0y_0. For the tank, S(0)=10S(0)=10 says that the initial amount of salt is 10 kg. The equation describes how the amount changes; the initial condition identifies the solution that starts from the tank’s stated condition.

Separation, Growth, and Decay

Separate variables and use the initial value

A has the form y′=f(t)g(y)y'=f(t)g(y). Before dividing by g(y)g(y), check whether g(y)=0g(y)=0 gives constant solutions; division could otherwise discard them. For other solutions, rearrange to

dyg(y)=f(t) dt,\frac{dy}{g(y)}=f(t)\,dt,

then integrate both sides. Use the initial condition to determine the integration constant. Finally, check the result in the original equation and at the initial value. The result may be an implicit relation rather than a formula with yy isolated.

Proportional change gives an exponential model

When a quantity’s rate is proportional to its current amount, write P′=kPP'=kP, with P(0)=P0P(0)=P_0. For nonzero solutions, separate and integrate:

dPP=k dt⟹ln⁡∣P∣=kt+C.\frac{dP}{P}=k\,dt \quad\Longrightarrow\quad \ln|P|=kt+C.

Applying the initial value yields P(t)=P0ektP(t)=P_0e^{kt}. The constant solution P=0P=0 also satisfies the differential equation and should not be lost by dividing by PP. When k>0k>0, the model describes growth; when k<0k<0, it describes decay. The continuous model assumes the proportional rate remains constant during the time interval considered.

For example, an amount that begins at 80 and decays with k=−0.1k=-0.1 per hour is modeled by

P(t)=80e−0.1t.P(t)=80e^{-0.1t}.

Here the exponent is dimensionless because kk has units of inverse hours and tt is measured in hours.

Linear Equations and the Mixing Model

The integrating-factor method

A first-order linear equation has the form

y′+p(t)y=q(t).y'+p(t)y=q(t).

Choose the μ(t)=e∫p(t) dt\mu(t)=e^{\int p(t)\,dt}. Multiplying the equation by μ\mu makes the left side the derivative of a product:

μy′+μpy=(μy)′=μq.\mu y'+\mu p y=(\mu y)'=\mu q.

This works because μ′=pμ\mu'=p\mu. Now integrate, solve for yy, and use any initial condition to find the constant.

Work the salt-tank model

For the tank, the balance and starting amount are

S′=0.6−0.02S,S(0)=10.S'=0.6-0.02S, \qquad S(0)=10.

Put the equation in linear form: S′+0.02S=0.6S'+0.02S=0.6. Here p=0.02p=0.02, so an is μ(t)=e0.02t\mu(t)=e^{0.02t}. Multiply through:

e0.02tS′+0.02e0.02tS=0.6e0.02t⟹(e0.02tS)′=0.6e0.02t.e^{0.02t}S'+0.02e^{0.02t}S=0.6e^{0.02t} \quad\Longrightarrow\quad \bigl(e^{0.02t}S\bigr)'=0.6e^{0.02t}.

Integrating gives

e0.02tS=30e0.02t+C,S(t)=30+Ce−0.02t.e^{0.02t}S=30e^{0.02t}+C, \qquad S(t)=30+Ce^{-0.02t}.

Use S(0)=10S(0)=10: 10=30+C10=30+C, so C=−20C=-20. Thus

S(t)=30−20e−0.02t.S(t)=30-20e^{-0.02t}.

The exponent is dimensionless: 0.020.02 has units of inverse minutes and tt is in minutes. This solution follows from the rate-balance model and its stated initial amount.

Checking and Interpreting Solutions

Verify the formula, then interpret it

A useful check has three parts: confirm the units are consistent, substitute the starting time to recover the initial value, and differentiate the formula to see whether it obeys the rate law. For the tank solution, S(0)=30−20=10S(0)=30-20=10 kg. The units also fit: 0.020.02 has units of inverse minutes, so 0.02t0.02t is dimensionless when tt is in minutes. Thus the exponential term is dimensionless, and 0.02S0.02S has units of kg/min, matching the rate S′S' and the inflow rate 0.60.6 kg/min. Differentiating gives S′(t)=0.4e−0.02tS'(t)=0.4e^{-0.02t}; substituting the formula into the rate law gives 0.6−0.02(30−20e−0.02t)=0.4e−0.02t0.6-0.02(30-20e^{-0.02t})=0.4e^{-0.02t}, as required.

The solution starts at 10 kg and increases toward 30 kg, since the exponential term decreases toward zero as time increases. The (limiting) amount is 30 kg: at that amount, salt enters at 0.6 kg/min and leaves at 0.02(30)=0.60.02(30)=0.6 kg/min, so the rates balance. This amount corresponds to a concentration of 30/100=0.330/100=0.3 kg/L in the 100 L tank—the incoming brine’s concentration. Interpret this prediction in light of the assumptions: the tank is treated as instantly and uniformly mixed, and the flow rates are constant. A solution is only as trustworthy as those modeling assumptions are reasonable for the time interval of interest.

  • : A differential equation together with a specified value of the unknown function at a starting point.

  • : A model in which the rate of change is proportional to the quantity’s current amount.