The equation SiNx + cosx = a for X is known (1) If the equation has a real solution, find the value range of real number a (2) If the equation has two different real number solutions when x ∈ [0, π], find the value range of real number a and the sum of two real number solutions [- radical 2, + radical 2]; π / 2 The second problem I did was π Please write the detailed process and thinking

The equation SiNx + cosx = a for X is known (1) If the equation has a real solution, find the value range of real number a (2) If the equation has two different real number solutions when x ∈ [0, π], find the value range of real number a and the sum of two real number solutions [- radical 2, + radical 2]; π / 2 The second problem I did was π Please write the detailed process and thinking

Find the focus of F (x) = SiNx + cosx = (radical 2) sin (x + π / 4) and G (x) = a
Draw an image and find that the axis of symmetry is π / 4. In [0, π], two points with equal values are more symmetrical to this line, and the sum is 2 * (π / 4) = π / 2
Your π is = (x1 + π / 4) + (x2 + π / 4)