I have a variable
x = l*Cos[t]*Cos[a] - Sin[t]*Sin[a]
and I want to find the maximum value of x with respect to a, as well as access the roots. I have tried
MaxValue[x, a]
but but just get
MaxValue[l Cos[a] Cos[t]-Sin[a] Sin[t],a]
So I did b = D[x, a]
and was returned
-l Cos[t] Sin[a]-Cos[a] Sin[t]
I then did sx=Solve[b ==0, a]
and was returned
so what I would like to do next is something like
mx =x/. a-> sx[[1]]
but I am not sure how to how to handle the 2 PI
ambiguity in the roots. Note that I want to extract the ambiguous roots even if it is possible to make MaxValue
work. I just want the roots with c_1 = 0.