where ω is a constant. The work done by the force from x=0 to x=2 will be