Use the sum/difference identities for
sine
and plug in the values for
sin p/4
, etc.