0
$\begingroup$

Given differential eqn of,

$y'' + 16y = \cos(4x) - 8e^{3x}$

Initial conditions $y=0$ and $dy/dx = 0$ when $x = 0$

So therefor,

$r^2 + 16 = 0$

where $r$ will be $4i$

so, $Y = C\cos(4x) + D\sin(4x)$

The RHS is the part I have problem with...

This is what I've done so far

$Y_p = Ae^{3x} + B\cos(4x)$

$Y_p' = 3Ae^{3x} - 4B\sin(4x)$

$Y_p'' = 9Ae^{3x} - 16B\cos(4x)$

Sub into eqn...

$9Ae^{3x} - 16B\cos(4x) + 16(Ae^{3x} + B\cos(4x)) = \cos(4x) - 8e^{3x}$

$9Ae^{3x} - 16B\cos(4x) + 16Ae^{3x} + 16B\cos(4x) = \cos(4x) - 8e^{3x}$

$25Ae^{3x} = \cos(4x) - 8e^{3x}$

Taking coeff of $e^{3x}$,

$25A = -8$

$A = -8/25$

From here on Im stuck, not to sure how to find $B$.

  • 0
    @MartinSleziak oh yes, my mistake. I meant to type e^3x for all2012-05-19

3 Answers 3

1

The right side of your differential equation is a sum of three terms of "frequencies" $3$, $4i$ and $-4i$.

The frequency $3$ is not a solution of the characteristic equation, whence there is a function of the form $x\mapsto C e^{3x}$ satisfying $y''+16 y=-8e^{3x}$.

Both frequencies $4i$ and $-4i$ are (simple) solutions of the characteristic equation; therefore there is no function $x\mapsto C e^{4ix}$ solving $y''+16 y= {1\over2}e^{4ix}\ ,\qquad (1)$ and similarly for $-4i$. There is, however, a function of the form $x\mapsto C xe^{4ix}$ solving $(1)$, and similarly for $-4i$.

Since your equation has real coefficients it is possible to combine the found complex solutions to real solutions. In fact you don't have to wander into the complex domain at all. The recipe reads as follows: The given equation will have a "particular" solution of the form $y(x)= x\bigl(A\cos(4x)+ B\sin(4x)\bigr) + Ce^{3x}\ ,$ and it remains to determine the coefficients $A$, $B$, $C$. (Note that you cannot expect $B=0$.)

0

The problem is that you have a partially repeated solution. The complementary solution $Y = C\cos (4x) + D \sin(4x)$ and the particular solution $Y_p = Ae^{-3x} + B\cos (4x)$. However $B \cos(4x)$ in $Y_p$ and $C \cos(4x)$ in $Y$ are the same (as B and C are both just constants). To account for this you need to multiply $Y_p$ by $x$. This makes $y_p= Axe^{-3x} + Bx \cos(4x)$. Now you can go ahead and differentiate $y_p$ and solve for the coefficients.

  • 1
    Since $e^{-3x}$ is not a solution of the homogeneous equation, it does not need to be multiplied by $x$.2012-05-19
0

We use operator method to find the particular solution:

note $D=\frac{d}{dx},\frac{1}{D}()=\int()dx$,then: \begin{align} y''+16y&=\cos 4x-8e^{3x}\\ y_c&=C_1\cos 4x+C_2\sin 4x\\ y_p&=\frac{1}{D^2+16}(\cos 4x-8e^{3x})\\ &=\frac{1}{D^2+16}\cos 4x-\frac{1}{D^2+16}8e^{3x}\\ &=x\frac{1}{(D^2+16)'}\cos 4x-\frac{1}{D^2+16}8e^{3x}\\ &=x\frac{1}{2D}\cos 4x-\frac{1}{3^2+16}8e^{3x}\\ &=\frac{x}{2}\int\cos 4xdx-\frac{8}{25}e^{3x}\\ &=\frac{x}{8}\sin 4x-\frac{8}{25}e^{3x}\\ y&=y_c+y_p=C_1\cos 4x+C_2\sin 4x+\frac{x}{8}\sin 4x-\frac{8}{25}e^{3x} \end{align}