Ask your own question, for FREE!
Differential Equations 17 Online
OpenStudy (anonymous):

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.

OpenStudy (anonymous):

OpenStudy (anonymous):

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?

OpenStudy (perl):

to get the explicit solution, use separation of variables

OpenStudy (perl):

either approach actually works, you can also use integrating factor

OpenStudy (perl):

but its faster to do separation of variables dx/ (x-4) = dt integrate both sides

OpenStudy (anonymous):

Ok. I'll try separation first. Just a sec.

OpenStudy (anonymous):

Ok, so here's what I have to this point.

OpenStudy (perl):

good so far

OpenStudy (perl):

may i ask what program you are using to draw that (thats pretty cool )

OpenStudy (anonymous):

Photoshop. :)

OpenStudy (perl):

why is the background black

OpenStudy (anonymous):

It's just how I set it. I could make it just about anything.

OpenStudy (perl):

cool :)

OpenStudy (perl):

i have microsoft paint,

OpenStudy (perl):

so youre using adobe photoshop?

OpenStudy (perl):

now raise both sides to the power of e

OpenStudy (anonymous):

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.

OpenStudy (perl):

it should be ln | x - 4| = t + c , because we are finding the general antiderivative

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

I got to the same answer as you for the general solution, though.

OpenStudy (perl):

i might be missing some information you wrote f(x) = 4 ?

OpenStudy (anonymous):

Yeah, so we're starting from \[\frac{\text{dx}}{\text{dt}}=x-4\] where f(x)=0=(x-4)

OpenStudy (perl):

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

OpenStudy (perl):

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

OpenStudy (anonymous):

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.

OpenStudy (perl):

autonomus differential equation just means you can get the differential equation in the form : dy/dt = f(y) or dx/dt = f(x)

OpenStudy (perl):

one moment, reading this :) http://tutorial.math.lamar.edu/Classes/DE/EquilibriumSolutions.aspx

OpenStudy (anonymous):

Ah, I should have gone there as well. :)

OpenStudy (anonymous):

This is helping out: https://www.youtube.com/watch?v=KgpUyKUC85Q

OpenStudy (perl):

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

OpenStudy (perl):

are you using mathematical to generate that slope field, or matlab. I have maple. x = 4 is an unstable equilibrium solution

OpenStudy (anonymous):

Hmm.. They have it as:\[x(t)=4+\left(x_0-4\right) e^t\]

OpenStudy (anonymous):

I'm using Mathematica. Here's the slope field I got.

OpenStudy (anonymous):

The 4+ piece makes sense to me. We're looking for the behavior of plots slightly more or less than 4.

OpenStudy (perl):

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

OpenStudy (perl):

i guess thats a fair assumption, since you are often given such an initial condition x(0)=x_0 or y(0)= y_0

OpenStudy (perl):

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

OpenStudy (anonymous):

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. :)

OpenStudy (perl):

right The initial condition is often given as x(0)=x_o or y(0)= y_o

OpenStudy (anonymous):

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.

OpenStudy (perl):

x_o is the value x(t) when t = 0 , this is a shorthand i guess :)

OpenStudy (anonymous):

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!)

OpenStudy (perl):

:)

OpenStudy (perl):

what is the name of the book you are using

OpenStudy (anonymous):

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.

OpenStudy (perl):

yeah and i bet last year editions can be bought for 20 dollars

OpenStudy (anonymous):

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.

OpenStudy (perl):

:) i like that philosophy

OpenStudy (perl):

end the textbook cartels

OpenStudy (anonymous):

A-MEN. :)

OpenStudy (perl):

im gonna plug in your function into mathematica , one moment

OpenStudy (perl):

the code you gave me

OpenStudy (perl):

or could you copy and paste the code in here , the vector and stream

OpenStudy (anonymous):

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}]

OpenStudy (perl):

thanks, did you teach yourself mathematica? i would like to learn it, (i have mathematica 10)

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

If I hadn't been a programmer for the last 15 years...well, I'd be screwed.

OpenStudy (perl):

oh ... yeah mathematica's coding looks pretty strange , i have some experience with c++ , i can write simple programs

OpenStudy (anonymous):

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.

OpenStudy (perl):

what is bg ?

OpenStudy (anonymous):

Background. Sorry, my inner web developer is surfacing.

OpenStudy (perl):

:)

OpenStudy (perl):

also the mathematica output is strange, do you see how the vectors get bigger from left to right

OpenStudy (anonymous):

That makes sense, because as t increases, x increases exponentially.

OpenStudy (perl):

yes but we want the slope field , the derivative or slope at each point

OpenStudy (anonymous):

Ooh, that's nice. I looked at a few examples on StackExchange, but that's a lot better.

OpenStudy (perl):

yeah i wonder what the difference between that and the code you sent me

OpenStudy (anonymous):

I want to try it out, but I'm worried I'll never finish this assignment as is. :(

OpenStudy (anonymous):

I'm going to need to check out for a few.

OpenStudy (perl):

ok , ill probably be on later, nice meeting ya

OpenStudy (perl):

or leave me a pm

OpenStudy (anonymous):

Nice meeting you, too. Thanks again. Btw, I just solved the first one, and it worked. (Hooray!)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!