3. First-Order Equations II

Integrating Factors

Integrating Factors 📘

students, this lesson is about one of the most useful tools for solving certain first-order differential equations: the integrating factor. The big idea is simple but powerful. Some differential equations look messy at first, but if we multiply them by the right function, they become easy to solve. That special function is called the integrating factor. By the end of this lesson, you should be able to explain what an integrating factor is, use it to solve linear first-order equations, and see how it fits into the larger topic of first-order equations. ✅

Why Integrating Factors Matter

A first-order differential equation involves the first derivative of a function, usually written as $\frac{dy}{dx}$. In this lesson, we focus on linear first-order equations, which often appear in the form

$$\frac{dy}{dx} + P(x)y = Q(x).$$

Here, $P(x)$ and $Q(x)$ are known functions of $x$, and $y$ is the unknown function we want to find. Many real situations can be modeled this way, including cooling, mixing, and simple growth or decay. For example, a chemical tank might have salt water flowing in and out, or a thermometer might cool down in a room. These situations often lead to equations where a direct solution is not obvious. That is where integrating factors help. 🌟

The goal is to turn the left side of the equation into the derivative of a product. Once that happens, the equation becomes much easier to integrate. The method works because of the product rule from calculus. If

$$\frac{d}{dx}[\mu(x)y] = \mu(x)\frac{dy}{dx} + \mu'(x)y,$$

then we want to choose $\mu(x)$ so that the left side of the differential equation matches this form.

The Main Idea Behind the Integrating Factor

Suppose we start with

$$\frac{dy}{dx} + P(x)y = Q(x).$$

We multiply both sides by a function $\mu(x)$, giving

$$\mu(x)\frac{dy}{dx} + \mu(x)P(x)y = \mu(x)Q(x).$$

Now we want the left-hand side to become exactly

$$\frac{d}{dx}[\mu(x)y].$$

Using the product rule, this will happen if

$$\mu'(x) = \mu(x)P(x).$$

This is a separable differential equation for $\mu(x)$. Solving it gives

$$\mu(x) = e^{\int P(x)\,dx}.$$

This is the integrating factor for the linear equation. It is called an integrating factor because after multiplying by it, the equation can be integrated directly. 📌

A key detail is that the integrating factor is not random. It is carefully chosen so the left-hand side becomes a single derivative. That is the whole trick. If students remembers only one sentence from this lesson, it should be this: the integrating factor is a function that makes a linear differential equation easier by converting the left side into a product derivative.

Step-by-Step Method

Let us solve the general linear equation

$$\frac{dy}{dx} + P(x)y = Q(x).$$

Step 1: Identify $P(x)$ and $Q(x)$

Rewrite the equation so the coefficient of $\frac{dy}{dx}$ is $1$. Then identify the function multiplying $y$ as $P(x)$ and the remaining right-hand side as $Q(x)$.

Step 2: Find the integrating factor

Compute

$$\mu(x) = e^{\int P(x)\,dx}.$$

Step 3: Multiply the entire equation by $\mu(x)$

This gives

$$\mu(x)\frac{dy}{dx} + \mu(x)P(x)y = \mu(x)Q(x).$$

Step 4: Recognize the product derivative

Because of the way $\mu(x)$ was chosen, the left side becomes

$$\frac{d}{dx}[\mu(x)y] = \mu(x)Q(x).$$

Step 5: Integrate both sides

Integrate with respect to $x$:

$$\mu(x)y = \int \mu(x)Q(x)\,dx + C.$$

Step 6: Solve for $y$

Finally,

$$y = \frac{1}{\mu(x)}\left(\int \mu(x)Q(x)\,dx + C\right).$$

This formula gives the general solution. If an initial condition is provided, you can use it to find $C$. 🧠

Worked Example

Let us solve

$$\frac{dy}{dx} + 2y = e^{-2x}.$$

Here, $P(x) = 2$ and $Q(x) = e^{-2x}$. The integrating factor is

$$\mu(x) = e^{\int 2\,dx} = e^{2x}.$$

Multiply the entire equation by $e^{2x}$:

$$e^{2x}\frac{dy}{dx} + 2e^{2x}y = 1.$$

Why does the right-hand side become $1$? Because $e^{2x}e^{-2x} = 1$.

Now the left side is the derivative of a product:

$$\frac{d}{dx}[e^{2x}y] = 1.$$

Integrate both sides:

$$e^{2x}y = x + C.$$

Solve for $y$:

$$y = e^{-2x}(x + C).$$

This solution can be checked by differentiating and substituting back into the original equation. That is always a good habit in differential equations. ✅

If we had an initial condition, such as $y(0) = 3$, then we could substitute $x = 0$ and $y = 3$ to find $C$.

Why the Method Works

The method works because of the product rule. The product rule says

$$\frac{d}{dx}[uv] = u\frac{dv}{dx} + v\frac{du}{dx}.$$

In our case, we want $u = \mu(x)$ and $v = y$. Then

$$\frac{d}{dx}[\mu(x)y] = \mu(x)\frac{dy}{dx} + \mu'(x)y.$$

Compare this with the multiplied equation

$$\mu(x)\frac{dy}{dx} + \mu(x)P(x)y.$$

These match when

$$\mu'(x) = \mu(x)P(x).$$

That is why the integrating factor is chosen using $P(x)$ and not $Q(x)$. The function $Q(x)$ is handled later when we integrate. This separation of roles is important in First-Order Equations II: $P(x)$ helps build the integrating factor, while $Q(x)$ determines what happens after integration.

Common Patterns and Real-World Meaning

Integrating factors are especially useful when the equation describes a quantity that changes over time and is affected by two things: a proportional effect and an external input. For example:

  • In a cooling model, the temperature changes partly based on how far it is from room temperature.
  • In a mixing problem, the amount of salt changes because salt enters and leaves at certain rates.
  • In an electrical circuit, current or charge may satisfy a linear first-order equation.

These models often lead to equations of the form

$$\frac{dy}{dx} + P(x)y = Q(x).$$

The term $P(x)y$ represents the part of the change depending on the current amount, while $Q(x)$ represents outside influence. The integrating factor helps combine the equation into a solvable structure. This connects the lesson to the broader syllabus topic of first-order equations, especially linear equations and mixing problems. 🌍

Another Example with a Variable Coefficient

Consider

$$\frac{dy}{dx} + \frac{1}{x}y = x^2, \quad x > 0.$$

Here,

$$P(x) = \frac{1}{x}, \quad Q(x) = x^2.$$

The integrating factor is

$$\mu(x) = e^{\int \frac{1}{x}\,dx} = e^{\ln x} = x,$$

since $x > 0$.

Multiply the equation by $x$:

$$x\frac{dy}{dx} + y = x^3.$$

Now the left side is

$$\frac{d}{dx}[xy] = x^3.$$

Integrate:

$$xy = \int x^3\,dx = \frac{x^4}{4} + C.$$

So

$$y = \frac{x^3}{4} + \frac{C}{x}.$$

This example shows that the method works even when $P(x)$ is not constant. The key is still the same: choose $\mu(x)$ using $P(x)$ so the product rule can be used.

Conclusion

Integrating factors are a central tool for solving linear first-order differential equations. students, the big idea is to multiply the equation by a carefully chosen function

$$\mu(x) = e^{\int P(x)\,dx}$$

so the left-hand side becomes a single derivative. Then the equation can be integrated and solved for $y$. This method is important because it connects algebra, calculus, and modeling in real-world situations like cooling and mixing. Within First-Order Equations II, it acts as a bridge between recognizing linear equations and actually solving them efficiently. If you can identify $P(x)$, build the integrating factor, and carry out the integration steps, you have mastered one of the most important techniques in this unit. 🎯

Study Notes

  • A linear first-order differential equation has the form $\frac{dy}{dx} + P(x)y = Q(x)$.
  • The integrating factor is $\mu(x) = e^{\int P(x)\,dx}$.
  • Multiply the whole equation by $\mu(x)$ to make the left side into a product derivative.
  • Use the product rule: $\frac{d}{dx}[\mu(x)y] = \mu(x)\frac{dy}{dx} + \mu'(x)y$.
  • After multiplying, the equation becomes $\frac{d}{dx}[\mu(x)y] = \mu(x)Q(x)$.
  • Integrate both sides to get $\mu(x)y = \int \mu(x)Q(x)\,dx + C$.
  • Solve for $y$ by dividing by $\mu(x)$.
  • The method is useful in cooling, mixing, and other real-world models.
  • The integrating factor depends on $P(x)$, not on $Q(x)$.
  • Checking solutions by substitution is a good way to confirm accuracy.

Practice Quiz

5 questions to test your understanding