Calculus I · Limits and Continuity · lesson

Limits With Absolute Values and Piecewise Functions

Concept

Learning objectives

Rewrite absolute values on each side of a target and evaluate one-sided limits before deciding whether a two-sided limit exists.

Absolute Values and Piecewise Rules

The absolute value is piecewise:

u={u,u0,u,u<0.|u|= \begin{cases} u,&u\ge0,\\ -u,&u<0. \end{cases}

The sign of the inside expression determines which rule applies.

Guided walkthrough

x/x|x|/x

Evaluate

limx0xx.\lim_{x\to0}\frac{|x|}{x}.
Show worked solution

For x>0x>0, x=x|x|=x, so

xx=xx=1.\frac{|x|}{x}=\frac{x}{x}=1.

Therefore,

limx0+xx=1.\lim_{x\to0^+}\frac{|x|}{x}=1.

For x<0x<0, x=x|x|=-x, so

xx=xx=1.\frac{|x|}{x}=\frac{-x}{x}=-1.

Therefore,

limx0xx=1.\lim_{x\to0^-}\frac{|x|}{x}=-1.

The sides disagree, so

limx0xx=DNE.\boxed{\lim_{x\to0}\frac{|x|}{x}=\mathrm{DNE}}.
Worked example

A shifted absolute value

Evaluate

limx3x3x3.\lim_{x\to3}\frac{|x-3|}{x-3}.
Show worked solution

When x>3x>3, the inside x3x-3 is positive, so

x3=x3|x-3|=x-3

and the quotient equals 11.

When x<3x<3, the inside x3x-3 is negative, so

x3=(x3)|x-3|=-(x-3)

and the quotient equals 1-1.

Thus,

limx3x3x3=1,\lim_{x\to3^-}\frac{|x-3|}{x-3}=-1,limx3+x3x3=1.\lim_{x\to3^+}\frac{|x-3|}{x-3}=1.

Therefore the two-sided limit does not exist.

Worked example

An absolute value whose limit does exist

Evaluate

limx2x2x2.\lim_{x\to2}\frac{|x-2|}{\sqrt{|x-2|}}.
Show worked solution

For x2x\ne2, x2>0|x-2|>0, and

x2x2=x2.\frac{|x-2|}{\sqrt{|x-2|}}=\sqrt{|x-2|}.

As x2x\to2, the distance x20|x-2|\to0. Therefore,

x20,\sqrt{|x-2|}\to0,

so

0.\boxed{0}.

Absolute value does not automatically cause a limit to fail. It causes one-sided analysis when the formula changes sign or form across the target.

After the explanation

Use the section idea

Reading lens

What did direct substitution reveal, and which algebraic move removes the obstacle without changing nearby behavior?

Mental model

Substitution is a diagnostic first move: a real number usually finishes the problem, while an indeterminate form asks for a structural rewrite.

Decision

Match the obstacle to the algebra—factor polynomial zeros, rationalize radicals, combine complex fractions, and split absolute values into one-sided cases.

Common trap

Zero over zero is not an answer, and cancellation is legal only for factors after the expression has been rewritten as a product.

Check yourself

You are ready to move on when you can justify why each rewrite preserves nearby values even if the original expression is undefined at the target.

Source & rights

Original instruction with traceable references.

The exposition is original. No Active Calculus exercise is reproduced verbatim. Public-domain examples were modernized and recomposed when used as inspiration.

The verified handoff declares original composition and requires owner provenance review. BetterGrades-original material remains separate from public-domain references; no source textbook PDF is published here.

Vocab
Limit
Math glossaryLimit
limxaf(x)=L\lim_{x\to a}f(x)=L

The value a function approaches as its input approaches a target.

Learn more
Function
Math glossaryFunction
y=f(x)y=f(x)

A rule or relation assigning exactly one output to each allowed input.

Learn more
Continuity
Math glossaryContinuity
limxaf(x)=f(a)\lim_{x\to a}f(x)=f(a)

At a point, the function value exists and equals the limit there.

Learn more
Domain
Math glossaryDomain
domf\operatorname{dom}f

The set of permitted input values.

Learn more
Math glossary