Finding General Solutions Using Separation of Variables
Introducido| English | Significado |
|---|---|
| separable/ˈsepərəbl/ | separable |
Get the $x$'s and $y$'s on opposite sides
- To actually solve a differential equation (not just sketch it), we integrate — but first we sort the variables.
- A differential equation is separable 可分离的 if you can write it so one side has only $y$ and the other only $x$.
- $\dfrac{dy}{dx}=g(x)\,h(y)$ is the tell-tale form: a product of an $x$-part and a $y$-part.
- Then each side can be integrated on its own.
Which equation is separable?
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
$xy$ factors as ($x$-part)$\times$($y$-part); a sum does not.
$\dfrac{dy}{dx}=x+y$ is not separable because you cannot split a ____.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Separation needs a product, not a sum.
Separate the variables
- Treat $\dfrac{dy}{dx}$ as a ratio of differentials and move each variable to its own side.
- From $\dfrac{dy}{dx}=g(x)\,h(y)$: first check constant solutions with $h(y)=0$. For nonconstant solutions where $h(y)\ne0$, divide by $h(y)$ and multiply by $dx$:
-
$$\frac{1}{h(y)}\,dy = g(x)\,dx$$
- Now each side involves only one variable and its differential — ready to integrate.

E. coli under a microscope: differential equations model exponential growth of populations
Separating $\dfrac{dy}{dx}=xy$ gives...
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
A favor $y\ne0$, divide by $y$ and multiply by $dx$: $(1/y)\,dy=x\,dx$. Check $y=0$ separately; it also solves the original equation.
Integrate both sides
- Integrate the left in $y$ and the right in $x$: $\displaystyle\int\frac{1}{h(y)}\,dy=\int g(x)\,dx$.
- Add a single constant $+C$ (one is enough — combine both sides' constants).
- Then solve for $y$ if you can, to get the general solution.
- The result is a family of functions with the constant $C$.
La solución general es una familia
Solving $\tfrac{dy}{dx}=ay$ gives $y=Ce^{ax}$ — one curve per constant, all fitting the same field.
Integrating $\dfrac{1}{y}\,dy = x\,dx$ gives...
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
$\int\tfrac1y\,dy=\ln|y|$; $\int x\,dx=\tfrac{x^2}{2}$; add $+C$.
Keep the $+C$ (and solve for $y$)
- The constant of integration is what makes this a family — never drop it.
- Often you'll exponentiate or rearrange to isolate $y$; the $C$ transforms but stays.
- Leaving the answer as an implicit relation is fine if $y$ can't be cleanly isolated.
- A later initial condition (lesson 7.7) will nail down $C$.
You should include the constant $+C$ when solving a differential equation by separation.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
El $+C$ gives the general (family of) solutions.
The general solution of $\dfrac{dy}{dx}=xy$ is...
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Exponentiation gives $|y|=e^C e^{x^2/2}$; both signs give $y=Ae^{x^2/2}$ with nonzero real $A$. Restoring $y=0$ allows $A=0$ too.
Separation works only if the equation factors as (function of $x$) $\times$ (function of $y$). Something like $\frac{dy}{dx}=x+y$ is not separable — you can't split a sum. And don't forget the $+C$ after integrating: without it you have one curve, not the general family.
Solve $\dfrac{dy}{dx}=xy$ (general solution).
- Separate: $\dfrac{1}{y}\,dy = x\,dx$.
- Integrate: $\ln|y| = \dfrac{x^2}{2}+C$.
- Exponentiate: $|y|=e^C e^{x^2/2}$, so nonzero solutions are $y=A e^{x^2/2}$ with $A=\pm e^C$. Restore the lost solution $y=0$: the general solution is $y=A e^{x^2/2}$ for any real $A$.
Separation of variables solves a separable equation $\frac{dy}{dx}=g(x)h(y)$: rearrange to $\frac{1}{h(y)}\,dy=g(x)\,dx$, integrate both sides (one $+C$), and solve for $y$ to get the general solution. It only works when the equation factors into an $x$-part times a $y$-part.
Write from this case
- dy/dx = 2x / y.
- The curve passes through (0, 2).
What is a particular solution?
Half of 4 is 2, so C is 2 and then both sides double.
dy/dx = 2x / y through (0, 2). Which equation fits?
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
The point forces the constant 4 after clearing the half.