x+y+z=π2 x=π2−(y+z)≤π2−2×π12=π3 ⇒x≤π3
Hence, the minimum value of p is 12cos2π3=18, which is obtained when x=π3 and sin(y−z)=0
i.e., p is minimum when x=π3 and y=z=π12 as x+y+z=π2
On the other hand, we also have p=12cosz[sin(x+y)−sin(x−y)] ⇒p≤12coszsin(x+y)[∵sin(x−y)≥0] ⇒p≤12cos2z ⇒p≤14(1+cos2z) ⇒p≤14(1+cosπ6)=2+√38
This maximum value is obtained whenx=y=5π24 and z=π12