Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How would I draw the graph of a function dy/dt=((Ry^2)/T)-Ry in Mathematica?

I have tried a few times but the constants are confusing me.

share|improve this question
5  
See the first example in tutorial Nonlinear IVP and BVPs –  kguler Oct 31 '12 at 17:15
add comment

1 Answer

You can get rid of the arbitrary constant of integration by imposing an initial condition.

dfeq = {y'[t] == R (y[t]^2/T - y[t]), y[0] == 1};
First@DSolve[dfeq, y[t], t]

{y[t] -> T/(1 - E^(R t) + E^(R t) T)}

Manipulate[
   Plot[T/(1 - E^(R t) + E^(R t) T), {t, -1., 1.}, 
        Exclusions -> (-E^(R t) + E^(R t) T == -1)],
   {{R, -1.2}, -2, 2}, 
   {{T, 0.3}, -1, 1}]

manipulation ui for plot

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.