Second-order linear ordinary differential equation
Second-order linear ordinary differential equation of the form a(x)y′′+b(x)y′+c(x)=g(x) is homogeneous if g(x)=0. We will focus on the homogeneous 2nd-order ODE where a,b,c are constants.
Problem 1 Find the general solution of y′′+2y′−3y=0.
Solution Let’s guess the solution is y=erx for some constant r. Then (r2+2r−3)erx=0 and so r2+2r−3=0 (the characteristic equation) gives r1=1,r2=−3. These two roots correspond to the solutions y1=ex,y2=e−3x. The general solution is thus y=c1ex+c2y−3x.
Problem 2 Find the homogeneous 2nd-order ODE whose general solution is y=c1e2x+c2e−3x.
Solution Since The roots of the characteristic equation are 2 and -3, the characteristic equation is (r−2)(r+3)=r2+r−6, and so the ODE is y′′+y′−6y=0.
Problem 3 Solve the IVP y′′+8y′−9y=0,y(1)=1,y′(1)=0.
Solution The roots of the characteristic equation is r2+8r−9 are r=1,−9. The general solution is y=c1ex+c2e−9x. We also get y′=c1ex−9c2e−9x. Using the initial conditions, we obtain c1e+c2e−9=1,c1e−9c2e−9=0. Solve the system of linear equations c1=10e9,c2=10e9. The solution of the IVP is y=10e9ex+10e9e−9x.
Problem 4 Solve the IVP y′′−y′−2y=0,y(0)=a,y′(0)=2 and find a so that the solution approaches 0 as x tends to infinity.
Solution The roots of the characteristic equation is r2−r−2 are r=−1,2. The general solution is y=c1e−x+c2e2x. We also get y′=−c1e−x+2c2e2x. Using the initial conditions, we obtain c1+c2=a,−c1+2c2=2. Solve the system of linear equations c1=32a−2,c2=3a+2. The solution approaches 0 as x tends to infinity only if c2=0. Therefore a=−2.
Problem 5 Solve the IVP y′′+5y′+6y=0,y(0)=2,y′(0)=b, where b>0 and determine the maximum point xm of the solution.
Solution The roots of the characteristic equation is r2+5r+6 are r=−2,−3. The general solution is y=c1e−2x+c2e−3x. We also get y′=−2c1e−2x−3c2e−3x. Using the initial conditions, we obtain c1+c2=2,−2c1−3c2=b. Solve the system of linear equations c1=b+6,c2=−b−4. The maximum point xm is given by y′(x)=0, that is −2c1e−2x−3c2e−3x=0. Solve the last equation and get xm=ln2c1−3c2=ln2(b+6)3(b+4). We need to check, via the second derivative test, that y′′(xm)<0. Notice that y′′(xm)+5y′(xm)+6y(xm)=0 and y′(xm)=0. We have y′′(xm)=−6y(xm). It suffices to show that y(xm)>0. Compute y(xm)=c1e−2xm+c2e−3xm=e−3xm(c1exm+c2)=e−3xm(c12c1−3c2+c2)=e−3xm2−c2. As c2=−b−4<0, y(xm)>0.
Problem 6 Find the general solution of y′′′−6y′′+11y′−6y=0.
Solution Let’s guess the solution y=erx for some constant r. Then (r3−6r2+11r−6)erx=0 and so r3−6r2+11r−6=0 gives r=1,2,3. These 3 roots correspond to the solutions y=ex,e2x,e3x. The general solution is thus y=c1ex+c2e2x+c3e3x.