Symbolic function- differential equation sloving

18 Ansichten (letzte 30 Tage)
Soheil Habibian
Soheil Habibian am 27 Okt. 2017
Kommentiert: Walter Roberson am 27 Okt. 2017
How can I find the maximum or minimum values of the answer of a differential equation after solving it? It returns Symbolic Function as the solution of the equation.

Antworten (2)

KSSV
KSSV am 27 Okt. 2017
You substitute the required values in the solution using subs and then call max / min.
  4 Kommentare
Soheil Habibian
Soheil Habibian am 27 Okt. 2017
The problem is I don't know what syntax to use. Can you type it for me? thank you
Walter Roberson
Walter Roberson am 27 Okt. 2017
points_of_interest = solve( diff(g, x), x );
which_sign = sign( subs( diff(g, x, x), points_of_interest ) );
After that you need to know how to determine from the sign whether you are dealing with a min or a max or an inflection point.

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 27 Okt. 2017
You take the derivative of the equation and you solve for zeros. Then you take the second derivative and check the sign at each of the zeros in order to determine whether you have a min, max, or saddle.

Community Treasure Hunt

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

Start Hunting!

Translated by