How would you solve this DE analytically: dx/dt = y(t) - ax(t) related to this, i've tried to solve this equation, but i'm stuck at this: integral(dx.dt/x)
eh, \(x'=y-ax\)? What exactly is \(y\)? what about \(a\) (I presume a constant)?
P.S. \(\dfrac1x\dfrac{dx}{dt}=\dfrac{d}{dt}\left(\log x\right)\) -- that's just the chain rule
Anyways, this is just a first-order linear differential equation:$$x'+ax=y$$You want to multiply by some integration factor \(\mu\) s.t. \(\mu x'+a\mu x=(\mu x)'=\mu x'+\mu' x\), i.e. \(a\mu=\mu'\). Solving this equation gives us \(\mu=e^{at}\) so we observe:$$e^{at}x'+ae^{at}x=e^{at}y\\(e^{at}x)'=e^{at}y\\e^{at}x=\int e^{at} y\,dt\\x=\frac1{e^{at}}\int e^{at}y\,dt$$
thanks, and sorry for being late, i lost my internet connection y is a function of t as well as x, and a is constant
You gave \(y\) as a function of \(t\) so I solved assuming that above. \(y(x,t)\) is just \(y(x(t),t)\) though hence it's still just a function of \(t\) since \(x\) itself is a function of \(t\)
you mean you assumed that y is a function of x and t (while it is really not, but makes no difference) s.t. you can solve it?
btw, my second question was this: \[\int\limits \frac{ dx }{ x } dt\]
@amnsbr no I assumed \(y(t)\)
also $$\int\frac{dx}xdt$$ makes no sense
tnx, got it
Join our real-time social learning platform and learn together with your friends!