\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
The random variable \(X\) has the density \(f(x) = \cos(x)\), on the interval \([0, \frac{\pi}{2}]\).
Find \(P(0 \leq X \leq \frac{\pi}{4})\).

Capture an image of your work. AI teacher feedback takes approximately 10 seconds.