Integration Of A Piecewise Function