Question Statement
Solve the differential equation:
d x d y = 3 x + y x + 3 y
Background and Explanation
This is a homogeneous differential equation because both the numerator and denominator are homogeneous functions of the same degree (degree 1). Such equations can be solved using the substitution y = ux , which transforms the equation into a separable form.
Solution
Given:
d x d y = 3 x + y x + 3 y
Since this is a homogeneous differential equation, we use the substitution:
y = ux
Differentiating both sides with respect to x using the product rule:
d x d y = u + x d x d u
Substituting y = ux and d x d y = u + x d x d u into equation (1):
x d x d u + u = 3 x + ux x + 3 ux
Factor out x from the right-hand side:
x d x d u + u = x ( 3 + u ) x ( 1 + 3 u ) = 3 + u 1 + 3 u
Isolate x d x d u :
x d x d u = 3 + u 1 + 3 u − u = 3 + u 1 + 3 u − u ( 3 + u )
Simplify the numerator:
x d x d u = 3 + u 1 + 3 u − 3 u − u 2 = 3 + u 1 − u 2
Rearranging to separate variables u and x :
1 − u 2 3 + u d u = x 1 d x
Factor the denominator 1 − u 2 = ( 1 + u ) ( 1 − u ) :
( 1 + u ) ( 1 − u ) 3 + u d u = x 1 d x
We decompose the left side:
( 1 + u ) ( 1 − u ) 3 + u = 1 + u A + 1 − u B
Multiplying both sides by ( 1 + u ) ( 1 − u ) :
3 + u = A ( 1 − u ) + B ( 1 + u )
Finding A : Set u = − 1 (making 1 + u = 0 ):
3 + ( − 1 ) = A ( 1 − ( − 1 )) + B ( 0 )
2 = 2 A ⇒ A = 1
Finding B : Set u = 1 (making 1 − u = 0 ):
3 + 1 = A ( 0 ) + B ( 1 + 1 )
4 = 2 B ⇒ B = 2
Substituting back into equation (3):
( 1 + u ) ( 1 − u ) 3 + u = 1 + u 1 + 1 − u 2
Equation (2) becomes:
∫ ( 1 + u 1 + 1 − u 2 ) d u = ∫ x 1 d x
Integrating term by term (note: ∫ 1 − u 2 d u = − 2 ln ∣1 − u ∣ ):
ln ∣1 + u ∣ − 2 ln ∣1 − u ∣ = ln ∣ x ∣ + ln ∣ c ∣
Combine logarithms on both sides:
ln ( 1 − u ) 2 1 + u = ln ∣ c x ∣
Removing logarithms:
( 1 − u ) 2 1 + u = c x
Substitute u = x y back into the equation:
( 1 − x y ) 2 1 + x y = c x
Simplify the complex fraction by multiplying numerator and denominator by x and x 2 respectively:
( x x − y ) 2 x x + y = c x
x x + y ⋅ ( x − y ) 2 x 2 = c x
( x − y ) 2 ( x + y ) x = c x
Divide both sides by x (assuming x = 0 ):
( x − y ) 2 x + y = c
Or equivalently:
( x + y ) = c ( x − y ) 2
Homogeneous Equation Substitution: y = ux ⟹ d x d y = u + x d x d u
Partial Fraction Decomposition: ( 1 + u ) ( 1 − u ) 3 + u = 1 + u 1 + 1 − u 2
Logarithmic Integration: ∫ a x + b 1 d x = a 1 ln ∣ a x + b ∣ + C
Logarithm Properties: ln a − ln b = ln ( b a ) and k ln a = ln ( a k )
Summary of Steps
Identify the equation as homogeneous (degree 1 in numerator and denominator).
Substitute y = ux and d x d y = u + x d x d u .
Simplify to obtain x d x d u = 3 + u 1 − u 2 .
Separate variables: 1 − u 2 3 + u d u = x 1 d x .
Decompose using partial fractions: 1 + u 1 + 1 − u 2 .
Integrate both sides to get ln ∣1 + u ∣ − 2 ln ∣1 − u ∣ = ln ∣ c x ∣ .
Simplify logarithmically to ( 1 − u ) 2 1 + u = c x .
Substitute back u = x y and simplify to final form ( x − y ) 2 x + y = c .