The expressions given above apply only when the rate of change is constant or when only the average (mean) rate of change is required. If the velocity or positions change non-linearly over time, such as in the example shown in the figure, then differentiation provides the correct solution. Differentiation reduces the time-spans used above to be extremely small (infinitesimal) and gives a velocity or acceleration at each point on the graph rather than between a start and end point. The derivative forms of the above equations are
Since acceleration differentiates the expression involving position, it can be rewritten as a second derivative with respect to time:
Since, for the purposes of mechanics such as this, integration is the opposite of differentiation, it is also possible to express position as a function of velocity and velocity as a function of acceleration. The process of determining the area under the curve, as described above, can give the displacement and change in velocity over particular time intervals by using definite integrals: