We describe the pushforward of a matrix factorisation along a ring morphism
in terms of an idempotent defined using relative Atiyah classes, and use this
construction to study the convolution of kernels defining integral functors
between categories of matrix factorisations. We give an elementary proof of a
formula for the Chern character of the convolution generalising the
Hirzebruch-Riemann-Roch formula of Polishchuk and Vaintrob.
We study Serre duality in the singularity category of an isolated Gorenstein
singularity and find an explicit formula for the duality pairing in terms of
generalised fractions and the Grothendieck residue symbol. For hypersurfaces we
recover the residue formula of the string theorists Kapustin and Li. These
formulas are obtained from an explicit construction of complete injective
resolutions of maximal Cohen-Macaulay modules.