y=acos(x)+bsin(x) can be expressed as:
y=rsin(θ)cos(x)+rcos(θ)sin(x)=rsin(θ+x) and since the range of sine is [-1,1] the range for y is [-r,r].
We need to relate r to a and b.
a=rsin(θ) and b=rcos(θ), so r2=a2+b2, because sin2(θ)+cos2(θ)=1, r=√(a2+b2), making the range for y [-√(a2+b2),√(a2+b2)].
For example, if y=3cos(x)+4sin(x), the range for y is [-5,5].
[θ=tan-1(a/b) and corresponds to a phase shift in x.]