-17.2.02 - Solve 2nd order ODE using undetermined coefficients.

In summary, we use the method of undetermined coefficients to solve the equation $y''-4y'=\sin{x}$ by considering the solution $y_h$ to the corresponding homogeneous equation and finding the particular solution $y_p$ in the form of $A\sin{x}+B\cos{x}$. We then use the principle of superposition to obtain the final solution $y(x)=y_h(x)+y_p(x)$.
  • #1
karush
Gold Member
MHB
3,269
5
$\tiny{17.2.02}$
\nmh{1000}
$\textrm{Solve the equation by the method of undetermined coefficients.}\\$
\begin{align*}\displaystyle
y''-4y'&=\sin{x}\\
y_p&=A\sin{x}\\
\end{align*}
$\textit{ answer}$
\begin{align*}\displaystyle
y{\left (x \right )}& = C_{1} + C_{2} e^{4 x} - \frac{1}{17} \sin{\left (x \right )} + \frac{4}{17} \cos{\left (x \right )}
\end{align*}

ok not sure how to start this

looked at example but..
 
Last edited:
Physics news on Phys.org
  • #2
Okay the first thing we do is consider the solution $y_h$ to the corresponding homogeneous equation, namely:

\(\displaystyle y''-4y'=0\)

The characteristic/auxiliary equation is:

\(\displaystyle r^2-4r=r(r-4)=0\implies r\in\{0,4\}\)

Hence, we find:

\(\displaystyle y_h(x)=c_1e^{0x}+c_2e^{4x}=c_1+c_2e^{4x}\)

Next we look at the RHS of the given ODE, and from this we determine the particular solution will take the form:

\(\displaystyle y_p(x)=A\sin(x)+B\cos(x)\)

We need the first and second derivatives, so we compute:

\(\displaystyle y_p'(x)=A\cos(x)-B\sin(x)\)

\(\displaystyle y_p''(x)=-A\sin(x)-B\cos(x)\)

Next, we substitute $y_p$ into the ODE:

\(\displaystyle \left(-A\sin(x)-B\cos(x)\right)-4\left(A\cos(x)-B\sin(x)\right)=\sin(x)\)

Arrange as:

\(\displaystyle (-A+4B)\sin(x)+(-B-4A)\cos(x)=1\cdot\sin(x)+0\cdot\cos(x)\)

Equating coefficients, we obtain the system:

\(\displaystyle -A+4B=1\)

\(\displaystyle B+4A=0\)

Solving this system, we find:

\(\displaystyle (A,B)=\left(-\frac{1}{17},\frac{4}{17}\right)\)

And so we have:

\(\displaystyle y_p(x)=-\frac{1}{17}\sin(x)+\frac{4}{17}\cos(x)\)

And finally, by the principle of superposition, we may state the solution:

\(\displaystyle y(x)=y_h(x)+y_p(x)=c_1+c_2e^{4x}-\frac{1}{17}\sin(x)+\frac{4}{17}\cos(x)\)
 
  • #3
Well that took the mystery out of
the textbook examples😎

Notice there is a lot views on these problems
so there is a lot of lateral benefits
 

1. What is a second order ODE?

A second order ODE, or ordinary differential equation, is an equation that involves the derivatives of a function with respect to a single independent variable. It can be written in the form of a2y'' + b(x)y' + c(x)y = f(x), where y is the dependent variable, x is the independent variable, and a, b, and c are constants.

2. What is meant by "undetermined coefficients"?

"Undetermined coefficients" refers to a method of solving a second order ODE by assuming that the solution can be written as a linear combination of certain known functions, such as polynomials or trigonometric functions. The coefficients of these functions are then determined by substituting the assumed solution into the original equation and solving for the coefficients.

3. How do you solve a second order ODE using undetermined coefficients?

To solve a second order ODE using undetermined coefficients, follow these steps:

  1. Identify the type of function (polynomial, trigonometric, exponential, etc.) that is present in the non-homogeneous term of the equation.
  2. Assume a solution that is a linear combination of functions of the same type as identified in step 1.
  3. Substitute the assumed solution into the original equation and solve for the undetermined coefficients.
  4. Add the complementary solution (found by solving the homogeneous equation) to the particular solution (found using undetermined coefficients) to get the general solution.

4. What are the limitations of using undetermined coefficients to solve a second order ODE?

The undetermined coefficients method can only be used for certain types of non-homogeneous terms, such as polynomials, trigonometric functions, and exponential functions. It also may not work for more complex non-homogeneous terms or for equations with variable coefficients.

5. Can the undetermined coefficients method be used to solve higher order ODEs?

Yes, the undetermined coefficients method can be extended to solve higher order ODEs, but it becomes more complex as the order of the equation increases. In general, it is easier to use this method for second order ODEs and other methods, such as the method of undetermined coefficients, for higher order ODEs.

Similar threads

Replies
3
Views
2K
Replies
4
Views
2K
  • Differential Equations
Replies
16
Views
3K
  • Differential Equations
Replies
9
Views
3K
  • Differential Equations
Replies
3
Views
1K
Replies
2
Views
2K
  • Differential Equations
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
7
Views
501
  • Differential Equations
Replies
10
Views
2K
  • Differential Equations
Replies
7
Views
1K
Back
Top