ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL
Lesson 4 -- First-Order Linear Equations
Prof. Douglas B. Meade
Industrial Mathematics Institute
Department of Mathematics
University of South Carolina
Columbia, SC 29208
URL: http://www.math.sc.edu/~meade/
E-mail: meade@math.sc.edu
Copyright 2001 by Douglas B. Meade
All rights reserved
-------------------------------------------------------------------
Outline of Lesson 4
4.A Structure of Solutiosn to Linear ODEs
4.B Integrating Factor for a First-Order Linear ODE
Initialization
Warning, the name changecoords has been redefined
4.A Structure of Solutions to Linear ODEs
The general first-order linear ODE is
The dependent function and its first derivative, , appear linearly, that is, appear as a linear combination with variable coefficients. Note that, in general, this is not a separable ODE, as Maple shows via
If and are both constants, then the ODE is separable, in which case the solution can be found as in Lesson 3.
The constant-coefficient linear equation
is verified separable by Maple via
Maple's solution process can be seen with
`Methods for first order ODEs:` `--- Trying classification methods ---` `trying a quadrature` `trying 1st order linear` `<- 1st order linear successful`
The structure of this solution is important. The term involving the constant of integration, that is, the term
is a solution of the homogenous ODE (i.e., ). This is verified via
The constant term, namely,
is a solution to the non-homogeneous ODE, as is seen via
Any solution that satisfies the full ODE is called a particular solution. It is a general property of linear equations that the general solution can be written as the sum of the general solution to the homogeneous equation and any (particular) solution to the non-homogeneous equation. This structure will appear again when linear equations of higher-order, and linear systems of first-order ODEs are studied.
Knowledge of the structure of solutions to linear ODEs is important, but does not provide too much information about finding solutions to the general first-order linear ODE
A procedure for solving the first-order linear ODE consists of finding an integrating factor, , for the ODE. An integrating factor is a function that, upon multiplication against the left-hand side of the equation, renders the product an exact derivative. Thus, the integrating factor is characterized by the property that
In other words, is a factor that allows the left-hand side of the ODE to be written as the derivative of the product .
The general formula for the integrating factor for the first-order linear ODE is
.
Multiplication of the ODE by this factor leads to an equation of the form
where and . The explicit general solution of this equation can be found by direct integration to be
= = .
Thus,
and the solution to the original ODE is found using
= =
Instead of focusing on the general formula, implement the solution process for each specific problem.
For example, consider the specific first-order linear ODE
In this problem, and . Thus, the integrating factor is
which evaluates to
The DEtools package contains intfactor , a procedure that will find an integrating factor for problems of this type. It gives
which is exactly what was obtained above.
Multiplication of the ODE by this integrating factor yields
While this equation is rather complicated, the definition of the integrating factor allows us to replace the left-hand side with the single derivative
Maple cannot make this transformation in the "forward" direction, but can verify it "in reverse." Simply evaluate the derivative on the left to obtain
which compares favorably with
The equation
can be solved by direct integration, that is, by antidifferentiation of both sides. The result is
The left-hand side is trivial to evaluate, and Maple does a fine job with the right-hand side. After evaluating these indefinite integrals and adding the constant of integration, the result is
The explicit general solution to the given first-order linear ODE is therefore
That this solution satisfies the original differential equation is confirmed with
To emphasize the structure of this solution, the homogeneous and particular solutions are respectively
as confirmed by
[Back to ODE Powertool Table of Contents]