The differential equation d2ydt2+ω2y=0 has the general solution y=Acos(ωt)+Bsin(ωt). Also given are the initial values: y(a)=A,y′(a)=B.
I tried:
y(a)=Acos(ωa)+Bsin(ωa)=A
y′(a)=−ωAsin(ωa)+ωBcos(ωa)=B
And then substituted A and B into the general solution:
y=(Acos(ωa)+Bsin(ωa))cosωt+ω(−Asin(ωa)+Bcos(ωa))sin(ωt)
From here I can't get it to work. I want to simplify and express y with the subtraction formulas.
The answer is y=Acos(ω(t−a))+Bωsin(ω(t−a))
I know how the formulas work, But I can't figure out how Bω got there.
Please help, I'm stuck.
No comments:
Post a Comment