The given differential equation is first-order linear and its general solution is y=Cx−3, which is a family of straight lines passing through a fixed point.
The key is to recognise the form of the equation. It is written as xdxdy−y=3. This is a first-order linear differential equation, but it can also be rearranged into a form that suggests a derivative of a product. Whenever you see xdxdy−y, think of the derivative of xy or of x⋅y — but here the minus sign points to dxd(xy).
Let’s check:
dxd(xy)=x2xdxdy−y.
So xdxdy−y=x2⋅dxd(xy). That is a useful insight, but we can also solve directly.
- Rewrite the equation in standard linear form
Divide through by x (assuming x=0):
dxdy−x1y=x3.
This is of the form dxdy+P(x)y=Q(x) with P(x)=−x1 and Q(x)=x3.
- Find the integrating factor
The integrating factor is
μ(x)=e∫P(x)dx=e∫−x1dx=e−log∣x∣=∣x∣1.
For simplicity, we take μ(x)=x1 (considering x>0 or x<0 separately; the constant sign doesn't affect the family).
- Multiply through by the integrating factor
x1dxdy−x21y=x23.
The left-hand side is exactly dxd(xy).
- Integrate both sides
dxd(xy)=x23.
Integrate with respect to x:
xy=∫x23dx=−x3+C,
where C is an arbitrary constant.
- Solve for y
Multiply through by x:
y=−3+Cx.
Or, rearranged:
y=Cx−3. …