Doing math (integration) with arduino

The analog integrator is drifting.

Note that digital integrators will also drift if the input is noisy or derived from an A/D converter as these are inherently noisy. In theory the noise should cancel but it never seems to do in practice.