$\sin x + \cos x = \min\{1, k^2-4k+6, k \in \mathbb{R}\}$
I assume that the question looks for the minimum of the two.
Thus, $\sin x + \cos x = \min(1,2)= 1$
$\implies \sin\Big(\dfrac x 2 \Big)\cos\Big(\dfrac x 2\Big)= \sin^2 \Big(\dfrac x2\Big) $. On solving we get, $x = 2n\pi$ or $x= 2n\pi + \dfrac\pi2$ , $n \in \mathbb{I}$.
However, answer given is $x = n\pi + (-1)^n\dfrac \pi 4 - \dfrac \pi 4$.
Where have I gone wrong?