Solve the 2nd order non-homogenous ODE Initial value problem: y''(t)+y(t) = sec(t) y(0)=1 , y'(0)=2
Anyone familiar with Diff Eq?
This is slightly tricky question. Have your learnt yet about turning 2nd order equations into a system of first order equations? If not, what other methods have you learnt?
im up to Laplace transform however this is in the chapter review for undefined coefficients.
Ok. So use that method. The homogeneous solutions of course are sin x and cos x, hence the particular solution is of the form yp = u(x) sin x + v(x) cos x. Now grind away ...
yeah i got the homogeneous sol'n however i dont know where to start after that... nothing in this chapter deals with sec,csc,tan,cot.... so do i just treat it as 1/cos?
the homogenous sol'n i got was: \[c _{1}e ^{0t}\cos(-t)+c _{2}e ^{0t}\sin(-t)\]
y''+y = 0 ; roots are complex; r(1+i1, 1-i1) \[y=e^t(c_1cos(t)+c_2sin(t))\] right?
No. y = c1.cos t + c2.sin t
\[r(a+ib,a-ib)\] \[y=e^{ax}(c_1cos(bx)+c_2sin(bx))\] is what i recall
amistre those roots are incorrect. using quad. equations since 'b' = 0 there is no real part asociated
hmmm ..... im open to being wrong :)
Amistre, for heaven's sake, with y = e^(rt), the characteristic equation is r^2 + 1 = 0 and therefore r = +-i.
oh ;)
but the main problem is i dont know what to 'guess' as the y_p
\[r^2+1=(r+i)(r-i)\] i had the right thought, my fingers just betrayed me lol
would it be Asec(t)+Bcsc(t)?
shouldn't the characteristic equation be r^2+r=0 which gives r=0 or -1?
No.
r^2 = y'' r = y' c = y
that gets me at times too
sorry mis-read the equation i thought the 2nd term had a prime on it - must change my glasses! :-)
Now, the guess. I think you mean btw, the method of undetermined coefficients. Try yp = A sec x + B sec x.tan x + C cos x + D cos x.ln(cos x)
could try sin(t) for the other part .... maybe. just did a few of these before bedtime last night, but they werent triged up
Actually, just yp = A sec x + B sec x.tan x + C cos x.ln(cos x)
where do you get those from? just need to learn it or?
because it is no where to be found in my book
sec x comes from the in homogenous part sec x . tan x from its derivative Now more speculative, what happens when you try and integrate by parts tan x * something, you get something * -ln(cos x) So sec x.ln(cos x) and cos x.ln(cos x) makes sense
So actually, last iteration: try yp = A sec x + B sec x.tan x + C cos x.ln(cos x) + D sec x.ln(cos x)
yp = A cos(t) + B sin(t) yp' = A' cos(t) - Asin(t) + B'sin(t) +Bcos(t) assume: A'cos(t) + B'sin(t) = 0 cant recall y yp' = - Asin(t) +Bcos(t) yp'' = -A'sin(t)-Acos(t) +B'cos(t) -Bsin(t) yp''+y = -A'sin(t)-Acos(t) +B'cos(t) -Bsin(t) +A cos(t) + B sin(t) yp''+y = -A'sin(t)+B'cos(t) = csc(t)
then solve the system of equations from: A'cos(t) + B'sin(t) = 0 -A'sin(t)+B'cos(t) = csc(t)
B' = csc.cos/ cos^2+sin^2 = cot
A' = 1/-1 = -1
i hope i did those crosses right
Ok: so what amistre's written is what I thought you meant in terms of method when you said "undefined coefficients", which goes under the usual name "Variation of parameters". But you are using "Method of Undetermined Coefficients" which is why you need a good guess for the particular solution.
yeah been doing alot of this my brain is starting to go haywire lol
int(A')dt = int(-1)dt A = -t int(B')dt = int(cot(t))dt B = ln|sin(t)|
So which one do you mean? Variation of Parameters or Undetermined Coefficients?
undetermined coefficents
amistre i dont see how you went from yp = A cos(t) + B sin(t) to that yp' = A' cos(t) - Asin(t) + B'sin(t) +Bcos(t) shouldnt y_p'= -aCos(t)+bSin(t)?
y = yh + yp \[y=c_1cos(t)+c_2sin(t)-t\ cos(t)+ln|sin(t)|\ sin(t)\] ill rechk it, but in the end I get this; unless im forgeting another c
yp = A cos(t) + B sin(t) yp' = A' cos(t)+A cos(t)' +B' sin(t) + B sin(t)' yp' = A' cos(t)-A sin(t) +B' sin(t) + B cos(t)
but A and B are constants. why would you use a' and b' ?
they arent constants they are unknown functions
we are trying to find the unknown functions A(t) and B(t)
amistre: you're not using the method he wants to use.
im aware of that ;) but its still good practice
well that explains why i couldn't follow along lol
what is the name of that method?
even if we use tham as variables, they are still unknowns that get 'ed
cant recall
The method amis is using is called Variation of Parameters. I'll tell you flat out that Undetermined Coeffs is not a great method here as it's not obvious what form of the answer to use.
And I'll also tell you the answer so you can work towards it: yp = cos x . ln(cos x)
ok. that makes so much more sense (looking at the next section)
midterm in 24hrs... gotta keep studying lol.
err, for the record, who is on the poster you're holding up in your photo?
osama bin ladin haha was at gun range in vegas
got it.
thanks for the help
i apparently cant factor r^2+1 correctly, but I can recall pretty much how to do variation param.... you know how much algebra i had to forget to learn that?
Join our real-time social learning platform and learn together with your friends!