Yes, it is because subs does not work on Integral. Doing nn.subs(xi, 0) is equivalent to separating the terms independent on xi from those which are dependent on xi, when nn is linear in xi.