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.
Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Work without a calculator unless a question says otherwise. Any trig is in radians.
H1. (Foundations) Decide whether each differential equation is homogeneous. If it is, write the right side as a function of v=xy. If it isn’t, explain why.
(a) dxdy=2xx−4y
(b) dxdy=x3y3+x2y
(c) dxdy=x2x2+y
(d) dxdy=lny−lnx+1, for x>0 and y>0
H2. (Foundations) Consider dxdy=xy−x for x>0.
(a) Use the substitution y=vx to show that xdxdv=−1.
(b) Find the general solution, then the particular solution with y=4 when x=1.
(c) Check your particular solution by differentiating it and substituting into the differential equation.
H3. (Core) Solve dxdy=xyx2+2y2, x>0, given that y=1 when x=1. Give y in terms of x, and state the values of x for which your solution is defined.
H4. (Core) Solve x2dxdy=3xy+y2, x>0, given that y=2 when x=1. Give y in terms of x, and find the largest interval containing x=1 on which the solution is defined.
H5. (Core) A curve lies in the region x>0. At every point P(x,y) on the curve, the gradient of the tangent equals the gradient of the line OP (where O is the origin) minus the square of that gradient.
(a) Write down a differential equation for the curve.
(b) The curve passes through (1,21). Find its equation in the form y=g(x), and state its domain.
H6. (Core)(IB style) Consider the differential equation
dxdy=xy+e−y/x,x>0
(a) Use the substitution y=vx to show that xdxdv=e−v.
(b) Given that y=0 when x=1, find y in terms of x.
(c) State the set of values of x for which the solution in (b) is defined.
(a) Find all values of k for which the straight line y=kx is a solution.
(b) Use y=vx to show that the general solution can be written y+2xy−x=Ax3.
(c) One of your lines from (a) is included in the general solution in (b) and the other is not. Which is which? Explain why separating the variables in (b) loses solutions like these.
(d) Find the particular solution with y=0 when x=1, giving y in terms of x.
H10. (Challenge) The equation dxdy=xx−2y, x>0, can be solved in two ways.
(a) Solve it as a homogeneous equation, with y=1 when x=1.
(b) Solve it again using an integrating factor, with the same condition, and show that you get the same answer.
(c) Which method did you find quicker here? Give one reason, and describe a differential equation that only one of the two methods can handle.