The error is given by the exact change in volume divided by the volume.

This, in general, is hard to calculate so we approximate it with

Now if we take the derivative using the product rule we get

plugging this into the above gives

Since the 5% can be positive or negative we get that the approximate error is