Differential equations/Linear inhomogeneous differential equations: Difference between revisions

From testwiki
Jump to navigation Jump to search
Variation of Parameters: Again, as with the previous section, changed "dependent variable" to "independent variable" in the first line (definition of a non-homogeneous equation.
 
(No difference)

Latest revision as of 17:31, 29 April 2021

Template:RightTOC Template:Tertiary education Template:Lesson Template:Mathematics Template:25%done

Method of Undetermined Coefficients

Definition

A non-homogeneous second order equation is an equation where the right hand side is equal to some constant or function of the independent variable. This technique is best when the right hand side of the equation has a fairly simple derivative.

Solution

The solution is divided into two parts and then added together by superposition. The first part is obtained by solving the complimentary (homogeneous) equation. The second part is obtained from a set of equations. To illustrate the solution, we will take the equation y+2y+y=x2 as an example.

  1. Solve the homogeneous equation (y+2y+y=0) and get the roots of the characteristic equation ((m+1)2=0,m=1) .
  2. Plug the roots into the general solution (yc=c1sin(x)+c2cos(x)) to obtain the complementary (homogeneous) solution.
  3. To get the typical (specific) solution to the differential equation, we need to choose a "solution" from a table.
    1. 1 (any constant): A
    2. 5x+7 : Ax+B
    3. 3x22 : Ax2+Bx+C
    4. x3x+1 : Ax3+Bx2+Cx+D
    5. sin(4x) : Acos(4x)+Bsin(4x)
    6. cos(4x) : Acos(4x)+Bsin(4x)
    7. e5x : Ae5x
    8. (9x2)e5x : (Ax+B)e5x
    9. x2e5x : (Ax2+Bx+C)e5x
    10. e3xsin(4x) : Ae3xcos(4x)+Be3xsin(4x)
    11. 5x2sin(4x) : (Ax2+Bx+C)cos(4x)+(Ex2+Fx+G)sin(4x)
    12. xe3xcos(4x) : (Ax+B)e3xcos(4x)+(Cx+E)e3xsin(4x)
  4. Choose the "solution" that best fits the right hand side of the equation. (the solution of x2 must take the form yp=Ax2+Bx+C ).
  5. Differentiate the "solution" to get the derivatives of the solution (yp'=2Ax+B,yp'=2A ).
  6. Substitute those solutions into the left hand side of the original differential equation ((2A)+2(2Ax+B)+(Ax2+Bx+C)=x2 ).
  7. Collect and compare like terms to solve for the coefficients (A=1,B=4,C=6 ).
  8. Substitute the coefficients back into typical "solution" (yp=x24x+6 ).
  9. Add the typical and the complementary solutions to get the complete solution
y=yc+yp=c1cos(x)+c2sin(x)+x24x+6

Variation of Parameters

Definition

A non-homogeneous second order equation is an equation where the right hand side is equal to some constant or function of the independent variable. This technique is best when the right hand side of the equation has a fairly complicated derivative.

Solution

This technique involves solving the complementary equation and using both solutions (y1 and y2 ) as a basis to solve for two more particular solutions that combine to form the typical solution yp=u1(x)+u2(x) . To illustrate, let's solve the differential equation y2y1=2xe3x .

  1. Solve for the complementary solution ((m1)2=0,m=±1,yc=ex+xex ).
  2. Take each term in the complementary solution and make them separate functions (y1=ex,y2=xex ).
  3. Set up the following three Wronksian matrices and take the determinants of them:
    1. W=|y1(x)y2(x)y1'(x)y2'(x)|=|exxexexex(1+x)|=e2x

    2. W1=|0y2(x)f(x)y2'(x)|=|0xex2xe3xex(1+x)|=2x2e4x

    3. W2=|y1(x)0y1'(x)f(x)|=|ex0ex2xe3x|=2xe4x

  4. Solve for the terms u1'=W1W=2x2e4xe2x=2x2e2x and u2'=W2W=2xe4xe2x=2xe2x .
  5. Integrate them to get the terms u1=(2x22x+1)e2x2 and u2=(2x1)e2x2 .
  6. Combine them with the complementary solution to get the complete solution (y=yc+yp=c1ex+c2xex(2x22x+1)e2x2+(2x1)e2x2) .