Sign up ×
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
See the first example in tutorial Nonlinear IVP and BVPs – kglr Oct 31 '12 at 17:15

1 Answer 1

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

   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

Your Answer


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.