Differential Equations › Section B · First order differential equations › Topic B.5
Substitutions
Many equations that fit none of the standard types become separable after the right change of variable. Two patterns, ratios y/x and combinations ax + by, cover a large share of the equations you will meet, and spotting them is a skill of pattern recognition.
Change the variable, change the equation
The topic "Bernoulli equations" showed the central idea: replace the unknown \(y\) by a new unknown \(v\), rewrite \(y'\) in terms of \(v'\), and the equation may become one you can solve. Bernoulli's \(v = y^{1-n}\) produced a linear equation. This topic adds two more substitutions, both of which produce separable equations. The work always has the same three stages: substitute, solve for \(v\), and return to \(y\). The initial condition must be translated into the new variable too. A good substitution is suggested by the structure of the equation, so the first skill is learning what to look for.
Homogeneous equations
A first-order equation is called homogeneous if its right side can be written as a function of the ratio \(\frac{y}{x}\) alone:
To test a quotient of polynomials, check that every term has the same total degree, then divide top and bottom by \(x\) to that power. For example, \(y' = \frac{x^2 + 3y^2}{2xy}\) has every term of degree 2; dividing by \(x^2\) gives \(\frac{1 + 3v^2}{2v}\) with \(v = \frac{y}{x}\). Beware the name: this meaning of homogeneous is unrelated to the homogeneous linear equation \(y' + Py = 0\).
The substitution y = xv
For a homogeneous equation, set \(v = \frac{y}{x}\), so that \(y = xv\). The product rule gives
and the equation \(y' = F(v)\) becomes \(v + xv' = F(v)\), that is
This is always separable: \(\frac{dv}{F(v) - v} = \frac{dx}{x}\). After integrating, replace \(v\) by \(\frac{y}{x}\). Any constant \(v = c\) with \(F(c) = c\) gives a straight-line solution \(y = cx\), which the division drops and you must add back.
Worked example: a homogeneous IVP
Solve \(y' = \frac{y^2 + 2xy}{x^2}\) with \(y(1) = 1\). 1. Divide by \(x^2\): \(y' = v^2 + 2v\), with \(v = \frac{y}{x}\). 2. Substitute \(y' = v + xv'\): \(xv' = v^2 + v\). 3. Separate and use partial fractions, \(\frac{1}{v(v + 1)} = \frac{1}{v} - \frac{1}{v + 1}\): \(\ln\left|\frac{v}{v + 1}\right| = \ln|x| + C\), so \(\frac{v}{v + 1} = Ax\). 4. \(v(1) = 1\) gives \(A = \frac{1}{2}\); solving, \(v = \frac{x}{2 - x}\), so
5. Interval: \(x \ne 0\) for the equation and \(x \ne 2\) for the solution, so \(0 < x < 2\). The dropped constants \(v = 0\) and \(v = -1\) give the line solutions \(y = 0\) and \(y = -x\).
Worked example: an implicit family
Solve \(y' = \frac{x^2 + 3y^2}{2xy}\) with \(y(1) = 1\). 1. In terms of \(v\): \(v + xv' = \frac{1 + 3v^2}{2v}\). 2. Simplify: \(xv' = \frac{1 + 3v^2 - 2v^2}{2v} = \frac{1 + v^2}{2v}\). 3. Separate: \(\frac{2v\,dv}{1 + v^2} = \frac{dx}{x}\), so \(\ln(1 + v^2) = \ln|x| + C\) and \(1 + v^2 = Ax\). 4. Replace \(v\) and multiply by \(x^2\): \(x^2 + y^2 = Ax^3\), and the condition gives \(A = 2\). 5. Solving, \(y = x\sqrt{2x - 1}\), the positive root because \(y(1) = 1\), valid for \(x > \frac{1}{2}\), since \(y = 0\) at \(x = \frac{1}{2}\) makes the right side undefined.
Equations in ax + by + c
A second pattern: the right side depends on \(x\) and \(y\) only through one linear combination,
with \(b \ne 0\). Set \(v = ax + by + c\). Then \(v' = a + by'\), so \(y' = \frac{v' - a}{b}\), and the equation becomes
which has no \(x\) on the right and is therefore separable. Equations such as \(y' = (x + y)^2\), \(y' = \sqrt{2x - y + 3}\) or \(y' = e^{x + y} - 1\) all fit. As before, constants \(v = k\) where \(a + bG(k) = 0\) are line solutions that separation drops.
Worked example: a combination x + y
Solve \(y' = (x + y)^2\) with \(y(0) = 1\). 1. Set \(v = x + y\), so \(v' = 1 + y' = 1 + v^2\). 2. Separate: \(\frac{dv}{1 + v^2} = dx\), so \(\arctan v = x + C\), using the Calculus topic "Inverse trigonometric functions: integrals". 3. Translate the condition: \(v(0) = 0 + 1 = 1\), so \(C = \arctan 1 = \frac{\pi}{4}\). 4. Hence \(v = \tan\left(x + \frac{\pi}{4}\right)\) and
5. Interval: the tangent needs \(-\frac{\pi}{2} < x + \frac{\pi}{4} < \frac{\pi}{2}\), so \(-\frac{3\pi}{4} < x < \frac{\pi}{4}\); the solution blows up at both ends. Check: \(y(0) = 1 - 0 = 1\).
Choosing a substitution
When no standard method fits, look at the structure. 1. A single power of \(y\) spoiling a linear equation: Bernoulli, \(v = y^{1-n}\). 2. Every term of the same degree, or the variables appearing only as \(\frac{y}{x}\): homogeneous, \(v = \frac{y}{x}\). 3. One linear combination \(ax + by + c\) repeated: \(v = ax + by + c\). 4. A complicated expression appearing together with its derivative: try that expression as \(v\). Not every equation yields to a substitution, and many have no formula solution at all; then direction fields and the numerical methods later in this section take over.
Common mistakes to avoid
First, writing \(y' = v'\) after setting \(y = xv\); the product rule gives \(y' = v + xv'\). Second, forgetting the \(a\) in \(v' = a + by'\). Third, applying the initial condition to \(v\) with the value of \(y\): if \(v = x + y\) and \(y(0) = 1\), then \(v(0) = 1\), but for \(v = \frac{y}{x}\) and \(y(2) = 6\), \(v(2) = 3\). Fourth, stopping at a formula for \(v\) instead of returning to \(y\). Fifth, ignoring the line solutions lost at zeros of \(F(v) - v\) or \(a + bG(v)\).
Key takeaways
A substitution replaces \(y\) by a new unknown chosen from the equation's structure. Homogeneous equations \(y' = F\left(\frac{y}{x}\right)\) use \(y = xv\), \(y' = v + xv'\), which always gives the separable \(xv' = F(v) - v\). Equations \(y' = G(ax + by + c)\) use \(v = ax + by + c\), giving the separable \(v' = a + bG(v)\). Translate the initial condition, solve for \(v\), return to \(y\), and find the interval of validity from the result. Bernoulli's \(v = y^{1-n}\) is the third standard substitution.
Flashcards
Flashcard
Replace y by a new unknown v, solve for v, return to y
Test your understanding
Question 1 of 5
Which equation is homogeneous, in the sense y′ = F(y/x)?
Question 2 of 5
If y = xv, where v is a function of x, what is y′?
Question 3 of 5
Which substitution makes y′ = (2x − y + 4)² separable?
Question 4 of 5
For y′ = (x + y)/x, the substitution y = xv gives xv′ = 1. What is the general solution?
Question 5 of 5
Setting v = x + y in y′ = (x + y)² gives which equation for v?
