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

MaxValue[a Sin[x], x, Reals]– george2079 Aug 26 '13 at 15:53