Filter löschen
Filter löschen

Output from Differential Equation

1 Ansicht (letzte 30 Tage)
Alex Michalak
Alex Michalak am 19 Sep. 2020
Beantwortet: Nomit Jangid am 24 Sep. 2020
I have a differential equation I am solving and I get output other than the general solution.
syms y(t)
dsolve(diff(y,t) == y^2 - 24*y + 140)
I get the general solution and then I get 10 and 14 below the equation. I see that these values are horizontal asymptotes denoting no change in value. Is this confirmed when I set the IVP in dsolve to
dsolve(diff(y,t) == y^2 - 24*y + 140, y(0) == 10)
dsolve(diff(y,t) == y^2 - 24*y + 140, y(0) == 14)
Also, what is the best way to graph particular solutions to a differential equation like this?

Akzeptierte Antwort

Nomit Jangid
Nomit Jangid am 24 Sep. 2020
Yes, 'dsolve' gives general solution as well as solution for horizontal asymptotes.
you can use 'fplot' function to plot solution of differential equation.
>> syms y(t)
>> sol = dsolve(diff(y,t) == y^2 - 24*y + 140)
>> fplot(unique(subs(sol,"C1",[-3:3,(-3:3)+pi*1i])))

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by