I got confused with trigonometry.I think that my way which I tried to solve is ok because I don't understand what I just did wrong.
$\sin x - \cos x = 1$
$\sin x - 1 = \cos x$
$\sin x - 1 = \sqrt{1 - \sin^2(x)} \rightarrow$ Now I think that I can square both sides, but before that I find definitions for $x$ : $f(x) = g(x); g(x) \geq 0$ so $'f(x)'$ also must be greater or equal $0$.
f(x)>=0 ==> [sinx - 1 >= 0]
[sinx >= 1] ==> x=90°
$[1 - \sin^2(x) \geq 0]$
$[\sin^2(x) \leq 1]$
$[\sin^2(x) - 1 \leq 0]$
$[(\sin x - 1)(\sin x + 1) \leq 0]$
$(\sin x - 1 \leq 0) \Rightarrow **x=90°** x \in [0°,180°]$
$(\sin x + 1 \leq 0) ==> **x=270°** x \in [180°,360°]$
https://i.imgur.com/wBHZ2MC.png
So what I have done, it just bring me confusion...
Help me guys with this trigonometry..