It is well-known that for two functions $p$ and $q$, $$[p(x)q(x)]' = p'(x)q(x)+p(x)q'(x)$$
But if one uses numerical approximation, say the centred difference method
$$f'(x) = \frac{f(x+h)-f(x-h)}{2h}+O(h^2)$$
then the LHS and RHS will give different results. In particular, the LHS will give error $O(h^2)$ but RHS will give error $O(p+q)O(h^2)$. I'm not sure how to treat $O(p+q)O(h^2)$. As far as I understand $$O(p+q)O(h^2)\ne O(h^2)$$
Is my train of thought correct? Would appreciate a bit of an insight.
The small parameter is $h$; $p$ and $q$ are finite. Hence, the term $p\,O(h^2) = O(h^2)$. Idem for $q$.