Math help (Diff Eq.)

Feb 19, 2001
20,155
23
81
How do I solve y'' + 4y = cosx

y(0) = 0, y(pi) = 0

I understand how to do it for homogeneous eq, cuz u would get y = c1cos2x + c2sin2x.. but yea.. now with the cos x at the end i get confused
 

MrBailey

Member
Dec 1, 2005
106
70
101
step 1) find homogeneous solution...done

step 2) solve for the coefficients (c1 and c2) in the homogeneous solution using the initial conditions

step 3) the function on the right side, f(x), is a trig function...you can use method of undetermined coefficients.

let y = A cos(x) + B sin(x)

find y' and y'' (using the above equation)

step 3) plug y'' and y into your original equation...and now solve for the A and B coefficients.

step 4) now, between the homogeneous solution from step 1) and what you find in step 3), you will have the solution.


Hope this helps some.

Bailey
 

simms

Diamond Member
Sep 21, 2001
8,211
0
0
Originally posted by: MrBailey
step 1) find homogeneous solution...done

step 2) solve for the coefficients (c1 and c2) in the homogeneous solution using the initial conditions

step 3) the function on the right side, f(x), is a trig function...you can use method of undetermined coefficients.

let y = A cos(x) + B sin(x)

find y' and y'' (using the above equation)

step 3) plug y'' and y into your original equation...and now solve for the A and B coefficients.

step 4) now, between the homogeneous solution from step 1) and what you find in step 3), you will have the solution.


Hope this helps some.

Bailey

That sounds about right. You have to find the homogeneous soln first, then solve for yp, the particular solution..
 

hollowman

Diamond Member
Feb 19, 2001
4,864
0
76
i took the class just last semester and i don't remember a damn thing! man.. that's really sad. (i even got an A in that class too. lol)

what's wrong with me. blah~
 

speg

Diamond Member
Apr 30, 2000
3,681
3
76
www.speg.com
Wow, I really need to learn how to do this before I do my DE course for a third time... (third time's the charm!)
 

MrBailey

Member
Dec 1, 2005
106
70
101
it's not as bad as it looks...simple algebra and calc.

I blew this crap off while an undergrad (many moons ago)...but I've had to relearn it for my first Master's. Now it's essential for my second Master's (mathematics).

Bailey
 
Aug 25, 2004
11,151
1
81
Originally posted by: hollowman
i took the class just last semester and i don't remember a damn thing! man.. that's really sad. (i even got an A in that class too. lol)

what's wrong with me. blah~

lol, i'm in the same boat... but my excuse is that i had that class two years ago
 

vrbaba

Diamond Member
Jul 17, 2003
3,266
0
71
Originally posted by: DLeRium
Originally posted by: vrbaba
judiciously guess A*cos(x) for your particular solution



mmm thats what the answer says, but i dont know where that comes from =(

yeah, i never got those either. But its one of the diferent "ways" of solving diff. eq. You use it when others dont work, and you know something funky is going on. and since there is a cos(x), you try to use a cos or sin as your guess.
 

vrbaba

Diamond Member
Jul 17, 2003
3,266
0
71
Here is a better (or wordier ) explanation by chuckywang:
the nonhomogenous part is cos(x). ask yourself what type of functions has a second derivative added to the function itself gives you cos(x). The answer is just a cosine. Usually you need to guess A*cos(x)+B*sin(x), but note that in this case y''+4y is only in terms of cos(x). However, if you had a y' on the left hand side, you would need to guess A*cos(x)+B*sin(x). You don't, in this case, so just guessing A*cos(x) suffices.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |