Find a maximum of two variable particular function
1 view (last 30 days)
Show older comments
Behrang Elgameh
on 27 Oct 2019
Answered: Walter Roberson
on 27 Oct 2019
Dear friends,
I just had a problem finding the maximum of this equation.
fs = @ (x, t) wn ^ 2 * m * (1-cos (pi * x) / (2 * L)) * Impulse / (m * 3. * wn). * exp (-. 05. * wn. * t). * sin (wn. * t);
I took the derivatives as follows but finding the answer is not easy
fsx = diff (fs, x)
fst = diff (fs, t)
0 Comments
Accepted Answer
Walter Roberson
on 27 Oct 2019
syms wn m x t L Impulse
fs = @ (x, t) wn ^ 2 * m * (1-cos (pi * x) / (2 * L)) * Impulse / (m * 3. * wn).* exp (-.05.* wn.* t).* sin (wn.* t);
fsx = diff(fs,x)
fst = diff(fs,t)
sol = solve([fsx,fst], [x t],'returnconditions',true)
Really you get a family of solutions because of the periodicity of the trig functions.
The returned values will include all of the maxima and minima and saddle points, so you will need to do further tests to determine which each of them is. You probably cannot complete those tests without knowing at least the signs of some of those variables such as m.
0 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!