# Higher Order ODE IVP

Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last
• March 18th 2010, 09:26 PM
mmattson07
Higher Order ODE IVP
Hey MHF,

I got stuck on finding the gen sol. to the following ODE

$y^{(4)}+4y = 0$

I solved the auxiliary eqn. $m^4+4= 0$ for $m= ^4\sqrt{-4}$

So the roots must be complex? This is where I got stuck.
• March 18th 2010, 09:51 PM
Random Variable
The four roots are $1 \pm i$ and $-1 \pm i.$

So the general solution is $y(x) = C_{1} e^x \cos x + C_{2} e^{x} \sin x + C_{3} e^{-x} \cos x + C_{4}e^{-x} \sin x$
• March 19th 2010, 12:59 PM
mmattson07
Ok so I can use that to solve the IVP.

$y(0)=0$ so $0 = C1 + C3$
and
$y'(x)= C1e^x(cosx-sinx)+C2e^x(sinx+cosx)-C3e^{-x}$ $(cosx+sinx)+C4e^{-x}(cosx-sinx)$
$y'(0) = 1$ so
$1=C1+C2-C3+C4$

Is this correct so far?
• March 19th 2010, 01:17 PM
Random Variable
Are there any other conditions?
• March 19th 2010, 05:11 PM
mmattson07
Yes but I figured since it only gets messier i'd make sure I got this much correct. The other conditions are:

$y''(0)=0$ and
$y'''(0)=2$

I just do what I did above to find the constants?
• March 19th 2010, 07:29 PM
mmattson07
If what I did above is correct then
$y''(x)= 2C2e^xcosx-2C1e^xsinx+2C3e^{-x}sinx-2C4e^{-x}cosx$ then
$0=2C2-2C4$

$y'''(x)= 2C2e^x(cosx-sinx)-2C1e^x(sinx+cosx)+2C3e^{-x}$ $(cosx-sinx)-2C4e^{-x}(cosx+sinx)$ and
$2= 2C2-2C1+2C3-2C4$

Idk if i'm on the right track here...
• March 19th 2010, 08:14 PM
Random Variable
There is an error somewhere because the coefficients should be $C_{1}=0, C_{2}= \frac{1}{2}, C_{3} = 0, C_{4} = \frac{1}{2}$, and I'm not getting that by solving the four equations simultaneously.
• March 19th 2010, 08:50 PM
mmattson07
I know y' is correct, I will double check y'' and y'''. Those roots make all four equations true though, how did you find them without solving the four equations simultaneously? Thanks.
• March 19th 2010, 08:57 PM
Random Variable
Quote:

Originally Posted by mmattson07
I know y' is correct, I will double check y'' and y'''. Those roots make all four equations true though, how did you find them without solving the four equations simultaneously? Thanks.

I solved the problem using Maple.

Give me a second to solve the problem myself by hand and see what I get.
• March 19th 2010, 09:45 PM
Random Variable
$y(x) = C_{1} e^x \cos x + C_{2} e^{x} \sin x + C_{3} e^{-x} \cos x + C_{4}e^{-x} \sin x$

$y'(x) = C_{1} (e^{x} \cos x - e^{x} \sin x) + C_{2} (e^{x} \sin x + e^{x} \cos x) + C_{3} (-e^{-x} \cos x - e^{-x} \sin x) + C_{4}$ $(-e^{-x} \sin x+ e^{-x} \cos x)$

$y''(x) = C_{1}(e^{x} \cos x -e^{x} \sin x -e^{x} \sin x - e^{x} \ \cos x) + C_{2}( e^{x}\sin x + e^{x}\cos x + e^{x} \cos x - e^{x}$ $\sin x) + C_{3} (e^{-x}\cos x + e^{-x} \sin x+ e^{-x} \sin x - e^{-x} \cos x) + C_{4}$ $( e^{-x} \sin x - e^{-x} \cos x -e^{-x} \cos x - e^{-x} \sin x)$

$= -2C_{1}(e^{x}\sin x) + 2 C_{2}e^{x}\cos x + 2C_{3}e^{-x}\sin x -2C_{4} e^{-x} \cos x$

$y'''(x) = -2C_{1}(e^{x} \sin x + e^{x} \cos x) + 2C_{2}(e^{x} \cos x - e^{x} \sin x) + 2C_{3} (-e^{-x} \sin x +e^{-x} \cos x)$ $- 2C_{4} (-e^{-x}\cos x - e^{-x} \sin x)$

$y(0) = 0 = C_{1}+ C_{3}$

$y'(0) = 1= C_{1} + C_{2} - C_{3} + C_{4}$

EDIT: $y''(0) = 0 = 2C_{2} - 2C_{4}$

$y'''(0) = 2 = -2 C_{1} + 2C_{2} +2C_{3} + 2C_{4}$

which when solved, gives $C_{1}=0, C_{2} = \frac{1}{2}, C_{3} =0, C_{4} = \frac{1}{2}$
• March 20th 2010, 12:02 PM
mmattson07
Your y'' matches the one I have above. However isn't sin(0)=0? So the C1 and C3 terms would go away when evaluated at 0? Leaving:

$y''(0)= C1(-2e^0(sin(0))+C2(2e^0(cos(0)))+C3(2e^0(sin(0)))$
$+C4(-2e^0(cos(0)))$
$=>0=0+2C2+0-2C4$
?
• March 20th 2010, 12:09 PM
Random Variable
Quote:

Originally Posted by mmattson07
Your y'' matches the one I have above. However isn't sin(0)=0? So the C1 and C3 terms would go away when evaluated at 0? Leaving:

$y''(0)= C1(-2e^0(sin(0))+C2(2e^0(cos(0)))+C3(2e^0(sin(0)))$
$+C4(-2e^0(cos(0)))$
$=>0=0+2C2+0-2C4$
?

Yes. You're correct. My mistake.
• March 20th 2010, 12:59 PM
mmattson07
Ok so I had the last sign on y''' wrong yours was correct though. So we have
$y(0)= 0 =C1+C3$
$y'(0)= 1 =C1+C2-C3+C4$
$y''(0)= 0 =2C2-2C4$
$y'''(0)= 2 =-2C1+2C2+2C3+2C4$

How do you deduct the constants from these? The only thing I could see is that
$C2=C4$
• March 20th 2010, 01:23 PM
Random Variable
From the first equation we also know that $C_{1}=-C_{3}$

Then from the second equation $2C_{1}+2C_{2} =1$ (1)

And from the fourth equation $-4C_{1}+4C_{2}=2$ or $-2C_{1}+2C_{2}=1$ (2)

Add (1) and (2) to get $4C_{2} = 2$

so $C_{2} = \frac{1}{2}$ which means that $C_{4}=\frac{1}{2}$

and going back to (1), $2C_{1}+2\Big(\frac{1}{2}\Big) = 1$

so $C_{1} = 0$ which means that $C_{3}=0$
• March 20th 2010, 01:46 PM
mmattson07
Ahh, and you can add those because they're both equal to 1?

And the solution to the IVP is $
y(x) = (\frac{1}{2}) e^{x} \sin x +(\frac{1}{2})e^{-x} \sin x
$
Show 40 post(s) from this thread on one page
Page 1 of 2 12 Last