Integrating Factors
Integrating factors can be used to solve first-order differential equations with non-constant coefficients.
This post is part of the book Justin Math: Calculus. Suggested citation: Skycak, J. (2019). Integrating Factors. In Justin Math: Calculus. https://justinmath.com/integrating-factors/
Want to get notified about new posts? Join the mailing list and follow on X/Twitter.
We know how to solve differential equations of the form
where each coefficient $a_i$ is a constant. In this chapter, we consider differential equations of the form
where the coefficient $a(x)$ is itself a function of $x$.
To solve such equations using the method of integrating factors, we start off multiplying both sides of the equation by the term $e^{\int a(x) \, dx}$, which is known as the integrating factor. Then, we can write the left hand side as the derivative of $ye^{\int a(x) \, dx}$, antidifferentiate, and solve for $y$.
Demonstration
For example, consider the differential equation $y’-\frac{3}{x}y=2x+1$. The integrating factor for this equation is as follows:
To solve the equation, we multiply both sides of the equation, group the derivative, take the antiderivative, and solve for $y$.
Case when Leading Coefficient is Not One
In equations where the coefficient on the $y’$ is not already $1$, we need to start by dividing the equation by that coefficient.
For example, to solve the equation $xy’ + \frac{y}{\ln x} = x^3$, we start by dividing by $x$, which yields $y’ + \frac{y}{x \ln x} = x^2$. Then, we can proceed as usual to calculate the integration factor.
Now, we can multiply our updated equation by the integration factor, and solve for $y$ (using integration by parts along the way).
Exercises
Use integrating factors to solve the following differential equations. (You can view the solution by clicking on the problem.)
$\begin{align*} 1) \hspace{.5cm} y' + \frac{y}{x} = \sin x \end{align*}$
Solution:
$\begin{align*} y=\frac{C_1+\sin x}{x}-\cos x \end{align*}$
$\begin{align*} 2) \hspace{.5cm} y' + \frac{y}{x \ln x} = \ln x \end{align*}$
Solution:
$\begin{align*} y=\frac{C_1+2x}{\ln x}-2x-x\ln x \end{align*}$
$\begin{align*} 3) \hspace{.5cm} y' + y \cot x = 1 \end{align*}$
Solution:
$\begin{align*} y=C_1 \csc x - \cot x \end{align*}$
$\begin{align*} 4) \hspace{.5cm} xy' + y = \sec^2(x) \end{align*}$
Solution:
$\begin{align*} y=\frac{C_1+\tan x}{x} \end{align*}$
$\begin{align*} 5) \hspace{.5cm} xy' + y = \sec^2(x) \end{align*}$
Solution:
$\begin{align*} y=\frac{C_1+\tan x}{x} \end{align*}$
$\begin{align*} 6) \hspace{.5cm} y' \tan x - y = \sec x \end{align*}$
Solution:
$\begin{align*} y=C_1 \sin x - \cos x \end{align*}$
This post is part of the book Justin Math: Calculus. Suggested citation: Skycak, J. (2019). Integrating Factors. In Justin Math: Calculus. https://justinmath.com/integrating-factors/
Want to get notified about new posts? Join the mailing list and follow on X/Twitter.