First-Order Linear Differential Equations
A differential equation which can be written in the form
where [math]a_1, a_0[/math], and [math]b[/math] are given functions of [math]x[/math] and where [math]a_1[/math] is not the zero function, is a first-order linear ditTerential equation. In this section we shall show how to obtain the general solution of equations of this type. Since [math]a_1[/math] is by assumption not the zero function, we can divide both sides of the above equation by [math]a_1(x)[/math]. Setting [math]\frac{a_0(x)}{a_1(x)} = P(x)[/math] and [math]\frac{b(x)}{a_1(x)} = Q(x)[/math], we therefore obtain the differential equation
which is the form we shall use in deriving the solution. We shall assume that the functions [math]P[/math] and [math]Q[/math] are continuous, thus assuring ourselves that they have antiderivatives. Let us suppose that the function [math]y = f(x)[/math] is a solution to the differential equation (1). We shall derive a formula which expresses [math]y[/math] in terms of [math]P[/math] and [math]Q[/math] and a constant [math]c[/math] of integration. Conversely, it will be a simple matter to verify that any function [math]y[/math] defined by this formula is a solution to (1). Hence the formula gives the general solution to the differential equation. The derivative of the product of [math]y[/math] and a function [math]\varphi[/math] is given by
Note that the first term on the right has [math]\frac{dy}{dx}[/math] as a factor and the second has [math]y[/math] as a factor, and that the same is true of the two terms on the left side of equation (1). This fact suggests seeking a function [math]\varphi[/math] which has the property that, if both sides of (1) are multiplied by [math]\varphi(x)[/math], then the left side of the resulting equation is the derivative of the product [math]\varphi(x)y[/math]. If both sides of (1) are multiplied by an arbitrary [math]\varphi(x)[/math], the result is
Comparison of this equation with (2) shows that its left side is equal to [math]\frac{d}{dx} (\varphi(x)y)[/math] provided [math]\varphi(x)P(x)y = \varphi'(x)y[/math], which will in turn be true provided
However, it is easy to find a function [math]\varphi[/math] which satisfies (4), since, as a differential equation with [math]\varphi[/math] the unknown function, it is separable. Solving it, we obtain
Whence
which implies
and so
Since we are only seeking a solution to (4), and not the most general form of the solution, we may assume that [math]\varphi(x)[/math] is positive and also ignore the constant of integration. We conclude that if
then the left side of eguation (3) is equal to [math]\frac{d}{dx} (\varphi(x)y)[/math]. With (5), equation (3) therefore becomes
integration yields
and so
for some real number [math]c[/math]. Replacing [math]\varphi(x)[/math] by [math]e^{\int P(x)dx}[/math], we obtain the promised formula:
Suppose next that [math]c[/math] is an arbitrary constant and that the function [math]y[/math] is dcfined by (2.1). Then
The derivative of the right side of this equation is [math]e^{\int P(x)dx}Q(x)[/math] and that of the left side is
Hence
which implies at once that [math]\frac{dy}{dx} + P(x)y = Q(x)[/math]; i.e., [math]y[/math] is a solution to (1). We conclude that formula (2.1) gives the general solution to the differential equation (1). We strongly recommend that no one memorize (2.1). The important fact to remember is that, if the first-order linear differential equation [math]\frac{dy}{dx} + P(x)y = Q(x)[/math] is multiplied through by [math]\varphi(x) = e^{\int P(x)dx}[/math], then the left side of the resulting equation is equal to the derivative of the product [math]\varphi(x)y[/math]. Consequently, the new equation can be integrated to give
which can then be solved for [math]y[/math]. This function [math]\varphi(x) = e^{\int P(x)dx}[/math], which enables us to change a seemingly nonintegrable sum into the derivative of a product by multiplication, is called an integrating factor.
Example Solve the differential equation
To put this in the form of (1), we add [math]2x^2[/math] to both sides and then divide by [math]x^2[/math]. The result is
where [math]P(x) = -\frac{3}{x}[/math] and [math]Q(x) = 4x^2 + 2[/math]. An antiderivative of [math]P(x)[/math] is given by
and it follows that the function
is an integrating factor. Equation (4) shows that if [math]\varphi(x)[/math] is an integrating factor, then so also is [math]-\varphi(x)[/math]. Hence we may drop the absolute values and write simply
Multiplying both sides of (6) by [math]x^{-3}[/math], we obtain
It is easy to see that the left side of this equation is equal to [math]\frac{d}{dx}(x^{-3}y)[/math]. Hence
and so
where [math]c[/math] is an arbitrary constant. It follows that
is the general solution.
Example Find the general solution of the differential equation
Note that this is a first-order linear differential equation with constant coefficients, but that it is not homogeneous, because the right side is not the zero function. In this example we have [math]P(x) = 3[/math] and [math]Q(x) = 2 \sin x[/math]. Hence
and an integrating factor is
lt follows that
and so
To evaluate [math]\int 2e^{3x} \sin xdx = 2\int e^{3x} \sin x dx[/math], we use integration by parts twice:
Combining these results, we get
whence
and so
Returning to (7), we have
and consequently the general solution of the differential equation is given by
where [math]c[/math] is an arbitrary constant.
Note that the above solution (8) of the differential equation of Example 2 is the sum of two terms. The second, which is [math]ce^{-3x}[/math], is thc general solution of the homogeneous differential equation [math]\frac{dy}{dx} + 3y = 0[/math]. The first term, [math]\frac{1}{5}(3 \sin x - \cos x)[/math], is one particular solution of the nonhomogeneous differential equation [math]\frac{dy}{dx} + 3y = 2 \sin x[/math]. As we shall see, this situation is typical of the solutions of linear differential equations.
General references
Doyle, Peter G. (2008). "Crowell and Slesnick's Calculus with Analytic Geometry" (PDF). Retrieved Oct 29, 2024.