If D=1cosθ1−sinθ1−cosθ−1sinθ1 then D lies in the interval
[0, 4]
[2, 4]
[2−2,2+2]
[-2, 2]
Expanding D, we get
D=1+sinθcosθ−cosθ(−sinθ−cosθ)+−sin2θ+1=2+sin2θ+cos2θ=2+2cos(2θ−π/4)
As −1≤cos(2θ−π/4)≤1,2−2≤D≤2+2