integrate (m*g - m*g/l * x) dx from 0 to l