Stability of invariant manifolds in one and two dimensions