|
|
|
|
| View previous topic :: View next topic |
| Author |
Message |
Antrax
ESL Student
|
Posted: Tue Jul 13, 2004 10:39 pm Post subject: 1 |
|
|
From my final. I solved it using a lot of intuition, and I wonder what the right way was.
Solve:
y''+y=1/cos(x)
Antrax _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
Huey
Daedalian Member
|
Posted: Tue Jul 13, 2004 11:44 pm Post subject: 2 |
|
|
err
- y on both side.
Then take the intergrals of both sides.
And look up what the intergral of (1/cos x ) - y is on the cheat sheet you brought along with you. |
|
| Back to top |
|
 |
kevinatilusa
Daedalian Member
|
Posted: Wed Jul 14, 2004 2:44 am Post subject: 3 |
|
|
I think the right way depends on what tools you have/are supposed to use.
Normally what I would do with an equation like this is find all solutions to y''+y=0, and add on ONE solution to y''+y=sec(x).
Unfortunately, I don't know of an intuitive way to just "guess" any one solution. There is a method called "variation of parameters" which works though, and using it I get as my particular solution cos(x)Ln|cos(x)|+xsin(x), so general solutions look like cos(x)Ln|cos(x)|+xsin(x)+A*cos(x)+B*sin(x) |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Wed Jul 14, 2004 5:44 am Post subject: 4 |
|
|
kevin,
Basically we were taught to find a solution to the homogenous equation, then add, uh, functions? to solve the non-homogenous. So you get:
y
h
=c
1
cos(x)+c
2
sin(x)
Here I tried thinking what kind of function I'd add to that so I'll get sec(x), but came up completely blank -- in the exercises I did solve, on the right we had things like x 2 e x , or other easily guessable things (where the most difficult problem was if you got something that also corresponds to a solution of the homogenous, then you pad it with x or something).
So, after being stumped on that, I used paramter variation, and looked for
y
p
=c
1
(x)cos(x)+c
2
(x)sin(x)
After deriving, I got a fairly nasty equation, and from there I just sorta guessed my way -- "hey, if c
1
' would be 1/cos 2 (x) then I'll get my sec(x) and then I could say b is ln..." stuff. I was wondering if there's a more analytic approach. _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
kevinatilusa
Daedalian Member
|
Posted: Thu Jul 15, 2004 7:31 am Post subject: 5 |
|
|
Right, you start by assuming you have a solution looking like
f=acos(x)+bsin(x).
Differentiating twice,
f'=a'cos(x)-asin(x)+b'sin(x)+bcos(x)
f''=a''cos(x)-2a'sin(x)-acos(x)+b''sin(x)+2b'cos(x)-bsin(x)
f+f''=a''cos(x)+b''sin(x)-2a'sin(x)+2b'cos(x)
I got some cancellation already because I picked cos and sin to satisfy g''+g=0. We can still get a little more, however. Right now we have two unknown functions (a and b), but we're only looking for one solution. This means we can stick in an extra equation, require our functions to satisfy BOTH equations, and still have a solution.
The second equation I'm going to pick here is that a'cos(x)+b'sin(x)=0. I'm choosing this so as to get cancellation early in my argument, but for a different problem I could always replace cos and sin by the solutions to the homogenous equation. Assuming this second equation is satisfied, we now have
f'=a'cos(x)-asin(x)+b'sin(x)+bcos(x)=bcos(x)-asin(x)
f''=-bsin(x)+b'cos(x)-acos(x)-a'sin(x), and adding f in gives
f+f''=b'cos(x)-a'sin(x)=1/cos(x) Which must be solved simultaneously with
a'cos(x)+b'sin(x)=0
Doing so gives me that b'=1, a'=-tan(x)
I can now integrate and get b=x, a=ln|Cos(x)|.
The same method works for any 2nd order equation once you've found the homogenous solutions. The only hangup sometimes is actually doing the integrals in the last step. |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Thu Jul 15, 2004 9:08 am Post subject: 6 |
|
|
ah, so that's what I was missing. Instead of just adding an equation, I saw I had a''cos(x), and knew if I picked a to be 1/cos 2 (x) then a' is tg and maybe I can work from there. That's why I referred to it as guessing
Antrax _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|