Chapter 17: Problem 8
Solve the differential equation or initial-value problem using the method of undetermined coefficients. \(y^{\prime \prime}-4 y=e^{x} \cos x, \quad y(0)=1, \quad y^{\prime}(0)=2\)
Short Answer
Expert verified
The solution is \( y = \frac{9}{8} e^{2x} + \frac{3}{8} e^{-2x} + e^x\left(-\frac{1}{4} \cos x + \frac{1}{4} \sin x\right) \).
Step by step solution
01
Find the Complementary Solution
The associated homogeneous equation is \[ y'' - 4y = 0 \]This is a second-order linear homogeneous equation with constant coefficients. To find its complementary solution, we assume a solution of the form \( y = e^{rx} \). By substituting \( y = e^{rx} \), \( y' = re^{rx} \), and \( y'' = r^2 e^{rx} \) into the equation, we get:\[ r^2 e^{rx} - 4 e^{rx} = 0 \]\[ (r^2 - 4)e^{rx} = 0 \]Since \( e^{rx} eq 0 \), it follows that \( r^2 - 4 = 0 \) or \( r = \/pm 2 \). Thus, the complementary solution is:\[ y_c = C_1 e^{2x} + C_2 e^{-2x} \]
02
Assume a Particular Solution Form
The non-homogeneous term is \( e^{x} \cos x \). We use the method of undetermined coefficients to find a particular solution. Since the right-hand side is of the form \( e^{ax} \cos(bx) \), we propose a particular solution of the form:\[ y_p = e^{x}(A\cos x + B\sin x) \]where \( A \) and \( B \) are constants to be determined.
03
Find Derivatives of the Particular Solution
First, find the first and second derivatives of \( y_p \):\[ y_p' = e^x(A \,\sin x + B \,\cos x) + e^x(A \,\cos x + B \,\sin x) = e^x[(A+B) \cos x + (B-A) \sin x] \]\[ y_p'' = e^x[(A+B-B+A) \cos x + (B-A+A+B) \sin x + (A+B) \sin x + (B-A) \cos x] \]which simplifies to:\[ y_p'' = e^x[(2A+2B) \cos x + (2B-2A) \sin x] \]
04
Substitute Particular Solution into Differential Equation
Substitute \( y_p, y_p', \) and \( y_p'' \) into the differential equation \( y'' - 4y = e^x \cos x \):\[ e^x[(2A+2B) \cos x + (2B-2A) \sin x] - 4e^x(A\cos x + B\sin x) = e^x \cos x \]This simplifies to:\[ e^x[(2A+2B - 4A)\cos x + (2B-2A - 4B) \sin x] = e^x \cos x \]\[ e^x[-2A+2B] \cos x + e^x[-2A - 2B] \sin x = e^x \cos x \]
05
Solve for Coefficients
Set coefficients of \( \cos x \) and \( \sin x \) equal to the corresponding terms on the right side. For \( \cos x \):\[ -2A + 2B = 1 \]For \( \sin x \):\[ -2A - 2B = 0 \]Solving these equations, we first solve the second equation:\[ -2A - 2B = 0 \rightarrow A = -B \]Substitute \( A = -B \) into the first equation:\[ -2(-B) + 2B = 1 \rightarrow 2B + 2B = 1 \rightarrow 4B = 1 \rightarrow B = \frac{1}{4} \]Thus, \( A = -\frac{1}{4} \). Therefore, the particular solution is:\[ y_p = e^x\left( -\frac{1}{4} \cos x + \frac{1}{4} \sin x \right) \]
06
Write General Solution
The general solution of the differential equation is the sum of the complementary and particular solutions:\[ y = y_c + y_p = C_1 e^{2x} + C_2 e^{-2x} + e^x\left(-\frac{1}{4} \cos x + \frac{1}{4} \sin x\right) \]
07
Apply Initial Conditions
Use the initial conditions \( y(0) = 1 \) and \( y'(0) = 2 \) to find \( C_1 \) and \( C_2 \). Start by substituting \( x = 0 \) into the general solution:\[ y(0) = C_1 + C_2 - \frac{1}{4}(1) = 1 \rightarrow C_1 + C_2 = \frac{5}{4} \]Find \( y'(x) \) and substitute \( x = 0 \):\[ y'(x) = 2C_1 e^{2x} - 2C_2 e^{-2x} + e^x\left(-\frac{1}{4} \sin x + \frac{1}{4} \cos x + \frac{1}{4} \sin x + \frac{1}{4} \cos x\right) \]When \( x = 0 \),\[ y'(0) = 2C_1 - 2C_2 + \frac{1}{4} = 2 \]\[ 2C_1 - 2C_2 = \frac{7}{4} \]Solve the system of equations:1. \( C_1 + C_2 = \frac{5}{4} \)2. \( 2C_1 - 2C_2 = \frac{7}{4} \)Solve to find \( C_1 = \frac{9}{8} \) and \( C_2 = \frac{3}{8} \).
08
Write the Final Solution
Insert the values for \( C_1 \) and \( C_2 \) found from the initial conditions into the general solution:\[ y = \frac{9}{8} e^{2x} + \frac{3}{8} e^{-2x} + e^x\left(-\frac{1}{4} \cos x + \frac{1}{4} \sin x\right) \]
Unlock Step-by-Step Solutions & Ace Your Exams!
-
Full Textbook Solutions
Get detailed explanations and key concepts
-
Unlimited Al creation
Al flashcards, explanations, exams and more...
-
Ads-free access
To over 500 millions flashcards
-
Money-back guarantee
We refund you if you fail your exam.
Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
Method of Undetermined Coefficients
The method of undetermined coefficients is a popular technique used to find a particular solution to certain types of non-homogeneous linear differential equations. This method is applicable when the non-homogeneous term is a polynomial, exponential, sine, cosine, or a combination of these functions. The key idea behind the method involves proposing a specific form for the particular solution based on the type of non-homogeneous term. For example, if the non-homogeneous term is an exponential function multiplied by a trigonometric function, as in our example with the term \( e^x \cos x \), we propose a particular solution of a similar form.
The assumed form typically contains undetermined coefficients, which are placeholders for values that will be calculated later. This method requires:
The assumed form typically contains undetermined coefficients, which are placeholders for values that will be calculated later. This method requires:
- Identifying the structure of the non-homogeneous term.
- Setting up a trial solution with undetermined coefficients.
- Substituting the trial solution back into the differential equation.
- Equating coefficients from like terms to solve for the unknown constants.
Complementary Solution
The complementary solution of a differential equation is the solution to its homogeneous counterpart. In other words, if you start with the differential equation \( y'' - 4y = e^x \cos x \), the associated homogeneous equation is \( y'' - 4y = 0 \).
To find the complementary solution, we use the characteristic equation associated with the homogeneous part. By assuming a solution of the form \( y = e^{rx} \), we derive the characteristic equation \( r^2 - 4 = 0 \). Solving this gives the roots \( r = \pm 2 \). These roots indicate that the complementary solution can be written as a linear combination of exponential functions, specifically:
To find the complementary solution, we use the characteristic equation associated with the homogeneous part. By assuming a solution of the form \( y = e^{rx} \), we derive the characteristic equation \( r^2 - 4 = 0 \). Solving this gives the roots \( r = \pm 2 \). These roots indicate that the complementary solution can be written as a linear combination of exponential functions, specifically:
- \( y_c = C_1 e^{2x} + C_2 e^{-2x} \)
Particular Solution
A particular solution in the context of differential equations is a solution that specifically accounts for the non-homogeneous part of the equation. The goal here is to determine a solution \( y_p \) that satisfies the equation beyond the homogeneous solution.
In this problem, with a right-hand side of \( e^x \cos x \), we propose a form for the particular solution based on the form of the non-homogeneous term. Here, we assume:
After substituting this expression and its derivatives back into the original equation, we equate coefficients of like terms to solve for \( A \) and \( B \). This meticulous step-by-step substitution and equating ensures the particular solution fits the full differential equation effectively, leading to:
In this problem, with a right-hand side of \( e^x \cos x \), we propose a form for the particular solution based on the form of the non-homogeneous term. Here, we assume:
- \( y_p = e^x(A \cos x + B \sin x) \)
After substituting this expression and its derivatives back into the original equation, we equate coefficients of like terms to solve for \( A \) and \( B \). This meticulous step-by-step substitution and equating ensures the particular solution fits the full differential equation effectively, leading to:
- \( y_p = e^x\left(-\frac{1}{4} \cos x + \frac{1}{4} \sin x\right) \)
Initial Value Problem
An initial value problem (IVP) in the context of differential equations involves solving an equation with given initial conditions at a particular point, often \( x = 0 \). For the given problem, we have the initial conditions \( y(0) = 1 \) and \( y'(0) = 2 \).
Initial conditions are crucial as they allow us to find the precise values of the constants in the general solution, such as \( C_1 \) and \( C_2 \) from our complementary solution. Solving the IVP involves substituting these initial values into both the solution and its derivative to form a system of equations.
Here’s how it unfolds:
Initial conditions are crucial as they allow us to find the precise values of the constants in the general solution, such as \( C_1 \) and \( C_2 \) from our complementary solution. Solving the IVP involves substituting these initial values into both the solution and its derivative to form a system of equations.
Here’s how it unfolds:
- Substitute \( x = 0 \) in both the general solution and its derivative.
- Use these equations to solve for \( C_1 \) and \( C_2 \).