∫ 0 π f ( x ) d x where f ( x ) = { 1 − 1 ≤ x < 0 1 − x 2 otherwise {\displaystyle \int \limits _{0}^{\pi }f(x)dx{\text{where}}\,f(x)={\begin{cases}1&-1\leq x<0\\1-x^{2}&{\text{otherwise}}\end{cases}}}