A differential equation (DE) is an equation that relates a function to one or more of its Derivatives. The order of a DE is the highest derivative that appears. A first-order DE involves Only d y d x \frac{dy}{dx} d x d y ; a second-order DE involves d 2 y d x 2 \frac{d^2y}{dx^2} d x 2 d 2 y .
A solution to a DE is a function that satisfies the equation. A general solution contains Arbitrary constants ( equal to the order of the DE), while a particular solution Satisfies additional initial conditions. Together, the DE and its initial conditions form an initial value problem (IVP).
Why differential equations matter. Nearly every physical system whose state evolves continuously In time is modelled by a DE: orbital mechanics, circuit analysis, fluid dynamics, population Biology, heat transfer, and pharmacokinetics all reduce to DEs at their core. The reason is simple: If a quantity y y y changes at a rate that depends on the current state, then by definition d y d t = f ( t , y ) \frac{dy}{dt} = f(t, y) d t d y = f ( t , y ) And that is a differential equation.
A first-order DE is separable if it can be written in the form:
d y d x = g ( x ) ⋅ h ( y ) \frac{dy}{dx} = g(x) \cdot h(y) d x d y = g ( x ) ⋅ h ( y ) The strategy is mechanical: move all terms involving y y y (including d y dy d y ) to one side and all terms Involving x x x (including d x dx d x ) to the other, then integrate both sides.
∫ 1 h ( y ) d y = ∫ g ( x ) d x \int \frac{1}{h(y)}\, dy = \int g(x)\, dx ∫ h ( y ) 1 d y = ∫ g ( x ) d x This works because d y dy d y and d x dx d x are related through the chain rule: d y d x = g ( x ) h ( y ) \frac{dy}{dx} = g(x)h(y) d x d y = g ( x ) h ( y ) Rewrites as 1 h ( y ) d y d x = g ( x ) \frac{1}{h(y)}\frac{dy}{dx} = g(x) h ( y ) 1 d x d y = g ( x ) And integrating both sides with respect to x x x Gives ∫ 1 h ( y ) d y d x d x = ∫ g ( x ) d x \int \frac{1}{h(y)}\frac{dy}{dx}\,dx = \int g(x)\,dx ∫ h ( y ) 1 d x d y d x = ∫ g ( x ) d x Which is exactly the separated form Above.
Not every first-order DE is separable. The key diagnostic: can you algebraically factor the RHS into A product of a function of x x x alone and a function of y y y alone? For example, d y d x = x + y \frac{dy}{dx} = x + y d x d y = x + y is not separable, because x + y x + y x + y cannot be factored into g ( x ) h ( y ) g(x)h(y) g ( x ) h ( y ) .
Note
Example Solve d y d x = x y \displaystyle\frac{dy}{dx} = \frac{x}{y} d x d y = y x with y ( 0 ) = 2 y(0) = 2 y ( 0 ) = 2 .
Separate: y d y = x d x y\, dy = x\, dx y d y = x d x .
Integrate: ∫ y d y = ∫ x d x ⟹ y 2 2 = x 2 2 + C \displaystyle\int y\, dy = \int x\, dx \implies \frac{y^2}{2} = \frac{x^2}{2} + C ∫ y d y = ∫ x d x ⟹ 2 y 2 = 2 x 2 + C .
Apply the initial condition: 4 2 = 0 + C ⟹ C = 2 \displaystyle\frac{4}{2} = 0 + C \implies C = 2 2 4 = 0 + C ⟹ C = 2 .
y 2 2 = x 2 2 + 2 ⟹ y 2 = x 2 + 4 ⟹ y = x 2 + 4 \frac{y^2}{2} = \frac{x^2}{2} + 2 \implies y^2 = x^2 + 4 \implies y = \sqrt{x^2 + 4} 2 y 2 = 2 x 2 + 2 ⟹ y 2 = x 2 + 4 ⟹ y = x 2 + 4 (We take the positive root since y ( 0 ) = 2 > 0 y(0) = 2 \gt 0 y ( 0 ) = 2 > 0 .)
Note
Example Solve d y d x = 2 x y \displaystyle\frac{dy}{dx} = 2xy d x d y = 2 x y with y ( 0 ) = 3 y(0) = 3 y ( 0 ) = 3 .
Separate: d y y = 2 x d x \displaystyle\frac{dy}{y} = 2x\, dx y d y = 2 x d x .
Integrate: ln ∣ y ∣ = x 2 + C \displaystyle\ln|y| = x^2 + C ln ∣ y ∣ = x 2 + C .
Apply the initial condition: ln 3 = 0 + C ⟹ C = ln 3 \ln 3 = 0 + C \implies C = \ln 3 ln 3 = 0 + C ⟹ C = ln 3 .
ln ∣ y ∣ = x 2 + ln 3 ⟹ ∣ y ∣ = e x 2 + ln 3 = 3 e x 2 ⟹ y = 3 e x 2 \ln|y| = x^2 + \ln 3 \implies |y| = e^{x^2 + \ln 3} = 3e^{x^2} \implies y = 3e^{x^2} ln ∣ y ∣ = x 2 + ln 3 ⟹ ∣ y ∣ = e x 2 + l n 3 = 3 e x 2 ⟹ y = 3 e x 2 Solve d y d x = y 2 + 1 x 2 + 1 \displaystyle\frac{dy}{dx} = \frac{y^2 + 1}{x^2 + 1} d x d y = x 2 + 1 y 2 + 1 with y ( 1 ) = 1 y(1) = 1 y ( 1 ) = 1 .
Separate:
d y y 2 + 1 = d x x 2 + 1 \frac{dy}{y^2 + 1} = \frac{dx}{x^2 + 1} y 2 + 1 d y = x 2 + 1 d x Integrate both sides:
arctan y = arctan x + C \arctan y = \arctan x + C arctan y = arctan x + C Apply y ( 1 ) = 1 y(1) = 1 y ( 1 ) = 1 : arctan 1 = arctan 1 + C ⟹ C = 0 \arctan 1 = \arctan 1 + C \implies C = 0 arctan 1 = arctan 1 + C ⟹ C = 0 .
Therefore arctan y = arctan x \arctan y = \arctan x arctan y = arctan x So y = x y = x y = x .
Solve d y d x = cos x sin 2 y \displaystyle\frac{dy}{dx} = \frac{\cos x}{\sin^2 y} d x d y = sin 2 y cos x with y ( 0 ) = π 4 y(0) = \frac{\pi}{4} y ( 0 ) = 4 π .
Separate: sin 2 y d y = cos x d x \sin^2 y\, dy = \cos x\, dx sin 2 y d y = cos x d x .
Use the identity sin 2 y = 1 − cos 2 y 2 \sin^2 y = \frac{1 - \cos 2y}{2} sin 2 y = 2 1 − c o s 2 y :
∫ 1 − cos 2 y 2 d y = ∫ cos x d x \int \frac{1 - \cos 2y}{2}\, dy = \int \cos x\, dx ∫ 2 1 − cos 2 y d y = ∫ cos x d x y 2 − sin 2 y 4 = sin x + C \frac{y}{2} - \frac{\sin 2y}{4} = \sin x + C 2 y − 4 sin 2 y = sin x + C Apply y ( 0 ) = π 4 y(0) = \frac{\pi}{4} y ( 0 ) = 4 π : π 8 − 1 4 = 0 + C \frac{\pi}{8} - \frac{1}{4} = 0 + C 8 π − 4 1 = 0 + C So C = π 8 − 1 4 C = \frac{\pi}{8} - \frac{1}{4} C = 8 π − 4 1 .
The particular solution is:
y 2 − sin 2 y 4 = sin x + π 8 − 1 4 \frac{y}{2} - \frac{\sin 2y}{4} = \sin x + \frac{\pi}{8} - \frac{1}{4} 2 y − 4 sin 2 y = sin x + 8 π − 4 1 This cannot be solved explicitly for y y y in closed form, but it is a valid implicit solution.
Many natural phenomena are modelled by the DE:
d y d t = k y \frac{dy}{dt} = ky d t d y = k y Where k k k is a constant.
If k > 0 k \gt 0 k > 0 : exponential growth If k < 0 k \lt 0 k < 0 : exponential decay The equation d y d t = k y \frac{dy}{dt} = ky d t d y = k y says: “the rate of change is proportional to the current Quantity.” This is the simplest possible feedback loop. If you have a population of bacteria, each Bacterium divides independently, so the total growth rate is proportional to how many bacteria Exist. If you have a radioactive sample, each atom decays independently, so the total decay rate is Proportional to how many atoms remain. This single assumption generates the exponential.
d y y = k d t ⟹ ln ∣ y ∣ = k t + C ⟹ y = y 0 e k t \frac{dy}{y} = k\, dt \implies \ln|y| = kt + C \implies y = y_0 e^{kt} y d y = k d t ⟹ ln ∣ y ∣ = k t + C ⟹ y = y 0 e k t Where y 0 = y ( 0 ) y_0 = y(0) y 0 = y ( 0 ) .
Proof that the solution is unique. The function f ( t , y ) = k y f(t, y) = ky f ( t , y ) = k y is continuous everywhere and ∂ f ∂ y = k \frac{\partial f}{\partial y} = k ∂ y ∂ f = k is also continuous everywhere. By the existence and uniqueness Theorem, the IVP has exactly one solution on any interval containing t 0 = 0 t_0 = 0 t 0 = 0 .
For exponential decay with half-life T 1 / 2 T_{1/2} T 1/2 :
Y ( t ) = y 0 ⋅ 2 − t / T 1 / 2 Y(t) = y_0 \cdot 2^{-t/T_{1/2}} Y ( t ) = y 0 ⋅ 2 − t / T 1/2 Alternatively, since 1 2 y 0 = y 0 e k T 1 / 2 \frac{1}{2}y_0 = y_0 e^{kT_{1/2}} 2 1 y 0 = y 0 e k T 1/2 We get k = − ln 2 T 1 / 2 k = -\frac{\ln 2}{T_{1/2}} k = − T 1/2 l n 2 .
The half-life is a constant: no matter when you start measuring, the time for the quantity to halve Is always T 1 / 2 T_{1/2} T 1/2 . This is a direct consequence of the exponential”s scale-invariance.
Note
Example Carbon-14 has a half-life of approximately 5730 years. A bone fragment contains 25% of its original Carbon-14. How old is the fragment?
0.25 = e k t ⟹ ln 0.25 = k t 0.25 = e^{kt} \implies \ln 0.25 = kt 0.25 = e k t ⟹ ln 0.25 = k t K = − ln 2 5730 ≈ − 0.000121 K = -\frac{\ln 2}{5730} \approx -0.000121 K = − 5730 ln 2 ≈ − 0.000121 T = \frac{\ln 0.25}{k} = \frac{-1.386}{-0.000121} \approx 11460 \mathrm{ years (Equivalently, 25 % = 1 4 = 2 − 2 25\% = \frac{1}{4} = 2^{-2} 25% = 4 1 = 2 − 2 So t = 2 × 5730 = 11460 t = 2 \times 5730 = 11460 t = 2 × 5730 = 11460 years.)
For exponential growth with doubling time T d T_d T d :
Y 0 e k T d = 2 y 0 ⟹ k = ln 2 T d Y_0 e^{kT_d} = 2y_0 \implies k = \frac{\ln 2}{T_d} Y 0 e k T d = 2 y 0 ⟹ k = T d ln 2 The logistic differential equation models growth with a carrying capacity L L L :
d y d t = k y ( 1 − y L ) \frac{dy}{dt} = ky\!\left(1 - \frac{y}{L}\right) d t d y = k y ( 1 − L y ) When y y y is small relative to L L L Growth is approximately exponential (the factor 1 − y L ≈ 1 1 - \frac{y}{L} \approx 1 1 − L y ≈ 1 ). As y → L y \to L y → L The growth rate → 0 \to 0 → 0 . The carrying capacity L L L is a horizontal asymptote. If y > L y \gt L y > L The growth rate is negative, pulling y y y back toward L L L . The general solution is:
Y ( t ) = L 1 + A e − k t Y(t) = \frac{L}{1 + Ae^{-kt}} Y ( t ) = 1 + A e − k t L Where A = L − y 0 y 0 A = \frac{L - y_0}{y_0} A = y 0 L − y 0 depends on the initial condition.
Starting with d y d t = k y ( 1 − y L ) \frac{dy}{dt} = ky\!\left(1 - \frac{y}{L}\right) d t d y = k y ( 1 − L y ) Separate:
∫ L y ( L − y ) d y = ∫ k d t \int \frac{L}{y(L - y)}\, dy = \int k\, dt ∫ y ( L − y ) L d y = ∫ k d t Use partial fractions: L y ( L − y ) = 1 y + 1 L − y \frac{L}{y(L-y)} = \frac{1}{y} + \frac{1}{L - y} y ( L − y ) L = y 1 + L − y 1 .
∫ 1 y d y + ∫ 1 L − y d y = k t + C \int \frac{1}{y}\, dy + \int \frac{1}{L - y}\, dy = kt + C ∫ y 1 d y + ∫ L − y 1 d y = k t + C ln ∣ y ∣ − ln ∣ L − y ∣ = k t + C \ln|y| - \ln|L - y| = kt + C ln ∣ y ∣ − ln ∣ L − y ∣ = k t + C ln ∣ y L − y ∣ = k t + C \ln\left|\frac{y}{L - y}\right| = kt + C ln L − y y = k t + C y L − y = C e k t \frac{y}{L - y} = Ce^{kt} L − y y = C e k t Solving for y y y : y = C e k t ( L − y ) ⟹ y ( 1 + C e k t ) = C e k t L y = Ce^{kt}(L - y) \implies y(1 + Ce^{kt}) = Ce^{kt}L y = C e k t ( L − y ) ⟹ y ( 1 + C e k t ) = C e k t L So:
Y = C e k t L 1 + C e k t = L 1 + 1 C e − k t = L 1 + A e − k t Y = \frac{Ce^{kt}L}{1 + Ce^{kt}} = \frac{L}{1 + \frac{1}{C}e^{-kt}} = \frac{L}{1 + Ae^{-kt}} Y = 1 + C e k t C e k t L = 1 + C 1 e − k t L = 1 + A e − k t L Inflection point at y = L 2 y = \frac{L}{2} y = 2 L : the curve changes from concave up to concave down.The maximum growth rate occurs at the inflection point. d y d t ∣ y = L / 2 = k L 4 \displaystyle\left.\frac{dy}{dt}\right|_{y = L/2} = \frac{kL}{4} d t d y y = L /2 = 4 k L Note
Example A population of bacteria grows logistically with carrying capacity 1000. Initially, there are 100 Bacteria, and after 1 hour there are 200. Find the population after 3 hours.
Y ( t ) = 1000 1 + A e − k t Y(t) = \frac{1000}{1 + Ae^{-kt}} Y ( t ) = 1 + A e − k t 1000 At t = 0 t = 0 t = 0 : 100 = 1000 1 + A ⟹ 1 + A = 10 ⟹ A = 9 100 = \frac{1000}{1 + A} \implies 1 + A = 10 \implies A = 9 100 = 1 + A 1000 ⟹ 1 + A = 10 ⟹ A = 9 .
Y ( t ) = 1000 1 + 9 e − k t Y(t) = \frac{1000}{1 + 9e^{-kt}} Y ( t ) = 1 + 9 e − k t 1000 At t = 1 t = 1 t = 1 : 200 = 1000 1 + 9 e − k ⟹ 1 + 9 e − k = 5 ⟹ e − k = 4 9 ⟹ k = ln 9 4 200 = \frac{1000}{1 + 9e^{-k}} \implies 1 + 9e^{-k} = 5 \implies e^{-k} = \frac{4}{9} \implies k = \ln\frac{9}{4} 200 = 1 + 9 e − k 1000 ⟹ 1 + 9 e − k = 5 ⟹ e − k = 9 4 ⟹ k = ln 4 9 .
Y ( 3 ) = 1000 1 + 9 ( 4 9 ) 3 = 1000 1 + 9 ⋅ 64 729 = 1000 1 + 576 729 = 1000 ⋅ 729 1305 ≈ 558.6 Y(3) = \frac{1000}{1 + 9\left(\frac{4}{9}\right)^3} = \frac{1000}{1 + 9 \cdot \frac{64}{729}} = \frac{1000}{1 + \frac{576}{729}} = \frac{1000 \cdot 729}{1305} \approx 558.6 Y ( 3 ) = 1 + 9 ( 9 4 ) 3 1000 = 1 + 9 ⋅ 729 64 1000 = 1 + 729 576 1000 = 1305 1000 ⋅ 729 ≈ 558.6 So approximately 559 bacteria.
A slope field (or direction field) is a graphical representation of a first-order DE d y d x = f ( x , y ) \frac{dy}{dx} = f(x, y) d x d y = f ( x , y ) . At each point ( x , y ) (x, y) ( x , y ) on a grid, a short line segment is drawn with Slope f ( x , y ) f(x, y) f ( x , y ) . Think of it as a vector field for the flow of solutions: each tiny line segment Shows the direction a solution curve must pass through that point.
For any given grid point ( x i , y j ) (x_i, y_j) ( x i , y j ) Compute f ( x i , y j ) f(x_i, y_j) f ( x i , y j ) and draw a short segment with that Slope. The density of the grid determines how accurately the field represents the DE.
The general shape of solution curves can be visualized by following the direction of the line segments. Equilibrium solutions (horizontal lines) occur where f ( x , y ) = 0 f(x, y) = 0 f ( x , y ) = 0 for all x x x . The slope field is unique to the DE, but multiple solution curves pass through different points. Solution curves cannot cross (by the uniqueness theorem). Note
Example For d y d x = x y \displaystyle\frac{dy}{dx} = \frac{x}{y} d x d y = y x :
When y > 0 y \gt 0 y > 0 : slopes have the same sign as x x x . When y < 0 y \lt 0 y < 0 : slopes have the opposite sign of x x x . When y = 0 y = 0 y = 0 : slopes are undefined (vertical line segments).
The solution curves are hyperbolas y 2 − x 2 = C y^2 - x^2 = C y 2 − x 2 = C Consistent with our earlier analytic solution.
Euler’s method approximates the solution to d y d x = f ( x , y ) \frac{dy}{dx} = f(x, y) d x d y = f ( x , y ) with y ( x 0 ) = y 0 y(x_0) = y_0 y ( x 0 ) = y 0 using a Simple iterative scheme:
Y n + 1 = y n + f ( x n , y n ) ⋅ Δ x Y_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x Y n + 1 = y n + f ( x n , y n ) ⋅ Δ x X n + 1 = x n + Δ x X_{n+1} = x_n + \Delta x X n + 1 = x n + Δ x Where Δ x = h \Delta x = h Δ x = h is the step size.
The definition of the derivative gives us d y d x ∣ x n ≈ y n + 1 − y n Δ x \frac{dy}{dx}\big|_{x_n} \approx \frac{y_{n+1} - y_n}{\Delta x} d x d y x n ≈ Δ x y n + 1 − y n , so y n + 1 ≈ y n + f ( x n , y n ) ⋅ Δ x y_{n+1} \approx y_n + f(x_n, y_n) \cdot \Delta x y n + 1 ≈ y n + f ( x n , y n ) ⋅ Δ x . This is a first-order Taylor expansion: we are Approximating the curve locally by its tangent line at each step.
Euler’s method is first-order accurate : the global error is proportional to Δ x \Delta x Δ x . Local truncation error per step is O ( Δ x 2 ) O(\Delta x^2) O ( Δ x 2 ) But errors accumulate over n = b − a Δ x n = \frac{b-a}{\Delta x} n = Δ x b − a steps, giving a global error of O ( Δ x ) O(\Delta x) O ( Δ x ) .Smaller step sizes produce more accurate approximations but require more computation. The method can diverge if the step size is too large, especially for rapidly changing solutions. Note
Example Use Euler’s method with Δ x = 0.5 \Delta x = 0.5 Δ x = 0.5 to approximate y ( 2 ) y(2) y ( 2 ) for d y d x = x + y \frac{dy}{dx} = x + y d x d y = x + y y ( 1 ) = 0 y(1) = 0 y ( 1 ) = 0 .
Step x n x_n x n y n y_n y n f ( x n , y n ) = x n + y n f(x_n, y_n) = x_n + y_n f ( x n , y n ) = x n + y n y n + 1 = y n + f ⋅ Δ x y_{n+1} = y_n + f \cdot \Delta x y n + 1 = y n + f ⋅ Δ x 0 1.0 0 1.0 0 + 1.0 ( 0.5 ) = 0.5 0 + 1.0(0.5) = 0.5 0 + 1.0 ( 0.5 ) = 0.5 1 1.5 0.5 2.0 0.5 + 2.0 ( 0.5 ) = 1.5 0.5 + 2.0(0.5) = 1.5 0.5 + 2.0 ( 0.5 ) = 1.5 2 2.0 1.5 —
So y ( 2 ) ≈ 1.5 y(2) \approx 1.5 y ( 2 ) ≈ 1.5 .
(The exact solution is y = e x − 1 − x − 1 y = e^{x-1} - x - 1 y = e x − 1 − x − 1 Giving y ( 2 ) = e − 3 ≈ − 0.282 y(2) = e - 3 \approx -0.282 y ( 2 ) = e − 3 ≈ − 0.282 . The Approximation is poor due to the large step size. With Δ x = 0.1 \Delta x = 0.1 Δ x = 0.1 The result is much closer.)
Use Euler’s method with Δ x = 0.25 \Delta x = 0.25 Δ x = 0.25 to approximate y ( 1 ) y(1) y ( 1 ) for d y d x = x 2 + y \frac{dy}{dx} = x^2 + y d x d y = x 2 + y y ( 0 ) = 1 y(0) = 1 y ( 0 ) = 1 .
Step x n x_n x n y n y_n y n f ( x n , y n ) f(x_n, y_n) f ( x n , y n ) y n + 1 y_{n+1} y n + 1 0 0.00 1.000 1.000 1.250 1 0.25 1.250 1.313 1.578 2 0.50 1.578 1.828 2.035 3 0.75 2.035 2.613 2.688 4 1.00 2.688 — —
So y ( 1 ) ≈ 2.688 y(1) \approx 2.688 y ( 1 ) ≈ 2.688 .
d T d t = − k ( T − T s ) \frac{dT}{dt} = -k(T - T_s) d t d T = − k ( T − T s ) Where T T T is the temperature of the object, T s T_s T s is the surrounding temperature, and k > 0 k \gt 0 k > 0 .
Intuition: the rate of cooling is proportional to the temperature difference between the object And its surroundings. A large temperature difference drives rapid cooling; as the object approaches Room temperature, cooling slows down.
Solution:
T ( t ) = T s + ( T 0 − T s ) e − k t T(t) = T_s + (T_0 - T_s)e^{-kt} T ( t ) = T s + ( T 0 − T s ) e − k t This is an exponential decay toward T s T_s T s . The object asymptotically approaches the surrounding Temperature but never quite reaches it.
Note
Example A cup of coffee at 90^\circ\mathrm{C is placed in a room at 20^\circ\mathrm{C . After 10 minutes, The coffee is 60^\circ\mathrm{C . When will the coffee reach 35^\circ\mathrm{C ?
T ( t ) = 20 + 70 e − k t T(t) = 20 + 70e^{-kt} T ( t ) = 20 + 70 e − k t At t = 10 t = 10 t = 10 : 60 = 20 + 70 e − 10 k ⟹ 40 = 70 e − 10 k ⟹ e − 10 k = 4 7 ⟹ k = ln ( 7 / 4 ) 10 60 = 20 + 70e^{-10k} \implies 40 = 70e^{-10k} \implies e^{-10k} = \frac{4}{7} \implies k = \frac{\ln(7/4)}{10} 60 = 20 + 70 e − 10 k ⟹ 40 = 70 e − 10 k ⟹ e − 10 k = 7 4 ⟹ k = 10 l n ( 7/4 ) .
For T = 35 T = 35 T = 35 :
35 = 20 + 70 e − k t ⟹ 15 = 70 e − k t ⟹ e − k t = 3 14 35 = 20 + 70e^{-kt} \implies 15 = 70e^{-kt} \implies e^{-kt} = \frac{3}{14} 35 = 20 + 70 e − k t ⟹ 15 = 70 e − k t ⟹ e − k t = 14 3 T = \frac{\ln(14/3)}{k} = \frac{10\ln(14/3)}{\ln(7/4)} \approx \frac{10 \times 1.540}{0.5596} \approx 27.5 \mathrm{ minutes A tank contains V V V liters of water with Q 0 Q_0 Q 0 kg of dissolved substance. Solution with Concentration c i c_i c i kg/L flows in at rate r i r_i r i L/min, and the mixture flows out at rate r o r_o r o L/min.
The rate of change of the amount Q Q Q of dissolved substance is:
\frac{dQ}{dt} = \underbrace{r_i c_i}_{\mathrm{rate in} - \underbrace{\frac{r_o}{V} Q}_{\mathrm{rate out} The term Q V \frac{Q}{V} V Q is the current concentration in the tank, so r o V Q \frac{r_o}{V}Q V r o Q is the rate at Which substance leaves.
Note
Example A tank holds 100 L of pure water. Brine with 0.5 kg/L salt flows in at 5 L/min, and the mixture Flows out at 5 L/min. Find the salt content after 20 minutes.
Since r i = r o = 5 r_i = r_o = 5 r i = r o = 5 The volume stays at 100 L.
d Q d t = 5 ( 0.5 ) − 5 100 Q = 2.5 − 0.05 Q \frac{dQ}{dt} = 5(0.5) - \frac{5}{100}Q = 2.5 - 0.05Q d t d Q = 5 ( 0.5 ) − 100 5 Q = 2.5 − 0.05 Q This is separable: d Q 2.5 − 0.05 Q = d t \displaystyle\frac{dQ}{2.5 - 0.05Q} = dt 2.5 − 0.05 Q d Q = d t .
∫ d Q 2.5 − 0.05 Q = ∫ d t ⟹ − 1 0.05 ln ∣ 2.5 − 0.05 Q ∣ = t + C \int \frac{dQ}{2.5 - 0.05Q} = \int dt \implies -\frac{1}{0.05}\ln|2.5 - 0.05Q| = t + C ∫ 2.5 − 0.05 Q d Q = ∫ d t ⟹ − 0.05 1 ln ∣2.5 − 0.05 Q ∣ = t + C With Q ( 0 ) = 0 Q(0) = 0 Q ( 0 ) = 0 : − 20 ln 2.5 = C -20\ln 2.5 = C − 20 ln 2.5 = C .
Q ( t ) = 2.5 0.05 ( 1 − e − 0.05 t ) = 50 ( 1 − e − 0.05 t ) Q(t) = \frac{2.5}{0.05}\left(1 - e^{-0.05t}\right) = 50(1 - e^{-0.05t}) Q ( t ) = 0.05 2.5 ( 1 − e − 0.05 t ) = 50 ( 1 − e − 0.05 t ) Q(20) = 50(1 - e^{-1}) \approx 50(1 - 0.368) \approx 31.6 \mathrm{ kg A tank initially contains 200 L of pure water. Brine with 0.3 kg/L salt flows in at 4 L/min, and the Mixture flows out at 3 L/min. Find the salt content after 60 minutes.
Since r i ≠ r o r_i \neq r_o r i = r o The volume changes: V ( t ) = 200 + ( 4 − 3 ) t = 200 + t V(t) = 200 + (4 - 3)t = 200 + t V ( t ) = 200 + ( 4 − 3 ) t = 200 + t .
d Q d t = 4 ( 0.3 ) − 3 200 + t Q = 1.2 − 3 Q 200 + t \frac{dQ}{dt} = 4(0.3) - \frac{3}{200 + t}Q = 1.2 - \frac{3Q}{200 + t} d t d Q = 4 ( 0.3 ) − 200 + t 3 Q = 1.2 − 200 + t 3 Q This is a first-order linear DE:
d Q d t + 3 200 + t Q = 1.2 \frac{dQ}{dt} + \frac{3}{200 + t}Q = 1.2 d t d Q + 200 + t 3 Q = 1.2 The integrating factor is:
μ ( t ) = e ∫ 3 200 + t d t = e 3 ln ( 200 + t ) = ( 200 + t ) 3 \mu(t) = e^{\int \frac{3}{200+t}\, dt} = e^{3\ln(200+t)} = (200 + t)^3 μ ( t ) = e ∫ 200 + t 3 d t = e 3 l n ( 200 + t ) = ( 200 + t ) 3 d d t [ ( 200 + t ) 3 Q ] = 1.2 ( 200 + t ) 3 \frac{d}{dt}[(200 + t)^3 Q] = 1.2(200 + t)^3 d t d [( 200 + t ) 3 Q ] = 1.2 ( 200 + t ) 3 Integrate:
( 200 + t ) 3 Q = 1.2 ⋅ ( 200 + t ) 4 4 + C = 0.3 ( 200 + t ) 4 + C (200 + t)^3 Q = 1.2 \cdot \frac{(200 + t)^4}{4} + C = 0.3(200 + t)^4 + C ( 200 + t ) 3 Q = 1.2 ⋅ 4 ( 200 + t ) 4 + C = 0.3 ( 200 + t ) 4 + C With Q ( 0 ) = 0 Q(0) = 0 Q ( 0 ) = 0 : 200 3 ⋅ 0 = 0.3 ⋅ 200 4 + C ⟹ C = − 0.3 ⋅ 200 4 200^3 \cdot 0 = 0.3 \cdot 200^4 + C \implies C = -0.3 \cdot 200^4 20 0 3 ⋅ 0 = 0.3 ⋅ 20 0 4 + C ⟹ C = − 0.3 ⋅ 20 0 4 .
Q ( t ) = 0.3 ( 200 + t ) − 0.3 ⋅ 200 4 ( 200 + t ) 3 Q(t) = 0.3(200 + t) - \frac{0.3 \cdot 200^4}{(200 + t)^3} Q ( t ) = 0.3 ( 200 + t ) − ( 200 + t ) 3 0.3 ⋅ 20 0 4 At t = 60 t = 60 t = 60 : Q(60) = 0.3(260) - \frac{0.3 \cdot 200^4}{260^3} = 78 - \frac{0.3 \cdot 1.6 \times 10^9}{1.7576 \times 10^7} \approx 78 - 27.3 = 50.7 \mathrm{ kg .
If f ( x , y ) f(x, y) f ( x , y ) and ∂ f ∂ y \frac{\partial f}{\partial y} ∂ y ∂ f are continuous on a rectangle containing ( x 0 , y 0 ) (x_0, y_0) ( x 0 , y 0 ) Then the IVP d y d x = f ( x , y ) \frac{dy}{dx} = f(x, y) d x d y = f ( x , y ) , y ( x 0 ) = y 0 y(x_0) = y_0 y ( x 0 ) = y 0 has a unique solution in some Interval around x 0 x_0 x 0 .
Consequences:
Solution curves cannot cross (if they did, the IVP at the crossing point would have two solutions). The conditions are sufficient but not necessary: some IVPs without continuous partial derivatives still have unique solutions. An equilibrium solution (or constant solution) satisfies d y d t = 0 \frac{dy}{dt} = 0 d t d y = 0 for all t t t .
For autonomous equations d y d t = f ( y ) \frac{dy}{dt} = f(y) d t d y = f ( y ) :
Find equilibrium solutions by solving f ( y ) = 0 f(y) = 0 f ( y ) = 0 . Classify stability by checking the sign of f ( y ) f(y) f ( y ) near each equilibrium. Sign of f ( y ) f(y) f ( y ) near equilibrium Stability f ( y ) > 0 f(y) \gt 0 f ( y ) > 0 below, f ( y ) < 0 f(y) \lt 0 f ( y ) < 0 aboveStable (attractor) f ( y ) < 0 f(y) \lt 0 f ( y ) < 0 below, f ( y ) > 0 f(y) \gt 0 f ( y ) > 0 aboveUnstable (repeller) Same sign on both sides Semi-stable
For an autonomous DE d y d t = f ( y ) \frac{dy}{dt} = f(y) d t d y = f ( y ) The phase line is a one-dimensional diagram of the y y y -axis with arrows indicating the direction of flow.
Draw the y y y -axis and mark the equilibrium points (zeros of f f f ). In each interval between equilibria, test a point to determine the sign of f ( y ) f(y) f ( y ) . Draw rightward arrows where f ( y ) > 0 f(y) \gt 0 f ( y ) > 0 (increasing) and leftward arrows where f ( y ) < 0 f(y) \lt 0 f ( y ) < 0 (decreasing). Note
Example Analyse d y d t = y ( y − 2 ) ( y − 5 ) \displaystyle\frac{dy}{dt} = y(y - 2)(y - 5) d t d y = y ( y − 2 ) ( y − 5 ) .
Equilibria: y = 0 y = 0 y = 0 , y = 2 y = 2 y = 2 , y = 5 y = 5 y = 5 .
Interval Test point f ( y ) f(y) f ( y ) Direction y < 0 y \lt 0 y < 0 − 1 -1 − 1 ( − ) ( − ) ( − ) < 0 (-)(-)(-) \lt 0 ( − ) ( − ) ( − ) < 0 Decreasing 0 < y < 2 0 \lt y \lt 2 0 < y < 2 1 1 1 ( + ) ( − ) ( − ) > 0 (+)(-)(-) \gt 0 ( + ) ( − ) ( − ) > 0 Increasing 2 < y < 5 2 \lt y \lt 5 2 < y < 5 3 3 3 ( + ) ( + ) ( − ) < 0 (+)(+)(-) \lt 0 ( + ) ( + ) ( − ) < 0 Decreasing y > 5 y \gt 5 y > 5 6 6 6 ( + ) ( + ) ( + ) > 0 (+)(+)(+) \gt 0 ( + ) ( + ) ( + ) > 0 Increasing
y = 0 y = 0 y = 0 : arrows point away — unstable y = 2 y = 2 y = 2 : arrows point inward — stable y = 5 y = 5 y = 5 : arrows point away — unstable A bifurcation occurs when a small change in a parameter of the DE causes a qualitative change in The equilibrium structure.
Consider the one-parameter family:
d y d t = y 2 + c \frac{dy}{dt} = y^2 + c d t d y = y 2 + c When c > 0 c \gt 0 c > 0 : f ( y ) = y 2 + c > 0 f(y) = y^2 + c \gt 0 f ( y ) = y 2 + c > 0 for all y y y . No equilibria. All solutions increase monotonically. When c = 0 c = 0 c = 0 : f ( y ) = y 2 f(y) = y^2 f ( y ) = y 2 . One semi-stable equilibrium at y = 0 y = 0 y = 0 . Solutions with y < 0 y \lt 0 y < 0 decrease toward − ∞ -\infty − ∞ ; solutions with y > 0 y \gt 0 y > 0 increase toward + ∞ +\infty + ∞ . When c < 0 c \lt 0 c < 0 : f ( y ) = y 2 + c = 0 f(y) = y^2 + c = 0 f ( y ) = y 2 + c = 0 has two equilibria at y = ± − c y = \pm\sqrt{-c} y = ± − c . The equilibrium at y = − − c y = -\sqrt{-c} y = − − c is unstable; the one at y = − c y = \sqrt{-c} y = − c is stable. The parameter value c = 0 c = 0 c = 0 is a bifurcation point : as c c c passes through zero, the system Transitions from having no equilibria to having two.
Euler’s method is the simplest numerical ODE solver, but it is rarely used in practice because Higher-order methods achieve the same accuracy with far fewer steps.
Compute the “predictor”: y n + 1 ∗ = y n + f ( x n , y n ) ⋅ Δ x y_{n+1}^* = y_n + f(x_n, y_n) \cdot \Delta x y n + 1 ∗ = y n + f ( x n , y n ) ⋅ Δ x Compute the average slope: m = f ( x n , y n ) + f ( x n + 1 , y n + 1 ∗ ) 2 m = \frac{f(x_n, y_n) + f(x_{n+1}, y_{n+1}^*)}{2} m = 2 f ( x n , y n ) + f ( x n + 1 , y n + 1 ∗ ) Compute the “corrector”: y n + 1 = y n + m ⋅ Δ x y_{n+1} = y_n + m \cdot \Delta x y n + 1 = y n + m ⋅ Δ x This is second-order accurate: the global error is O ( Δ x 2 ) O(\Delta x^2) O ( Δ x 2 ) .
The gold standard for general-purpose ODE solving:
K 1 = f ( x n , y n ) K_1 = f(x_n, y_n) K 1 = f ( x n , y n ) K 2 = f ( x n + h 2 , y n + h 2 k 1 ) K_2 = f\!\left(x_n + \frac{h}{2},\, y_n + \frac{h}{2}k_1\right) K 2 = f ( x n + 2 h , y n + 2 h k 1 ) K 3 = f ( x n + h 2 , y n + h 2 k 2 ) K_3 = f\!\left(x_n + \frac{h}{2},\, y_n + \frac{h}{2}k_2\right) K 3 = f ( x n + 2 h , y n + 2 h k 2 ) K 4 = f ( x n + h , y n + h k 3 ) K_4 = f(x_n + h,\, y_n + hk_3) K 4 = f ( x n + h , y n + h k 3 ) Y n + 1 = y n + h 6 ( k 1 + 2 k 2 + 2 k 3 + k 4 ) Y_{n+1} = y_n + \frac{h}{6}(k_1 + 2k_2 + 2k_3 + k_4) Y n + 1 = y n + 6 h ( k 1 + 2 k 2 + 2 k 3 + k 4 ) RK4 is fourth-order accurate: the global error is O ( Δ x 4 ) O(\Delta x^4) O ( Δ x 4 ) . For most AP-level problems, Euler’s method with small step size suffices, but understanding that more sophisticated methods Exist provides useful context.
Note
RK4 Example Use RK4 with h = 0.5 h = 0.5 h = 0.5 to approximate y ( 1 ) y(1) y ( 1 ) for d y d x = x + y \frac{dy}{dx} = x + y d x d y = x + y , y ( 0 ) = 1 y(0) = 1 y ( 0 ) = 1 .
Step 1 (x 0 = 0 x_0 = 0 x 0 = 0 , y 0 = 1 y_0 = 1 y 0 = 1 ):
k 1 = 0 + 1 = 1 k_1 = 0 + 1 = 1 k 1 = 0 + 1 = 1
k 2 = ( 0.25 ) + ( 1 + 0.25 ) = 1.5 k_2 = (0.25) + (1 + 0.25) = 1.5 k 2 = ( 0.25 ) + ( 1 + 0.25 ) = 1.5
k 3 = ( 0.25 ) + ( 1 + 0.75 ) = 2.0 k_3 = (0.25) + (1 + 0.75) = 2.0 k 3 = ( 0.25 ) + ( 1 + 0.75 ) = 2.0
k 4 = ( 0.5 ) + ( 1 + 1.0 ) = 2.5 k_4 = (0.5) + (1 + 1.0) = 2.5 k 4 = ( 0.5 ) + ( 1 + 1.0 ) = 2.5
y 1 = 1 + 0.5 6 ( 1 + 3 + 4 + 5 ) = 1 + 0.5 × 13 6 = 1 + 1.0833 = 2.0833 y_1 = 1 + \frac{0.5}{6}(1 + 3 + 4 + 5) = 1 + \frac{0.5 \times 13}{6} = 1 + 1.0833 = 2.0833 y 1 = 1 + 6 0.5 ( 1 + 3 + 4 + 5 ) = 1 + 6 0.5 × 13 = 1 + 1.0833 = 2.0833
Step 2 (x 1 = 0.5 x_1 = 0.5 x 1 = 0.5 , y 1 = 2.0833 y_1 = 2.0833 y 1 = 2.0833 ):
k 1 = 0.5 + 2.0833 = 2.5833 k_1 = 0.5 + 2.0833 = 2.5833 k 1 = 0.5 + 2.0833 = 2.5833
k 2 = ( 0.75 ) + ( 2.0833 + 0.6458 ) = 3.4791 k_2 = (0.75) + (2.0833 + 0.6458) = 3.4791 k 2 = ( 0.75 ) + ( 2.0833 + 0.6458 ) = 3.4791
k 3 = ( 0.75 ) + ( 2.0833 + 0.8698 ) = 3.7031 k_3 = (0.75) + (2.0833 + 0.8698) = 3.7031 k 3 = ( 0.75 ) + ( 2.0833 + 0.8698 ) = 3.7031
k 4 = ( 1.0 ) + ( 2.0833 + 1.8516 ) = 4.9349 k_4 = (1.0) + (2.0833 + 1.8516) = 4.9349 k 4 = ( 1.0 ) + ( 2.0833 + 1.8516 ) = 4.9349
y 2 = 2.0833 + 0.5 6 ( 2.5833 + 6.9582 + 7.4062 + 9.8698 ) = 2.0833 + 2.2263 = 4.3096 y_2 = 2.0833 + \frac{0.5}{6}(2.5833 + 6.9582 + 7.4062 + 9.8698) = 2.0833 + 2.2263 = 4.3096 y 2 = 2.0833 + 6 0.5 ( 2.5833 + 6.9582 + 7.4062 + 9.8698 ) = 2.0833 + 2.2263 = 4.3096
So y ( 1 ) ≈ 4.3096 y(1) \approx 4.3096 y ( 1 ) ≈ 4.3096 . The exact answer is y = 2 e x − x − 1 y = 2e^x - x - 1 y = 2 e x − x − 1 So y ( 1 ) = 2 e − 2 ≈ 3.4366 y(1) = 2e - 2 \approx 3.4366 y ( 1 ) = 2 e − 2 ≈ 3.4366 . Even RK4 with this large step size has significant error, but it is far more accurate than Euler’s Method would be.
Forgetting the constant of integration. Always include + C +C + C and use the initial condition to find it. Every separable DE integration produces an arbitrary constant; dropping it means you have a family of curves, not the particular solution.
Incorrectly separating variables. All y y y terms (including d y dy d y ) must be on one side, and all x x x terms (including d x dx d x ) on the other. If you cannot algebraically factor f ( x , y ) f(x, y) f ( x , y ) into g ( x ) h ( y ) g(x)h(y) g ( x ) h ( y ) The equation is not separable and you need a different technique.
Not checking the domain of the solution. Some solutions may only be valid on a restricted interval. For example, the solution to d y d x = x y \frac{dy}{dx} = \frac{x}{y} d x d y = y x is y 2 = x 2 + C y^2 = x^2 + C y 2 = x 2 + C But if C < 0 C \lt 0 C < 0 Then y y y is undefined for ∣ x ∣ < − C |x| \lt \sqrt{-C} ∣ x ∣ < − C .
Confusing the logistic growth equation with exponential growth. The logistic equation has the additional factor ( 1 − y L ) \left(1 - \frac{y}{L}\right) ( 1 − L y ) that caps growth at the carrying capacity.
Sign errors in Euler’s method. Remember: y n + 1 = y n + f ( x n , y n ) ⋅ Δ x y_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x y n + 1 = y n + f ( x n , y n ) ⋅ Δ x Not minus. The slope at the current point tells you which direction to step.
Identifying the wrong carrying capacity. In d y d t = k y ( 1 − y / L ) \frac{dy}{dt} = ky(1 - y/L) d t d y = k y ( 1 − y / L ) The carrying capacity is L L L Not 1 L \frac{1}{L} L 1 or k L kL k L . Check: setting d y d t = 0 \frac{dy}{dt} = 0 d t d y = 0 gives y = 0 y = 0 y = 0 or y = L y = L y = L .
Forgetting that equilibrium solutions cannot be found by separation of variables (since you would divide by zero). Always check f ( y ) = 0 f(y) = 0 f ( y ) = 0 separately before separating.
Applying Euler’s method with too large a step size. The approximation can diverge significantly from the true solution. When in doubt, halve the step size and check convergence.
Solve d y d x = x 2 + 1 y \displaystyle\frac{dy}{dx} = \frac{x^2 + 1}{y} d x d y = y x 2 + 1 with y ( 0 ) = 1 y(0) = 1 y ( 0 ) = 1 .
A population grows according to d P d t = 0.02 P ( 1 − P 50000 ) \displaystyle\frac{dP}{dt} = 0.02P\!\left(1 - \frac{P}{50000}\right) d t d P = 0.02 P ( 1 − 50000 P ) with P ( 0 ) = 1000 P(0) = 1000 P ( 0 ) = 1000 . Find the population after 50 years.
Use Euler’s method with Δ x = 0.25 \Delta x = 0.25 Δ x = 0.25 and two steps to approximate y ( 0.5 ) y(0.5) y ( 0.5 ) for d y d x = x 2 + y \frac{dy}{dx} = x^2 + y d x d y = x 2 + y , y ( 0 ) = 1 y(0) = 1 y ( 0 ) = 1 .
A body at 80^\circ\mathrm{C is placed in a room at 25^\circ\mathrm{C . After 30 minutes, the body is at 50^\circ\mathrm{C . When will it reach 30^\circ\mathrm{C ?
For d y d x = y ( y − 2 ) ( y − 5 ) \displaystyle\frac{dy}{dx} = y(y - 2)(y - 5) d x d y = y ( y − 2 ) ( y − 5 ) Find all equilibrium solutions and classify their stability. Draw the phase line.
Sketch the slope field for d y d x = x y \displaystyle\frac{dy}{dx} = \frac{x}{y} d x d y = y x and identify the equilibrium solutions (if any).
A tank initially contains 200 L of water with 10 kg of salt. Pure water flows in at 3 L/min and the mixture flows out at 3 L/min. How much salt remains after 60 minutes?
Show that the solution to the logistic equation d y d t = k y ( 1 − y / L ) \displaystyle\frac{dy}{dt} = ky(1 - y/L) d t d y = k y ( 1 − y / L ) with y ( 0 ) = y 0 y(0) = y_0 y ( 0 ) = y 0 is y = L 1 + L − y 0 y 0 e − k t \displaystyle y = \frac{L}{1 + \frac{L - y_0}{y_0} e^{-kt}} y = 1 + y 0 L − y 0 e − k t L .
Use Euler’s method with Δ x = 0.2 \Delta x = 0.2 Δ x = 0.2 and four steps to approximate y ( 0.8 ) y(0.8) y ( 0.8 ) for d y d x = x y \frac{dy}{dx} = xy d x d y = x y , y ( 0 ) = 1 y(0) = 1 y ( 0 ) = 1 . Compare your result with the exact solution.
A tank contains 100 L of brine with 20 kg of salt. Fresh water flows in at 5 L/min and the mixture flows out at 5 L/min. How long does it take for the salt content to drop to 5 kg?
Analyse the bifurcation diagram for d y d t = y 2 − 2 y + c \frac{dy}{dt} = y^2 - 2y + c d t d y = y 2 − 2 y + c . Find the bifurcation point and describe the equilibrium structure on either side.
Use the improved Euler method (Heun’s method) with h = 0.5 h = 0.5 h = 0.5 and two steps to approximate y ( 1 ) y(1) y ( 1 ) for d y d x = x − y \frac{dy}{dx} = x - y d x d y = x − y , y ( 0 ) = 0 y(0) = 0 y ( 0 ) = 0 . Compare with the exact solution.
Question 1: Separable differential equation Solve the differential equation d y d x = x y x 2 + 1 \frac{dy}{dx} = \frac{xy}{x^2 + 1} d x d y = x 2 + 1 x y with the initial condition y ( 0 ) = 2 y(0) = 2 y ( 0 ) = 2 .
Answer Separate variables: d y y = x x 2 + 1 d x \frac{dy}{y} = \frac{x}{x^2 + 1} \, dx y d y = x 2 + 1 x d x .
Integrate: ln ∣ y ∣ = 1 2 ln ( x 2 + 1 ) + C \ln|y| = \frac{1}{2}\ln(x^2 + 1) + C ln ∣ y ∣ = 2 1 ln ( x 2 + 1 ) + C .
y = e C x 2 + 1 = A x 2 + 1 y = e^C \sqrt{x^2 + 1} = A\sqrt{x^2 + 1} y = e C x 2 + 1 = A x 2 + 1 where A = e C A = e^C A = e C .
Using y ( 0 ) = 2 y(0) = 2 y ( 0 ) = 2 : 2 = A 1 = A 2 = A\sqrt{1} = A 2 = A 1 = A So A = 2 A = 2 A = 2 .
y = 2 x 2 + 1 y = 2\sqrt{x^2 + 1} y = 2 x 2 + 1 .
Question 2: Logistic growth model A population grows according to the logistic equation d P d t = 0.05 P ( 1 − P 1000 ) \frac{dP}{dt} = 0.05P\!\left(1 - \frac{P}{1000}\right) d t d P = 0.05 P ( 1 − 1000 P ) with P ( 0 ) = 100 P(0) = 100 P ( 0 ) = 100 . Find (a) the population at t = 50 t = 50 t = 50 And (b) the time when the population reaches half the carrying capacity.
Answer Carrying capacity K = 1000 K = 1000 K = 1000 Growth rate r = 0.05 r = 0.05 r = 0.05 .
Logistic solution: P ( t ) = K 1 + A e − r t P(t) = \frac{K}{1 + Ae^{-rt}} P ( t ) = 1 + A e − r t K where A = K − P 0 P 0 = 1000 − 100 100 = 9 A = \frac{K - P_0}{P_0} = \frac{1000 - 100}{100} = 9 A = P 0 K − P 0 = 100 1000 − 100 = 9 .
P ( t ) = 1000 1 + 9 e − 0.05 t P(t) = \frac{1000}{1 + 9e^{-0.05t}} P ( t ) = 1 + 9 e − 0.05 t 1000 .
(a) P ( 50 ) = 1000 1 + 9 e − 2.5 = 1000 1 + 9 ( 0.0821 ) = 1000 1 + 0.739 = 1000 1.739 = 575 P(50) = \frac{1000}{1 + 9e^{-2.5}} = \frac{1000}{1 + 9(0.0821)} = \frac{1000}{1 + 0.739} = \frac{1000}{1.739} = 575 P ( 50 ) = 1 + 9 e − 2.5 1000 = 1 + 9 ( 0.0821 ) 1000 = 1 + 0.739 1000 = 1.739 1000 = 575 .
(b) Half carrying capacity: P = 500 = 1000 1 + 9 e − 0.05 t P = 500 = \frac{1000}{1 + 9e^{-0.05t}} P = 500 = 1 + 9 e − 0.05 t 1000 .
1 + 9e^{-0.05t} = 2$$9e^{-0.05t} = 1$$e^{-0.05t} = 1/9 .
t = ln 9 0.05 = 2.197 0.05 = 43.9 t = \frac{\ln 9}{0.05} = \frac{2.197}{0.05} = 43.9 t = 0.05 l n 9 = 0.05 2.197 = 43.9 time units.
Question 3: Second-order linear DE Solve y ′ ′ − 5 y ′ + 6 y = 0 y'' - 5y' + 6y = 0 y ′′ − 5 y ′ + 6 y = 0 with y ( 0 ) = 1 y(0) = 1 y ( 0 ) = 1 and y ′ ( 0 ) = 0 y'(0) = 0 y ′ ( 0 ) = 0 .
Answer Characteristic equation: r^2 - 5r + 6 = 0$$(r-2)(r-3) = 0 . r = 2 , 3 r = 2, 3 r = 2 , 3 .
General solution: y = C 1 e 2 x + C 2 e 3 x y = C_1 e^{2x} + C_2 e^{3x} y = C 1 e 2 x + C 2 e 3 x .
y ( 0 ) = C 1 + C 2 = 1 y(0) = C_1 + C_2 = 1 y ( 0 ) = C 1 + C 2 = 1 . y ′ ( 0 ) = 2 C 1 + 3 C 2 = 0 y'(0) = 2C_1 + 3C_2 = 0 y ′ ( 0 ) = 2 C 1 + 3 C 2 = 0 .
From the second equation: C 1 = − 3 C 2 / 2 C_1 = -3C_2/2 C 1 = − 3 C 2 /2 . Substituting: -3C_2/2 + C_2 = 1$$-C_2/2 = 1$$C_2 = -2$$C_1 = 3 .
y = 3 e 2 x − 2 e 3 x y = 3e^{2x} - 2e^{3x} y = 3 e 2 x − 2 e 3 x .
Question 4: Slope field interpretation The differential equation d y d x = x − y \frac{dy}{dx} = x - y d x d y = x − y has a slope field. Identify the isocline (line where slopes are zero) and describe the long-term behaviour of solutions.
Answer Zero slopes: x − y = 0 x - y = 0 x − y = 0 So y = x y = x y = x . This is the isocline where all slopes are zero (horizontal).
For y > x y \gt x y > x (above the line y = x y = x y = x ): d y / d x = x − y < 0 dy/dx = x - y \lt 0 d y / d x = x − y < 0 So solutions decrease.
For y < x y \lt x y < x (below the line y = x y = x y = x ): d y / d x = x − y > 0 dy/dx = x - y \gt 0 d y / d x = x − y > 0 So solutions increase.
All solutions approach the line y = x − 1 y = x - 1 y = x − 1 as x → ∞ x \to \infty x → ∞ (this can be verified by solving the DE: the general solution is y = x − 1 + C e − x y = x - 1 + Ce^{-x} y = x − 1 + C e − x Which approaches x − 1 x - 1 x − 1 ).
The line y = x − 1 y = x - 1 y = x − 1 is a stable equilibrium solution.
Question 5: Euler's method Use Euler’s method with step size h = 0.5 h = 0.5 h = 0.5 to approximate y ( 2 ) y(2) y ( 2 ) for \frac{dy}{dx} = x + y$$y(1) = 0 .
Answer x_0 = 1$$y_0 = 0$$h = 0.5 . Need 2 steps.
Step 1: y 1 = y 0 + h ⋅ f ( x 0 , y 0 ) = 0 + 0.5 ( 1 + 0 ) = 0.5 y_1 = y_0 + h \cdot f(x_0, y_0) = 0 + 0.5(1 + 0) = 0.5 y 1 = y 0 + h ⋅ f ( x 0 , y 0 ) = 0 + 0.5 ( 1 + 0 ) = 0.5 at x 1 = 1.5 x_1 = 1.5 x 1 = 1.5 .
Step 2: y 2 = y 1 + h ⋅ f ( x 1 , y 1 ) = 0.5 + 0.5 ( 1.5 + 0.5 ) = 0.5 + 1.0 = 1.5 y_2 = y_1 + h \cdot f(x_1, y_1) = 0.5 + 0.5(1.5 + 0.5) = 0.5 + 1.0 = 1.5 y 2 = y 1 + h ⋅ f ( x 1 , y 1 ) = 0.5 + 0.5 ( 1.5 + 0.5 ) = 0.5 + 1.0 = 1.5 at x 2 = 2.0 x_2 = 2.0 x 2 = 2.0 .
Euler’s method approximation: y ( 2 ) ≈ 1.5 y(2) \approx 1.5 y ( 2 ) ≈ 1.5 .
Tip
the hardest questions within the AP specification for this topic, each with a full worked solution.
Unit tests probe edge cases and common misconceptions. Integration tests combine Differential Equations with other AP Calculus topics to test synthesis under exam conditions.
See for instructions on self-marking and building a personal test matrix.
A[4_Differential Equations] --> B[Key Concepts]
A --> D[Practical Applications]
B --> E[Fundamental definitions]
D --> G[Real-world usage]
This topic covers the mathematical techniques and concepts related to differential equations, including key theorems, methods, and problem-solving approaches.
Key concepts include:
sine, cosine, and tangent functions trigonometric identities solving trigonometric equations the sine and cosine rules radian measure and arc length Regular practice with a variety of question types is essential to build fluency and confidence in applying these mathematical techniques.
Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.
The recipe analogy: A differential equation is like a recipe that tells you how a quantity changes based on its current state. You follow the recipe (solve the equation) to predict the future behaviour of the system.
Why it matters: Differential equations are the language of change. They model everything from population growth and radioactive decay to electrical circuits and climate change.
The key insight: A differential equation describes a relationship between a quantity and its rate of change, allowing us to predict future states from current conditions.
Derivatives — Solving differential equations requires mastery of differentiation techniques including chain rule and implicit differentiation.Integrals — Separable differential equations are solved by integrating both sides, making integration essential to the topic.Sequences and Series — Power series solutions to differential equations connect the two topics through Taylor and Maclaurin series.AP Physics — Newton’s Laws : Newton’s second law F = ma is a second-order differential equation — solving for position from force requires differential equations.AP Physics — Circuits : RC and LR circuits are governed by first-order differential equations describing charge and current over time.