Back to homeMathematics · AP Calculus BC · Change subject
Start for free
Differential Equations

Separation of Variables

Practise this section (12)

A 64-gallon rain barrel has a small hole near the bottom. The fuller the barrel, the faster it leaks, so the leak rate depends on the amount of water still inside: $\dfrac{dV}{dt} = -2\sqrt{V}$ gallons per hour. How much water is left after 3 hours? When does the barrel run dry? You can't just integrate, because the right side has $V$ in it, and $V$ is the unknown function. Separation of variables is the tool that cracks this kind of problem.

Separable Differential Equations

A differential equation is an equation that involves a function and its derivatives. A solution is a function that makes the equation true. For example, $y = x^3$ solves $\dfrac{dy}{dx} = 3x^2$.

That one is easy: integrate both sides. But try it with $\dfrac{dy}{dx} = 2xy$. If you write $y = \int 2xy\,dx$, you are stuck, because you can't integrate $y$ with respect to $x$ when you don't know how $y$ depends on $x$.

The idea is to get all the $y$'s on one side with $dy$, and all the $x$'s on the other side with $dx$.

Why does this work? Divide $\dfrac{dy}{dx} = g(x)h(y)$ by $h(y)$ to get $\dfrac{1}{h(y)}\dfrac{dy}{dx} = g(x)$. Now integrate both sides with respect to $x$. On the left, a $u$-substitution with $u = y$ turns $\int \frac{1}{h(y)}\frac{dy}{dx}\,dx$ into $\int \frac{1}{h(y)}\,dy$. Writing $dy$ and $dx$ on opposite sides is a shortcut for that substitution.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Find the general solution of $\dfrac{dy}{dx} = 3x^2y$ by separating variables. Assume $y > 0$.

Find the general solution of $\dfrac{dy}{dx} = 3x^2y$ by separating variables. Assume $y > 0$.

Solve

Initial Conditions: Particular Solutions

The general solution is a family of curves. In the family $y = Cx^2$ (the general solution of $x\,\dfrac{dy}{dx} = 2y$), each value of $C$ gives a different parabola.

An initial condition such as $y(1) = 2$ says "the curve passes through the point $(1, 2)$." That picks exactly one curve from the family. Here $2 = C\cdot 1^2$ gives $C = 2$. The result is a particular solution.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Find the particular solution $y = f(x)$ to the differential equation $\dfrac{dy}{dx} = 2y$ with the initial condition $f(0) = 5$.

Find the particular solution $y = f(x)$ to the differential equation $\dfrac{dy}{dx} = 2y$ with the initial condition $f(0) = 5$.

Solve
Practice★☆☆Not started
Solve the differential equation $\dfrac{dy}{dx} = \dfrac{x}{y}$ with the initial condition $y(0) = 3$. Write $y$ as a function of $x$.

Solve the differential equation $\dfrac{dy}{dx} = \dfrac{x}{y}$ with the initial condition $y(0) = 3$. Write $y$ as a function of $x$.

Solve

The Integrals You'll Meet

After separating, the work is just antiderivatives. These are the ones that appear most often:

Separated piece Antiderivative
$\dfrac{1}{y}\,dy$ or $\dfrac{1}{y-k}\,dy$ $\ln\lvert y\rvert$ or $\ln\lvert y-k\rvert$
$y^{-2}\,dy$ $-\dfrac{1}{y}$
$y^{-1/2}\,dy$ $2\sqrt{y}$
$e^{y}\,dy$ $e^{y}$
$\dfrac{1}{1+y^2}\,dy$ $\arctan y$
$\cos x\,dx$ $\sin x$
$\dfrac{x}{x^2+1}\,dx$ $\tfrac12\ln(x^2+1)$ (use $u = x^2+1$)

The key move when a log appears is to exponentiate at the end. Remember that $e^{\ln|y+2|} = |y+2|$, and the initial condition tells you the sign inside.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Find the particular solution $y = f(x)$ to $\dfrac{dy}{dx} = (y - 1)\cos x$ with $f(0) = 3$. Then find the value of $f\!\left(\dfrac{\pi}{2}\right)$.

Find the particular solution $y = f(x)$ to $\dfrac{dy}{dx} = (y - 1)\cos x$ with $f(0) = 3$. Then find the value of $f\!\left(\dfrac{\pi}{2}\right)$.

Solve
Practice★★☆Not started
Let $y = f(x)$ be the solution to $\dfrac{dy}{dx} = xe^{-y}$ with $f(1) = 0$. (a) Find $f(x)$. (b) Write an equation of the tangent line to the graph of $f$ at $x = 1$…

Let $y = f(x)$ be the solution to $\dfrac{dy}{dx} = xe^{-y}$ with $f(1) = 0$.

(a) Find $f(x)$.

(b) Write an equation of the tangent line to the graph of $f$ at $x = 1$ and use it to approximate $f(1.2)$.

Solve

Tangent Lines, Second Derivatives, and Concavity

The equation $\dfrac{dy}{dx} = f(x,y)$ gives you the slope at every point $(x, y)$, even if you never solve it. That is enough to write tangent lines, approximate values, and study the shape of the graph.

To get the second derivative, differentiate the right side with respect to $x$. Treat $y$ as a function of $x$ (so use the chain, product, or quotient rule and remember that $\dfrac{d}{dx}(y) = \dfrac{dy}{dx}$). Then replace $\dfrac{dy}{dx}$ by the original expression.

A concave-up curve lies above its tangent line, so the tangent line gives an underestimate. graph of f tangent line concave up: the tangent line lies below the curve A concave-up curve lies above its tangent line, so the tangent line gives an underestimate.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Let $\dfrac{dy}{dx} = x - y$. Find $\dfrac{d^2y}{dx^2}$ in terms of $x$ and $y$.

Let $\dfrac{dy}{dx} = x - y$. Find $\dfrac{d^2y}{dx^2}$ in terms of $x$ and $y$.

Solve
Practice★★☆Not started
Let $y = f(x)$ be the solution to $\dfrac{dy}{dx} = \dfrac{x}{y}$ with $f(1) = 2$ (so $y > 0$). (a) Write an equation of the tangent line at $x = 1$ and use it to…

Let $y = f(x)$ be the solution to $\dfrac{dy}{dx} = \dfrac{x}{y}$ with $f(1) = 2$ (so $y > 0$).

(a) Write an equation of the tangent line at $x = 1$ and use it to approximate $f(1.2)$.

(b) Find $\dfrac{d^2y}{dx^2}$ in terms of $x$ and $y$, and determine the concavity of the graph of $f$ at $x = 1$.

(c) Is your approximation in (a) an underestimate or an overestimate? Explain.

Solve
Practice★★★Not started
Consider $\dfrac{dy}{dx} = \dfrac{xy}{x^2 + 1}$ with $y(0) = -3$. (a) Find the particular solution $y = f(x)$. (b) Without using the solution, use $\dfrac{dy}{dx}$ and…

Consider $\dfrac{dy}{dx} = \dfrac{xy}{x^2 + 1}$ with $y(0) = -3$.

(a) Find the particular solution $y = f(x)$.

(b) Without using the solution, use $\dfrac{dy}{dx}$ and $\dfrac{d^2y}{dx^2}$ to show that $f$ has a critical point at $x = 0$ and classify it.

(c) Does the graph of $f$ ever cross the $x$-axis? Explain.

Solve

Where Does a Solution Live? Domain

A particular solution is only a solution on an interval where it is a differentiable function and satisfies the differential equation. The domain you report is the largest open interval containing the initial $x$-value on which this happens. Two things typically stop the interval:

  1. the formula for $y$ divides by zero (the solution blows up), or

  2. the differential equation itself is undefined (for example, $y = 0$ when $y$ is in a denominator).

The formula could be evaluated for $x < -1$ as well, but that is a separate piece of the graph, disconnected from the initial point. It is not part of the solution to this initial value problem.

Now an example where the differential equation itself is undefined at some point.

The upper semicircle y = sqrt(4 - x^2) with open endpoints at x = -2 and x = 2, where the slope is undefined. (0, 2) y = √(4 − x²) x = −2 x = 2 The upper semicircle y = sqrt(4 - x^2) with open endpoints at x = -2 and x = 2, where the slope is undefined.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Consider $\dfrac{dy}{dx} = xy^2$ with the initial condition $y(0) = 1$. (a) Find the particular solution $y = f(x)$. (b) State the domain of $f$ (the largest open…

Consider $\dfrac{dy}{dx} = xy^2$ with the initial condition $y(0) = 1$.

(a) Find the particular solution $y = f(x)$.

(b) State the domain of $f$ (the largest open interval containing $x = 0$ on which the solution is defined).

Solve
Practice★★★Not started
Consider $\dfrac{dy}{dx} = \dfrac{x^2}{y^2}$ and let $y = f(x)$ be the solution with $f(1) = 2$. (a) Write an equation of the tangent line at $x = 1$ and use it to…

Consider $\dfrac{dy}{dx} = \dfrac{x^2}{y^2}$ and let $y = f(x)$ be the solution with $f(1) = 2$.

(a) Write an equation of the tangent line at $x = 1$ and use it to approximate $f(1.1)$.

(b) Find $f(x)$.

(c) The differential equation is not defined when $y = 0$. Find the domain of $f$ and justify your answer.

Solve
Practice★★★Not started
(Calculator active) Consider $\dfrac{dy}{dx} = 1 + y^2$ with $y(0) = 1$. (a) Find the particular solution $y = f(x)$. (b) Find the domain of $f$, that is, the largest…

(Calculator active) Consider $\dfrac{dy}{dx} = 1 + y^2$ with $y(0) = 1$.

(a) Find the particular solution $y = f(x)$.

(b) Find the domain of $f$, that is, the largest open interval containing $x = 0$ on which the solution is defined.

(c) Find $f(0.5)$ to three decimal places.

(d) Explain why $f$ is increasing everywhere on its domain.

Solve

A Draining Tank

Back to the rain barrel from the start: let's work out when it empties.

V(t) = (8 − t)² falls from 64 gallons at t = 0 to 0 at t = 8 hours, more and more slowly. The dashed part ("not valid") is the parabola rising again, which is impossible: after t = 8 the barrel stays empty. 64 V (gal) 8 t (hours) not valid V(t) = (8 − t)² falls from 64 gallons at t = 0 to 0 at t = 8 hours, more and more slowly. The dashed part ("not valid") is the parabola rising again, which is impossible: after t = 8 the barrel stays empty.

Back to the start: the 64-gallon barrel holds $25$ gallons after 3 hours and is empty after exactly 8 hours.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
Water drains from a tank so that the volume $V$ (in gallons) satisfies $\dfrac{dV}{dt} = -3\sqrt{V}$, where $t$ is in hours. At $t = 0$, the tank holds $100$ gallons.…

Water drains from a tank so that the volume $V$ (in gallons) satisfies $\dfrac{dV}{dt} = -3\sqrt{V}$, where $t$ is in hours. At $t = 0$, the tank holds $100$ gallons.

(a) Solve for $V$ as a function of $t$.

(b) At what time does the tank become empty?

(c) State the domain on which your solution is a valid model, and explain why the formula must not be used after the tank is empty.

Solve

Summary

  • A differential equation $\dfrac{dy}{dx} = g(x)h(y)$ is separable: write $\dfrac{1}{h(y)}\,dy = g(x)\,dx$, integrate both sides, and add $+C$.

  • Absolute values from $\ln|y|$ disappear when you exponentiate. The constant solutions $y = k$ with $h(k) = 0$ may be lost by dividing, and they are never crossed by other solutions.

  • An initial condition picks one curve from the family: plug in $x$ and $y$ as soon as you have $C$, and use the initial $y$-value to choose the sign of any square root.

  • The equation gives slopes: tangent line at the given point, $\dfrac{d^2y}{dx^2}$ by differentiating $\dfrac{dy}{dx}$ (with $y$ as a function of $x$) and substituting. $f'' > 0$ means the tangent line underestimates, $f'' < 0$ means it overestimates.

  • The domain of a particular solution is the largest open interval around the initial $x$-value where the formula is defined and the differential equation makes sense.

  • Show every step: separate, integrate, $+C$, initial condition, solve for $y$. On the AP exam, each of these earns points.

Can't find your problem here?

The AI checks one of your exercises: paste the problem with your answer or take a photo of it.

See all the exercises in this section