Prior to now, we've only encountered homogeneous constant coefficient second order differential equations. [br][br]You might wonder if we can use an algebraic method to solve a [b]non homogeneous[/b] constant coefficient second order non-homogenous differential equation, such as[br][br][math]y''-4y'-12y=3e^{5t}[/math][br][br]The answer is: in special cases, yes! It all depends on what's on the right hand side of the second order differential equation, and how that informs some adjustments to our method for solving homogeneous equations.[br][br]This method is called [b]undetermined coefficients[/b]. Today we'll learn about this method for solving equations by following the principles outlined in [url=https://tutorial.math.lamar.edu/Classes/DE/UndeterminedCoefficients.aspx]these notes[/url].
Before we look at the algebraic methods that are available to use, let's look at the geometry of the systemification of a non homogeneous constant coefficient differential equation such as[br][br][math]y''-4y'-12y=3e^{5t}[/math][br][br]and its [b]complementary[/b] homogeneous equation[br][br][math]y''-4y'-12y=0[/math][br][br]The complementary equation's general solution is a key part of the general solution of the non-homogeneous original equation. We'll need to solve it later when we get to the method of undetermined coefficients. [br][br]First though, let's work out the systemifications of both equations. I've omitted the details, and only present the results:[br][br]Systemification of Non-Homogeneous equation with [math]x_1=y[/math] and [math]x_2=y'[/math]:[br][br][math]x_1'=x_2[/math][br][br][math]x_2'=12x_1+4x_2+3e^{5t}[/math][br][br][br]Systemification of Complementary Homogeneous equation, again with [math]x_1=y[/math] and [math]x_2=y'[/math]:[br][br][math]x_1'=x_2[/math][br][br][math]x_2'=12x_1+4x_2[/math][br][br][br]The code to plot the slope field of the systemification of the non-homogeneous equation is:[br][br][code]slopefield((12x+4y+3*e^(5*T))/(y))[br][/code][br][br]Be sure to agree to create a slider for the third variable [code]T[/code].[br][br]The code to plot the slope field of the systemification of the homogeneous complementary equation is:[br][br][code]slopefield((12x+4y)/(y))[/code][br][br]Note that this code does [i]not [/i]utilize the third variable [code]T[/code]. [br][br]I've plotted both of these slope fields below. Be sure to adjust the slider for the third variable [code]T[/code] in the applet visualizing the slope field of the systemification of the non-homogeneous equation.
The method for solving second order non-homogeneous constant coefficient differential equations is called undetermined coefficients. You can read more about it, and see more examples [url=https://tutorial.math.lamar.edu/Classes/DE/UndeterminedCoefficients.aspx]here[/url].[br][br]The method boils down to these steps:[br][br][list=1][*]Find the general solution of the complementary homogeneous differential equation obtained by wiping out the function of [i]x[/i] (or [i]t[/i]) that is causing the differential equation to be non homogeneous. It's customary to refer to this general solution as [math]y_c(t)[/math].[/*][*]Make a guess about the so-called undetermined particular solution [math]Y_P(t)[/math] of the non-homogeneous equation. See the above link for tips on making the guess for [math]Y_P(t)[/math]. [/*][*]Determine the coefficient of [math]Y_P(t)[/math] by plugging the guess into the non-homogeneous equation and solving.[/*][*]Construct the general solution of the non-homogeneous equation: [math]y(t)=y_c(t)+Y_P(t)[/math][br][/*][*]If initial conditions are present, use them to obtain a particular solution of the equation that agrees with the conditions.[br][/*][/list]There are many details to each of these steps, but it's better to learn about those in the context of an example.
We'll solve the following second order non-homogeneous constant coefficient differential equation:[br][br][math]y''-4y'-12y=3e^{5t}[/math][br][br][list=1][*]The complementary second order homogeneous constant coefficient differential equation is [math]y''-4y'-12y=0[/math]. The characteristic equation of this is [math]r^2-4r-12=0[/math]. The roots of this are [math]r_1=-2[/math] and [math]r_2=6[/math]. These roots mean the general solution of the complementary equation is [math]y_c\left(t\right)=c_1e^{-2t}+c_2e^{6t}[/math].[/*][*]The appropriate guess for [math]Y_P(t)[/math] is [math]Y_P(t)=Ae^{5t}[/math] to match the right hand side of the homogeneous equation. The coefficient [i]A[/i] is the eponymous undetermined coefficient. [/*][*]Plugging [math]Y_P\left(t\right)=Ae^{5t}[/math], [math]Y_P'\left(t\right)=5Ae^{5t}[/math] and [math]Y_P''\left(t\right)=25Ae^{5t}[/math] into the non-homogeneous equation results in [math]\left(25Ae^{5t}\right)-4\left(5Ae^{5t}\right)-12\left(Ae^{5t}\right)=3e^{5t}[/math]. This simplifies to [math]25Ae^{5t}-20Ae^{5t}-12Ae^{5t}=3e^{5t}[/math]. Thus it must be that [math]25A-20A-12A=3[/math]. Solving this for [math]A[/math] shows us that the undetermined coefficient is actually [math]A=-\frac{3}{7}[/math]. In other words, we've now determined the coefficient! Plugging this back into [math]Y_P[/math] produces [math]Y_P(t)=-\frac{3}{7}e^{5t}[/math].[/*][*]The general solution is therefore [math]y(t)=y_c(t)+Y_P(t)=c_1e^{-2t}+c_1e^{6t}-\frac{3}{7}e^{5t}[/math] (check it is in fact a solution either by hand or in GeoGebra!)[br][/*][*]No initial conditions were present, so we need not do this step. [/*][/list]The general solution from step 4 is visualized below in the slope field we worked up earlier. Note that the function is called [code]f(x)[/code] in the applet instead of [code]y(t) [/code]since [code]y[/code] is a reserved letter in GeoGebra. Unfortunately for non-homogeneous equations, we can no longer use [code]curve()[/code] since the slope field changes as t changes. We "hack" a fix for this matter by simply plotting [code](f(T),f'(T))[/code] and make use of the third variable [code]T[/code] we introduced earlier. We can then trace the curve by moving [code]T[/code]. The resulting trace will match the changing slope field as you adjust [code]T[/code]. Check out the interesting specific solution when [code]c_1=-0.5[/code] and [code]c_2=1[/code], and other specific solutions. Indeed, many interesting solutions occur for selections of [code]c_1[/code] and [code]c_2[/code] that result in [math]A[/math] near the line [math]y=-x[/math] when [code]T[/code] is close to 0. Note that the trace of [i]A[/i] [b]won’t[/b] match the slope field as you adjust the [code]c_i[/code]. The trace only matches the slope field during motion in [code]T[/code].
Find the general solution of [br][br][math]y''-3y'-4y=2\sin\left(t\right)[/math][br][br]Hint: [math]Y_P(t)=A\sin\left(t\right)+B\cos\left(t\right)[/math][br][br]Scroll down for the solution (not worked out).[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br].[br]General solution:[br] [br][math]y(t)=c_1e^{\left(-1t\right)}+c_2e^{\left(4t\right)}-\frac{5}{17}\sin\left(t\right)+\frac{3}{17}\cos\left(t\right)[/math]