[Math] Why is $y=1/x$ a continuous function but not $y=(1/x)^2$

calculuscontinuity

I was reading Thomas' calculus which said that $y=1/x$ is a continuous function because it was continuous at every point of its domain(it not being defined at $x=0$), but then goes on to show that $1/x^2$ is discontinuous saying it is an infinity discontinuity as $x$ approaches $0$. Why doesn't the same logic apply to $y=1/x$?

Best Answer

The notion of continuity at $x_0$ only applies to points of the domain.
By definition, a function is said continuous if it is continuous at each point of its domain.

The notion of discontinuity does not apply only to points of the domain but also to limit point of the domain that do not belong to the domain. So a continuous function can have discontinuities, but not in points of the domain.

As an example, the function $$ f(x)=\begin{cases} -1, & x<0 \\ +1, & x\geq0 \end{cases} $$ is not continuous because the limit in $0$ does not exist.
The function $$ f(x)=\begin{cases} -1, & x<0 \\ +1, & x>0 \end{cases} $$ is continuous, because it is continuous in each point of its domain (note that in this case $0$ does not belong to the domain). This function has however a discontinuity in $0$.