Worked example: motion problems (with definite integrals)