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

Click For Summary
SUMMARY

The discussion focuses on solving the second-order ordinary differential equation (ODE) \(y'' - 4y' = \sin{x}\) using the method of undetermined coefficients. The solution is derived by first determining the homogeneous solution \(y_h(x) = c_1 + c_2 e^{4x}\) from the characteristic equation \(r^2 - 4r = 0\). The particular solution is found to be \(y_p(x) = -\frac{1}{17}\sin{x} + \frac{4}{17}\cos{x}\). The complete solution is expressed as \(y(x) = c_1 + c_2 e^{4x} - \frac{1}{17}\sin{x} + \frac{4}{17}\cos{x}\).

PREREQUISITES
  • Understanding of second-order ordinary differential equations
  • Familiarity with the method of undetermined coefficients
  • Knowledge of characteristic equations and their solutions
  • Ability to compute derivatives of trigonometric functions
NEXT STEPS
  • Study the method of undetermined coefficients in greater detail
  • Explore the theory behind homogeneous and particular solutions of ODEs
  • Learn about the Laplace transform as an alternative method for solving ODEs
  • Investigate applications of second-order ODEs in physics and engineering
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are looking to deepen their understanding of solving second-order ordinary differential equations using analytical methods.

karush
Gold Member
MHB
Messages
3,240
Reaction score
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
Okay the first thing we do is consider the solution $y_h$ to the corresponding homogeneous equation, namely:

$$y''-4y'=0$$

The characteristic/auxiliary equation is:

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

Hence, we find:

$$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:

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

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

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

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

Next, we substitute $y_p$ into the ODE:

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

Arrange as:

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

Equating coefficients, we obtain the system:

$$-A+4B=1$$

$$B+4A=0$$

Solving this system, we find:

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

And so we have:

$$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:

$$y(x)=y_h(x)+y_p(x)=c_1+c_2e^{4x}-\frac{1}{17}\sin(x)+\frac{4}{17}\cos(x)$$
 
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
 

Similar threads

Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K