Given that sin(2θ) = - 4/5, the double angle formula for sine is sin(2θ) = 2 sin(θ) cos(θ),
and the Pythagorean identity for sine and cosine is sin2(θ) + cos2(θ) = 1, we have the following:
P2 = [ sin(θ) - cos(θ) ]2 = sin2(θ) - 2 sin(θ) cos(θ) + cos2(θ) = [ sin2(θ) + cos2(θ) ] - [ 2 sin(θ) cos(θ) ],
so substituting the given information in, we get the following:
P2 = 1 - (- 4/5) = 5/5 + 4/5 = 9/5, so P = +- √(P2) = +- √(9/5) = +- 3 / √(5),
but for 3π/4 < θ < π, we have that sin(θ) is > 0 and cos(θ) < 0, so P = sin(θ) - cos(θ)
is definitely > 0, so we finally have that P = + 3 / √(5).