  Generalised persistence module theory is the study of tame functors $M \colon
\mathcal{P} \rightarrow \mathcal{A}$ from an arbitrary poset $\mathcal{P}$, or
more generally an arbitrary small category, to some abelian target category
$\mathcal{A}$. In other words, a persistence module is simply a representation
of the source category in $\mathcal{A}$. Unsurprisingly, it turns out that when
the source category is more general than a linear order, then its
representation type is generally wild. In this paper we develop a new set of
ideas for calculus type analysis of persistence modules. As a first instance we
define the gradient $\nabla[M]$ as a homomorphism between appropriate
Grothendieck groups of isomorphism classes of modules. We then examine the
implications of a vanishing gradient and find a sufficient condition on a
module that guarantees vanishing of its gradient. We introduce the notions of
left and right divergence via Kan extensions. We define two bilinear pairings
on modules and study their properties, specifically with respect to adjointness
relations between the gradient and the left and right divergence morphisms.
With gradient and divergence in place we define the left and right Laplacians
$\Delta^0[M]$ and $\Delta_0[M]$ of a module $M$. Finally, we demonstrate how
our calculus framework can enhance the analysis of two well-known persistence
modules: the so called commutative ladders, and filtered hierarchical
clustering modules arising from random point processes.
