Re: math (piece-wise function)
I think you mean \(\displaystyle f(x) = \left\{ \begin{array}{l} 3,\,\,x \le 3 \\ 6,\,\,x > 3 \\ \end{array} \right.\)
Then \(\displaystyle \int\limits_0^6 {f(x)} = \int\limits_0^3 {f(x)} + \int\limits_3^6 {f(x)} = \int\limits_0^3 {3dx} + \int\limits_3^6 {6dx}\).