9.3 Homogeneous Differential Equations
When the slope $\tfrac{dy}{dx}$ depends only on the ratio $\tfrac yx$, the equation is homogeneous: its slope field looks the same at every magnification. The substitution $y=vx$ turns it into an equation with variables separable.
Try to separate the variables in $\dfrac{dy}{dx}=\dfrac{x^2+3y^2}{2xy}$. You cannot: the numerator is a sum, and no algebra splits the right-hand side into (function of $x$) ร (function of $y$). But look at it differently. Divide the top and bottom by $x^2$: $$\dfrac{dy}{dx}=\dfrac{1+3(y/x)^2}{2(y/x)}.$$ The slope depends on $x$ and $y$ only through the ratio $\dfrac yx$ โ that is, only through the direction of the point $(x,y)$ as seen from the origin. Every point on the line $y=2x$ has the same slope, $\tfrac{13}{4}$, whether it is $(1,2)$ or $(1000,2000)$. If you photograph the slope field and then zoom in or out about the origin, the picture does not change at all.
Such equations are called homogeneous, and the scale symmetry suggests the cure: make the ratio itself the unknown. Writing $y=vx$, where $v=\dfrac yx$ is a new unknown function of $x$, turns every homogeneous equation into one with variables separable, which Section 9.2 taught you to solve. Homogeneous equations describe shapes that have no built-in scale โ the curve of a car headlight's mirror, the paths of a pursuit, flows around a corner โ and they appear in every Board paper as a 4- or 5-mark question.
Homogeneous Functions and Homogeneous Equations
A function $F(x,y)$ is a homogeneous function of degree $n$ if $$F(\lambda x,\lambda y)=\lambda^nF(x,y)$$ for every non-zero constant $\lambda$ (and all $(x,y)$ where both sides are defined). Equivalently, $F(x,y)=x^n\,g\!\left(\dfrac yx\right)$ for some function $g$ (or $F(x,y)=y^n\,h\!\left(\dfrac xy\right)$).
For example $x^2-3xy+5y^2$ is homogeneous of degree $2$ (every term has total degree $2$), and $\dfrac{x-y}{x+y}$ and $\sin\dfrac yx$ are homogeneous of degree $0$.
A differential equation $\dfrac{dy}{dx}=F(x,y)$ is called a homogeneous differential equation if $F(x,y)$ is a homogeneous function of degree zero; then $F(x,y)=g\!\left(\dfrac yx\right)$ and the equation reads $$\dfrac{dy}{dx}=g\!\left(\dfrac yx\right).$$ Likewise $\dfrac{dx}{dy}=G(x,y)$ is homogeneous if $G$ is homogeneous of degree zero, $G(x,y)=h\!\left(\dfrac xy\right)$.
In particular, $\dfrac{dy}{dx}=\dfrac{P(x,y)}{Q(x,y)}$ is homogeneous whenever $P$ and $Q$ are homogeneous functions of the same degree.
Solving by the Substitution y = vx
Let $g$ be continuous on an interval, and consider the homogeneous equation $\dfrac{dy}{dx}=g\!\left(\dfrac yx\right)$ on an interval of $x$ not containing $0$. Put $y=vx$, where $v$ is a new unknown function of $x$. Then $$\dfrac{dy}{dx}=v+x\dfrac{dv}{dx},$$ and the equation becomes $$x\dfrac{dv}{dx}=g(v)-v,$$ which has variables separable. Where $g(v)\ne v$: $$\int\dfrac{dv}{g(v)-v}=\int\dfrac{dx}{x}+C=\log|x|+C.$$ After integrating, replace $v$ by $\dfrac yx$. Similarly, $\dfrac{dx}{dy}=h\!\left(\dfrac xy\right)$ is solved by $x=vy$, which gives $y\dfrac{dv}{dy}=h(v)-v$.
Proof. If $y=vx$, the product rule gives $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$, and $\dfrac yx=v$. Substituting both into $\dfrac{dy}{dx}=g\!\left(\dfrac yx\right)$ gives $v+x\dfrac{dv}{dx}=g(v)$, i.e. $\dfrac{dv}{dx}=\dfrac1x\cdot\big(g(v)-v\big)$ โ a product of a function of $x$ and a function of $v$. Theorem 9.2 finishes the job. $\blacksquare$
A number $c$ with $g(c)=c$ gives the straight-line solution $y=cx$ (then $v$ is constant): look for these lost solutions, as in Section 9.2.
- Write the equation as $\dfrac{dy}{dx}=F(x,y)$ and check that $F(\lambda x,\lambda y)=F(x,y)$ (degree $0$). Board answers expect this check to be shown.
- Put $y=vx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$. Simplify the right-hand side: every $x$ should cancel, leaving a function of $v$.
- Separate: $\dfrac{dv}{g(v)-v}=\dfrac{dx}{x}$, and integrate (partial fractions or a standard integral may be needed).
- Replace $v$ by $\dfrac yx$, simplify, and apply any initial condition.
- If the equation is more naturally $\dfrac{dx}{dy}=h\!\left(\dfrac xy\right)$ โ for instance when $e^{x/y}$ appears โ use $x=vy$ instead.
1. Writing $\dfrac{dy}{dx}=\dfrac{dv}{dx}$. With $y=vx$, both factors vary: $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$ (product rule). Forgetting the $v$ is the most common error in this topic.
2. Not checking homogeneity. $\dfrac{dy}{dx}=\dfrac{x+y+1}{x-y}$ is not homogeneous (the $1$ has degree $0$, the other terms degree $1$); $y=vx$ will not remove $x$. If $x$ does not cancel after substituting, the equation was not homogeneous โ or you made an algebra slip.
3. Forgetting to substitute back. The answer must be in terms of $x$ and $y$, not $v$.
4. Mishandling the constant. $\log(1+v^2)=\log x+C$ gives $1+v^2=Ax$, not $1+v^2=x+C$.
5. Using $y=vx$ when $x=vy$ is easier. If the equation contains $\tfrac xy$ (for example $e^{x/y}$) or is given as $\tfrac{dx}{dy}=\dots$, put $x=vy$ and $\tfrac{dx}{dy}=v+y\tfrac{dv}{dy}$.
6. Ignoring the interval. Solutions such as $y=x\sin^{-1}\tfrac x2$ or $y=-x\log(1-\log x)$ exist only on a limited interval; state it when asked for "the solution".
Exercises
- 1 $x^2-2xy+5y^2$
- 2 $\dfrac{x^3-y^3}{x^2+y^2}$
- 3 $x^2+y^2+1$
- 4 $\dfrac yx+\cos\dfrac yx$
- 5 $x\sin\dfrac yx-y$
- 6 Which of these differential equations are homogeneous? (a) $\dfrac{dy}{dx}=\dfrac{x+2y}{2x-y}$ (b) $\dfrac{dy}{dx}=\dfrac{x+y+1}{x-y}$ (c) $\dfrac{dy}{dx}=\left(\dfrac yx\right)^2+e^{y/x}$
- 1 $\dfrac{dy}{dx}=\dfrac{x+2y}{x}$
- 2 $2xy\dfrac{dy}{dx}=x^2+y^2$
- 3 $\dfrac{dy}{dx}=\dfrac yx+\dfrac{y^2}{x^2}$
- 4 $\dfrac{dy}{dx}=\dfrac{y-x}{y+x}$
- 5 $\dfrac{dy}{dx}=\dfrac yx+\sec\dfrac yx$
- 6 $(x^2+y^2)\dfrac{dy}{dx}=xy$
- 7 $2x^2\dfrac{dy}{dx}=(x+y)^2$
- 8 $\dfrac{dx}{dy}=\dfrac{x+y}{y}$ ($y\gt0$)
- 9 $xy^2\dfrac{dy}{dx}=x^3+y^3$
- 1 $x\dfrac{dy}{dx}=2y-x$, $y(1)=3$
- 2 $x^2\dfrac{dy}{dx}=y^2+2xy$, $y(1)=1$
- 3 $\dfrac{dy}{dx}=\dfrac yx-\dfrac xy$, $y(1)=2$
- 4 $x\dfrac{dy}{dx}=y+x\cos^2\dfrac yx$, $y(1)=\dfrac\pi4$
- 5 $y\dfrac{dx}{dy}=x+ye^{-x/y}$, $x=0$ when $y=1$
- 1 Find the curve through $(2,1)$ whose slope at every point $(x,y)$ is $\dfrac{x^2+y^2}{2xy}$.
- 2 Find the curve through $(1,2)$ whose slope at every point $(x,y)$ ($x\gt0$) is $\dfrac{2y}{x}+\dfrac xy$.
- 3 Explain why the substitution $y=vx$ does not help with $\dfrac{dy}{dx}=\dfrac{x+y+1}{x-y}$.
- 4 For $\dfrac{dy}{dx}=\dfrac{y-x}{y+x}$, find the lines through the origin along which the slope is $0$, along which it is $-1$, and along which the tangent is vertical.
- 5 Prove that if $y=\varphi(x)$ is a solution of $\dfrac{dy}{dx}=g\!\left(\dfrac yx\right)$, then so is $y=\lambda\varphi\!\left(\dfrac x\lambda\right)$ for every constant $\lambda\gt0$. (This is the zoom symmetry of Interactive 1.)
How this is examined: Board papers almost always contain one homogeneous equation for 3 or 5 marks โ show it is homogeneous, substitute $y=vx$ (or $x=vy$), separate, integrate and apply the initial condition. Marks are lost for skipping the homogeneity check and for not substituting back. JEE asks for a value of the solution or a property of the solution curve.
E1. Board ยท 1 mark Which of the following is a homogeneous differential equation? (A) $\dfrac{dy}{dx}=\dfrac{x+y+1}{x-y}$ (B) $\dfrac{dy}{dx}=\dfrac{x^2+y}{xy}$ (C) $\dfrac{dy}{dx}=\dfrac{x^2+y^2}{xy}$ (D) $\dfrac{dy}{dx}=x+y^2$
E2. Board ยท 1 mark The most suitable substitution for solving $\dfrac{dx}{dy}=\dfrac xy+e^{x/y}$ is (A) $y=vx$ (B) $x=vy$ (C) $x+y=v$ (D) $xy=v$
E3. Board ยท 3 marks Show that $x\dfrac{dy}{dx}=y-x\tan\dfrac yx$ is homogeneous and find its general solution ($x\gt0$).
E4. Board ยท 5 marks Find the particular solution of $x^2\dfrac{dy}{dx}=x^2+xy+y^2$ ($x\gt0$) given that $y=0$ when $x=1$.
E5. JEE Main The solution curve of $\dfrac{dy}{dx}=\dfrac yx+\dfrac xy$ ($x\gt0$, $y\gt0$) through $(1,1)$ meets the line $x=e$ at $y=$ (A) $\sqrt3\,e$ (B) $\sqrt2\,e$ (C) $3e$ (D) $e$
E6. JEE Advanced (One or more correct options.) Let $y(x)$ satisfy $x\dfrac{dy}{dx}=y+\sqrt{x^2-y^2}$ for $x\ge1$, with $y(1)=0$, on the interval where $\tfrac yx$ increases from $0$ to $1$. Then (A) $y=x\sin(\log x)$ on that interval (B) $y\!\left(e^{\pi/4}\right)=\dfrac{e^{\pi/4}}{\sqrt2}$ (C) the curve passes through $\left(e^{\pi/6},\tfrac12e^{\pi/6}\right)$ (D) $y=x\sin(\log x)$ satisfies the equation for every $x\gt1$
Research question. What shape must a mirror have so that every ray of light from a bulb at the origin is reflected parallel to the $x$-axis โ the design of a torch, a car headlight or a satellite dish (run in reverse)?
Why it matters. Headlights, solar cookers, radio telescopes and the dish antennas used for DTH television all rely on this shape. The reflection law gives a homogeneous differential equation, because the problem has no built-in scale: enlarging a working mirror about the bulb gives another working mirror.
What to do.
- Let a ray from $O$ hit the mirror at $P(x,y)$, making angle $\theta$ with the $x$-axis, so $\tan\theta=\tfrac yx$; let the tangent at $P$ make angle $\alpha$ with the $x$-axis, so $\tan\alpha=\tfrac{dy}{dx}=m$. Draw a diagram and use "angle of incidence = angle of reflection" to explain why $\theta=2\alpha$ when the reflected ray is horizontal.
- Use $\tan2\alpha=\dfrac{2m}{1-m^2}$ to show that $\dfrac yx=\dfrac{2m}{1-m^2}$, and solve this quadratic for $m$: $\dfrac{dy}{dx}=\dfrac{-x+\sqrt{x^2+y^2}}{y}$ (taking the root that gives a mirror behind the bulb). Check that the right-hand side is homogeneous of degree $0$.
- Verify, by differentiating, that every parabola $y^2=2Cx+C^2$ ($C\gt0$) satisfies this equation. Where is its vertex, and where is the bulb relative to it?
- Measure a real reflector (a torch, or a photo of a dish antenna with a known diameter): its width $D$ across the rim and depth $d$. For a parabola the bulb (focus) should sit at distance $f=\dfrac{D^2}{16d}$ from the vertex. Check this against the actual bulb position.
Tools: Ruler, protractor, a torch or a photo of a dish antenna, graph paper or a graphing app.
Hand in: Your diagram and derivation of the differential equation, the verification for $y^2=2Cx+C^2$, a plot of three members of the family, and your measurement with the predicted and actual focus positions.
Going further. Solve the equation yourself with the substitution $x=vy$, or by writing $\sqrt{x^2+y^2}=r$ and noticing that $x\,dx+y\,dy=r\,dr$. Why do all members of the family have the same shape (just enlarged)?
๐งช Self-check quiz
Q1. The degree of the homogeneous function $x^3+2x^2y-y^3$ is
Q2. Which function is homogeneous of degree $0$?
Q3. If $y=vx$, where $v$ is a function of $x$, then $\dfrac{dy}{dx}=$
Q4. After the substitution $y=vx$, the equation $\dfrac{dy}{dx}=1+\dfrac yx$ becomes
Q5. For a homogeneous equation $\dfrac{dy}{dx}=g\!\left(\dfrac yx\right)$, the slope is the same at all points of