请问你上高几,学过三角函数吗?
如果学过则
设a=sinA,b=cosA,x=sinB,y=cosB
那么ax+by=sinAsinB+cosAcosB=cos(A-B )
则其最大值为1
没学过的话就不好做了
打的很累的哦