- Foundation
- About 15 min
- 5 practice questions
Substitution to separate: dy/dx = f(ax + by + c)
Solve equations in which x and y appear only through the combination ax + by + c by putting v = ax + by + c, which turns them into separable equations.
If something looks wrong, please tell us.
Not every equation separates as it stands. Some look hopeless, such as dy/dx = (x + y)², where x and y are tied together. But if x and y occur only in one combination, such as x + y or 2x − 3y + 1, a substitution replaces that combination by a single new variable v, and the equation becomes separable. This is one of the most useful tricks at this level.
The method
- Spot the combination v = ax + by + c that carries all the dependence on x and y.
- Differentiate: dv/dx = a + b(dy/dx). Replace dy/dx using the equation, so that the right side is a function of v alone.
- Separate the variables in v and x, and integrate.
- Put v = ax + by + c back, and solve for y if possible.
- Apply any given condition to the final constant.
If dy/dx = f(ax + by + c), put v = ax + by + c. Then dv/dx = a + b f(v), which is separable: ∫ dv/(a + b f(v)) = x + C.
Worked example 1: dy/dx = (x + y)²
Put v = x + y. Then dv/dx = 1 + dy/dx = 1 + v². Separating, dv/(1 + v²) = dx, so tan⁻¹ v = x + C and v = tan(x + C). Hence x + y = tan(x + C) and y = tan(x + C) − x. Check: dy/dx = sec²(x + C) − 1 = tan²(x + C) = (x + y)².
Worked example 2: dy/dx = x + y + 1
Put v = x + y + 1. Then dv/dx = 1 + dy/dx = 1 + v. Separating, dv/(1 + v) = dx, so ln|1 + v| = x + c and 1 + v = Ae^x. Since 1 + v = x + y + 2, we get x + y + 2 = Ae^x and y = Ae^x − x − 2. Check: dy/dx = Ae^x − 1 and x + y + 1 = Ae^x − 1.
Worked example 3: with a condition
Solve dy/dx = x − y + 2 with y = 0 when x = 0. Put v = x − y + 2. Then dv/dx = 1 − dy/dx = 1 − v. Separating, dv/(1 − v) = dx, so −ln|1 − v| = x + c, that is 1 − v = Ae^{−x}. Then v = 1 − Ae^{−x}, so x − y + 2 = 1 − Ae^{−x} and y = x + 1 + Ae^{−x}. At (0, 0), 0 = 1 + A, so A = −1. The particular solution is y = x + 1 − e^{−x}. Check: dy/dx = 1 + e^{−x}, and x − y + 2 = x − x − 1 + e^{−x} + 2 = 1 + e^{−x}.
Worked example 4: a trigonometric combination
Solve dy/dx = cos(x + y). Put v = x + y. Then dv/dx = 1 + cos v = 2cos²(v/2). Separating, (1/2) sec²(v/2) dv = dx. Integrating, tan(v/2) = x + C. So tan((x + y)/2) = x + C. The identity 1 + cos v = 2cos²(v/2) is what makes the integral easy.
Watch the sign of dv/dx
When y appears as −y in the combination, as in x − y, the derivative is dv/dx = 1 − dy/dx, with a minus sign. This is the most common slip: Example 3 would give the wrong equation dv/dx = 1 + v if the sign were mishandled. Always derive dv/dx from scratch rather than copy it.
Key takeaways: when x and y appear only as ax + by + c, put v for that expression, find dv/dx = a + b·dy/dx, separate and integrate, then return to y. Check by differentiating the final answer.
Check your understanding
-
1. Which substitution makes dy/dx = (x + y)² separable?
- v = y/x
- v = xy
- v = x − y
- v = x + y
Show answer
Answer: D. The combination x + y carries all the dependence, so v = x + y gives dv/dx = 1 + v², which is separable. The substitution y = vx is for homogeneous equations, not this one.
-
2. With v = x + y, the equation dy/dx = (x + y)² becomes:
- dv/dx = v²
- dv/dx = 2v
- dv/dx = 1 + v²
- dv/dx = 1 + 2v
Show answer
Answer: C. dv/dx = 1 + dy/dx = 1 + v². The right side must include the 1 from differentiating x.
-
3. The general solution of dy/dx = x + y + 1 is:
- y = Ae^x − x − 1
- y = Ae^x − x − 2
- y = Ae^x + x + 2
- y = Ae^{−x} − x − 2
Show answer
Answer: B. With v = x + y + 1, dv/dx = 1 + v gives 1 + v = Ae^x, that is x + y + 2 = Ae^x. Differentiating the answer gives Ae^x − 1 = x + y + 1.
-
4. The solution of dy/dx = x − y + 2 with y = 0 at x = 0 is:
- y = x + 1 − e^{−x}
- y = x + 1 + e^{−x}
- y = x − 1 + e^{−x}
- y = x + 1 − e^{x}
Show answer
Answer: A. The general solution is y = x + 1 + Ae^{−x}, and y(0) = 0 gives A = −1. Check: y′ = 1 + e^{−x} and x − y + 2 = 1 + e^{−x}.
-
5. The general solution of dy/dx = cos(x + y) is:
- sin(x + y) = x + C
- tan(x + y) = x + C
- tan((x + y)/2) = x + C
- cot((x + y)/2) = x + C
Show answer
Answer: C. With v = x + y, dv/dx = 1 + cos v = 2cos²(v/2). Separating and integrating gives tan(v/2) = x + C.
Sign in to keep track of the lessons you finish.