Locally analytic not implies globally analytic

From Calculus

Statement

It is possible to have a function defined on all of such that is a locally analytic function everywhere on but is not a globally analytic function.

Proof

Consider the function:

This is locally analytic everywhere, but not globally analytic. In fact, the radius of convergence of its power series at any point is .