We are given the equation: \[ \cos x - \sin x = 0. \] This can be rewritten as: \[ \cos x = \sin x. \] Now, divide both sides of the equation by \( \cos x \) (assuming \( \cos x \neq 0 \)): \[ \frac{\sin x}{\cos x} = 1. \] The left-hand side of this equation is \( \tan x \), so we have: \[ \tan x = 1. \] The general solution to \( \tan x = 1 \) is: \[ x = \frac{\pi}{4} + n\pi, \quad n \in \mathbb{Z}. \] We are given that \( 0 \leq x \leq \pi \), so we need to find the values of \( x \) within this interval. From the general solution, we get: \[ x = \frac{\pi}{4} \quad \text{(since \( n = 0 \))}. \]
Thus, the only value of \( x \) in the interval \( 0 \leq x \leq \pi \) that satisfies \( \cos x = \sin x \) is \( x = \frac{\pi}{4} \).
Thus, the correct answer is \( \boxed{\frac{\pi}{4}} \), corresponding to option (C).
If $ X = A \times B $, $ A = \begin{bmatrix} 1 & 2 \\-1 & 1 \end{bmatrix} $, $ B = \begin{bmatrix} 3 & 6 \\5 & 7 \end{bmatrix} $, find $ x_1 + x_2 $.