7.2 Nonhomogeneous Linear Equations

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

a2(x)y+a1(x)y+a0(x)y=r(x).

The associated homogeneous equation

a2(x)y+a1(x)y+a0(x)y=07.3

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 yp(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 yp(x) be any particular solution to the nonhomogeneous linear differential equation

a2(x)y+a1(x)y+a0(x)y=r(x).

Also, let c1y1(x)+c2y2(x) denote the general solution to the complementary equation. Then, the general solution to the nonhomogeneous equation is given by

y(x)=c1y1(x)+c2y2(x)+yp(x).7.4

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

a2(x)y+a1(x)y+a0(x)y=a2(x)(c1y1+c2y2+yp)+a1(x)(c1y1+c2y2+yp)+a0(x)(c1y1+c2y2+yp)=[a2(x)(c1y1+c2y2)+a1(x)(c1y1+c2y2)+a0(x)(c1y1+c2y2)]+a2(x)yp+a1(x)yp+a0(x)yp=0+r(x)=r(x).

So y(x) is a solution.

Now, let z(x) be any solution to a2(x)y+a1(x)y+a0(x)y=r(x). Then

a2(x)(zyp)+a1(x)(zyp)+a0(x)(zyp)=(a2(x)z+a1(x)z+a0(x)z)(a2(x)yp+a1(x)yp+a0(x)yp)=r(x)r(x)=0,

so z(x)yp(x) is a solution to the complementary equation. But, c1y1(x)+c2y2(x) is the general solution to the complementary equation, so there are constants c1 and c2 such that

z(x)yp(x)=c1y1(x)+c2y2(x).

Hence, we see that z(x)=c1y1(x)+c2y2(x)+yp(x).

Verifying the General Solution

Given that yp(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 c1cosx+c2sinx. So, the general solution to the nonhomogeneous equation is

y(x)=c1cosx+c2sinx+x.

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

y(x)=c1sinx+c2cosx+1andy(x)=c1cosxc2sinx.

Then

y(x)+y(x)=c1cosxc2sinx+c1cosx+c2sinx+x=x.

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

Given that yp(x)=−2 is a particular solution to y3y4y=8, write the general solution and verify that the general solution satisfies the equation.

y(x)=c1ex+c2e4x2

Hint

Find the general solution to the complementary equation.

In the preceding section, we learned how to solve homogeneous equations with constant coefficients. Therefore, for nonhomogeneous equations of the form ay+by+cy=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.

Undetermined Coefficients

The method of undetermined coefficients involves making educated guesses about the form of the particular solution based on the form of r(x). When we take derivatives of polynomials, exponential functions, sines, and cosines, we get polynomials, exponential functions, sines, and cosines. So when r(x) has one of these forms, it is possible that the solution to the nonhomogeneous differential equation might take that same form. Let’s look at some examples to see how this works.

Undetermined Coefficients When r(x) Is a Polynomial

Find the general solution to y+4y+3y=3x.

The complementary equation is y+4y+3y=0, with general solution c1ex+c2e−3x. Since r(x)=3x, the particular solution might have the form yp(x)=Ax+B. If this is the case, then we have yp(x)=A and yp(x)=0. For yp to be a solution to the differential equation, we must find values for A and B such that

y+4y+3y=3x0+4(A)+3(Ax+B)=3x3Ax+(4A+3B)=3x.

Setting coefficients of like terms equal, we have

3A=34A+3B=0.

Then, A=1 and B=43, so yp(x)=x43 and the general solution is

y(x)=c1ex+c2e−3x+x43.

In Example 7.12, notice that even though r(x) did not include a constant term, it was necessary for us to include the constant term in our guess. If we had assumed a solution of the form yp=Ax (with no constant term), we would not have been able to find a solution. (Verify this!) If the function r(x) is a polynomial, our guess for the particular solution should be a polynomial of the same degree, and it must include all lower-order terms, regardless of whether they are present in r(x).

Undetermined Coefficients When r(x) Is an Exponential

Find the general solution to yy2y=2e3x.

The complementary equation is yy2y=0, with the general solution c1ex+c2e2x. Since r(x)=2e3x, the particular solution might have the form yp(x)=Ae3x. Then, we have yp(x)=3Ae3x and yp(x)=9Ae3x. For yp to be a solution to the differential equation, we must find a value for A such that

yy2y=2e3x9Ae3x3Ae3x2Ae3x=2e3x4Ae3x=2e3x.

So, 4A=2 and A=1/2. Then, yp(x)=(12)e3x, and the general solution is

y(x)=c1ex+c2e2x+12e3x.

Find the general solution to y4y+4y=7sintcost.

y(t)=c1e2t+c2te2t+sint+cost

Hint

Use yp(t)=Asint+Bcost as a guess for the particular solution.

In the previous checkpoint, r(x) included both sine and cosine terms. However, even if r(x) included a sine term only or a cosine term only, both terms must be present in the guess. The method of undetermined coefficients also works with products of polynomials, exponentials, sines, and cosines. Some of the key forms of r(x) and the associated guesses for yp(x) are summarized in Table 7.2.

Table 7.2 Key Forms for the Method of Undetermined Coefficients
r(x)Initial guess for yp(x)
k (a constant)A (a constant)
ax+bAx+B (Note: The guess must include both terms even if b=0.)
ax2+bx+cAx2+Bx+C (Note: The guess must include all three terms even if b or c are zero.)
Higher-order polynomialsPolynomial of the same order as r(x)
aeλxAeλx
acosβx+bsinβxAcosβx+Bsinβx (Note: The guess must include both terms even if either a=0 or b=0.)
aeαxcosβx+beαxsinβxAeαxcosβx+Beαxsinβx
(ax2+bx+c)eλx(Ax2+Bx+C)eλx
(a2x2+a1x+a0)cosβx+(b2x2+b1x+b0)sinβx(A2x2+A1x+A0)cosβx+(B2x2+B1x+B0)sinβx
(a2x2+a1x+a0)eαxcosβx+(b2x2+b1x+b0)eαxsinβx(A2x2+A1x+A0)eαxcosβx+(B2x2+B1x+B0)eαxsinβx

This figure is a table with two columns and ten rows. The first column is labeled, “r(x),” and the second column is labeled, “Initial guess for yp(x).” The first row has, “k (a constant),” in the first column and, “A (a constant),” in the second column. The second row has, “ax + b,” in the first column and, “Ax + B (Note: The guess must include both terms even if b = 0.),” in the second column. The third row has, “ax^2 + bx + c,” in the first column and, “Ax^2 + Bx + C (Note: The guess must include all three terms even if b or c are zero.),” in the second column. The fourth row has, “Higher-order polynomials,” in the first column and, “Polynomial of the same order as r(x),” in the second column. The fifth row has, “ae^λx,” in the first column and, “Ae^λx,” in the second column. The sixth row has, “a cos βx + b sin βx,” in the first column and, “A cos βx + B sin βx (Note: The guess must include both terms even if either a = 0 or b = 0.),” in the second column. The seventh row has, “ae^αx cos βx + be^αx sin βx,” in the first column and, “Ae^αx cos βx + Be^αx sin βx,” in the second column. The eighth row has, “(ax^2 + bx + c)e^λx,” in the first column and, “(Ax^2 + Bx + C)e^λx,” in the second column. The ninth row has, “ (a2x^2 + a1x + a0)cos βx + (b2x^2 + b1x + b0)sin βx,” in the first column and, “(A2x^2 + A1x + A0)cos βx + (B2x^2 + B1x + B0)sin βx,” in the second column. The tenth row has, “ (a2x^2 + a1x + a0)e^αx cos βx + (b2x^2 + b1x + b0)e^αx sin βx,” in the first column and, “(A2x^2 + A1x + A0)e^αx cos βx + (B2x^2 + B1x + B0)e^αx sin βx,” in the second column.

Keep in mind that there is a key pitfall to this method. Consider the differential equation y+5y+6y=3e−2x. Based on the form of r(x), we guess a particular solution of the form yp(x)=Ae−2x. But when we substitute this expression into the differential equation to find a value for A, we run into a problem. We have

yp(x)=−2Ae−2x

and

yp=4Ae−2x,

so we want

y+5y+6y=3e−2x4Ae−2x+5(−2Ae−2x)+6Ae−2x=3e−2x4Ae−2x10Ae−2x+6Ae−2x=3e−2x0=3e−2x,

which is not possible.

Looking closely, we see that, in this case, the general solution to the complementary equation is c1e−2x+c2e−3x. The exponential function in r(x) is actually a solution to the complementary equation, so, as we just saw, all the terms on the left side of the equation cancel out. We can still use the method of undetermined coefficients in this case, but we have to alter our guess by multiplying it byx. Using the new guess, yp(x)=Axe−2x, we have

yp(x)=A(e−2x2xe−2x)

and

yp(x)=−4Ae−2x+4Axe−2x.

Substitution gives

y+5y+6y=3e−2x(−4Ae−2x+4Axe−2x)+5(Ae−2x2Axe−2x)+6Axe−2x=3e−2x−4Ae−2x+4Axe−2x+5Ae−2x10Axe−2x+6Axe−2x=3e−2xAe−2x=3e−2x.

So, A=3 and yp(x)=3xe−2x. This gives us the following general solution

y(x)=c1e−2x+c2e−3x+3xe−2x.

Note that if xe−2x were also a solution to the complementary equation, we would have to multiply by x again, and we would try yp(x)=Ax2e−2x.

Method of Undetermined Coefficients
  1. Solve the complementary equation and write down the general solution.
  2. Based on the form of r(x), make an initial guess for yp(x).
  3. Check whether any term in the guess for yp(x) is a solution to the complementary equation. If so, multiply the guess byx. Repeat this step until there are no terms in yp(x) that solve the complementary equation.
  4. Substitute yp(x) into the differential equation and equate like terms to find values for the unknown coefficients in yp(x).
  5. Add the general solution to the complementary equation and the particular solution you just found to obtain the general solution to the nonhomogeneous equation.
Solving Nonhomogeneous Equations

Find the general solutions to the following differential equations.

  1. y9y=−6cos3x
  2. x+2x+x=4et
  3. y2y+5y=10x23x3
  4. y3y=−12t
  1. The complementary equation is y9y=0, which has the general solution c1e3x+c2e−3x (step 1). Based on the form of r(x)=−6cos3x, our initial guess for the particular solution is yp(x)=Acos3x+Bsin3x (step 2). None of the terms in yp(x) solve the complementary equation, so this is a valid guess (step 3).
    Now we want to find values for A and B, so substitute yp into the differential equation. We have
    yp(x)=−3Asin3x+3Bcos3xandyp(x)=−9Acos3x9Bsin3x,

    so we want to find values of A and B such that
    y9y=−6cos3x−9Acos3x9Bsin3x9(Acos3x+Bsin3x)=−6cos3x−18Acos3x18Bsin3x=−6cos3x.

    Therefore,
    −18A=−6−18B=0.

    This gives A=13 and B=0, so yp(x)=(13)cos3x (step 4).
    Putting everything together, we have the general solution
    y(x)=c1e3x+c2e−3x+13cos3x.
  2. The complementary equation is x+2x+x=0, which has the general solution c1et+c2tet (step 1). Based on the form r(t)=4et, our initial guess for the particular solution is xp(t)=Aet (step 2). However, we see that this guess solves the complementary equation, so we must multiply byt, which gives a new guess: xp(t)=Atet (step 3). Checking this new guess, we see that it, too, solves the complementary equation, so we must multiply by t again, which gives xp(t)=At2et (step 3 again). Now, checking this guess, we see that xp(t) does not solve the complementary equation, so this is a valid guess (step 3 yet again).
    We now want to find a value for A, so we substitute xp into the differential equation. We have
    xp(t)=At2et,soxp(t)=2AtetAt2et

    and xp(t)=2Aet2Atet(2AtetAt2et)=2Aet4Atet+At2et.
    Substituting into the differential equation, we want to find a value of A so that
    x+2x+x=4et2Aet4Atet+At2et+2(2AtetAt2et)+At2et=4et2Aet=4et.

    This gives A=2, so xp(t)=2t2et (step 4). Putting everything together, we have the general solution
    x(t)=c1et+c2tet+2t2et.
  3. The complementary equation is y2y+5y=0, which has the general solution c1excos2x+c2exsin2x (step 1). Based on the form r(x)=10x23x3, our initial guess for the particular solution is yp(x)=Ax2+Bx+C (step 2). None of the terms in yp(x) solve the complementary equation, so this is a valid guess (step 3). We now want to find values for A, B, and C, so we substitute yp into the differential equation. We have yp(x)=2Ax+B and yp(x)=2A, so we want to find values of A, B, and C such that
    y2y+5y=10x23x32A2(2Ax+B)+5(Ax2+Bx+C)=10x23x35Ax2+(5B4A)x+(5C2B+2A)=10x23x3.

    Therefore,
    5A=105B4A=−35C2B+2A=−3.

    This gives A=2, B=1, and C=−1, so yp(x)=2x2+x1 (step 4). Putting everything together, we have the general solution
    y(x)=c1excos2x+c2exsin2x+2x2+x1.
  4. The complementary equation is y3y=0, which has the general solution c1e3t+c2 (step 1). Based on the form r(t)=−12t, our initial guess for the particular solution is yp(t)=At+B (step 2). However, we see that the constant term in this guess solves the complementary equation, so we must multiply by t, which gives a new guess: yp(t)=At2+Bt (step 3). Checking this new guess, we see that none of the terms in yp(t) solve the complementary equation, so this is a valid guess (step 3 again). We now want to find values for A and B, so we substitute yp into the differential equation. We have yp(t)=2At+B and yp(t)=2A, so we want to find values of A and B such that
    y3y=−12t2A3(2At+B)=−12t6At+(2A3B)=−12t.

    Therefore,
    −6A=−122A3B=0.

    This gives A=2 and B=4/3, so yp(t)=2t2+(4/3)t (step 4). Putting everything together, we have the general solution
    y(t)=c1e3t+c2+2t2+43t.

Find the general solution to the following differential equations.

  1. y5y+4y=3ex
  2. y+y6y=52cos2t
  1. y(x)=c1e4x+c2exxex
  2. y(t)=c1e−3t+c2e2t5cos2t+sin2t
Hint

Use the problem-solving strategy.

Variation of Parameters

Sometimes, r(x) is not a combination of polynomials, exponentials, or sines and cosines. When this is the case, the method of undetermined coefficients does not work, and we have to use another approach to find a particular solution to the differential equation. We use an approach called the method of variation of parameters.

To simplify our calculations a little, we are going to divide the differential equation through by a, so we have a leading coefficient of 1. Then the differential equation has the form

y+py+qy=r(x),

where p and q are constants.

If the general solution to the complementary equation is given by c1y1(x)+c2y2(x), we are going to look for a particular solution of the form yp(x)=u(x)y1(x)+v(x)y2(x). In this case, we use the two linearly independent solutions to the complementary equation to form our particular solution. However, we are assuming the coefficients are functions of x, rather than constants. We want to find functions u(x) and v(x) such that yp(x) satisfies the differential equation. We have

yp=uy1+vy2yp=uy1+uy1+vy2+vy2yp=(uy1+vy2)+uy1+uy1+vy2+vy2.

Substituting into the differential equation, we obtain

yp+pyp+qyp=[(uy1+vy2)+uy1+uy1+vy2+vy2]+p[uy1+uy1+vy2+vy2]+q[uy1+vy2]=u[y1+py1+qy1]+v[y2+py2+qy2]+(uy1+vy2)+p(uy1+vy2)+(uy1+vy2).

Note that y1 and y2 are solutions to the complementary equation, so the first two terms are zero. Thus, we have

(uy1+vy2)+p(uy1+vy2)+(uy1+vy2)=r(x).

If we simplify this equation by imposing the additional condition uy1+vy2=0, the first two terms are zero, and this reduces to uy1+vy2=r(x). So, with this additional condition, we have a system of two equations in two unknowns:

uy1+vy2=0uy1+vy2=r(x).

Solving this system gives us u and v, which we can integrate to find u and v.

Then, yp(x)=u(x)y1(x)+v(x)y2(x) is a particular solution to the differential equation. Solving this system of equations is sometimes challenging, so let’s take this opportunity to review Cramer’s rule, which allows us to solve the system of equations using determinants.

Rule: Cramer’s Rule

The system of equations

a1z1+b1z2=r1a2z1+b2z2=r2

has a unique solution if and only if the determinant of the coefficients is not zero. In this case, the solution is given by

z1=|r1b1r2b2||a1b1a2b2|andz2=|a1r1a2r2||a1b1a2b2|.
Using Cramer’s Rule

Use Cramer’s rule to solve the following system of equations.

x2z1+2xz2=0z13x2z2=2x

We have

a1(x)=x2a2(x)=1b1(x)=2xb2(x)=−3x2r1(x)=0r2(x)=2x.

Then,

|a1b1a2b2|=|x22x1−3x2|=−3x42x

and

|r1b1r2b2|=|02x2x−3x2|=04x2=−4x2.

Thus,

z1=|r1b1r2b2||a1b1a2b2|=−4x2−3x42x=4x3x3+2.

In addition,

|a1r1a2r2|=|x2012x|=2x30=2x3.

Thus,

z2=|a1r1a2r2||a1b1a2b2|=2x3−3x42x=−2x23x3+2.

Use Cramer’s rule to solve the following system of equations.

2xz13z2=0x2z1+4xz2=x+1

z1=3x+311x2, z2=2x+211x

Hint

Use the process from the previous example.

Method of Variation of Parameters
  1. Solve the complementary equation and write down the general solution
    c1y1(x)+c2y2(x).
  2. Use Cramer’s rule or another suitable technique to find functions u(x) and v(x) satisfying
    uy1+vy2=0uy1+vy2=r(x).
  3. Integrate u and v to find u(x) and v(x). Then, yp(x)=u(x)y1(x)+v(x)y2(x) is a particular solution to the equation.
  4. Add the general solution to the complementary equation and the particular solution found in step 3 to obtain the general solution to the nonhomogeneous equation.
Using the Method of Variation of Parameters

Find the general solution to the following differential equations.

  1. y2y+y=ett2
  2. y+y=3sin2x
  1. The complementary equation is y2y+y=0 with associated general solution c1et+c2tet. Therefore, y1(t)=et and y2(t)=tet. Calculating the derivatives, we get y1(t)=et and y2(t)=et+tet (step 1). Then, we want to find functions u(t) and v(t) so that
    uet+vtet=0uet+v(et+tet)=ett2.

    Applying Cramer’s rule, we have
    u=|0tetett2et+tet||ettetetet+tet|=0tet(ett2)et(et+tet)ettet=e2tte2t=1t

    and
    v=|et0etett2||ettetetet+tet|=et(ett2)e2t=1t2(step 2).

    Integrating, we get
    u=1tdt=ln|t|v=1t2dt=1t(step 3).

    Then we have
    yp=etln|t|1ttet=etln|t|et(step 4).

    The et term is a solution to the complementary equation, so we don’t need to carry that term into our general solution explicitly. The general solution is
    y(t)=c1et+c2tetetln|t|(step 5).
  2. The complementary equation is y+y=0 with associated general solution c1cosx+c2sinx. So, y1(x)=cosx and y2(x)=sinx (step 1). Then, we want to find functions u(x) and v(x) such that
    ucosx+vsinx=0usinx+vcosx=3sin2x.

    Applying Cramer’s rule, we have
    u=|0sinx3sin2xcosx||cosxsinxsinxcosx|=03sin3xcos2x+sin2x=−3sin3x

    and
    v=|cosx0sinx3sin2x||cosxsinxsinxcosx|=3sin2xcosx1=3sin2xcosx(step 2).

    Integrating first to find u, we get
    u=−3sin3xdx=−3[13sin2xcosx+23sinxdx]=sin2xcosx+2cosx.

    Now, we integrate to find v. Using substitution (with w=sinx), we get
    v=3sin2xcosxdx=3w2dw=w3=sin3x.

    Then,
    yp =(sin2xcosx+2cosx)cosx+(sin3x)sinx=sin2xcos2x+2cos2x+sin4x =2cos2x+sin2x(cos2x+sin2x)(step 3).=2cos2x+sin2x=cos2x+1

    The general solution is
    y(x)=c1cosx+c2sinx+1+cos2x(step 4).

Find the general solution to the following differential equations.

  1. y+y=secx
  2. x2x+x=ett
  1. y(x)=c1cosx+c2sinx+cosxln|cosx|+xsinx
  2. x(t)=c1et+c2tet+tetln|t|
Hint

Follow the problem-solving strategy.

Key Concepts

Key Equations

Complementary equationa2(x)y+a1(x)y+a0(x)y=0
General solution to a nonhomogeneous linear differential equationy(x)=c1y1(x)+c2y2(x)+yp(x)

.

Solve the following equations using the method of undetermined coefficients.

2y5y12y=6

3y+y4y=8

y=c1e−4x/3+c2ex2

y6y+5y=ex

y+16y=e−2x

y=c1cos4x+c2sin4x+120e−2x

y4y=x2+1

y4y+4y=8x2+4x

y=c1e2x+c2xe2x+2x2+5x+4

y2y3y=sin2x

y+2y+y=sinx+cosx

y=c1ex+c2xex+12sinx12cosx

y+9y=excosx

y+y=3sin2x+xcos2x

y=c1cosx+c2sinx13xcos2x59sin2x

y+3y28y=10e4x

y+10y+25y=xe−5x+4

y=c1e−5x+c2xe−5x+16x3e−5x+425

In each of the following problems,

  1. Write the form for the particular solution yp(x) for the method of undetermined coefficients.
  2. [T] Use a computer algebra system to find a particular solution to the given equation.

yyy=x+ex

y3y=x24x+11

a. yp(x)=Ax2+Bx+C
b. yp(x)=13x2+43x359

yy4y=excos3x

2yy+y=(x25x)ex

a. yp(x)=(Ax2+Bx+C)ex
b. yp(x)=(14x258x3332)ex

4y+5y2y=e2x+xsinx

yy2y=x2exsinx

a. yp(x)=(Ax2+Bx+C)excosx +(Dx2+Ex+F)exsinx
b. yp(x)=(110x21125x27250)excosx +(310x2+225x+39250)exsinx

Solve the differential equation using either the method of undetermined coefficients or the variation of parameters.

y+3y4y=2ex

y+2y=e3x

y=c1+c2e−2x+115e3x

y+6y+9y=ex

y+2y8y=6e2x

y=c1e2x+c2e−4x+xe2x

Solve the differential equation using the method of variation of parameters.

4y+y=2sinx

y9y=8x

y=c1e3x+c2e−3x8x9

y+y=secx,0<x<π/2

y+4y=3csc2x,0<x<π/2

y=c1cos2x+c2sin2x32xcos2x+34sin2xln(sin2x)

Find the unique solution satisfying the differential equation and the initial conditions given, where yp(x) is the particular solution.

y2y+y=12ex, yp(x)=6x2ex, y(0)=6,y(0)=0

y7y=4xe7x, yp(x)=27x2e7x449xe7x, y(0)=−1,y(0)=0

y=347343+4343e7x+27x2e7x449xe7x

y+y=cosx4sinx, yp(x)=2xcosx+12xsinx, y(0)=8,y(0)=−4

y5y=e5x+8e−5x, yp(x)=15xe5x+425e−5x, y(0)=−2,y(0)=0

y=5725+325e5x+15xe5x+425e−5x

In each of the following problems, two linearly independent solutions—y1 and y2—are given that satisfy the corresponding homogeneous equation. Use the method of variation of parameters to find a particular solution to the given nonhomogeneous equation. Assume x > 0 in each exercise.

x2y+2xy2y=3x, y1(x)=x,y2(x)=x−2

x2y2y=10x21, y1(x)=x2,y2(x)=x−1

yp=12+103x2lnx

Glossary

complementary equation
for the nonhomogeneous linear differential equation
a2(x)y+a1(x)y+a0(x)y=r(x),

the associated homogeneous equation, called the complementary equation, is
a2(x)y+a1(x)y+a0(x)y=0
method of undetermined coefficients
a method that involves making a guess about the form of the particular solution, then solving for the coefficients in the guess
method of variation of parameters
a method that involves looking for particular solutions in the form yp(x)=u(x)y1(x)+v(x)y2(x), where y1 and y2 are linearly independent solutions to the complementary equations, and then solving a system of equations to find u(x) and v(x)
particular solution
a solution yp(x) of a differential equation that contains no arbitrary constants