∫[0,π/2]|sinx-1/2|dx
=∫[0,π/6](1/2-sinx)dx + ∫[π/6,π/2](sinx-1/2)dx