令y=cosA(cosA+sinA)
y=cos²A+cosAsinA
=1/2(2cos²A-1+2sinAcosA+1)
=1/2(cos2A+sin2A+1)
=√2/2sin(2A+π/4)+1/2
π/2