If y+Cosθ=Sinθ has a real solution then
−2≤y≤2
y>2
y≤−2
y≤1
y=sinθ−cosθ it has solution if |c|≤a2+b2⇒−2≤y≤2