solve the diff eq
\[x^2y'-4xy=x^7 sinx\]
@Zepdrix
how do we know which type of diff eq to use?
Mmm can you give me that link again? That pdf. The one that talked about the matching "degrees". Cause it looks like that's what we have going on here: x^2 and xy are the same "degree".
Oh it's in my messages box :D nevermind. one sec
i was thinking we could use the first order diff eq where we have an integration factor
One sec im a little rusty XD I think integrating factor is the right way to go. Just need to do it on paper real quick hehe.
okie ;p
Ok ok ok I think I'm remembering :d So ya... this is a first order linear differential equation. Let's divide the x's off the first term and try an integrating factor,\[\large\rm y'-\frac4xy=x^5\sin x\]
So our D.E. is in this form:\[\large\rm y'+py=q\] And what we want to do is multiply by some value u,\[\large\rm uy'+(pu)y=q\]such that pu is the derivative of u. That way we have a perfect product rule in reverse,\[\large\rm uy'+u'y=uq\]Which we simplify using our product rule,\[\large\rm (uy)'=uq\]And do some integration. So the derivative of u needs to be equivalent to pu. That's what gives us all this magic. \(\large\rm u'=pu\) Doing some stuff will eventually get you to the realization that a substitution of the form:\[\large\rm u=e^{\int\limits p~dx}\]will suffice. If that's too much detail, I apologize :P We can just use that last part that I mentioned.
So ... recognize that the subtraction sign will be a part of our substitution,\[\large\rm y'+\color{orangered}{\left(-\frac4x\right)}y=x^5 \sin x\]
\[\huge\rm u=e^{\int\limits \color{orangered}{\left(-\frac4x\right)}~dx}\]
Can you figure out the u value for me? :D Simplify it down. Come on Macha! Lemme see you do it!
arghh wait its not posting
Hmm you're kinda close :)
|dw:1517622337547:dw|
oh yeh.. ;p
You can't apply your e^lnx=x thing until you've gotten the -4 out of the way.
Ok so that's our integrating factor. Let's multiply through by x^-4
\[\large\rm \frac{1}{x^4}y'-\frac{4}{x^5}y=x \sin x\]Ok with that step? Make sure you're getting the same thing. (Don't forget to multiply the RIGHT SIDE by x^-4 as well.)
okie
If we have the right integrating factor, then the left side should simplify to (uy)' by product rule in reverse,\[\large\rm \left(\frac{1}{x^4}y\right)'=x \sin x\]
You can check your work by applying product rule,\[\large\rm \left(\frac{1}{x^4}y\right)'\quad=\quad \left(\frac{1}{x^4}\right)'y+\left(\frac{1}{x^4}\right)y'\]Which gives us,\[\large\rm \left(\frac{1}{x^4}y\right)'\quad=\quad \left(-\frac{4}{x^5}\right)y+\left(\frac{1}{x^4}\right)y'\]So ya, good times.
So now integrate,\[\large\rm \int\limits\left(\frac{1}{x^4}y\right)'=\int\limits x \sin x\] \[\large\rm \frac{1}{x^4}y=\int\limits x \sin x\]
Right side will require ummm .. integration by parts. Hopefully you remember that from Calc 2, because you'll be using it a lot in this class :D
You want to DESTROYYYYY the x, so that will be your u, While the sinx will just cycle around, so that's our dv. Then du = dx and v = -cosx And apply your IBP: int(u dv) = uv - int(v du)
I'll write that information down again if it helps: \[\large\rm u=x\]\[\large\rm dv = \sin x~dx\]and \[\large\rm du=dx\]\[\large\rm v=-\cos x\]
\[\large\rm \int\limits x \sin x~dx\quad=\quad uv-\int\limits v~du\]\[\large\rm \int\limits x \sin x~dx\quad=\quad -x \cos x-\int\limits -\cos x~dx\]
\[\large\rm \int\limits\limits x \sin x~dx\quad=\quad -x \cos x+\sin x\]
So then,\[\large\rm \frac{1}{x^4}y=\int\limits\limits x \sin x\]gives us,\[\large\rm \frac{1}{x^4}y=-x~\cos x+\sin x + C\]And multiplying through by x^4 will give us our general solution,\[\large\rm y=-x^5~\cos x+x^4\sin x + x^4C\]
is this the final answer xD
Yes.
question how did this happen again? was it bc the integral canceled with the y'?
The prime (derivative) was being applied to the whole thing, not just the y. So careful with that :O it's not just a y'. But yes, integration is 'anti-differentiation'. So you're taking the anti-derivative of a derivative :) They are inverses of one another and essentially "cancel out"
oh okie
@Zepdrix lmaoo
I've never seen the movie, so the reference is a little lost on me lol I've always enjoyed Big Vikings comedic style since they took over YoWorld tho x'D
yeh lmaooo the tie though hahaha
Join our real-time social learning platform and learn together with your friends!