Differential Equations Initial Value Problem \(ty\prime +2y=\sin(t)\) \(y(\frac{\pi}{2})=1,~t>0\)
Let's see what we can work out... \[\Large y ' + \frac2t\cdot y = \frac{\sin(t)}t\]
Doesn't seem to work out quite as intended...
Ok, so if we were to use the constant of integration it would be \(\mu(t)=2t\)?
Oh yeah, it does LOL
Okay, so we multiply everything by 2t... \[\Large 2ty'+ 4y = 2\sin(t)\]
You can do it from here?
I was just learning this before the weekend and I haven't touched it in 3 days....
Do I integrate both sides? What do I do with the 4y? I am confusing myself.
Okay... well, you'll notice something about the left side... it's just \[\LARGE \frac{d}{dt}(2ty)=2\sin(t)\]
Using the product rule and implicitly differentiating 2ty with respect to t, you get 2ty' + 4y ^_^
And now, just 'multiply both sides' by dt and you'll be on your merry way :D \[\Large d(2ty) = 2\sin(t)dt\]
See where this is going? ^_^ \[\Large \int d(2ty) = \int 2\sin(t)dt\]
Finish it ! :D
Indeed.
So you should get \[\Large 2ty = -2\cos(t) + C\]
Now we just need the value of that constant... that's not going to be too hard, right? :D
We would need to solve for y right?
No... just C :) You know that \[\Large y\left(\frac \pi 2\right)= 1\] So, just have y = 1 and \[\large t = \frac \pi 2\] and solve for C
And then after you find out exactly what value C takes, then you can do the finishing touches and solve for y so that it's a function. And you'd be done :D
\(C=\pi\)
Okay :D So we have \[\Large 2ty = -2\cos(t) + \pi\]
\(y=\dfrac{-\cos(t)}{t}+\dfrac{\pi}{2t}\) Does this look even remotely correct?
Rather, to make things look prettier... \[\Large 2ty = \pi - 2\cos(t)\]
I think this is better : \[\Large y(t) = \frac{\pi - 2\cos(t)}{2t}\]
Okay, but a quick question. On a test, would I have been technically correct?
With this: \[y=\dfrac{-\cos(t)}{t}+\dfrac{\pi}{2t}\]? Yes. Of course. I just like it when there's only one fraction bar :D
Okay, I just want to make sure! :D
hang on a sec..
wanted*
Thank you very much for your help!!
Yeah, just that Wolfie is giving me doubts...
My book lists this as it's answer. \(y=t^{-2}[~(\pi^2/4)-1-t \cos(t) +\sin(t)~]\)
Yeah... my bad, wrong integrating factor.
This is the correct integrating factor:\[\Large e^{\mu}\] where \[\Large \mu = \int \frac2tdt\]
This just happens to be \[\Large \mu = 2\int \frac1tdt = 2\ln(t) = \ln (t^2)\]
\(\mu(t)=t^2\) I believe.
Yup... you and your 2t -.- LOL Okay, so THAT's what we multiply to both sides... \[\Large t^2 y ' + 4ty = t\sin(t)\]
---... I think I'm missing something...
I think I know.
Oh yeah, \[\Large t^2y′+\color{red}2ty=t\sin(t)\]
\(t^2y\prime +2ty=2\sin(t)\)
Darn it :P
So now, we have the left side as \[\Large \frac{d}{dt}(t^2y)= t\sin(t)\]
In all instances, will the middle term just disappear?
Yes, that's kind of the point of the integrating factor...
Ok, sorry. I must seem so silly right now :P
Say, this is general... \[\Large y' + p'(t)y= q(t)\]
Now, the integrating factor would be \[\Large e^{p(t)}\]
Multiplying everything through with this factor gives \[\Large e^{p(t)}y' + e^{p(t)}p'(t)y = q(t)e^{p(t)}\]
And that thing on the left ALWAYS ends up as: \[\Large \frac{d}{dt}[e^{p(t)}y]= q(t)e^{p(t)}\]
And hopefully, that term on the right (which is a function of t only) is easy to integrate :D
Okay, thanks very much! That makes much more sense. My professor wasn't entirely clear about that :)
Shall we continue? :)
I have \(t^2y=\sin(t)-t\cos(t)+C\)
\(C=\dfrac{\pi^2}{4}-1\)
And hopefully, you can see where this is going now? ^_^
Now for a final answer in a very rough form I have, \(y=\dfrac{\sin(t)}{t^2}-\dfrac{\cos(t)}{t}+\dfrac{\pi^2}{4t^2}-\dfrac{1}{t^2}\)
That can be cleaned up I am sure.
But that is the correct answer, right?
I believe so.
Then... let's get ice cream... to celebrate a job well-done :D
Woohoo!!!
You deserve many more medals than I can give :P
Join our real-time social learning platform and learn together with your friends!