Tom K. answered 07/02/21
Knowledgeable and Friendly Math and Statistics Tutor
2 sin A cos B = sin(A + B) + sin(A - B) (it is easier to prove this going right to left, as you use the sin addition formula, or look it up.
I am assuming that x - y and x + y are in numerators.
Thus, 2 sin (𝜋/4 + (𝑥−𝑦)/2) cos (𝜋/4 + (𝑥+𝑦)/2) = (substituting A with the first term and B with the second)
sin(𝜋/4 + (𝑥−𝑦)/2 + 𝜋/4 + (𝑥+𝑦)/2) + sin(𝜋/4 + (𝑥−𝑦)/2 - (𝜋/4 + (𝑥+𝑦)/2)) =
sin(𝜋/2 + x) + sin(-y) =
sin 𝜋/2 cos x + cos 𝜋/2 sin x - sin y =
1 cos x + 0 sin x - sin y =
cos x - sin y