Skip to main content

Recitation 5

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)a(x)y'' + b(x)y' + c(x) = g(x) is homogeneous if g(x)=0g(x) = 0. We will focus on the homogeneous 2nd-order ODE where a,b,ca,b,c are constants.

Problem 1 Find the general solution of y+2y3y=0y''+2y'-3y=0.

Solution Let’s guess the solution is y=erxy=e^{rx} for some constant rr. Then (r2+2r3)erx=0(r^2+2r-3)e^{rx} = 0 and so r2+2r3=0r^2+2r-3=0 (the characteristic equation) gives r1=1,r2=3r_1 = 1, r_2 = -3. These two roots correspond to the solutions y1=ex,y2=e3xy_1 = e^x, y_2 = e^{-3x}. The general solution is thus y=c1ex+c2y3xy = c_1e^x + c_2y^{-3x}.

Problem 2 Find the homogeneous 2nd-order ODE whose general solution is y=c1e2x+c2e3xy=c_1e^{2x} + c_2e^{-3x}.

Solution Since The roots of the characteristic equation are 2 and -3, the characteristic equation is (r2)(r+3)=r2+r6(r-2)(r+3) = r^2+r-6, and so the ODE is y+y6y=0y''+y'-6y=0.

Problem 3 Solve the IVP y+8y9y=0,y(1)=1,y(1)=0y''+8y'-9y=0, y(1) = 1, y'(1) = 0.

Solution The roots of the characteristic equation is r2+8r9r^2+8r-9 are r=1,9r = 1, -9. The general solution is y=c1ex+c2e9xy=c_1e^x+c_2e^{-9x}. We also get y=c1ex9c2e9xy'=c_1e^x - 9c_2e^{-9x}. Using the initial conditions, we obtain c1e+c2e9=1,c1e9c2e9=0c_1e + c_2e^{-9} = 1, c_1e-9c_2e^{-9} = 0. Solve the system of linear equations c1=910e,c2=e910c_1 = \frac{9}{10e}, c_2 = \frac{e^9}{10}. The solution of the IVP is y=910eex+e910e9xy = \frac{9}{10e} e^x + \frac{e^9}{10} e^{-9x}.

Problem 4 Solve the IVP yy2y=0,y(0)=a,y(0)=2y''-y'-2y=0, y(0) = a, y'(0) = 2 and find aa so that the solution approaches 0 as xx tends to infinity.

Solution The roots of the characteristic equation is r2r2r^2-r-2 are r=1,2r = -1, 2. The general solution is y=c1ex+c2e2xy=c_1e^{-x} + c_2e^{2x}. We also get y=c1ex+2c2e2xy' = -c_1e^{-x} + 2c_2e^{2x}. Using the initial conditions, we obtain c1+c2=a,c1+2c2=2c_1 + c_2 = a, -c_1 + 2c_2 = 2. Solve the system of linear equations c1=2a23,c2=a+23c_1 = \frac{2a-2}{3}, c_2 = \frac{a+2}{3}. The solution approaches 0 as xx tends to infinity only if c2=0c_2 = 0. Therefore a=2a=-2.

Problem 5 Solve the IVP y+5y+6y=0,y(0)=2,y(0)=by'' + 5y' + 6y = 0, y(0) = 2, y'(0) = b, where b>0b > 0 and determine the maximum point xmx_m of the solution.

Solution The roots of the characteristic equation is r2+5r+6r^2 + 5r + 6 are r=2,3r = -2, -3. The general solution is y=c1e2x+c2e3xy = c_1e^{-2x} + c_2e^{-3x}. We also get y=2c1e2x3c2e3xy' = -2c_1e^{-2x} -3c_2e^{-3x}. Using the initial conditions, we obtain c1+c2=2,2c13c2=bc_1 + c_2 = 2, -2c_1 - 3c_2 = b. Solve the system of linear equations c1=b+6,c2=b4c_1 = b+6, c_2 = -b-4. The maximum point xmx_m is given by y(x)=0y'(x)=0, that is 2c1e2x3c2e3x=0-2c_1e^{-2x} -3c_2e^{-3x} = 0. Solve the last equation and get xm=ln3c22c1=ln3(b+4)2(b+6)x_m = \ln \frac{-3c_2}{2c_1} = \ln\frac{3(b+4)}{2(b+6)}. We need to check, via the second derivative test, that y(xm)<0y''(x_m) < 0. Notice that y(xm)+5y(xm)+6y(xm)=0y''(x_m) + 5y'(x_m) + 6y(x_m) = 0 and y(xm)=0y'(x_m) = 0. We have y(xm)=6y(xm)y''(x_m) = -6y(x_m). It suffices to show that y(xm)>0y(x_m) > 0. Compute y(xm)=c1e2xm+c2e3xm=e3xm(c1exm+c2)=e3xm(c13c22c1+c2)=e3xmc22y(x_m) = c_1e^{-2x_m} + c_2e^{-3x_m} = e^{-3x_m}(c_1e^{x_m} + c_2) = e^{-3x_m}(c_1\frac{-3c_2}{2c_1}+c_2) = e^{-3x_m}\frac{-c_2}{2}. As c2=b4<0c_2 = -b-4 < 0, y(xm)>0y(x_m) > 0.

Problem 6 Find the general solution of y6y+11y6y=0y''' - 6y'' + 11y' - 6y = 0.

Solution Let’s guess the solution y=erxy = e^{rx} for some constant rr. Then (r36r2+11r6)erx=0(r^3 - 6r^2 + 11r - 6)e^{rx} = 0 and so r36r2+11r6=0r^3 - 6r^2 + 11r - 6 = 0 gives r=1,2,3r = 1, 2, 3. These 3 roots correspond to the solutions y=ex,e2x,e3xy = e^x, e^{2x}, e^{3x}. The general solution is thus y=c1ex+c2e2x+c3e3xy = c_1e^x + c_2e^{2x} + c_3e^{3x}.