A force $F$ acts along the $x$-axis on an object. The force varies with position $x$ according to $F = (6.0\ \mathrm{N\,m^{-1}})\,x$ for $0 \le x \le 4.0\ \mathrm{m}$. Calculate the work done by this force as the object moves from $x = 0$ to $x = 4.0\ \mathrm{m}$.
Worked solution
For a variable force along the direction of motion, $$W = \int_{x_1}^{x_2} F\,dx.$$ Here $F = kx$ with $k = 6.0\ \mathrm{N\,m^{-1}}$, so $$W = \int_0^{4.0} 6.0\,x\,dx = 6.0 \left[\frac{x^2}{2}\right]_0^{4.0} = 6.0 \times \frac{(4.0)^2}{2} = 6.0 \times 8.0 = 48\ \mathrm{J}.$$ The work done is $48\ \mathrm{J}$.