<< Chapter < Page Chapter >> Page >
  • Write the general solution to a nonhomogeneous differential equation.
  • Solve a nonhomogeneous differential equation by the method of undetermined coefficients.
  • Solve a nonhomogeneous differential equation by the method of variation of parameters.

In this section, we examine how to solve nonhomogeneous differential equations. The terminology and methods are different from those we used for homogeneous equations, so let’s start by defining some new terms.

General solution to a nonhomogeneous linear equation

Consider the nonhomogeneous linear differential equation

a 2 ( x ) y + a 1 ( x ) y + a 0 ( x ) y = r ( x ) .

The associated homogeneous equation

a 2 ( x ) y + a 1 ( x ) y + a 0 ( x ) y = 0

is called the complementary equation    . We will see that solving the complementary equation is an important step in solving a nonhomogeneous differential equation.

Definition

A solution y p ( x ) of a differential equation that contains no arbitrary constants is called a particular solution    to the equation.

General solution to a nonhomogeneous equation

Let y p ( x ) be any particular solution to the nonhomogeneous linear differential equation

a 2 ( x ) y + a 1 ( x ) y + a 0 ( x ) y = r ( x ) .

Also, let c 1 y 1 ( x ) + c 2 y 2 ( x ) denote the general solution to the complementary equation. Then, the general solution to the nonhomogeneous equation is given by

y ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ) + y p ( x ).

Proof

To prove y ( x ) is the general solution, we must first show that it solves the differential equation and, second, that any solution to the differential equation can be written in that form. Substituting y ( x ) into the differential equation, we have

a 2 ( x ) y + a 1 ( x ) y + a 0 ( x ) y = a 2 ( x ) ( c 1 y 1 + c 2 y 2 + y p ) + a 1 ( x ) ( c 1 y 1 + c 2 y 2 + y p ) + a 0 ( x ) ( c 1 y 1 + c 2 y 2 + y p ) = [ a 2 ( x ) ( c 1 y 1 + c 2 y 2 ) + a 1 ( x ) ( c 1 y 1 + c 2 y 2 ) + a 0 ( x ) ( c 1 y 1 + c 2 y 2 ) ] + a 2 ( x ) y p + a 1 ( x ) y p + a 0 ( x ) y p = 0 + r ( x ) = r ( x ).

So y ( x ) is a solution.

Now, let z ( x ) be any solution to a 2 ( x ) y + a 1 ( x ) y + a 0 ( x ) y = r ( x ) . Then

a 2 ( x ) ( z y p ) + a 1 ( x ) ( z y p ) + a 0 ( x ) ( z y p ) = ( a 2 ( x ) z + a 1 ( x ) z + a 0 ( x ) z ) ( a 2 ( x ) y p + a 1 ( x ) y p + a 0 ( x ) y p ) = r ( x ) r ( x ) = 0 ,

so z ( x ) y p ( x ) is a solution to the complementary equation. But, c 1 y 1 ( x ) + c 2 y 2 ( x ) is the general solution to the complementary equation, so there are constants c 1 and c 2 such that

z ( x ) y p ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ).

Hence, we see that z ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ) + y p ( x ).

Verifying the general solution

Given that y p ( x ) = x is a particular solution to the differential equation y + y = x , write the general solution and check by verifying that the solution satisfies the equation.

The complementary equation is y + y = 0 , which has the general solution c 1 cos x + c 2 sin x . So, the general solution to the nonhomogeneous equation is

y ( x ) = c 1 cos x + c 2 sin x + x .

To verify that this is a solution, substitute it into the differential equation. We have

y ( x ) = c 1 sin x + c 2 cos x + 1 and y ( x ) = c 1 cos x c 2 sin x .

Then

y ( x ) + y ( x ) = c 1 cos x c 2 sin x + c 1 cos x + c 2 sin x + x = x .

So, y ( x ) is a solution to y + y = x .

Got questions? Get instant answers now!
Got questions? Get instant answers now!

Given that y p ( x ) = −2 is a particular solution to y 3 y 4 y = 8 , write the general solution and verify that the general solution satisfies the equation.

y ( x ) = c 1 e x + c 2 e 4 x 2

Got questions? Get instant answers now!

In the preceding section, we learned how to solve homogeneous equations with constant coefficients. Therefore, for nonhomogeneous equations of the form a y + b y + c y = r ( x ) , we already know how to solve the complementary equation, and the problem boils down to finding a particular solution for the nonhomogeneous equation. We now examine two techniques for this: the method of undetermined coefficients and the method of variation of parameters.

Questions & Answers

how did the oxygen help a human being
Achol Reply
how did the nutrition help the plants
Achol Reply
Biology is a branch of Natural science which deals/About living Organism.
Ahmedin Reply
what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
cell is the smallest unit of the humanity biologically
Abraham
what is biology
Victoria Reply
what is biology
Abraham
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply
Practice Key Terms 4

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Calculus volume 3. OpenStax CNX. Feb 05, 2016 Download for free at http://legacy.cnx.org/content/col11966/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Calculus volume 3' conversation and receive update notifications?

Ask