Let \(f\) be the probability density function for a continuous random variable \(X\), where
\begin{align*}
f(x)=\left\{\begin{array}{cl}
k\, \sin (x) & 0 \leq x<\dfrac{\pi}{4} \\
k\, \cos (x) & \dfrac{\pi}{4} \leq x \leq \dfrac{\pi}{2} \\
0 & \text {otherwise }
\end{array}\right.
\end{align*}
and \(k\) is a positive real number.
Determine the exact value of \(k\), expressing your answer in the form \(a+b\sqrt{2}\), where \(a, b \in R.\) (3 marks)
--- 8 WORK AREA LINES (style=lined) ---