how are speed and acceleration related