For first order linear differential equation problems, where do I start? How do i use P(x) and Q(x) and u(x)???
maybe start wid an example problem :)
I have a test wednesday morn..... still not understanding! and yes, I know about the IF method but not quite absorbing
ok uhm (3x+sin2x)dx -dy=0
And it just says to solve ^^
your goal is to find \(y\)
when it just says "solve"
\( (3x+\sin2x)dx -dy=0 \) \( (3x+\sin2x)dx = dy\) Integrate both sides \( \int (3x+\sin2x)dx = \int dy\) \( \int (3x+\sin2x)dx = y\)
we're done. we have "solved" y
I know how to solve that way, but... is there a way to solve it with all the fancy P(x) and Q(x) and u(x) stuff? I think this may be slightly connected to the IF thing that we talked about yesterday before your lunch ^^
sure u can solve it by finding IF and multiplying it both sides but nobody does that cuz this can be easily solvable by separating variables
if u want to do it, we can do it... just to give u practice with IF method ;)
step1 : put the given equation into "standard linear differential equation form" : \(\large y' + p(x) y = q(x)\)
hmmm what do I do if I come across something like dy/dx=3y+sin2x??? there's two terms, and I can't really transfer a term over because that would mean excluding it from the dx or dy that it's supposed to be with...
this is a new equation eh ?
Are we done with the first equation ?
OoO no I just rearranged it in a failed attempt to make it into the linear form
nope, u changed the second equation. look closer
your original equation : (3x+sin2x)dx -dy=0 your rearranged equation : dy/dx=3y+sin2x
they dont match (you have replaced 3x with 3y)
which one is correct ?
oh whoops!!! It's 3y~
cool :) then none of the discussion so far is meaningless
you cannot solve it by using "variable separation method"
you will hve to use the IF method
XP srry haha yeah~
lets start from here : dy/dx=3y+sin2x
oh hey! haha accidental success!
you wanto change it to form : \(y' + p(x) y = q(x) \)
:) replace dy/dx wid y' first
so then just take the 3y and slap it over onto the left side?
\( \large \frac{dy}{dx}=3y+\sin2x \) \( \large y'=3y+\sin2x \) \( \large y'+ (-3)y = \sin2x \)
yes ! compare it wid the standard form : \(y' + p(x) y = q(x)\)
p(x) = ? q(x) = ?
p(x) is -3, and q(x) is sin2x~
yup ! step1 : find the IF
step2 : multiply IF both sides and compress the left hand side
step3 : integrate both sides
for step1, use the formula : IF = \(\large e^{\int p dx}\)
ohh ok
for our present problem, IF = \(e^{\int -3 dx} = e^{-3x}\)
you're done with step1
next, multiply the IF both sides of ur rearranged equation in standard form
okay, so I got to the part where I've already condensed the left side and put the whole thing under an integration thing, and so now it looks like this: ye^-3x=(integral sign) e^-3x (sin2x) -----is there supposed to be a dx here???
\(\large y'+ (-3)y = \sin2x\) multiply IF = \(e^{-3x}\) both sides \(\large e^{-3x}y'+ e^{-3x}(-3)y = e^{-3x}\sin2x\) \(\large (ye^{-3x})' = e^{-3x}\sin2x\) Integrate both sides \(\large \int (ye^{-3x})'~ dx = \int e^{-3x}\sin2x~dx\)
so the dx just kind of magically appears along with the integration signs?
And I have no idea how to integrate the right side...
\(\int dx\) we're integrating both sides w.r.t x, so dx also comes
integrating right hand side is a different thing, but, u are comfortable wid the mechanics of IF method right ?
so what about the left side? isn't it integration w.r.t. y?
nope, both sides we're integrating w.r.to x only
\(\large y'+ (-3)y = \sin2x\) multiply IF = \(e^{-3x}\) both sides \(\large e^{-3x}y'+ e^{-3x}(-3)y = e^{-3x}\sin2x\) \(\large (ye^{-3x})' = e^{-3x}\sin2x\) Integrate both sides \(\large \int (ye^{-3x})'~ dx = \int e^{-3x}\sin2x~dx\) \(\large ye^{-3x} = \int e^{-3x}\sin2x~dx\)
ohhh ok, so it's much like putting a derivative onto the equation~
yes, lets look at integrating right hand side
u familiar wid "integration by parts" eh ?
wait so would the derivative sign on the left side come off even w.r.t y?
we're interested in finding "y" as a function of x, so "integrating with respect to x" annihilates the "derivative with respect to x"
you always integrate with respect to the independent variable : x or t
hmmm so then the left side isn't mulitplied by dy/dx?
\(\large \int (ye^{-3x})'~ dx = \int e^{-3x}\sin2x~dx\)
let me ask u a question :) wat does \(\large (ye^{-3x})'\) represent ?
and so the left side is [ ye^-3e ]dy/dx? or no???
\(\large (ye^{-3x})'\) is same as \(\large \frac{d}{dx}(ye^{-3x})\)
just a notation thing, for me the first notation looks neat
so i use that, if u prefer the d/dx 's u may use that as well
oh hmmm haha ^^ I thought the first thing meant dy/dx, so I was confused~
ok so then the left side is left bare with nthn, and now on to the right side?
\(\large y'+ (-3)y = \sin2x\) multiply IF = \(e^{-3x}\) both sides \(\large e^{-3x}y'+ e^{-3x}(-3)y = e^{-3x}\sin2x\) \(\large (ye^{-3x})' = e^{-3x}\sin2x\) Integrate both sides \(\large \int (ye^{-3x})'~ dx = \int e^{-3x}\sin2x~dx\) \(\large ye^{-3x} = \int e^{-3x}\sin2x~dx \)
you are at peace wid everything so far eh ?
yesh, more or less so ^^
the right side is just a "integration problem" : you can do it by parts very easily : http://www.wolframalpha.com/input/?i=%5Cint+e%5E%28-3x%29+sin%282x%29+dx
WOAH COOL wat is thissss
\(\large y'+ (-3)y = \sin2x\) multiply IF = \(e^{-3x}\) both sides \(\large e^{-3x}y'+ e^{-3x}(-3)y = e^{-3x}\sin2x\) \(\large (ye^{-3x})' = e^{-3x}\sin2x\) Integrate both sides \(\large \int (ye^{-3x})'~ dx = \int e^{-3x}\sin2x~dx\) \(\large ye^{-3x} = \int e^{-3x}\sin2x~dx \) \(\large ye^{-3x} = \frac{-1}{13}e^{-3x}[3\sin(2x) + 2\cos(2x)] + c \)
we're done
QQ I still don't understand how wolf ram got the answer tho...
dont wry, we're going to work it now
\(\int e^{-3x} \sin (2x) ~dx\)
familiar with "by parts" ?
kind of~ but I only know the + ones~ where you split the terms?
\(\int uv' = uv - \int u'v \)
does that look familiar /
?
can't say it does... |:
maybe it's a BC topic...
^^ well, thank you so much for your help~! I'll be going to bed now! it's 4am already... *yawn* bibi^^ have a good... lunchtime? LOL I meant afterenon ^^
\(\large I = \int e^{-3x} \sin (2x) ~dx \) By parts : \(u = \sin(2x), v' = e^{-3x}\) , gives \(\large I = \sin (2x) \frac{-e^{-3x} }{3} - \int 2\cos (2x) \frac{-e^{-3x} }{3} ~dx \) \(\large I = \sin (2x) \frac{-e^{-3x} }{3} +\frac{2}{3} \int \cos (2x) e^{-3x} ~dx \)
do it by parts again for that integral again
\(\large I = \sin (2x) \frac{-e^{-3x} }{3} +\frac{2}{3} \int \cos (2x) e^{-3x} ~dx \) \(\large I = \sin (2x) \frac{-e^{-3x} }{3} +\frac{2}{3} \left( \cos(2x) \frac{-e^{-3x} }{3} - \int (-2\sin (2x))\frac{-e^{-3x} }{3} \right) \) \(\large I = \sin (2x) \frac{-e^{-3x} }{3} -\frac{2}{9} \cos(2x)e^{-3x} - \frac{2}{3} \int \sin (2x)e^{-3x} \) \(\large I = \sin (2x) \frac{-e^{-3x} }{3} -\frac{2}{9} \cos(2x)e^{-3x} - \frac{2} {3} I \)
solve \(I\)
have good sleep :)
^^Thats one very long method :/
Another easy/super fast way(my fav) is to work out \(\int e^{-3x}\sin(2x)dx\) using complex numbers : \(\large \mathbb{\int e^{-3x} \sin(2x) dx = Img \left( \int e^{-3x} e^{i (2x)}dx\right) }\) \(\large \mathbb{~~~~~~~ = Img \left( \int e^{x(2i-3)} dx\right)}\) \(\large \mathbb{~~~~~~~ = Img \left( \frac{e^{x(2i-3)}}{2i-3} \right) }\) \(\large \mathbb{~~~~~~~ = Img \left( e^{-3x}\frac{2i+3}{13}[ e^{i(2x)}] \right) }\) \(\large \mathbb{~~~~~~~ = Img \left( e^{-3x}\frac{2i+3}{13}[ \cos(2x) + i\sin(2x)] \right) }\) \(\large \mathbb{~~~~~~~ = \frac{e^{-3x}}{13} [ 2\cos(2x) + 3\sin(2x)] }\)
Join our real-time social learning platform and learn together with your friends!