first order odes
Integrating Factors
You should know: first order differential equation
Overview
An integrating factor is a function μ(x,y) that, when multiplied through a non-exact first-order equation M dx + N dy = 0, makes it exact — so it can then be solved by the exact-equation method. The most common use is on linear first-order equations y′ + P(x)y = Q(x), where μ(x) = e^{∫P dx} converts the left side into the derivative of a single product, (μy)′. Finding a general integrating factor for an arbitrary non-exact equation can be hard, but for the linear case the formula is explicit and always works. This technique is one of the two standard workhorses (alongside separation of variables) for solving first-order linear ODEs in closed form.
Intuition
The product rule says (μy)′ = μy′ + μ′y. If we choose μ so that μ′ = μP, then μy′ + μPy is exactly μy′ + μ′y = (μy)′ — so the messy left side y′ + Py collapses into the derivative of a single product once multiplied by the right μ. It's like finding the right substitution that turns a sum of two changing quantities into the change of one combined quantity, after which a single integration finishes the job.
Formal Definition
For the linear first-order equation, multiplying by μ(x) = e^{∫P(x)dx} makes the left side an exact derivative:
Worked Examples
Identify P(x) = 2 and compute the integrating factor.
Multiply through by μ; the left side becomes an exact derivative.
Integrate both sides.
Divide by e^{2x} to isolate y.
Answer: y = e^(-x) + Ce^(-2x) (verify: y′ = -e^{-x} - 2Ce^{-2x}; y′+2y = -e^{-x}-2Ce^{-2x}+2e^{-x}+2Ce^{-2x} = e^{-x}, matching the right side).
Practice Problems
Solve y′ + 3y = 6 using an integrating factor.
Solve xy′ + y = x², for x>0 (first rewrite in standard linear form).
An RL circuit obeys L di/dt + Ri = V (constant V, L=R=1, V=10), with i(0)=0. Use an integrating factor to find i(t).
Quiz
Summary
- An integrating factor μ multiplies a non-exact equation to make it exact, most simply for linear ODEs y′+Py=Q.
- For the linear case, μ(x) = e^{∫P dx} turns the left side into the exact derivative (μy)′.
- Integrating both sides and dividing by μ gives the closed-form general solution.
Mathematics