Plus
$7.99 / month
- GPT-OSS-20B (OpenAI)
- 20 AI credits/week
Save your current position in the course
Certificates are issued to Unlimited subscribers who finish a course. Your progress is saved either way — upgrade whenever you want yours.
Report a problem with this course via Discord
View available keyboard shortcuts
Reset all section and file completion progress
Imagine you are a scientist tracking the spread of a new virus, an engineer designing a cooling system for a high-performance engine, or an economist predicting how a market reaches equilibrium. In all these scenarios, you aren't just looking at a static snapshot of data; you are looking at change.
In Calculus, we have spent a great deal of time learning how to find the derivative (the rate of change) of a function. However, in the real world, we often know the rate of change before we know the function itself. For example, we know that the rate at which a population grows is often proportional to the size of the population. This relationship is expressed as an equation involving a derivative, known as a Differential Equation.
Differential equations are the language of the universe. They describe how planets move, how heat flows, and how signals travel through our nerves. In this unit, we will explore how to model these real-world phenomena, how to visualize them using slope fields, and how to solve them analytically and numerically. By the end of this chapter, you will move from the basic definition of a differential equation to solving complex logistic growth models that represent the constraints of our physical world.
To master differential equations, one must understand the following foundational terms and principles:
At the most basic level, a differential equation is simply a statement about how a function changes.
Verification: To verify if $y = e^{2x}$ is a solution to $\frac{dy}{dx} = 2y$, we find the derivative: $$\frac{d}{dx}(e^{2x}) = 2e^{2x}$$ Substituting $y = e^{2x}$ into the right side: $2(e^{2x}) = 2e^{2x}$. Since the left side equals the right side, the function is a solution.
Modeling: Translating words to math is crucial.
When we cannot solve a DE analytically, we visualize it. A Slope Field allows us to see the "flow" of the solutions. At any point $(x, y)$, the value of $\frac{dy}{dx}$ gives the slope of the solution curve passing through that point.
Euler's Method is the numerical version of following a slope field. Given an initial point $(x_0, y_0)$ and a step size $\Delta x = h$, we approximate the next point $(x_1, y_1)$ using the tangent line: $$x_{n+1} = x_n + h$$ $$y_{n+1} = y_n + f'(x_n, y_n) \cdot h$$ This process is repeated to march across the domain. Note that smaller step sizes generally lead to more accurate approximations, though the error accumulates.
This is the primary analytical method for solving DEs in AP Calculus. It applies to equations of the form: $$\frac{dy}{dx} = f(x)g(y)$$ Step-by-Step Process:
Important Note: You must separate variables before integrating. Integrating without separating (e.g., $\int \frac{dy}{dx} = \int (x+y) dx$) is a common error and will not yield a valid solution.
The equation $\frac{dy}{dt} = ky$ describes growth where the rate is proportional to the amount. Separating variables: $$\int \frac{1}{y} dy = \int k dt \implies \ln|y| = kt + C \implies y = e^{kt+C} \implies y = Ae^{kt}$$ Where $A = e^C$ is the initial amount at $t=0$.
In nature, populations cannot grow forever; they are limited by resources. This is modeled by: $$\frac{dy}{dt} = ky(L - y) \quad \text{or} \quad \frac{dy}{dt} = ky\left(1 - \frac{y}{L}\right)$$
Question: Verify that $y = C_1 \cos(x) + C_2 \sin(x)$ is a solution to $y'' + y = 0$. Solution:
Question: The rate of change of temperature $T$ of an object is proportional to the difference between $T$ and the ambient temperature $T_a$. Write the DE. Solution: $$\frac{dT}{dt} = k(T - T_a)$$
Question: For $\frac{dy}{dx} = x - y$, where are the slopes zero? Solution: Set $\frac{dy}{dx} = 0 \implies x - y = 0 \implies y = x$. Slopes are zero along the line $y=x$.
Question: Solve $\frac{dy}{dx} = \frac{2x}{y}$. Solution:
Question: Solve $\frac{dy}{dx} = (1+y^2)x$ given $y(0) = 1$. Solution:
Question: Given $\frac{dy}{dx} = x + y$ and $y(0) = 1$, approximate $y(0.2)$ using two steps of size $h=0.1$. Solution:
| $n$ | $x_n$ | $y_n$ | $dy/dx = x+y$ | $\Delta y = (dy/dx)h$ |
|---|---|---|---|---|
| 0 | 0 | 1 | $0+1=1$ | $1(0.1) = 0.1$ |
| 1 | 0.1 | 1.1 | $0.1+1.1=1.2$ | $1.2(0.1) = 0.12$ |
| 2 | 0.2 | 1.22 |
$y(0.2) \approx 1.22$.
Question: A substance decays such that $\frac{dy}{dt} = -0.05y$. If $y(0) = 100$, find $y(10)$. Solution: The solution is $y(t) = 100e^{-0.05t}$. $y(10) = 100e^{-0.5} \approx 60.65$.
Question: A population grows according to $\frac{dP}{dt} = 0.4P - 0.001P^2$. Find the carrying capacity. Solution: Rewrite as $\frac{dP}{dt} = 0.001P(400 - P)$. Comparing to $\frac{dP}{dt} = kP(L - P)$, $L = 400$.
Question: In Example 8, at what population size is the growth rate maximum? Solution: Growth rate is maximum at $P = \frac{L}{2} = \frac{400}{2} = 200$.
Question: Solve $\frac{dy}{dx} = \frac{y}{x}$ for $x > 0$. Solution: $\int \frac{1}{y} dy = \int \frac{1}{x} dx \implies \ln|y| = \ln|x| + C \implies |y| = e^{\ln|x|+C} = e^C |x|$. $y = kx$ (where $k = \pm e^C$).
Question: Solve $\frac{dy}{dt} = y^2 e^t$ with $y(0) = 1$. Solution: $y^{-2} dy = e^t dt \implies -y^{-1} = e^t + C$. $-1 = e^0 + C \implies -1 = 1 + C \implies C = -2$. $-1/y = e^t - 2 \implies y = \frac{1}{2 - e^t}$.
Question: Describe the slope field of $\frac{dy}{dx} = \frac{x}{y}$. Solution:
Question: $\frac{dy}{dx} = \frac{x+1}{y}$. Find general solution. Solution: $y , dy = (x+1) dx \implies \frac{y^2}{2} = \frac{x^2}{2} + x + C \implies y^2 = x^2 + 2x + C_1 \implies y = \pm\sqrt{x^2 + 2x + C_1}$.
Question: A rumor spreads such that $\frac{dy}{dt} = 2y(1 - \frac{y}{1000})$. If $y(0) = 50$, find $\lim_{t \to \infty} y(t)$. Solution: This is a logistic equation with $L = 1000$. The limit as $t \to \infty$ is always the carrying capacity $L = 1000$.
Question: $\frac{dy}{dx} = 3y, y(0) = 5$. Solution: $y = 5e^{3x}$.
Question: Is $\frac{dy}{dx} = x + y$ separable? Solution: No. You cannot write $x+y$ as a product of $f(x)$ and $g(y)$. (Requires other methods or slope fields).
Question: If $\frac{d^2y}{dx^2} > 0$, will Euler's method under- or over-estimate the solution? Solution: If $y'' > 0$, the function is concave up. The tangent line lies below the curve. Therefore, Euler's method will underestimate the solution.
Question: $\frac{dy}{dx} = x\sqrt{1-y^2}$. Solution: $\int \frac{1}{\sqrt{1-y^2}} dy = \int x , dx \implies \arcsin(y) = \frac{x^2}{2} + C \implies y = \sin\left(\frac{x^2}{2} + C\right)$.
Question: If $\frac{1}{y} \frac{dy}{dt} = 0.02$, describe the growth. Solution: This is $\frac{dy}{dt} = 0.02y$. It is exponential growth with a continuous growth rate of $2%$.
Question: Which DE matches a slope field where slopes are constant along the lines $y = -x + c$? Solution: A DE where $\frac{dy}{dx}$ depends on the sum $(x+y)$. For example, $\frac{dy}{dx} = x+y$.
Question: $\frac{dy}{dx} = \cos^2(y)$. Solution: $\sec^2(y) dy = dx \implies \tan(y) = x + C \implies y = \arctan(x + C)$.
Question: $\frac{dT}{dt} = -0.1(T - 20)$, $T(0) = 80$. Find $T(t)$. Solution: $\int \frac{1}{T-20} dT = \int -0.1 dt \implies \ln|T-20| = -0.1t + C$. $T-20 = Ae^{-0.1t}$. At $t=0, 80-20=60 \implies A=60$. $T(t) = 20 + 60e^{-0.1t}$.
Question: $\frac{dy}{dt} = 0.2y(10 - y)$. Find the growth constant $k$ as defined in $\frac{dy}{dt} = ky(L-y)$. Solution: $k = 0.2$. Note: some textbooks use $\frac{dy}{dt} = r y (1 - y/L)$. In that form, $r = 0.2 \times 10 = 2$.
Question: $\frac{dy}{dx} = e^{x-y}$. Solution: $\frac{dy}{dx} = \frac{e^x}{e^y} \implies e^y dy = e^x dx \implies e^y = e^x + C \implies y = \ln(e^x + C)$.
Question: $\frac{dy}{dx} = \frac{1}{x+2}, y(-1) = 0$. Solution: $y = \ln|x+2| + C \implies 0 = \ln|-1+2| + C \implies 0 = 0 + C \implies C=0$. $y = \ln(x+2)$ for $x > -2$.
Question: Given $\frac{dy}{dx} = y^2$, $y(0) = 1$. Find the domain of the particular solution. Solution: $\int y^{-2} dy = \int dx \implies -1/y = x + C$. $-1/1 = 0 + C \implies C = -1$. $-1/y = x - 1 \implies y = \frac{1}{1-x}$. The domain is $x < 1$ because the initial condition is at $x=0$.
Question: $\frac{dP}{dt} = 3P - 0.01P^2$. Where does the inflection point occur? Solution: $L = \frac{3}{0.01} = 300$. Inflection occurs at $P = L/2 = 150$.
Question: $\frac{dy}{dx} = y \sin x, y(0) = e$. Solution: $\int \frac{1}{y} dy = \int \sin x , dx \implies \ln|y| = -\cos x + C$. $\ln(e) = -\cos(0) + C \implies 1 = -1 + C \implies C = 2$. $\ln y = 2 - \cos x \implies y = e^{2 - \cos x}$.
Question: If $\frac{dy}{dx} = x^2 + y$, find $\frac{d^2y}{dx^2}$ at $(1, 2)$. Solution: $\frac{d^2y}{dx^2} = \frac{d}{dx}(x^2 + y) = 2x + \frac{dy}{dx}$. At $(1, 2)$, $\frac{dy}{dx} = 1^2 + 2 = 3$. $\frac{d^2y}{dx^2} = 2(1) + 3 = 5$.
Question: $y(1) = 5, \frac{dy}{dx} = 2x$. Approximate $y(0)$ with $h = -0.5$. Solution:
Question: Solve $\frac{dy}{dt} = y(1-y)$. Solution: $\int \frac{1}{y(1-y)} dy = \int dt \implies \int (\frac{1}{y} + \frac{1}{1-y}) dy = t + C$. $\ln|y| - \ln|1-y| = t + C \implies \ln|\frac{y}{1-y}| = t + C$. $\frac{y}{1-y} = Ae^t$. Solving for $y$ gives $y = \frac{Ae^t}{1+Ae^t} = \frac{1}{1+Ce^{-t}}$.
Question: Can this be solved via separation of variables? Solution: No. $x^2 + y^2$ cannot be factored into $f(x)g(y)$. We must use numerical methods or slope fields.
Question: For $\frac{dy}{dx} = \sin(x)$, what is the behavior of $y$ as $x \to \infty$? Solution: $y = \int \sin x dx = -\cos x + C$. The function oscillates and does not approach a single limit.
Question: What is $\frac{dy}{dt}$ when $y = L$? Solution: $\frac{dy}{dt} = k(L)(L - L) = 0$. The population stops growing.
Question: Solve $\frac{dy}{dx} = \frac{1}{x}$ with $y(1) = 3$. Solution: $y = \ln|x| + C \implies 3 = \ln(1) + C \implies C = 3$. $y = \ln|x| + 3$. For $x>0$, $y = \ln(x) + 3$.
Right-click any tab and choose Split screen to view it here.
Course Mastery Certificates require an active Unlimited subscription at the time of generation and 100% course completion. They recognise learning content completion only — not an accredited qualification, licence, or professional credential unless explicitly stated. edusolum may modify eligibility, design, and issuance requirements per its Terms of Service.