Question Statement
Solve the differential equation:
y d x − ( y − x ) d y = 0
Background and Explanation
This is a homogeneous first-order differential equation , identifiable because it can be expressed in the form d x d y = f ( x y ) . Such equations are solved using the substitution y = ux , which transforms the equation into a separable form that can be integrated directly.
Solution
Starting with the given equation:
y d x − ( y − x ) d y = 0
Rearrange to isolate d x d y :
y d x = ( y − x ) d y
⇒ d x d y = y − x y
Equation (1) is homogeneous since the right-hand side can be written as ( y / x ) − 1 ( y / x ) , which is purely a function of x y .
Apply the standard substitution:
y = ux
Differentiate with respect to x using the product rule:
d x d y = x d x d u + u
Substitute into equation (1):
x d x d u + u = ux − x ux = x ( u − 1 ) ux = u − 1 u
Isolate the derivative term:
x d x d u = u − 1 u − u = u − 1 u − u ( u − 1 ) = u − 1 u − u 2 + u = u − 1 2 u − u 2
Factor the numerator:
x d x d u = u − 1 − ( u 2 − 2 u )
Rearrange to separate u and x terms:
u 2 − 2 u u − 1 d u = − x d x
Notice that the numerator ( u − 1 ) is related to the derivative of the denominator ( u 2 − 2 u ) , since d ( u 2 − 2 u ) = ( 2 u − 2 ) d u = 2 ( u − 1 ) d u .
Therefore:
∫ u 2 − 2 u u − 1 d u = 2 1 ∫ u 2 − 2 u 2 u − 2 d u = 2 1 ln ∣ u 2 − 2 u ∣
Integrating both sides:
2 1 ln ( u 2 − 2 u ) = − ln ∣ x ∣ + ln c
(Here ln c represents the arbitrary constant of integration, and we assume u 2 − 2 u > 0 for the logarithm.)
Multiply both sides by 2:
ln ( u 2 − 2 u ) = − 2 ln ∣ x ∣ + 2 ln c = ln ( x 2 c 2 )
Exponentiate both sides:
u 2 − 2 u = x 2 c 2
Alternatively, working with the form given in the derivation:
2 1 ln ( u 2 − 2 u ) = ln ( x c )
⇒ ln u 2 − 2 u = ln ( x c )
⇒ u 2 − 2 u = x c
Recall that u = x y . Substitute into equation (2):
( x y ) 2 − 2 ( x y ) = x c
x 2 y 2 − x 2 y = x c
Combine terms under the radical:
x 2 y 2 − 2 x y = x c
∣ x ∣ y 2 − 2 x y = x c
Assuming x > 0 (or absorbing the sign into the arbitrary constant c ):
y 2 − 2 x y = c
This can also be written as:
y ( y − 2 x ) = c
Or, squaring both sides:
y^2 - 2xy = C \quad \text{(where C = c^2 is an arbitrary positive constant)}
Homogeneous DE Test : d x d y = f ( x y )
Substitution for Homogeneous Equations : y = ux ⇒ d x d y = u + x d x d u
Separation of Variables : u 2 − 2 u u − 1 d u = − x d x
Logarithmic Integration : ∫ f ( x ) f ′ ( x ) d x = ln ∣ f ( x ) ∣ + C
Algebraic Manipulation : Recognizing that 2 ( u − 1 ) is the derivative of u 2 − 2 u to facilitate integration
Summary of Steps
Rearrange the given equation to standard form: d x d y = y − x y
Identify as homogeneous and substitute y = ux with d x d y = u + x d x d u
Simplify to obtain: x d x d u = u − 1 2 u − u 2
Separate variables : u 2 − 2 u u − 1 d u = − x d x
Integrate both sides using the logarithmic rule to get: 2 1 ln ( u 2 − 2 u ) = − ln x + ln c
Exponentiate to eliminate logarithms: u 2 − 2 u = x c
Substitute back u = x y and simplify to obtain the general solution: y ( y − 2 x ) = c or y 2 − 2 x y = C