0

How can I show that y(t)=Yo/Yo+(1-Yo)e^-at is the solution of the differential equation dy/dt=ay(1-y) using MATLAB. What function should I use?

Mehdi
  • 293
  • 4
  • 13
Rachel
  • 43
  • 1
  • 8
  • see https://www.mathworks.com/help/symbolic/dsolve.html – Mehdi Feb 19 '17 at 06:10
  • You could also use differentiation and simplification of the difference of both sides of the equation to verify the solution. Embrace the power of parentheses. – Lutz Lehmann Feb 19 '17 at 07:07

1 Answers1

1

if you want to simulate the results use the ode's family

https://www.mathworks.com/help/matlab/ref/ode45.html

else you can define your equation in syms and use diff

https://www.mathworks.com/help/symbolic/diff.html

other wise you can solve it numerically

Abo Lregal
  • 75
  • 8
  • 2
    Welcome to Stack Overflow! Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Adriaan Feb 19 '17 at 15:54