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

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
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top