Some differential equations can’t be separated as they stand, like dxdy=xyx2+y2. But if the right side depends only on the ratio xy, one clever substitution, y=vx, turns the equation into a separable one. This is one of the three exact solving methods in IB Mathematics AA HL (with separation of variables and the integrating factor), so you need to recognize when it applies and carry it through cleanly.
A first-order differential equation is homogeneous if it can be written as
dxdy=f(xy)
that is, the right side is a function of xy alone. For example:
Equation
Rewritten in terms of y/x
Homogeneous?
dxdy=xx+y
1+xy
Yes
dxdy=xyx2+y2
yx+xy
Yes
dxdy=xy+cos2(xy)
already in that form
Yes
dxdy=xx+y2
1+xy2, which is not a function of y/x
No
A quick way to spot one: if the right side is a fraction whose top and bottom are polynomials in which every term has the same total degree (like x2, xy, y2, all degree 2), divide the top and bottom by x to that power. Everything turns into powers of xy.
(This use of the word “homogeneous” is different from “homogeneous linear equation” that you may meet in other books. In the IB AA course it means exactly the form above.)
Check that the equation is homogeneous, and write the right side as f(xy).
Substitutey=vx and dxdy=v+xdxdv. The v terms should simplify, leaving xdxdv=f(v)−v.
Separate and integrate. You may need partial fractions, a substitution, or a standard integral such as ∫1+v21dv=arctanv+C.
Back-substitutev=xy to get the general solution in terms of x and y.
Use the initial condition (if any) to find C, giving a particular solution. Make y the subject if the question asks for it, and keep the branch that passes through the given point.
Never forget step 4: an answer containing v is not finished.
Back-substitute: v+1v=y/x+1y/x=y+xy. At (1,1): 21=A. So
y+xy=2x⇒2y=xy+x2⇒y(2−x)=x2⇒y=2−xx2
Check at x=1: y=11=1. ✓ The solution has a vertical asymptote at x=2, so the solution through (1,1) is valid for x<2 (the side of the asymptote that contains x=1).
Writing dy/dx = x dv/dx. If y=vx, both v and x change, so you need the product rule: dxdy=v+xdxdv. Dropping the v means the v terms won’t cancel and the equation won’t separate.
Forgetting to subtract v. After substituting you get xdxdv=f(v)−v, not f(v). In Example 2 that subtraction is what made v1+v2 collapse to v1.
Leaving the answer in terms of v. The question is about x and y. Always replace v with xy before you finish, and before you use the initial condition (or substitute v=x0y0 if you prefer to find C earlier).
Using the initial condition before integrating. The condition is about the solution curve, so it can only find C after you have integrated. Plugging numbers into the differential equation itself tells you a slope, not the constant.
Mishandling the constant. After ln∣v∣−ln∣v+1∣=ln∣x∣+C, exponentiating gives v+1v=Ax, not v+1v=x+A. Combine the logs first, then exponentiate.
Taking the wrong square root. When you solve y2=…, choose the sign that matches the initial condition (positive y in Example 2) and say where the solution is defined.
1. (Warm-up) Decide whether each differential equation is homogeneous. If it is, write the right side as a function of v=xy.
(a) dxdy=2xyx2+y2
(b) dxdy=xx+y2
(c) dxdy=x+y3y−x
Solution
(a) Every term on top and bottom has degree 2. Divide by x2: 2v1+v2. Homogeneous.
(b) The top has terms of degree 1 and 2, so dividing can’t make everything a function of v: xx+y2=1+xy2=1+v2x, which still contains x. Not homogeneous.
(c) Every term has degree 1. Divide by x: 1+v3v−1. Homogeneous.
2. (Warm-up) Show that the substitution y=vx turns dxdy=xx+2y into xdxdv=1+v. Hence find the general solution, for x>0.
Solution
The right side is 1+2v. With dxdy=v+xdxdv:
v+xdxdv=1+2v⇒xdxdv=1+v
Separate and integrate:
∫1+v1dv=∫x1dx⇒ln∣1+v∣=lnx+C⇒1+v=Ax
Back-substitute: 1+xy=Ax, so y=Ax2−x.
Check: dxdy=2Ax−1 and xx+2(Ax2−x)=2Ax−1. ✓
3. (Warm-up) Find the general solution of dxdy=x2xy+y2, x>0.
Solution
f(v)=v+v2, so xdxdv=v2. Then
∫v−2dv=∫x1dx⇒−v1=lnx+C⇒v=−lnx+C1
So y=−lnx+Cx.
4. (Core) Solve xdxdy=y+2x, x>0, given that y=3 when x=1.
Solution
Divide by x: dxdy=xy+2, so f(v)=v+2 and xdxdv=2.
∫dv=∫x2dx⇒v=2lnx+C⇒y=2xlnx+Cx
At (1,3): 3=0+C, so y=2xlnx+3x.
5. (Core) Solve dxdy=2xyx2+3y2, x>0, given that y=1 when x=1. Give y in terms of x, and state where the solution is defined.
Solution
f(v)=2v1+3v2, so
xdxdv=2v1+3v2−v=2v1+3v2−2v2=2v1+v2
Separate. The top of 1+v22v is the derivative of the bottom:
∫1+v22vdv=∫x1dx⇒ln(1+v2)=lnx+C⇒1+v2=Ax
Back-substitute and multiply by x2: x2+y2=Ax3. At (1,1): 2=A. So y2=2x3−x2=x2(2x−1), and with y>0,
y=x2x−1
defined for x>21 (the solution must be differentiable on an interval containing x=1).
6. (Core) Consider dxdy=2xyy2−x2.
(a) Show that the general solution can be written x2+y2=Ax, and describe these curves.
(b) Find the solution curve that passes through (1,1).
since x2v2=y2. At (1,0): 21ln1+arctan0=0=C. ✓ (This solution can’t be made explicit, so leaving it in this implicit form is fine.)
9. (Challenge) Solve x2dxdy=x2+xy+y2, x>0, given that y=0 when x=1. Find the largest interval containing x=1 on which the solution is defined, giving the endpoints exactly.
Solution
Divide by x2: f(v)=1+v+v2, so xdxdv=1+v2.
∫1+v21dv=∫x1dx⇒arctanv=lnx+C
At (1,0), v=0: arctan0=0=C. So arctan(xy)=lnx, and
y=xtan(lnx)
tan is defined on −2π<lnx<2π around ln1=0, so the solution is defined for
e−π/2<x<eπ/2
that is, about 0.208<x<4.81 (to 3 s.f.). At either end, y has a vertical asymptote.