Find the value of k for which (cosx+sinx)2+ksinxcosx−1=0 is an identity.
The value of k, for which (cos x+sin x)2+k sin x cos x−1=0 is an identity, is