Consider the following function:
$a Sin(x)+b Cos(x)$
I tried to obtain the maximum value of this function using
MaxValue[a Sin[x] + b Cos[x], x, Reals]
I expect Mathematica to return the following answer:
But Mathematica cannot find the answer. Why does this happen?