MathematicsOrdinary Differential EquationsUniversity

Integrating Factor for First-Order Linear ODEs

This formula provides the general solution for a first-order linear ordinary differential equation by multiplying the equation by an integrating factor to facilitate integration.

Understand the formulaSee the free derivationOpen the full walkthrough

This public page keeps the free explanation visible and leaves premium worked solving, advanced walkthroughs, and saved study tools inside the app.

Core idea

Overview

For a standard linear ODE in the form dy/dx + P(x)y = Q(x), the integrating factor μ(x) = exp(∫P(x)dx) transforms the left side into the derivative of the product μ(x)y. By integrating both sides with respect to x, we isolate y, allowing for a systematic solution even when the equation is not directly separable. This method is the fundamental technique for solving non-homogeneous first-order linear differential equations.

When to use: Use this method when you encounter a first-order ODE that can be algebraically rearranged into the linear standard form dy/dx + P(x)y = Q(x).

Why it matters: It serves as the foundation for modeling dynamic systems in engineering and physics, such as RC circuits, radioactive decay, and fluid cooling processes.

Symbols

Variables

y = Dependent Variable, mu = Integrating Factor, Q = Non-homogeneous Term

Dependent Variable
Variable
mu
Integrating Factor
Variable
Non-homogeneous Term
Variable

Walkthrough

Derivation

Derivation of Integrating Factor for First-Order Linear ODEs

This derivation uses an integrating factor to transform a non-separable linear first-order differential equation into an easily integrable exact derivative form.

  • The function P(x) is continuous on the interval of interest.
  • The integrating factor μ(x) is a non-zero, differentiable function.
1

Define the Standard Form

We begin with the standard form of a first-order linear ordinary differential equation.

Note: Ensure the coefficient of dy/dx is 1 before identifying P(x) and Q(x).

2

Introduce the Integrating Factor

Multiply the entire equation by an unknown function μ(x) so that the left side becomes the derivative of a product.

Note: We want the left side to look like the result of the product rule: d/dx[μ(x)y].

3

Set the Product Rule Condition

By comparing the product rule expansion to the left side of our multiplied equation, we require that μ'(x) = μ(x)P(x).

Note: This is a separable differential equation for μ(x).

4

Solve for the Integrating Factor

Integrating both sides of the separable equation yields the explicit formula for the integrating factor.

Note: The constant of integration can be ignored here as it cancels out in the final solution.

5

Integrate to Find y(x)

Substitute the condition back into the original ODE, recognize the derivative of the product, and integrate both sides.

Note: Don't forget to add the constant of integration C when performing the final integral.

6

Final General Solution

Divide by μ(x) to isolate y(x), yielding the general solution for the ODE.

Note: If an initial condition is provided, solve for C at this stage.

Result

Source: Boyce, W. E., & DiPrima, R. C. (2012). Elementary Differential Equations and Boundary Value Problems.

Visual intuition

Graph

Graph unavailable for this formula.

Contains advanced operator notation (integrals/sums/limits)

Why it behaves this way

Intuition

Think of the ODE as a system with a 'natural growth/decay' rate P(x) and an 'external input' Q(x). The integrating factor μ(x) acts as a scaling transformation that flattens the effect of the variable growth rate, turning the complicated ODE into a simple derivative of a product: d/dx[μ(x)y] = μ(x)Q(x). Geometrically, this is equivalent to finding a 'compensating field' that stabilizes the system so that the total accumulation of Q over time (the integral) can be recovered perfectly.

y(x)
Dependent variable
The state or quantity of the system we are tracking as it evolves over x.
Integrating factor
A 'weighting' function that adjusts the coordinate system to make the differential equation look like a simple derivative, allowing for direct integration.
Q(x)
Forcing function
The external influence or 'input' acting upon the system independently of its current state y.
Inverse scaling factor
The step that 'undoes' the transformation applied by the integrating factor to isolate the solution y(x).

Signs and relationships

  • 1/μ(x): This represents the inverse of the weighting function; since μ(x) was used to compress/stretch the space to allow integration, we divide by it to return to the original scale of y(x).

One free problem

Practice Problem

Solve the differential equation dy/dx + y = 1 for y(0) = 0.

x0

Solve for:

Hint: Identify P(x)=1 and Q(x)=1. Then find μ(x) = .

The full worked solution stays in the interactive walkthrough.

Where it shows up

Real-World Context

In a mathematical model involving Integrating Factor for First-Order Linear ODEs, Integrating Factor for First-Order Linear ODEs is used to calculate y(x) from Dependent Variable, Integrating Factor, and Non-homogeneous Term. The result matters because it helps turn a changing quantity into a total amount such as area, distance, volume, work, or cost.

Study smarter

Tips

  • Always normalize the ODE so the coefficient of dy/dx is 1 before identifying P(x).
  • Do not forget the constant of integration (+C) during the final integration step.
  • Check that μ(x) is computed correctly as e raised to the integral of P(x), not just the integral of P(x).

Avoid these traps

Common Mistakes

  • Failing to put the ODE in standard form (dy/dx + P(x)y = Q(x)) before identifying P(x).
  • Omitting the arbitrary constant of integration when evaluating ∫μ(x)Q(x)dx.
  • Incorrectly simplifying the exponential integral for μ(x).

Common questions

Frequently Asked Questions

This derivation uses an integrating factor to transform a non-separable linear first-order differential equation into an easily integrable exact derivative form.

Use this method when you encounter a first-order ODE that can be algebraically rearranged into the linear standard form dy/dx + P(x)y = Q(x).

It serves as the foundation for modeling dynamic systems in engineering and physics, such as RC circuits, radioactive decay, and fluid cooling processes.

Failing to put the ODE in standard form (dy/dx + P(x)y = Q(x)) before identifying P(x). Omitting the arbitrary constant of integration when evaluating ∫μ(x)Q(x)dx. Incorrectly simplifying the exponential integral for μ(x).

In a mathematical model involving Integrating Factor for First-Order Linear ODEs, Integrating Factor for First-Order Linear ODEs is used to calculate y(x) from Dependent Variable, Integrating Factor, and Non-homogeneous Term. The result matters because it helps turn a changing quantity into a total amount such as area, distance, volume, work, or cost.

Always normalize the ODE so the coefficient of dy/dx is 1 before identifying P(x). Do not forget the constant of integration (+C) during the final integration step. Check that μ(x) is computed correctly as e raised to the integral of P(x), not just the integral of P(x).

References

Sources

  1. Boyce, W. E., & DiPrima, R. C. (2012). Elementary Differential Equations and Boundary Value Problems.
  2. Stewart, J. (2015). Calculus: Early Transcendentals.