Good morning OpenStudy! I have a few questions about autonomous differential equations, such as dx/dt=f(x). I understand how to get the critical points given f(x)=0. I can generate a slope field. I'm not sure how to get the explicit solution for x(t). I'll attach a screenshot of a problem like the one I'm working on.
Even as I'm posting this, I think I know what to do now. I think working with the integrating factor, rho(x), I'll get the answer I'll need. I'm still a little clear as to how I'm supposed to infer the exact solution from the slope field, though. Thoughts?
to get the explicit solution, use separation of variables
either approach actually works, you can also use integrating factor
but its faster to do separation of variables dx/ (x-4) = dt integrate both sides
Ok. I'll try separation first. Just a sec.
Ok, so here's what I have to this point.
good so far
may i ask what program you are using to draw that (thats pretty cool )
Photoshop. :)
why is the background black
It's just how I set it. I could make it just about anything.
cool :)
i have microsoft paint,
so youre using adobe photoshop?
now raise both sides to the power of e
Yup. I've been using it since 2.0, but only over the last few years as a math tool. I draw with it too. Ok, so the solution my book shows is x(t)=4+(x_0-4)e^t. I'm not sure how to get there.
it should be ln | x - 4| = t + c , because we are finding the general antiderivative
Hmm...the problem says that after finding f(x) and analyzing its sign, to find the explicit solution, either using a slope field or the exact solution.
I got to the same answer as you for the general solution, though.
i might be missing some information you wrote f(x) = 4 ?
Yeah, so we're starting from \[\frac{\text{dx}}{\text{dt}}=x-4\] where f(x)=0=(x-4)
ok so we have dx/dt = f(x) where f(x) = x-4 it doesnt make sense to say f(x) = 0. If that were true then you have dx/dt = 0
To solve the differential equation explicitly you need to be given a point x(t*) = c If t = 0, then you might see it as x(0) = xo
Actually, it's autonomous, so f(x) isn't dependent...I'm not sure I completely understand that. Maybe it'll help if I give the verbatim instructions.
autonomus differential equation just means you can get the differential equation in the form : dy/dt = f(y) or dx/dt = f(x)
one moment, reading this :) http://tutorial.math.lamar.edu/Classes/DE/EquilibriumSolutions.aspx
Ah, I should have gone there as well. :)
To solve it explicitly, i think they mean find the solution x(t) in terms of t. I don't think it means find a particular solution since we were not given an initial condition. For example if you remember the function y = x^2 , y is an explicit function of x. But in the expression x^2 + y^2 = 1, y is a function of x implicitly. To make it explicitly you have to solve for y. dx/dt = x - 4 dx/(x-4) = dt ln|x - 4 | = t + c x-4 = e^(t+c) x -4 = C*e^t x = C*e^t + 4 Therefore the explicit solution is x(t) = Ce^t + 4
are you using mathematical to generate that slope field, or matlab. I have maple. x = 4 is an unstable equilibrium solution
Hmm.. They have it as:\[x(t)=4+\left(x_0-4\right) e^t\]
I'm using Mathematica. Here's the slope field I got.
The 4+ piece makes sense to me. We're looking for the behavior of plots slightly more or less than 4.
That is the explicit solution if you are given the initial condition x(0) = x_o dx/dt = x - 4 dx/(x-4) = dt ln|x - 4 | = t + c x-4 = e^(t+c) x -4 = C*e^t substitute x(0)=x_0 x_o - 4 = C*e^(0) x_o -4 = C so the solution is x(t) = 4 + (x_o -4)*e^t
i guess thats a fair assumption, since you are often given such an initial condition x(0)=x_0 or y(0)= y_0
but our solution was equivalent x(t) = 4 + (x_o -4) * e^t is equivalent to x(t) = 4 + C*e^t since ' x_o -4 ' is a constant
Ah, finally a crack in the armor! So we use x_0 as our initial condition to find C. Excellent! Genius award goes to .... perl. :)
right The initial condition is often given as x(0)=x_o or y(0)= y_o
Man, there wasn't a thing in the book that would have pointed me in that direction. Thanks for working me through that, I really appreciate it.
x_o is the value x(t) when t = 0 , this is a shorthand i guess :)
Cool, now I'm going to try one of the problems from the actual assignment and see how I fare. It ought to be a lot easier now. (Whew!)
:)
what is the name of the book you are using
It's Linear Algebra & Differential Equations, Edwards and Penny, but it's one of those custom jobs from Pearson for the University of Utah. I kind of wish they'd gone with the open-source book by Strang, would have saved me about $200.
yeah and i bet last year editions can be bought for 20 dollars
Right? I can't stand the textbook cartels. They charge you caviar prices and feed you from the garbage. As a non-traditional student, I'm probably a lot less complacent about it. At this point, I want to finish the physics degree so I can subvert the corruption by helping flood the market with free help. It's part of why I'm a huge fan of this site.
:) i like that philosophy
end the textbook cartels
A-MEN. :)
im gonna plug in your function into mathematica , one moment
the code you gave me
or could you copy and paste the code in here , the vector and stream
Cool. I'll probably superimpose the solution on top of the field, but here are two ways to do it: ClearAll["`*"] VectorPlot[{t, (x - 4)}, {t, 0, 10}, {x, 0, 10}] StreamPlot[{t, (x - 4)}, {t, 0, 10}, {x, 0, 10}]
thanks, did you teach yourself mathematica? i would like to learn it, (i have mathematica 10)
Yeah, I've been struggling to learn it. My physics teacher told us we should learn it because it is "the industry standard". Of course whenever I've asked him simple questions about it, he's blanked out and solved things for me on paper instead. I might be the only one in class that has any grasp of it.
If I hadn't been a programmer for the last 15 years...well, I'd be screwed.
oh ... yeah mathematica's coding looks pretty strange , i have some experience with c++ , i can write simple programs
Yeah, my bg is in PHP, C#, Python. If you have any programming experience at all, Mathematica will make you feel like you're on drugs. I like the markup, though. It can make it a lot easier to visually inspect an algorithm.
what is bg ?
Background. Sorry, my inner web developer is surfacing.
:)
also the mathematica output is strange, do you see how the vectors get bigger from left to right
That makes sense, because as t increases, x increases exponentially.
yes but we want the slope field , the derivative or slope at each point
check this out http://stackoverflow.com/questions/8905726/how-do-i-plot-a-slope-field-using-mathematica
Ooh, that's nice. I looked at a few examples on StackExchange, but that's a lot better.
yeah i wonder what the difference between that and the code you sent me
I want to try it out, but I'm worried I'll never finish this assignment as is. :(
I'm going to need to check out for a few.
ok , ill probably be on later, nice meeting ya
or leave me a pm
Nice meeting you, too. Thanks again. Btw, I just solved the first one, and it worked. (Hooray!)
Join our real-time social learning platform and learn together with your friends!