## 17Calculus - Integrating Factors for Linear Differential Equations

##### 17Calculus

On this page, we will look at integrating factors for first-order, linear equations. (See the exact differential equations page for discussion of integrating factors for inexact equations.) The integrating factor converts the differential equation into a form that can be solved by direct integration.

The integrating factor we will look at on this page applies to first-order, linear differential equations of the form $$\displaystyle{ \frac{dy}{dt} + p(t)y = g(t) }$$.
The idea of the technique of integrating factors is deceptively simple, yet quite powerful. When you have a first-order, linear differential equation of the form
$$\displaystyle{ \frac{dy}{dt} + p(t)y = g(t) }$$
and you multiply this equation by the generated integrating factor
$$\mu(t) = \exp \int{ p(t)~dt }$$

This converts the differential equation into the form
$$\displaystyle{ \frac{d}{dt}[ \mu(t)y] = \mu(t)g(t) }$$

You can then integrate to get $$\displaystyle{ \mu(t)y }$$ and divide by $$\mu(t)$$ to solve for $$y$$.
(Note: We will not go through the derivation of the integrating factor here at this time. However, going through the derivation in your textbook will really help you understand what is going on here.)
Okay, let's watch some videos, so we can see how this works.

Here is a good introduction to integrating factors that is not too long.

### MIT OCW - integrating factors introduction [27mins-8secs]

video by MIT OCW

Here are a couple of complete examples using integrating factors to solve first-order, linear differential equations. In the first video, he works an example and explains integrating factors. In the second video, he expands on his discussion, giving more detail, while working a second example. In both videos, he explains how the product rule from calculus relates to this technique.

### Dr Chris Tisdell - integrating factors (1) [8mins-18secs]

video by Dr Chris Tisdell

### Dr Chris Tisdell - integrating factors (2) [11mins-34secs]

video by Dr Chris Tisdell

Okay, time for some practice problems.

Practice

Unless otherwise instructed, find the general solutions to these differential equations using the method of integrating factors. If initial condition(s) are given, find the particular solution also. Give your answers in exact form.

$$\displaystyle{ x \frac{dy}{dx} + (x+1)y = 3 }$$

Problem Statement

$$\displaystyle{ x \frac{dy}{dx} + (x+1)y = 3 }$$

$$\displaystyle{ y(x) = \frac{3}{x} + \frac{C}{xe^x} }$$

Problem Statement

$$\displaystyle{ x \frac{dy}{dx} + (x+1)y = 3 }$$

Solution

### Dr Chris Tisdell - 581 video solution

video by Dr Chris Tisdell

$$\displaystyle{ y(x) = \frac{3}{x} + \frac{C}{xe^x} }$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} + \frac{2x}{1+x^2}y = \frac{4}{(1+x^2)^2} }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} + \frac{2x}{1+x^2}y = \frac{4}{(1+x^2)^2} }$$

$$\displaystyle{ y = \frac{4\arctan(x)+C}{1+x^2} }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} + \frac{2x}{1+x^2}y = \frac{4}{(1+x^2)^2} }$$

Solution

### PatrickJMT - 582 video solution

video by PatrickJMT

$$\displaystyle{ y = \frac{4\arctan(x)+C}{1+x^2} }$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} + y/x = x }$$; $$x > 0$$; $$y(1)=0$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} + y/x = x }$$; $$x > 0$$; $$y(1)=0$$

$$\displaystyle{ y(x) = \frac{1}{3x}(x^3-1) }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} + y/x = x }$$; $$x > 0$$; $$y(1)=0$$

Solution

### Dr Chris Tisdell - 590 video solution

video by Dr Chris Tisdell

$$\displaystyle{ y(x) = \frac{1}{3x}(x^3-1) }$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} + 3y = 2xe^{-3x} }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} + 3y = 2xe^{-3x} }$$

$$\displaystyle{ y = e^{-3x}(x^2+C) }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} + 3y = 2xe^{-3x} }$$

Solution

### Krista King Math - 583 video solution

video by Krista King Math

$$\displaystyle{ y = e^{-3x}(x^2+C) }$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} - 2xy = x }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - 2xy = x }$$

$$\displaystyle{ y = -\frac{1}{2} + Ce^{x^2} }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - 2xy = x }$$

Solution

### PatrickJMT - 584 video solution

video by PatrickJMT

$$\displaystyle{ y = -\frac{1}{2} + Ce^{x^2} }$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} - 2y = e^{3x} }$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - 2y = e^{3x} }$$

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

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - 2y = e^{3x} }$$

Solution

### Dr Chris Tisdell - 589 video solution

video by Dr Chris Tisdell

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

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ t^2\frac{dy}{dt} + 2ty = \sin(t) }$$

Problem Statement

$$\displaystyle{ t^2\frac{dy}{dt} + 2ty = \sin(t) }$$

$$\displaystyle{ y(t) = \frac{-\cos(t)+C}{t^2} }$$

Problem Statement

$$\displaystyle{ t^2\frac{dy}{dt} + 2ty = \sin(t) }$$

Solution

### Dr Chris Tisdell - 591 video solution

video by Dr Chris Tisdell

$$\displaystyle{ y(t) = \frac{-\cos(t)+C}{t^2} }$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{xy'-y}{x^2} = 0 }$$

Problem Statement

$$\displaystyle{ \frac{xy'-y}{x^2} = 0 }$$

$$y = cx$$

Problem Statement

$$\displaystyle{ \frac{xy'-y}{x^2} = 0 }$$

Solution

### Dr Chris Tisdell - 592 video solution

video by Dr Chris Tisdell

$$y = cx$$

Log in to rate this practice problem and to see it's current rating.

$$xy' = y + x^2\sin(x)$$; $$y(\pi)=0$$

Problem Statement

$$xy' = y + x^2\sin(x)$$; $$y(\pi)=0$$

$$y = -x(\cos(x) + 1)$$

Problem Statement

$$xy' = y + x^2\sin(x)$$; $$y(\pi)=0$$

Solution

### Krista King Math - 619 video solution

video by Krista King Math

$$y = -x(\cos(x) + 1)$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} - y = e^{3x} }$$; $$y(0)=0$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - y = e^{3x} }$$; $$y(0)=0$$

Solution

### Dr Chris Tisdell - 1844 video solution

video by Dr Chris Tisdell

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dx} - \frac{2}{x+1}y = 3 }$$, $$y(0) = 2$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - \frac{2}{x+1}y = 3 }$$, $$y(0) = 2$$

$$y = -3(x+1) + 5(x+1)^2$$

Problem Statement

$$\displaystyle{ \frac{dy}{dx} - \frac{2}{x+1}y = 3 }$$, $$y(0) = 2$$

Solution

### Dr Chris Tisdell - 1949 video solution

video by Dr Chris Tisdell

$$y = -3(x+1) + 5(x+1)^2$$

Log in to rate this practice problem and to see it's current rating.

$$\displaystyle{ \frac{dy}{dt} = \frac{y}{t+1} + 4t^2 + 4t }$$, $$y(1)=5$$, $$(t > -1)$$

Problem Statement

$$\displaystyle{ \frac{dy}{dt} = \frac{y}{t+1} + 4t^2 + 4t }$$, $$y(1)=5$$, $$(t > -1)$$

$$y(t) = (t+1)(2t^2+1/2)$$

Problem Statement

$$\displaystyle{ \frac{dy}{dt} = \frac{y}{t+1} + 4t^2 + 4t }$$, $$y(1)=5$$, $$(t > -1)$$

Solution

### MIP4U - 2081 video solution

video by MIP4U

$$y(t) = (t+1)(2t^2+1/2)$$

Log in to rate this practice problem and to see it's current rating.

When using the material on this site, check with your instructor to see what they require. Their requirements come first, so make sure your notation and work follow their specifications.

DISCLAIMER - 17Calculus owners and contributors are not responsible for how the material, videos, practice problems, exams, links or anything on this site are used or how they affect the grades or projects of any individual or organization. We have worked, to the best of our ability, to ensure accurate and correct information on each page and solutions to practice problems and exams. However, we do not guarantee 100% accuracy. It is each individual's responsibility to verify correctness and to determine what different instructors and organizations expect. How each person chooses to use the material on this site is up to that person as well as the responsibility for how it impacts grades, projects and understanding of calculus, math or any other subject. In short, use this site wisely by questioning and verifying everything. If you see something that is incorrect, contact us right away so that we can correct it.