Maths WorkshopMaths problems with full solutions
Exercise 1489Calculus › Differential equations › First-order equationsL2Added 2 Nov 2026

An integrating factor

#integrating factor#linear equation#exact equation

Statement

Solve the equation
(1+x2)dy+(xy+x3+x)dx=0.(1+x^2)dy + (xy + x^3 + x)dx = 0.

Hint

Rewrite in the form y′+P(x)y=Q(x)y' + P(x)y = Q(x), then find an integrating factor.

Show solutionHide solution

Solution

Rewrite. Divide by (1+x2)dx(1+x^2)dx:
dydx+x1+x2y=−x.\frac{dy}{dx} + \frac{x}{1+x^2}y = -x.

Integrating factor. Here P(x)=x1+x2P(x) = \frac{x}{1+x^2}, so
∫P(x) dx=12ln⁡(1+x2)=ln⁡1+x2.\int P(x)\,dx = \frac12 \ln(1+x^2) = \ln\sqrt{1+x^2}.
The integrating factor is
μ(x)=e∫P dx=1+x2.\mu(x) = e^{\int P\,dx} = \sqrt{1+x^2}.

Multiply.
1+x2 y′+x1+x2y=−x1+x2.\sqrt{1+x^2}\,y' + \frac{x}{\sqrt{1+x^2}}y = -x\sqrt{1+x^2}.
The left side is ddx(1+x2 y)\frac{d}{dx}(\sqrt{1+x^2}\,y).

Integrate.
1+x2 y=−∫x1+x2 dx=−13(1+x2)3/2+C.\sqrt{1+x^2}\,y = -\int x\sqrt{1+x^2}\,dx = -\frac13(1+x^2)^{3/2} + C.
Hence
y(x)=−13(1+x2)+C1+x2.y(x) = -\frac13(1+x^2) + \frac{C}{\sqrt{1+x^2}}.