Home » Blog » Consider the continuity of x(-1)^[1/x]

Consider the continuity of x(-1)^[1/x]

Define:

    \[ f(x) = x(-1)^{\left \lfloor \frac{1}{x} \right \rfloor} \qquad \text{for } x \neq 0, \]

where \lfloor \ \rfloor denotes the greatest integer function, or floor function. Sketch the graph of f(x) for -2 \leq x \leq -\frac{1}{5} and \frac{1}{5} \leq x \leq 2. Evaluate

    \[ \lim_{x \to 0^+} f(x) \qquad \text{and} \qquad \lim_{x \to 0^-} f(x). \]

Is it possible to define f(0) in a way that makes f(x) continuous at 0.


First, we sketch the graph of f on the requested intervals.

Rendered by QuickLaTeX.com

As x \to 0^+, f(x) \to 0.
As x \to 0^-, f(x) \to 0.

If we define f(0) = 0 then f is continuous at 0.

Point out an error, ask a question, offer an alternative solution (to use Latex type [latexpage] at the top of your comment):