sinx-2cosx=√5(1/√5 sinx - 2 /√5 cosx)( 令cosy= 1/√5,siny=2 /√5)
=√5sin(x-y)
x-y=π/2 时取得最大值
x=y+π/2
即 a=y+π/2
cosa=cos(y+π/2)=-siny=-2√5/5
sinx-2cosx=√5(1/√5 sinx - 2 /√5 cosx)( 令cosy= 1/√5,siny=2 /√5)
=√5sin(x-y)
x-y=π/2 时取得最大值
x=y+π/2
即 a=y+π/2
cosa=cos(y+π/2)=-siny=-2√5/5