I am trying to use Maximize
to find the maximum value of f
, which is a polynomial in terms of Sin[t]
and Cos[t]
.
A = {{1, 2}, {2, 3}};
B = {{1, -2}, {-2, 0}};
p = {Cos[t], Sin[t]};
f = (p.A.A.p - (p.A.p)^2)(p.B.B.p - (p.B.p)^2)
Maximize[{f, 0 <= t <= \[Pi]/2}, t]
I thought it should be straightforward. However, the result I get is a very long expression, which does not make sense. I have no idea where I make a mistake.
Maximize[{Simplify@f, 0 <= t <= \[Pi]/2}, t] // N
. $\endgroup$ – Rohit Namjoshi Sep 7 '20 at 0:54