The value of k, for which (cos x+sin x)2+k sin x cos x−1=0 is an identity, is
-1
-2
0
1
Given, (cos x+sin x)2+k sin x cos x−1=0, ∀ x⇒ cos2 x+sin2 x+2 cos x sin x+k sin x cos x−1=0, ∀ x⇒ (k+2)cos x sin x =0, ∀ x ⇒k+2=0⇒k=−2