Calculate work done by variable force (#582)

Calculate work done by variable force (#582)

Use W=∫abF(x) dxW = \int_a^b F(x) \, dx.