a: Given an integral $\int_{0}^{\pi/2}|\sin{x}-c|dx$. I found the result as $-1 +2 c\arcsin(c)+ 2\cos(\arcsin(c)) - \frac{c\pi}{2}$. Which is right but the second part if that :
b: The median of $\sin{x}$ over the interval $[0, \pi/2]$ is the value of $c\in \Bbb{R}$ for which the integral from a is as small as possible. Calculate the median. Can someone give a hint how can i calculate that median?i have no idea where to start :(