Quarry School

College Algebra / Domain and range

Domain and range

Subject: Mathematics

All 10 lessons, in order.

The unit at a glance

  1. Domain and range: what can go in and what can come out

    Picture a vending machine with a tray for the choices it accepts and a tray for the things it delivers.

  2. Find the domain by checking the arithmetic

    Think of a recipe that tells you what to do with the number you choose.

  3. Factor a denominator and keep every original exclusion

    Picture taking a tiled rectangle apart so you can see the lengths that made its area.

  4. Write the same set three ways

    Think of directions for a stretch of road.

  5. Read domain and range as shadows of a graph

    Imagine shining a light straight down onto a graph.

  6. The first five toolkit functions

    Think of a toolkit function as a familiar tool in your drawer.

  7. Reciprocals and roots complete the toolkit

    Picture a recipe card with two kinds of jobs.

  8. Use toolkit behavior to find a changed function's range

    Imagine relabeling the buttons on a familiar machine and then changing what comes out.

  9. Write and evaluate a piecewise function

    Picture a parking sign with different prices for different lengths of stay.

  10. Graph each piece only where its condition allows it

    Think of laying several sections of road on one map.

Rules (10)
Recipes (10)
  • Domain and range: what can go in and what can come out
    1. 1. Decide what the input represents and what the output represents.
    2. 2. For listed ordered pairs or a table, collect the inputs for the domain and the outputs for the range.
    3. 3. Remove repeated entries because sets record membership, not frequency.
    4. 4. If a context is given, keep only physically meaningful inputs. Do not fill the spaces between separate listed values.
  • Find the domain by checking the arithmetic
    1. 1. Start with all real inputs unless a domain or context is supplied.
    2. 2. Find every denominator. Set the whole denominator equal to zero to locate exactly the inputs where division would fail. Solve that equation, substitute each answer into the original denominator to confirm zero, and exclude those inputs.
    3. 3. Find every even-root radicand, require it to be ≥ 0, and solve the inequality.
    4. 4. If a root is part of a denominator, check the whole denominator as well as the radicand.
    5. 5. Keep only inputs that meet every condition. Write intervals from smaller to larger endpoints.
    6. 6. Substitute each boundary or excluded value to see which operation permits or rejects it.
  • Factor a denominator and keep every original exclusion
    1. 1. Copy the original denominator before changing the fraction. Its zero inputs are the values you must exclude.
    2. 2. For x2 + Bx + C, identify B and C, including their signs. B is the coefficient of x, meaning the number multiplying x; C is the constant term. The constant term is the fixed number added or subtracted without being multiplied by x; here it is C.
    3. 3. Generate the whole-number factor-pair sizes of the size of C. Try positive whole-number candidates in order and divide the size of C by each one. Keep a pair only when the quotient is a whole number. Stop when the candidate is larger than its quotient, because further pairs would repeat earlier pairs in reverse. Choose signs so the product is C, then find the pair whose sum is B. If C = 0, factor out x directly instead of making a nonzero-constant pair list.
    4. 4. Write (x + p)(x + q) and multiply it out to check both middle and constant terms.
    5. 5. Set each denominator factor equal to zero to find forbidden inputs. Solve each smaller equation, then substitute each result into the original denominator to confirm that it produces zero.
    6. 6. If a common factor cancels, write the simplified expression together with every original exclusion. Cancel only at inputs where the common factor is nonzero.
    7. 7. Keep any other root or context restrictions as well, then write the remaining input intervals.
  • Write the same set three ways
    1. 1. Identify the shaded or allowed portion of the number line.
    2. 2. Use the closed dot / open dot convention: a filled dot is included and a hollow dot is excluded.
    3. 3. State comparisons with <, >, ≤ or ≥ for inequality notation.
    4. 4. Put the condition after the bar in {x | condition} for set-builder notation.
    5. 5. Write the lower limit first and the upper limit second in interval notation.
    6. 6. For separate pieces, join conditions with or and intervals with ∪. Keep every gap that is actually excluded.
  • Read domain and range as shadows of a graph
    1. 1. Identify the x-axis as the input axis and the y-axis as the output axis; read their units.
    2. 2. Sweep left to right and collect all input positions covered by included graph points.
    3. 3. Sweep bottom to top and collect all reached output heights.
    4. 4. Check boundary dots. A hollow point excludes only that point, so look for other points sharing its coordinate.
    5. 5. Follow arrows beyond the visible window, and preserve genuine gaps with unions.
    6. 6. Write each interval from smaller to larger and label estimates from a data graph as approximate.
  • The first five toolkit functions
    1. 1. Name the toolkit formula and say what its calculation does.
    2. 2. Check whether that calculation permits every real input.
    3. 3. Identify outputs the calculation cannot produce, including any sign restriction.
    4. 4. Show that every output in the proposed range has an input that produces it.
    5. 5. Write domain and range separately, and use the graph as a memory cue.
  • Reciprocals and roots complete the toolkit
    1. 1. Identify whether you are dividing, squaring a denominator, taking a square root, or taking a cube root.
    2. 2. Find the domain by checking denominators and the number under an even root.
    3. 3. Determine the sign and possible zero value of the output.
    4. 4. Supply an input for every proposed allowed output by undoing the calculation.
    5. 5. Write domain and range on separate lines and compare the formula with its toolkit shape.
  • Use toolkit behavior to find a changed function's range
    1. 1. Identify the toolkit calculation inside the formula and teach yourself what number is actually fed into it.
    2. 2. Apply all denominator and even-root restrictions to find the domain.
    3. 3. Track each operation on the output, including a negative multiplier or an added constant.
    4. 4. Prove the full range by constructing an input for any allowed output, or by using a continuous graph with heights on both sides of every target.
    5. 5. Confirm a few values with substitution or a picture, keeping the proof separate from the sample check.
  • Write and evaluate a piecewise function
    1. 1. Identify what the input measures and where the rule changes.
    2. 2. Write a formula for each region and state its condition with the boundary ownership explicit.
    3. 3. Include any context limits, such as positive whole-number people counts.
    4. 4. To evaluate, compare the input with all conditions before using a formula.
    5. 5. Substitute into the selected formula and follow the order of operations.
    6. 6. At a boundary, check which condition includes equality. Do not add the outputs of different pieces.
  • Graph each piece only where its condition allows it
    1. 1. Mark every boundary input on one common x-axis.
    2. 2. Identify each formula's known shape and calculate at least two useful points, or include a turning point for a curve.
    3. 3. Keep only the portion satisfying that branch's condition.
    4. 4. Calculate the boundary height and make its dot open or closed according to that branch's inequality.
    5. 5. Combine all allowed portions without inventing connecting segments across jumps or gaps.
    6. 6. Check the vertical line test at every boundary, then collect the domain and range shadows.
Traps (10)

Lesson 1 of 10

Domain and range: what can go in and what can come out

Subject: MathematicsLeans on: Ordered pairsLeans on: Squaring a negativeOpen this lesson
Leans on 0Comes back in 4

1 In plain words

Picture a vending machine with a tray for the choices it accepts and a tray for the things it delivers. You choose something that can go in. The machine follows its rule and gives you one result.

A function works the same way. Its domain is the whole collection of allowed inputs. Its range is the whole collection of outputs it actually makes. You keep these collections separate because choosing a button and receiving a snack are different jobs.

You may have several buttons that deliver the same snack. List that snack once in the output collection. A choice the machine cannot accept belongs in neither its input tray nor its domain.

2 Picture it

allowed choiceone ruleinputoutputactual result
allowed choice goes in, the rule is one rule, and actual result comes out.

Reminder

Reminder: Ordered pairs, Squaring a negative
  • Ordered pairs. The input comes first: (4, 11) records input 4 and output 11.
  • Squaring a negative. (−2)2 = (−2) × (−2) = 4, so negative and positive inputs may share an output.

3 Why

An ordered pair records an input first and its output second. Collecting the first coordinates tells you exactly which choices were used, so it gives the domain. Collecting the second coordinates gives the results, so it gives the range. These are sets, meaning collections in which listing an element twice adds nothing. A formula may accept a number arithmetically while a real situation rejects it. You can square a negative ticket count, but a negative number of tickets does not describe a purchase.

4 The rule

Domain = all permitted inputs.

Range = all outputs actually reached by those inputs; a function assigns one output to each input.

The same idea, five ways

Say it

Say domain as allowed inputs and range as reached outputs.

Write it

The domain collects every permitted input; the range collects every output actually produced.

In math
  • For {(−4, 6), (0, 6), (3, −2), (5, 9)}:
  • Domain = {−4, 0, 3, 5}
  • Range = {−2, 6, 9}
  • Graph words: input positions and output heights
Like

The accepted choices and delivered snacks of a vending machine.

See it
allowed choiceone ruleinputoutputactual result
The same picture again: allowed choice goes in, the rule is one rule, and actual result comes out.

The same idea, other ways

As two trays

The domain tray holds every choice the machine accepts. The range tray holds every result it can deliver. A result must actually come from an allowed choice.

-40356-29function
-4 → 6, 0 → 6, 3 → -2 and 5 → 9: a function.
With small numbers

For x2 with allowed inputs {−2, 0, 2}, the domain is {−2, 0, 2} and the range is {0, 4}. Both −2 and 2 produce 4, and sets list 4 once.

As a question

Ask, What may I put in? for the domain. Ask, What can actually come out? for the range. Do not answer the second question by listing the inputs again.

In a real situation

An independent variable is the input you select or record. A dependent variable is the resulting output. A movie title can be the input and its earnings the output, so the two sets need not even contain the same kind of object.

RecordInput, or independent variableOutput, or dependent variable
Movie earningsMovie titleGross receipts in dollars
Ticket sales by yearYear in the recorded dataTickets sold that year
A formula y = x2Chosen real number xCalculated number y

Part 1: Know cold

Keep a few decisions ready without a reference. These decisions tell you which arithmetic checks to make and which boundary symbols to use. The reminders below are memory devices, not substitutes for understanding the reasons you will learn.

  • Domain is input; range is output. Memory device: in goes with input and domain, out with output and range. (4, 11) means input 4 produces output 11.
  • A denominator cannot equal zero. Memory device: zero below means no go. 50 cannot produce a quotient because no number times 0 equals 5. Developed in Find the domain by checking the arithmetic.
  • An even-root radicand must be nonnegative. Memory device: even root, zero or more. 0 = 0 because 02 = 0. Developed in Find the domain by checking the arithmetic.
  • A bracket includes an endpoint; a parenthesis leaves it out. Memory device: square brackets hold the endpoint. [2, 5) includes 2 and excludes 5. Developed in Write the same set three ways.
  • Negative multiplication or division reverses an inequality. Memory device: a negative turns the number line around. −2x < 10 becomes x > −5 because division by −2 reverses the order. Taught in the inequality refresher and used in Find the domain by checking the arithmetic.
  • Choose a piecewise condition before its formula. Memory device: choose the lane, then calculate. For a rule giving 7 if x ≤ 2 and 9 if x > 2, input 2 gives 7 because the first condition includes equality. Developed in Write and evaluate a piecewise function.

Domain: what goes in

Range: what comes out

Choose the condition before calculating

Reminder
Reminder: Ordered pairs, Squaring a negative
  • Ordered pairs. The input comes first: (4, 11) records input 4 and output 11.
  • Squaring a negative. (−2)2 = (−2) × (−2) = 4, so negative and positive inputs may share an output.
The same idea, five ways
Say it

Remember the decisions before calculating.

Write it

Domain concerns inputs; range concerns outputs.

In math
  • (4, 11): input 4, output 11
  • Denominator ≠ 0
  • Even-root radicand ≥ 0
  • [2, 5) = {x | 2 ≤ x < 5}
Like

Keep a few road signs recognizable so you can make the next decision quickly.

See it

Domain: what goes in

Range: what comes out

Choose the condition before calculating

Worked example

Use the input-output reminder

A function takes 4 as input and produces 11. Which collection contains 4, and which contains 11?

Show the steps and the answer
4the given ruleinputoutput11
Input 4 goes into the function; output 11 comes out.
  1. We need to identify which collection contains the input 4 and which contains the output 11.The question asks us to distinguish the role of an input from the role of its output.
  2. Place 4 in the domain.4 was the allowed input.
  3. Place 11 in the range.11 was an output the function produced.
Answer
  • 4 belongs to the domain.
  • 11 belongs to the range.
Double-check The record (4, 11) puts the domain member first and the range member second.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Use the same comparison after negative division: −2x < 10 becomes x < −5.
Negative division reverses order; x = 0 satisfies the original but not the proposed wrong result.
✓ Instead: x>−5.
✗ Not this: Treat every root equal to zero as undefined.
Zero is a permitted root output; division by that output would be a separate operation.
✓ Instead: 0 = 0, but 50 is undefined.
✗ Not this: Keep the endpoint 5 in [2, 5).
The right parenthesis records exclusion.
✓ Instead: 2 ≤ x < 5.
✗ Not this: Choose the condition x > 2 when the input is 2.
Strictly greater excludes equality.
✓ Instead: Use the condition x ≤ 2, giving the assigned output 7 in the tiny example.
Tips and tricks
  • Use the reminders to choose a check, then use the developed lesson for the reason and full worked method.

Part 2: Understand, then rebuild it when needed

Do not memorize a separate answer for every shifted formula. Learn which operations can fail and how a graph covers its axes. Then rebuild a domain or range from the actual formula. A remembered answer from a different function can move the boundary to the wrong place.

  • Rebuild a denominator exclusion by setting the denominator equal to zero.
  • Rebuild an even-root restriction by solving a nonnegative-radicand inequality.
  • Rebuild the toolkit ranges from distance, squaring, cubing and division.
  • Rebuild a changed function's range by asking which outputs can be produced.
  • Rebuild a piecewise graph one interval at a time. Read its shadows after all pieces are present.
−2squareinputoutput4
Squaring the input explains the output without a memorized table.
Reminder
Reminder: Ordered pairs, Squaring a negative
  • Ordered pairs. The input comes first: (4, 11) records input 4 and output 11.
  • Squaring a negative. (−2)2 = (−2) × (−2) = 4, so negative and positive inputs may share an output.
The same idea, five ways
Say it

Rebuild the result from the formula’s operations.

Write it

A changed formula needs its own arithmetic checks.

In math
  • x + 4 ≥ 0
  • x≥−4
  • {x|x≥−4}
  • [−4,∞)
Like

Follow the current recipe rather than copying the answer from a different recipe.

See it
−4add 4principalsquare rootfirstsecond00
Rebuild the boundary by checking the inside: input −4 makes x + 4 equal zero, and its principal root is zero.

Worked example

Rebuild rather than guess

For the allowed input −2, what does the rule square the input produce?

Show the steps and the answer
−2multiply (−2) × (−2)inputoutput4
The squared input produces 4 because two negative factors give a positive product.
  1. We need the output produced by squaring the allowed input −2.The question gives the input and the rule, so our task is to apply the rule to that input.
  2. Multiply −2 by itself: (−2)2=(−2)×(−2)=4.Squaring means multiplying the number by itself, and two negative factors give a positive product.
Answer
The output is 4.
Double-check The input 2 also gives 4, so the output does not reveal which sign went in.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Use an old function's remembered endpoint for a new formula.
The actual denominator or radicand may become zero at a different input.
✓ Instead: Rebuild the condition from the current expression.
Tips and tricks
  • Write the failing operation before trying to remember an answer.

Part 3: Put on the cheat sheet

Use a small practice reference for details that are quicker to reconstruct than to memorize. The exam is closed book, so the sheet helps you study rather than giving you permission to bring it. Practice explaining each entry and rebuilding an answer after you cover the sheet.

  • Notation key: < or > uses a parenthesis; ≤ or ≥ uses a bracket; infinity always uses a parenthesis.
  • Domain checklist: context, every denominator, every even-root radicand, then keep all restrictions at once.
  • Toolkit comparison table: formula, domain and range for the nine basic functions.
  • Piecewise checklist: boundaries, condition, formula, endpoint dots, domain union, then range union.
  • Range check: show why forbidden outputs fail and why every claimed output can occur.

Domain: check the arithmetic

Range: check the possible results

Endpoint: substitute it to decide

Reminder
Reminder: Ordered pairs, Squaring a negative
  • Ordered pairs. The input comes first: (4, 11) records input 4 and output 11.
  • Squaring a negative. (−2)2 = (−2) × (−2) = 4, so negative and positive inputs may share an output.
The same idea, five ways
Say it

Read the reference, then practice with it covered.

Write it

A study reference records conventions and methods you can rebuild for the exam.

In math
  • {2, 7}: two inputs
  • {5}: one output
  • (−∞, ∞): all real inputs
Like

A map legend reminds you what the signs mean while you practice reading a map.

See it

Domain: check the arithmetic

Range: check the possible results

Endpoint: substitute it to decide

Worked example

A one-line reference example

A rule accepts exactly the inputs 2 and 7 and produces 5 for each. Write its domain and range.

Show the steps and the answer
275function
Two allowed inputs share the single range member 5.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. List {2, 7} for the domain.The allowed inputs are given as two separate choices.
  3. List {5} for the range.Both choices produce the same output, so there is one range member.
Answer
  • Domain: {2, 7}.
  • Range: {5}.
Double-check There are two arrows going in and one distinct destination coming out; an interval [2, 7] would add choices the rule never offered.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Copy a range from the reference without identifying the function.
The reference explains basic behavior, while a changed formula may move or reverse output bounds.
✓ Instead: Use the checklist to rebuild the range of the given formula.
Tips and tricks
  • Cover the reference after one example and repeat the method in your own words.

5 How

  1. Decide what the input represents and what the output represents.
  2. For listed ordered pairs or a table, collect the inputs for the domain and the outputs for the range.
  3. Remove repeated entries because sets record membership, not frequency.
  4. If a context is given, keep only physically meaningful inputs. Do not fill the spaces between separate listed values.

Separate domain and range

1
Is the function supplied as pairs or a table?
YesCollect listed inputs and outputs without duplicates.
NoUse the formula or graph method taught next.
↓
2
Does a real context limit the inputs?
YesKeep meaningful choices, such as whole-number ticket counts.
NoKeep the domain specified by the mathematical description.
  1. Decide what the input represents and what the output represents.
  2. For listed ordered pairs or a table, collect the inputs for the domain and the outputs for the range.
  3. Remove repeated entries because sets record membership, not frequency.
  4. If a context is given, keep only physically meaningful inputs. Do not fill the spaces between separate listed values.

6 Worked example

Worked example

Separate the input and output trays

Find the domain and range of {(−4, 6), (0, 6), (3, −2), (5, 9)}.

Show the steps and the answer
-40356-29function
The same picture again: -4 → 6, 0 → 6, 3 → -2 and 5 → 9: a function.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Read the first coordinate of each ordered pair: −4, 0, 3, 5.An ordered pair writes the input before the output.
  3. Collect the inputs: {−4,0,3,5}.Only these four inputs are listed; numbers between them were not supplied.
  4. Read the second coordinates: 6, 6, −2, 9.The second coordinate tells what came out for that input.
  5. Collect the outputs without duplicates: {−2,6,9}.The two appearances of 6 refer to the same member of the range.
Answer
  • Domain: {−4, 0, 3, 5}.
  • Range: {−2, 6, 9}.
Double-check Draw four arrows. The arrows start at the four domain members and end at three different range members, with two arrows ending at 6.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The listed domain {−4, 0, 3, 5} is the interval [−4, 5].
An interval adds every intervening real number, but the listed function supplied only four inputs.
✓ Instead: Keep the finite domain {−4, 0, 3, 5}.
✗ Not this: Two different inputs produce 6, so this is not a function.
A function requires one output per input. It permits several inputs to share an output.
✓ Instead: The pair list is a function, and 6 appears once in its range.

Tips and tricks

  • Write input and output above the two collections before listing their members.
  • Memory device: in identifies domain and out identifies range. Several inputs may share one output.
  • For a head count, list whole-number choices instead of filling in fractional people.

7 The trap

Replacing a listed domain {−4, 0, 3, 5} with [−4, 5]. That interval would add every number between the endpoints. A finite list includes only its listed entries.

Lesson 2 of 10

Find the domain by checking the arithmetic

Subject: MathematicsLeans on: Solving a linear equationLeans on: Inequality reversalLeans on: Fraction arithmeticOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Think of a recipe that tells you what to do with the number you choose. Each instruction has to be possible. A fraction asks you to divide, so its bottom number cannot be zero. An even root asks which number has a certain even power, so the number inside cannot be negative when you work with real numbers. Your domain is the collection of inputs that pass every instruction. Start by considering the whole number line, then cross out the choices that break something. A choice that passes one instruction but breaks another still cannot go into this recipe.

2 Picture it

7
(−∞, 7] on a number line.

Reminder

Reminder: Solving a linear equation, Inequality reversal, Fraction arithmetic
  • Solving a linear equation. 2 − x = 0 becomes −x = −2, then x = 2. This finds the input to exclude.
  • Inequality reversal. −x ≥ −7 becomes x ≤ 7 because division by −1 reverses order.
  • Fraction arithmetic. 0−7 = 0 is defined, but 30 is undefined.

3 Why

Division undoes multiplication. To divide 1 by zero you would need a number whose product with zero is 1, and every such product is zero. Even powers fail in a different way: a real number squared, or raised to another positive even integer power, cannot be negative. Zero causes no trouble for a square root itself because 02 = 0. If that zero root becomes a denominator, division fails. These reasons tell you exactly where to use a nonstrict inequality and where to exclude an endpoint.

4 The rule

Every denominator must be nonzero; every even-root radicand must be ≥0.

Keep inputs satisfying all restrictions, plus any supplied domain or contextual conditions.

The same idea, five ways

Say it

Say an input belongs only when every arithmetic instruction works.

Write it

Remove inputs causing division by zero or an even root of a negative number.

In math
  • Denominator ≠ 0
  • Even-root radicand ≥ 0
  • For 7−x: x ≤ 7
  • {x | x ≤ 7}
  • (−∞,7]
  • Graph words: include 7 and shade to the left
Like

A recipe works only when every instruction can be carried out.

See it
7
The same picture again: (−∞, 7] on a number line.

The same idea, other ways

As a recipe inspection

Check every instruction before using an input. A fraction must divide by a nonzero number, and an even root must start from a nonnegative number. A successful input passes both checks when both appear.

With boundary numbers

7−x works at x = 7 because its inside is 0. It fails at x = 8 because its inside is −1. Substitution gives a concrete reason for the bracket at 7.

Why negative division flips

After 7 − x ≥ 0 becomes −x ≥ −7, division by −1 turns the number line around. The side that was greater becomes smaller, so x ≤ 7. Addition and positive division do not turn it around.

00272 < 7: 7 is further right−2−7times −1: −2 > −7, the order reversed
Reflection changes 2 < 7 into −2 > −7, which explains the inequality reversal.
As a checklist

For a polynomial, ordinary sums and products work for every real input. An odd root allows negative radicands, and absolute value measures a distance for any real input. Still inspect anything inside those expressions: ∛(1x) excludes zero because its interior divides by x.

Part 1: Expressions with no arithmetic restriction

A polynomial is made from finitely many additions, subtractions and products of constants and nonnegative whole-number powers of the input. These instructions accept any real number. Absolute value and an odd root also accept any real number supplied to them. An undefined expression inside one of them remains undefined.

  • Polynomial domain: (−∞, ∞), unless another domain or a context is specified.
  • Absolute value domain: (−∞, ∞) for |x| itself.
  • Odd root domain: (−∞, ∞) for x3 itself; (−2)3 = −8 explains a negative cube root.
  • A nonzero constant denominator imposes no restriction. Always inspect nested operations.
domainrange−22−22468
y=x2−1.
Reminder
Reminder: Solving a linear equation, Inequality reversal, Fraction arithmetic
  • Solving a linear equation. 2 − x = 0 becomes −x = −2, then x = 2. This finds the input to exclude.
  • Inequality reversal. −x ≥ −7 becomes x ≤ 7 because division by −1 reverses order.
  • Fraction arithmetic. 0−7 = 0 is defined, but 30 is undefined.
The same idea, five ways
Say it

Every real input works for the basic polynomial.

Write it

The polynomial x2 − 1 accepts every real input.

In math
  • x is real
  • {x | x is real}
  • (−∞,∞)
  • Graph words: the horizontal shadow has no finite end
Like

A copying or multiplying machine can process any real number handed to it.

See it
domainrange−22−22468
The same picture again: y = x2 − 1.

Worked example

A polynomial accepts every real input

OpenStax problem

Find the domain of f(x) = x2 − 1.

Show the steps and the answer
domainrange−22−22468
The same picture a third time: y = x2 − 1.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Identify the operations: square the input, then subtract 1.These are multiplication and subtraction, with no variable denominator or even root.
  3. Keep all real inputs.Both operations are defined for every real number.
Answer
Domain: (−∞, ∞).
Double-check For x = −2, 0 and 12, the outputs are 3, −1 and −34. Different input signs and a fraction all work.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The domain of ∛(1x) includes zero because odd roots accept negative numbers.
The inside division fails at zero before the cube root is taken.
✓ Instead: Its domain excludes zero: (−∞, 0) ∪ (0, ∞).
Tips and tricks
  • Inspect the inside operations even when the outside rule is an odd root or absolute value.

Part 2: A denominator excludes its zeros

The denominator is the number below the fraction bar. It tells you what to divide by. A negative denominator is allowed, and a zero numerator is allowed when the denominator is nonzero. Find the inputs that make the bottom zero and remove those inputs. Cancellation means dividing the numerator and denominator by the same nonzero factor. For x−6x−6, that gives 1 only when x − 6 is nonzero. At x = 6 the original formula is 00. Every proposed quotient multiplied by 0 gives 0, so division cannot choose a unique answer. Removing a factor from the written formula never adds that forbidden input back to the original domain.

  • Denominator check: set the denominator equal to zero, solve, then exclude the solutions.
  • Do not set the numerator equal to zero to find restrictions.
  • Keep an original denominator restriction even if later algebra cancels a factor.
2excluded 2(−∞, 2) ∪ (2, ∞)
(−∞, 2) and (2, ∞) on a number line, with a tick at 2.
Reminder
Reminder: Solving a linear equation, Inequality reversal, Fraction arithmetic
  • Solving a linear equation. 2 − x = 0 becomes −x = −2, then x = 2. This finds the input to exclude.
  • Inequality reversal. −x ≥ −7 becomes x ≤ 7 because division by −1 reverses order.
  • Fraction arithmetic. 0−7 = 0 is defined, but 30 is undefined.
The same idea, five ways
Say it

The bottom of a fraction must stay nonzero.

Write it

For the fraction with denominator 2 − x, the input 2 is excluded.

In math
  • 2−x≠0
  • x ≠ 2
  • x < 2 or x > 2
  • {x | x ≠ 2}
  • (−∞,2)∪(2,∞)
Like

Dividing an amount asks how much goes in each equal group.

See it
2excluded 2(−∞, 2) ∪ (2, ∞)
The same picture again: (−∞, 2) and (2, ∞) on a number line, with a tick at 2.

Worked example

A denominator

OpenStax problem

Find the domain of f(x) = x+12−x.

Show the steps and the answer
2(−∞, 2) ∪ (2, ∞)
(−∞, 2) and (2, ∞) on a number line.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Set 2−x=0.A denominator equal to zero makes division undefined.
  3. Subtract 2 from both sides: −x=−2.The same subtraction preserves the equality.
  4. Divide both sides by −1: x=2.This equation finds the input to exclude, not the input to keep.
  5. Keep every real number except 2.The numerator x + 1 is defined for all real inputs, and no other input makes the denominator zero.
  6. Write (−∞,2)∪(2,∞).Both intervals stop before the forbidden value, and together they include all other inputs.
Answer
Domain: (−∞, 2) ∪ (2, ∞).
Double-check At x = 1 the output is 21 = 2; at x = 3 it is 4−1 = −4. At x = 2 the numerator is 3 but the denominator is zero, so that input fails.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Remove an input whenever the numerator is zero.
A zero numerator over a nonzero denominator has the valid quotient zero.
✓ Instead: For x+2x−5, keep −2 because 0−7 = 0.
Tips and tricks
  • The bottom decides division's restriction; the top may legitimately equal zero.

Part 3: Even roots allow zero unless division forbids it

A square root asks for the nonnegative number that squares to its inside. Since a real square cannot be negative, a negative inside has no real answer. Zero does have an answer. Fourth roots and other even roots have the same restriction because an even number of negative factors also produces a nonnegative value.

  • Radicand means the expression inside a radical, or root symbol.
  • An even root requires radicand ≥ 0.
  • If the entire denominator is A, require A > 0.
  • If the denominator is something larger such as 1 + A, inspect that whole expression rather than automatically rejecting A = 0.
  • With roots in both numerator and denominator, inspect every root separately. The numerator may equal zero; the whole denominator may not.
no square ever lands below 0(−3, 9)(3, 9)(0, 0)−33−49
The graph of y = x2: no square lands below 0.
Reminder
Reminder: Solving a linear equation, Inequality reversal, Fraction arithmetic
  • Solving a linear equation. 2 − x = 0 becomes −x = −2, then x = 2. This finds the input to exclude.
  • Inequality reversal. −x ≥ −7 becomes x ≤ 7 because division by −1 reverses order.
  • Fraction arithmetic. 0−7 = 0 is defined, but 30 is undefined.
The same idea, five ways
Say it

The inside of an even root is zero or more.

Write it

A root used as the entire denominator also has to be nonzero.

In math
  • Radicand ≥ 0
  • For denominator x−3: x − 3 > 0
  • x > 3
  • {x | x > 3}
  • (3, ∞)
Like

A square tile's area cannot be negative, and its side length can be zero.

See it
no square ever lands below 0(−3, 9)(3, 9)(0, 0)−33−49
The same picture again: The graph of y = x2: no square lands below 0.

Worked example

A square root used as the denominator

OpenStax problem

Find the domain of f(x) = 1x−3.

Show the steps and the answer
3(3, ∞)
Domain: (3, ∞). The endpoint symbols record which limits belong.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Require x−3≥0.The square root must be a real number before you can divide by it.
  3. Also require x−3≠0.This entire square root is the denominator, and division by zero is undefined.
  4. Combine the checks to require x−3>0.Zero would satisfy the root check but fail the denominator check.
  5. Add 3: x > 3, so write (3,∞).Adding the same number preserves the strict inequality and the excluded endpoint.
Answer
Domain: (3, ∞).
Double-check x = 4 gives 11 = 1. x = 3 gives a zero denominator, and x = 2 gives a negative radicand.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: 0 is undefined.
Zero is the nonnegative number whose square is zero.
✓ Instead: 0 = 0. A separate division by this output would fail.
Tips and tricks
  • Check the root and any denominator as two separate operations.

Part 4: Build a formula for a requested domain

Imagine designing an entrance gate instead of reading one that already exists. You want the gate to admit exactly the inputs in the requested set. Different arithmetic operations can supply different checks. A denominator can reject one input. An even root can reject all inputs on one side of a boundary. A root used as the entire denominator also rejects the boundary itself. Build the check into a formula, then verify its actual domain rather than guessing from its appearance.

  • For a nonstrict ray x ≥ a, x−a has exactly that domain.
  • For a strict ray x > a, 1x−a has exactly that domain.
  • For all real inputs except a, 1x−a has exactly that domain.
  • This is a construction strategy: many formulas can have the same domain.
14(14, ∞)
Construct the formula to admit exactly this strict ray.
Reminder
Reminder: Root versus divisor
  • Root versus divisor. 0 = 0 works as a value, but 10 divides by zero.
The same idea, five ways
Say it

Say create a formula that accepts exactly the requested inputs.

Write it

For a strict rightward ray, a square root in the entire denominator rejects the boundary and everything below it.

In math
  • x > 14
  • {x | x > 14}
  • (14, ∞)
  • F(x)=1x−14
  • Graph words: hollow dot at 14, shade right
Like

Build an entrance gate with the checks required by the visitor list.

See it
14(14, ∞)
The designed rule must match this entire allowed set.

Worked example

Build a function whose domain is a strict ray

Construct one real-valued function with exactly the domain x > 14. You are creating a formula that permits every input above 14 and rejects 14 and all smaller inputs.

Show the steps and the answer
14(14, ∞)
The desired domain is open at 14 and includes every greater real input.
18subtract 14, takeroot, divide 1 by itinputoutput1/2
The constructed rule works for a sample input above its excluded boundary.
  1. Choose an inside expression x−14.It is positive precisely when x > 14, locating the required boundary.
  2. A square root x−14 alone would allow x=14.A square root accepts inside zero, so this would give a nonstrict domain and miss the requested exclusion.
  3. Put that root in the entire denominator and choose a nonzero constant numerator: F(x)=1x−14.The root must be real and nonzero, combining the two arithmetic checks into x − 14 > 0.
  4. Add 14 to x−14>0 to get x > 14.Solving verifies that the constructed formula has exactly the requested domain.
  5. At x=14, the denominator is 0=0; at x=13, its radicand is −1. Every input above 14 gives a positive denominator.Plugging the boundary and both sides into the original formula confirms that all and only the requested inputs work.
Answer
  • One possible function: F(x) = 1x−14.
  • Domain: {x | x > 14} = (14, ∞).
Double-check At x = 15 the result is 1. At x = 18 it is 12. Many different formulas could have this same domain; the question requires one valid construction.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Use x−14 for the requested strict domain x > 14.
At x = 14 the root equals zero, which is allowed for a root by itself.
✓ Instead: Use 1x−14 so division also rejects the boundary.
Tips and tricks
  • Verify the constructed domain in both directions: every requested input must work, and every excluded input must fail.

5 How

  1. Start with all real inputs unless a domain or context is supplied.
  2. Find every denominator. Set the whole denominator equal to zero to locate exactly the inputs where division would fail. Solve that equation, substitute each answer into the original denominator to confirm zero, and exclude those inputs.
  3. Find every even-root radicand, require it to be ≥ 0, and solve the inequality.
  4. If a root is part of a denominator, check the whole denominator as well as the radicand.
  5. Keep only inputs that meet every condition. Write intervals from smaller to larger endpoints.
  6. Substitute each boundary or excluded value to see which operation permits or rejects it.

Find a formula's domain

1
Is there a denominator?
YesSet the whole denominator to zero to find failing division inputs. Solve, substitute each result to confirm zero, and remove those inputs from the domain.
NoContinue to the root check.
↓
2
Is there an even root?
YesRequire its radicand to be ≥ 0 and solve.
NoContinue to any supplied context.
↓
3
Is the entire denominator an even root?
YesCombine the root and nonzero checks, making its radicand > 0.
NoUse the actual whole-denominator condition; do not automatically exclude a zero radicand.
↓
4
Are there several conditions?
YesKeep only inputs passing them all.
NoUse the single condition, or all real inputs if none exist.
↓
5
Does the question ask you to construct a function for a domain?
YesChoose operations that impose the desired checks, then recompute the whole domain to verify an exact match.
NoRead the restrictions from the supplied formula.
  1. Start with all real inputs unless a domain or context is supplied.
  2. Find every denominator. Set the whole denominator equal to zero to locate exactly the inputs where division would fail. Solve that equation, substitute each answer into the original denominator to confirm zero, and exclude those inputs.
  3. Find every even-root radicand, require it to be ≥ 0, and solve the inequality.
  4. If a root is part of a denominator, check the whole denominator as well as the radicand.
  5. Keep only inputs that meet every condition. Write intervals from smaller to larger endpoints.
  6. Substitute each boundary or excluded value to see which operation permits or rejects it.

6 Worked example

Worked example

A polynomial accepts every real input

OpenStax problem

Find the domain of f(x) = x2 − 1.

Show the steps and the answer
domainrange−22−22468
The same picture, shown 4 times now: y = x2 − 1.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Identify the operations: square the input, then subtract 1.These are multiplication and subtraction, with no variable denominator or even root.
  3. Keep all real inputs.Both operations are defined for every real number.
Answer
Domain: (−∞, ∞).
Double-check For x = −2, 0 and 12, the outputs are 3, −1 and −34. Different input signs and a fraction all work.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 8

A denominator

OpenStax problem

Find the domain of f(x) = x+12−x.

Show the steps and the answer
2(−∞, 2) ∪ (2, ∞)
The same picture again: (−∞, 2) and (2, ∞) on a number line.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Set 2−x=0.A denominator equal to zero makes division undefined.
  3. Subtract 2 from both sides: −x=−2.The same subtraction preserves the equality.
  4. Divide both sides by −1: x=2.This equation finds the input to exclude, not the input to keep.
  5. Keep every real number except 2.The numerator x + 1 is defined for all real inputs, and no other input makes the denominator zero.
  6. Write (−∞,2)∪(2,∞).Both intervals stop before the forbidden value, and together they include all other inputs.
Answer
Domain: (−∞, 2) ∪ (2, ∞).
Double-check At x = 1 the output is 21 = 2; at x = 3 it is 4−1 = −4. At x = 2 the numerator is 3 but the denominator is zero, so that input fails.

Rung 2 of 8

Domain of a function with a square root inside the denominator

Find the domain of g(x) = x+16−x−2. Write your answer in interval notation.

Show the steps and the answer
  1. Start with all real numbers as possible inputs.No domain or context is supplied, so only the arithmetic can rule inputs out.
  2. Identify the even root 6−x and require its radicand to be nonnegative: 6−x≥0.A square root of a negative number is not a real number.
  3. Solve 6−x≥0 to get x≤6.Adding x to both sides gives 6 ≥ x. No division by a negative number is needed, so the inequality does not flip.
  4. Identify the whole denominator 6−x−2 and set it equal to zero: 6−x−2=0.Division by zero is undefined. The root sits inside the denominator, so the whole denominator must be checked, not only the radicand.
  5. Solve: 6−x=2, square both sides to get 6−x=4, so x=2.Isolating the root and then squaring turns the equation into a linear one.
  6. Substitute x=2 into the original denominator: 6−2−2=4−2=2−2=0. Exclude x=2.Squaring can create false solutions, so we confirm that x = 2 really makes the denominator zero. It does, so x = 2 is excluded.
  7. Combine the conditions: x≤6 and x≠2. In interval notation this is (−∞,2)∪(2,6].Only inputs that meet every restriction are kept. Intervals are written from smaller to larger endpoints. Use a parenthesis at 2 because 2 is excluded, and a bracket at 6 because 6 is allowed.
  8. Check the boundary and excluded values. At x=6: the radicand is 6−6=0, which is allowed, and the denominator is 0−2=−2≠0, so 6 is included. At x=2: the denominator is 0, so division rejects 2. At x=7: the radicand is −1<0, so the square root rejects 7.Testing each boundary shows which operation permits or rejects that value.
Answer
(−∞,2)∪(2,6]
Double-check Test x = 6: g(6) = 70−2 = −72, which is defined, so 6 belongs in the domain. Test x = −3: g(−3) = −29−2 = −21 = −2, which is defined. Test x = 2: the denominator is 4 − 2 = 0, so g(2) is undefined. Test x = 7: −1 is not real, so g(7) is undefined. All four results agree with (−∞, 2) ∪ (2, 6].

Work to write

  1. Radicand: 6 − x ≥ 0, so x ≤ 6
  2. Denominator: 6−x − 2 = 0, so 6−x = 2, so 6 − x = 4, so x = 2
  3. Check: 4 − 2 = 0, so exclude x = 2
  4. At x = 6: radicand is 0 (allowed) and denominator is −2 ≠ 0, so include 6
  5. Domain: (−∞, 2) ∪ (2, 6]

Rung 3 of 8

Domain of a quotient with a square root in the denominator

Find the domain of h(x) = x−3x+7−3. Write your answer in interval notation.

Show the steps and the answer
  1. Start with all real numbers as possible inputs.No domain or context is supplied, so only the arithmetic can restrict x.
  2. Radicand condition: require x+7≥0, so x≥−7.An even (square) root of a negative number is not a real number.
  3. Denominator condition: set the whole denominator equal to zero: x+7−3=0, so x+7=3.Division fails exactly where the entire denominator is zero, not just where the root is zero.
  4. Square both sides: x+7=9, so x=2. Substitute into the original denominator: 2+7−3=9−3=3−3=0. Exclude x=2.Squaring can create false solutions, so substituting confirms that x = 2 really makes the denominator zero.
  5. Combine the conditions: x≥−7 and x≠2. In interval notation this is [−7,2)∪(2,∞).Inputs must satisfy every restriction. −7 is included because the radicand may equal 0. 2 is removed with open parentheses. Intervals are written from smaller to larger endpoints.
  6. Test the boundary values. At x=−7: 0−3=−3≠0, so h(−7)=−10−3=103, which is allowed. At x=2 the denominator is 0, so 2 is rejected. At x=−8 the radicand is −1, so −8 is rejected.Substituting each boundary or excluded value shows which operation permits or rejects it.
Answer
Domain of h: [−7, 2) ∪ (2, ∞)
Double-check Try x = 18: 25 − 3 = 2, so h(18) = 152, which is defined. 18 lies in (2, ∞). Try x = −3: 4 − 3 = −1, so h(−3) = −6−1 = 6, which is defined. −3 lies in [−7, 2). The excluded value x = 2 gives division by zero, and x = −8 gives −1. Both are correctly left out.

Work to write

  1. x+7≥0⇒x≥−7
  2. x+7−3=0⇒x+7=9⇒x=2
  3. Check: 9 − 3 = 0, so exclude x = 2
  4. x = −7 is allowed: denominator is −3 ≠ 0
  5. Domain: [−7, 2) ∪ (2, ∞)

Rung 4 of 8

Domain of a quotient with a square root inside the denominator

Find the domain of k(x) = x−25−2x+6. Write your answer in interval notation.

Show the steps and the answer
  1. Start with all real numbers as candidate inputs.No domain or context is supplied, so only the arithmetic can remove inputs.
  2. Identify the even-root radicand 2x+6 and require 2x+6≥0.A square root of a negative number is not a real number.
  3. Solve 2x+6≥0: 2x≥−6, so x≥−3.Subtracting 6 and dividing by the positive number 2 keeps the inequality direction.
  4. Set the whole denominator equal to zero: 5−2x+6=0, so 2x+6=5.Division fails exactly where the entire denominator is zero. The root sits inside the denominator, so the whole expression is checked, not just the radicand.
  5. Square both sides: 2x+6=25, so 2x=19 and x=192.Squaring undoes the square root. This value satisfies x ≥ −3, so it is a real candidate.
  6. Substitute x=192 into the original denominator: 2·192+6=25,25=5, and 5−5=0. Exclude x=192.Squaring can create false solutions, so the value is confirmed in the original denominator. It really gives zero.
  7. Combine the conditions: x≥−3 and x≠192. Write the result as [−3,192)∪(192,∞).Only inputs that meet every condition are kept. The intervals are written from smaller to larger endpoints.
  8. Test the boundaries. At x=−3 the radicand is 0 and 0=0, so the denominator is 5 and k(−3)=−55=−1. This value is included. At x=192 the denominator is 0, so this value is excluded.The square root permits radicand 0, so the bracket is used at −3. Division rejects 192, so parentheses are used on both sides of it.
Answer
[−3,192)∪(192,∞)
Double-check Pick x = 5, which lies inside the first interval: 16 = 4 and the denominator is 5 − 4 = 1, so k(5) = 3. This is defined. Pick x = 15, which lies inside the second interval: 36 = 6 and the denominator is 5 − 6 = −1, so k(15) = −13. This is defined. Pick x = −4, which lies outside: the radicand is −2, so the root is not real. This is undefined, as expected.

Work to write

  1. Radicand: 2x + 6 ≥ 0 ⇒ x ≥ −3
  2. Denominator: 5 − 2x+6 = 0 ⇒ 2x+6 = 5 ⇒ 2x + 6 = 25 ⇒ x = 192
  3. Check: 5 − 25 = 0, so exclude x = 192
  4. x = −3 is allowed: denominator 5 − 0 = 5 ≠ 0
  5. Domain: [−3, 192) ∪ (192, ∞)

Rung 5 of 8

Both restrictions at once

OpenStax problem

Find the domain of f(x) = x+2x−5.

Show the steps and the answer
−25[−2, 5) ∪ (5, ∞)
Domain: [−2, 5) ∪ (5, ∞). The endpoint symbols record which limits belong.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Require x+2≥0, which gives x≥−2.The numerator contains an even root, so its radicand must be nonnegative.
  3. Require x−5≠0, which gives x≠5.The whole denominator must be nonzero.
  4. Keep inputs meeting both restrictions: x≥−2 and x≠5.Both operations must work for the same input.
  5. Split the allowed ray at 5: [−2,5)∪(5,∞).−2 is included, while 5 is excluded from both pieces.
Answer
Domain: [−2, 5) ∪ (5, ∞).
Double-check x = −2 produces 0−7 = 0, which is allowed. x = 5 breaks division. x = −3 breaks the square root.

Rung 6 of 8

Two forbidden inputs from one denominator

Find the domain of f(x) = 6x2−16.

Show the steps and the answer
−44(−∞, −4) ∪ (−4, 4) ∪ (4, ∞)
Domain: (−∞, −4) ∪ (−4, 4) ∪ (4, ∞). The endpoint symbols record which limits belong.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Set x2−16=0.Inputs where the denominator is zero must be excluded.
  3. Factor: x2−16=(x−4)(x+4).The difference-of-squares identity replaces 16 with 42.
  4. Solve x−4=0 or x+4=0, giving 4 or −4.A product is zero when at least one factor is zero.
  5. Remove both values and write the three remaining intervals.One interval before −4, one between −4 and 4, and one after 4 are needed.
Answer
Domain: (−∞, −4) ∪ (−4, 4) ∪ (4, ∞).
Double-check Both 42 and (−4)2 equal 16 and make the denominator zero. At x = 0 the denominator is −16, so a negative denominator itself is allowed.

Rung 7 of 8

Two roots impose different checks

Find the domain of R(x) = x−12x−7. You need every input for which both roots exist and the denominator is nonzero.

Show the steps and the answer
12[12, ∞)
The stricter starting input comes from the numerator’s root; 12 itself works.
  1. Require x−12≥0; add 12 to both sides to get x≥12.The numerator’s even root must exist. It may equal zero because it is not being used as a divisor.
  2. Require x−7>0; add 7 to both sides to get x > 7.The denominator’s root must exist and stay nonzero, so its inside must be strictly positive.
  3. Keep inputs passing both checks: x≥12.Every number at least 12 is also greater than 7; a number between 7 and 12 fails the numerator check.
  4. At x=12, the original expression is 05=0, so include the starting input.The denominator is positive here and a zero numerator is allowed.
Answer
Domain: [12, ∞).
Double-check At x = 13 both radicands are positive. At x = 11 the denominator’s root exists but the numerator’s radicand is −1, so that input fails the combined condition.

Rung 8 of 8

A denominator that contains a square root

Find the domain of f(x) = 11+x.

Show the steps and the answer
0[0, ∞)
Domain: [0, ∞). The endpoint symbols record which limits belong.
  1. We need every input for which the stated rule is defined.State what is being found before choosing the calculation.
  2. Require x≥0.The radicand of x must be nonnegative.
  3. For these inputs, x≥0, so 1+x≥1.The principal square root never produces a negative output.
  4. The whole denominator can never equal zero on these inputs.Being at least 1 makes it nonzero, including at x = 0.
  5. Keep [0,∞).There is no additional exclusion after the root condition.
Answer
Domain: [0, ∞).
Double-check At x = 0 the value is 11+0 = 1. This verifies that a root somewhere in a denominator does not automatically force its radicand to be strictly positive.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: 7 − x ≥ 0 gives x ≥ 7.
Dividing −x ≥ −7 by −1 reflects and reverses the order. Substitution of x = 8 would give a negative radicand.
✓ Instead: x ≤ 7, so the domain is (−∞, 7].
✗ Not this: The domain of 11+x is (0, ∞) because a root is in the denominator.
The whole denominator is 1 + x, which equals 1 at x = 0. The root may be zero without making that denominator zero.
✓ Instead: The domain is [0, ∞).
✗ Not this: A zero numerator must be removed from the domain.
Zero divided by a nonzero number is the valid output zero.
✓ Instead: For x+2x−5, keep x = −2 because 0−7 = 0.

Tips and tricks

  • Write denominator ≠ 0 and radicand ≥ 0 before solving anything.
  • Memory device: zero below means no go. A zero numerator can still be valid.
  • Test the endpoint in the original formula to decide whether the interval needs a bracket.
  • Keep restrictions from the original expression even if later cancellation makes it look unrestricted.

7 The trap

Changing ≥ 0 to > 0 whenever you see a square root. 0 is allowed. Strict positivity is needed for a square root that must itself be a nonzero denominator, such as 1x−3.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 3 of 10

Factor a denominator and keep every original exclusion

Subject: MathematicsLeans on: DistributionLeans on: Zero product propertyLeans on: Negative denominatorsLeans on: Keep all restrictionsOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Picture taking a tiled rectangle apart so you can see the lengths that made its area. Factoring does a similar job with a formula. It rewrites one expression as multiplied pieces called factors, without changing the result. This helps you find a denominator's forbidden inputs. A multiplied result is zero when a factor is zero, so smaller equations replace one larger equation. Sometimes a matching factor appears above and below a fraction bar. You may cancel it where it is nonzero. Keep the original forbidden inputs written down. Changing the way you write the recipe cannot make its original division by zero work.

2 Picture it

x²7xx5x355x7
A factor pair must explain the middle coefficient and the constant term together.

Reminder

Reminder: Distribution, Zero product property, Negative denominators, Keep all restrictions
  • Distribution. Multiply each term in one factor by each term in the other: (x + 5)(x − 4) = x2 − 4x + 5x − 20.
  • Zero product property. AB = 0 requires A = 0 or B = 0. For a denominator, those inputs are exclusions.
  • Negative denominators. A negative denominator is allowed: 11−20 = −1120. The forbidden denominator is zero.
  • Keep all restrictions. A root and denominator must both work: x ≥ −11 and x ≠ −5 and x ≠ 4 keeps [−11, −5) ∪ (−5, 4) ∪ (4, ∞).

3 Why

Multiplying each term in x + p by each term in x + q gives x2 + px + qx + pq. The middle terms combine into (p + q)x, so the two factor numbers must have the required sum and product. A product of nonzero real numbers cannot be zero: if AB = 0 and A ≠ 0, division by A gives B = 0. This explains why each zero factor finds a denominator exclusion. Cancellation divides the top and bottom by the same factor. That operation requires a nonzero factor, so it cannot restore an input already excluded by the original denominator.

4 The rule

(x+p)(x+q)=x2+(p+q)x+ pq.

To factor x2+ Bx +C, find p+q=B and pq =C.
Exclude every input making the original denominator zero, and retain those exclusions after cancellation.

The same idea, five ways

Say it

Say factor the original denominator, exclude its zeros, and retain those exclusions after cancellation.

Write it

A shorter fraction describes the original function only when you keep the original domain conditions.

In math
  • (x + p)(x + q) = x2 + (p + q)x + pq
  • For x2 + x − 20: p + q = 1 and pq = −20
  • x2+x−20=(x+5)(x−4)
  • Denominator restrictions: x ≠ −5 and x ≠ 4
  • (−∞,−5)∪(−5,4)∪(4,∞)
  • Graph words: hollow dots at both original denominator-zero inputs
Like

Taking a rectangle apart reveals its multiplied lengths; shortening a recipe leaves its accepted choices unchanged.

See it
x²−4xx5x−205x−4
The product and sum checks rebuild the quadratic before you solve its factor equations.

The same idea, other ways

As four tile products

A rectangle cut into two rows and two columns gives four products. The two middle products are px and qx, so their combined size is (p + q)x. The last product is pq. This is why matching only the constant term is not enough.

x²7xx5x355x7
Both the sum 5 + 7 and the product 5 × 7 are visible in the expansion.
As two locks

A factor pair must open two locks. For x2 + 12x + 35, the product lock needs 35 and the sum lock needs 12. The pair 1 and 35 opens only the product lock. The pair 5 and 7 opens both.

As an unchanged guest list

Simplifying a fraction changes the recipe's writing, not the original guest list of permitted inputs. For x2−8xx2−64, input 8 was already forbidden. Cancellation may shorten the recipe for other inputs, but it cannot admit 8.

Part 1: Find a pair by its product and sum

Think of choosing two tile lengths. They must create both the right corner area and the right combined middle strip. A monic quadratic has x2 with coefficient 1, meaning one copy of x2. For x2 + Bx + C, the factor numbers multiply to C and add to B. Keep the signs attached to the numbers.

  • Coefficient means the number multiplying a variable or power. In 12x, the coefficient is 12.
  • For x2 + Bx + C, seek two numbers whose product is C and whose sum is B.
  • To generate whole-number factor pairs, try positive whole-number divisors in order. Keep a divisor and quotient only when the quotient is whole. For 20, 20 ÷ 1 = 20, 20 ÷ 2 = 10, and 20 ÷ 4 = 5 give the pairs; 20 ÷ 3 is not whole. At candidate 5 the quotient is 4, so stop: larger candidates would repeat pairs in reverse. Then choose signs and check sums.
  • If C is negative, the factor numbers have opposite signs. If B is positive, the positive number has the larger size; if B is negative, the negative number has the larger size.
  • If C is positive, the factor numbers have the same sign. A positive sum uses two positives, and a negative sum uses two negatives.
  • This whole-number pair search works for examples with whole-number factors. If no pair works, do not invent a factorization or conclude that the domain is empty. Another method may be needed.
  • If C = 0, x is a common factor: x2 + Bx = x(x + B), because distributing x gives both original terms.
x²−4xx5x−205x−4
The signed products explain why the constant's sign determines the factor signs.
Reminder
Reminder: Signed multiplication
  • Signed multiplication. 5 × (−4) = −20. One positive and one negative factor give a negative product.
The same idea, five ways
Say it

Say find two numbers that multiply to negative twenty and add to one.

Write it

The factor numbers must match the constant by multiplication and the middle coefficient by addition.

In math
  • p + q = 1
  • pq = −20
  • p=5,q=−4
  • x2+x−20=(x+5)(x−4)
Like

Two tile lengths must fit both the corner area and the combined middle strip.

See it
x²−4xx5x−205x−4
The four products reconstruct the entire quadratic.

Worked example

A negative constant needs opposite signs

Factor x2 + x − 20. You need multiplied pieces that reproduce the coefficient 1 of x and the constant −20.

Show the steps and the answer
x²−4xx5x−205x−4
Treat these as signed products: 5x and −4x combine to x, and 5 × (−4) is −20.
input factor pairoutput sum20 and −11910 and −285 and −41↑ solve: output given, read every input above it
factor pair: 20 and −1, 10 and −2, 5 and −4; sum: 19, 8, 1.
  1. We need p+q=1 and pq =−20.The expansion has middle coefficient p + q and constant term pq; the unwritten coefficient of x is 1.
  2. Generate the factor-pair sizes of 20 by division: 20÷1=20 gives 1 and 20; 20÷2=10 gives 2 and 10; 20÷3 is not whole, so skip it; 20÷4=5 gives 4 and 5. Stop at candidate 5 because its quotient is 4, so that pair repeats in reverse. The picture gives each larger number a positive sign and the smaller one a negative sign.A divisor and its whole-number quotient multiply back to 20. After the candidate exceeds its quotient, the smaller member of every possible pair has already been tried.
  3. Read the sums below those pairs: 19, 8, and 1. The column for 5 and −4 is the only one with sum 1.A negative product needs one positive and one negative factor number, so their sum is a difference of sizes.
  4. Choose +5 and −4. Their product is −20 and their sum is 1.The positive number must have the larger size to make the required positive sum.
  5. Write x2+x−20=(x+5)(x−4).Both the sum and product match, so these factors rebuild the original quadratic.
Answer
x2+x−20=(x+5)(x−4)
Double-check Multiply back: (x + 5)(x − 4) = x2 − 4x + 5x − 20 = x2 + x − 20. At x = 0, both forms equal −20.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Use (x − 2)(x + 10) to factor x2 + x − 20.
The product −20 matches, but the factor numbers add to 8, so the middle term would be 8x.
✓ Instead: Use (x + 5)(x − 4), since 5 + (−4) = 1 and 5 × (−4) = −20.
Tips and tricks
  • Write sum and product on separate lines, and check both before accepting a pair.

Part 2: Zero factors locate forbidden inputs

Imagine a product counting boxes times items per box. The total is zero if either count is zero. The zero product property says the same thing for real numbers: a product is zero exactly when at least one factor is zero. For a denominator, these zero inputs are the choices to remove, rather than the choices to keep.

  • The zero product property says AB = 0 exactly when A = 0 or B = 0.
  • Set the denominator equal to zero to locate the inputs where division fails.
  • Solve each factor's zero equation, then substitute its result into the original denominator.
  • A product equaling a nonzero number does not let you set its factors equal to zero.

(x+5)(x−4)=0

x + 5 = 0 or x − 4 = 0

x = −5 or x = 4

These inputs are excluded

Reminder
Reminder: Solving a linear equation
  • Solving a linear equation. x + 5 = 0 gives x = −5 by subtracting 5 from both sides; −5 + 5 = 0 checks the result.
The same idea, five ways
Say it

Say keep every real input except negative five and four.

Write it

The original denominator vanishes at −5 and 4, so both inputs are excluded.

In math
  • x ≠ −5 and x ≠ 4
  • x < −5 or −5 < x < 4 or x > 4
  • {x | x ≠ −5 and x ≠ 4}
  • (−∞,−5)∪(−5,4)∪(4,∞)
  • Graph words: hollow dots at −5 and 4, with every other position shaded
Like

Keep the whole guest list except the two names that fail the entry check.

See it
−54excluded −5excluded 4(−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
The three intervals describe exactly the same exclusions as the two not-equal conditions.

Worked example

A quadratic denominator excludes two inputs

Find the domain of f(x) = 7x+11x2+x−20. You need every input for which the original fraction is defined.

Show the steps and the answer
−54excluded −5excluded 4(−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
Both roots of the original denominator are omitted, leaving three allowed intervals.
  1. Set x2+x−20=0 to locate the inputs that would make division fail.The domain excludes zero denominators; this equation finds the values to throw out.
  2. Factor the denominator as (x+5)(x−4).The factor numbers 5 and −4 have sum 1 and product −20.
  3. Set x+5=0 or x−4=0. Subtract 5 in the first equation to get x=−5; add 4 in the second to get x=4.A zero product requires a zero factor. Each smaller equation finds one forbidden input.
  4. Check the original denominator: at −5 it is 25−5−20=0; at 4 it is 16+4−20=0.Substitution confirms that each solved value really makes the original fraction undefined.
  5. Exclude −5 and 4, and keep all other real inputs.The numerator is a polynomial, and the factored denominator has no other zeros.
  6. Write (−∞,−5)∪(−5,4)∪(4,∞).Three open intervals keep every real input except the two forbidden values.
Answer
Domain: (−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
Double-check At x = 0, the denominator is −20 and the output is −1120, which is defined. At x = 5, the denominator is 25 + 5 − 20 = 10 and the output is 4610 = 235. Valid inputs on different remaining intervals confirm that negative denominators and inputs beyond 4 can work.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The domain is {−5, 4}, because those are the solutions of the zero equation.
That equation found the inputs making the denominator zero, which are precisely the forbidden inputs.
✓ Instead: Remove −5 and 4 from the real number line; the domain is (−∞, −5) ∪ (−5, 4) ∪ (4, ∞).
Tips and tricks
  • Write forbidden inputs beside the answers to a denominator's zero equation.

Part 3: Cancel a common factor without changing the domain

Think of shortening a written recipe after checking which ingredients it can accept. You may remove a matching multiplication above and below a fraction bar, but only where that common factor is nonzero. This is cancellation. It divides the numerator and denominator by the same nonzero factor. A choice that failed the original recipe still fails it, even if the shorter recipe could calculate a number there.

  • Cancel factors that multiply the entire numerator and denominator. A term inside a sum is not a factor of that entire sum.
  • Cancellation requires the common factor to be nonzero.
  • The simplified expression agrees with the original expression only on the original domain.
  • Keep every original denominator exclusion, including an exclusion hidden by a canceled factor.

x(x−8)(x−8)(x+8)

= xx+8 only where x ≠ −8 and x ≠ 8

The original exclusions stay

Reminder
Reminder: Difference of squares, Division by zero
  • Difference of squares. x2 − 64 = (x − 8)(x + 8), because the middle terms cancel when multiplied back.
  • Division by zero. 00 is undefined too. Every number multiplied by 0 gives 0, so the multiplication question cannot select one unique quotient.
The same idea, five ways
Say it

Say the shorter fraction works on the original domain, with both exclusions retained.

Write it

Canceling x − 8 does not allow input 8 into the original function.

In math
  • x2−8xx2−64 = xx+8 for x ≠ −8 and x ≠ 8
  • {x | x ≠ −8 and x ≠ 8}
  • (−∞,−8)∪(−8,8)∪(8,∞)
  • Graph words: omit both original denominator-zero inputs
Like

Shortening the recipe's writing does not change which choices the original recipe accepted.

See it
−88excludedexcluded(−∞, −8) ∪ (−8, 8) ∪ (8, ∞)
Both original exclusions remain part of the simplified description.

Worked example

The shorter fraction keeps two original exclusions

Find the domain of f(x) = x2−8xx2−64, then simplify the formula where it is defined. You must identify permitted inputs from the original fraction before canceling anything.

Show the steps and the answer
−88original exclusionstill excluded(−∞, −8) ∪ (−8, 8) ∪ (8, ∞)
The original function excludes both −8 and 8, even after its common factor is canceled.
  1. Factor the numerator: x2−8x=x(x−8).Both numerator terms contain a factor x; multiplying x into x − 8 gives x2 − 8x back.
  2. Factor the original denominator: x2−64=(x−8)(x+8).64 = 82, so the difference-of-squares pattern applies.
  3. Set the denominator factors equal to zero to find forbidden inputs. x−8=0 gives x=8, and x+8=0 gives x=−8.Either zero factor makes the original denominator zero. These equations locate inputs to exclude.
  4. Check the original denominator: 82−64=0 and (−8)2−64=0. Write x≠−8 and x≠8 before canceling.Substitution confirms both original exclusions, including the one a shorter formula might hide.
  5. For those permitted inputs, cancel the common factor x − 8: x(x−8)(x−8)(x+8)=xx+8.x ≠ 8 makes the common factor nonzero, so dividing the top and bottom by it is legal.
  6. Write the shorter formula xx+8 with x≠−8 and x≠8, and retain (−∞,−8)∪(−8,8)∪(8,∞) as the original domain.Cancellation changes the expression's appearance while preserving its value only where the original fraction was defined.
Answer
  • Original domain: (−∞, −8) ∪ (−8, 8) ∪ (8, ∞)
  • Simplified formula: xx+8, with x ≠ −8 and x ≠ 8
Double-check At x = 16, the original fraction gives 256−128256−64 = 128192 = 23, and the shorter fraction gives 1624 = 23. At x = 8, the original gives 00, which has no unique quotient; the shorter formula's value 12 does not restore that excluded input.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: After cancellation, the only exclusion is x = −8.
The shorter denominator hides the original zero at x = 8. Canceling that factor required x ≠ 8 in the first place.
✓ Instead: Keep x ≠ −8 and x ≠ 8.
✗ Not this: Cancel x from x+8x+11 and leave 811.
The x terms are added, not factors multiplying the entire top and bottom. At x = 0 the original equals 811, but at x = 1 it equals 912 = 34, a different value.
✓ Instead: Factor first and cancel only a common factor multiplying the entire numerator and denominator.
Tips and tricks
  • Copy every original exclusion above the line before simplifying.
  • Ask whether the proposed canceled object multiplies the entire numerator and the entire denominator.

5 How

  1. Copy the original denominator before changing the fraction. Its zero inputs are the values you must exclude.
  2. For x2 + Bx + C, identify B and C, including their signs. B is the coefficient of x, meaning the number multiplying x; C is the constant term. The constant term is the fixed number added or subtracted without being multiplied by x; here it is C.
  3. Generate the whole-number factor-pair sizes of the size of C. Try positive whole-number candidates in order and divide the size of C by each one. Keep a pair only when the quotient is a whole number. Stop when the candidate is larger than its quotient, because further pairs would repeat earlier pairs in reverse. Choose signs so the product is C, then find the pair whose sum is B. If C = 0, factor out x directly instead of making a nonzero-constant pair list.
  4. Write (x + p)(x + q) and multiply it out to check both middle and constant terms.
  5. Set each denominator factor equal to zero to find forbidden inputs. Solve each smaller equation, then substitute each result into the original denominator to confirm that it produces zero.
  6. If a common factor cancels, write the simplified expression together with every original exclusion. Cancel only at inputs where the common factor is nonzero.
  7. Keep any other root or context restrictions as well, then write the remaining input intervals.

Find all exclusions before simplifying

1
Is the denominator a quadratic of the form x2 + Bx + C?
YesIdentify signed B and C. If C is nonzero, generate whole-number size pairs by dividing by positive whole-number candidates in order, stopping when the candidate exceeds its quotient; then choose signs and test the sum and product.
NoUse its applicable earlier method, such as a linear zero equation or the difference-of-squares identity.
↓
2
Is C negative?
YesUse opposite signs; the larger size determines the sign of their sum.
NoFor positive C use matching signs; for C = 0 factor out x directly.
↓
3
Does your proposed pair match both the sum and product?
YesWrite the factors, multiply back, then solve the zero factor equations to locate exclusions.
NoTry another pair. If no whole-number pair works, stop this pair-search method and use another established method.
↓
4
Does a common factor cancel?
YesCancel only on the original domain, and retain that factor's zero input as an exclusion.
NoKeep the original denominator exclusions.
↓
5
Does a root or context impose another restriction?
YesKeep inputs passing that restriction and every original denominator check.
NoExclude the original denominator zeros from all real inputs.
  1. Copy the original denominator and identify any other arithmetic or context restrictions.
  2. For x2 + Bx + C, try positive whole-number divisors of the size of C in order, keeping only whole quotients. Stop when the candidate exceeds its quotient; then choose signs and test product C and sum B. If C = 0, factor out x instead. Check by multiplying back.
  3. Set each denominator factor equal to zero to locate forbidden inputs. Solve and plug each value into the original denominator.
  4. Record every exclusion before canceling any common factor.
  5. Cancel only a nonzero common factor multiplying the entire top and bottom.
  6. Keep every original exclusion and any root or context condition when writing the domain.

6 Worked example

Worked example

Find two numbers that rebuild a quadratic

Factor x2 + 12x + 35. This asks you to rewrite the expression as multiplied pieces with the same value.

Show the steps and the answer
x²7xx5x355x7
The two middle products add to 12x, while the corner product is 35.
input factor pairoutput sum1 and 35365 and 712↑ solve: output given, read every input above it
factor pair: 1 and 35, 5 and 7; sum: 36, 12.
  1. The coefficient of x is 12 and the constant term is 35. We need p+q=12 and pq =35.Expanding (x + p)(x + q) gives middle coefficient p + q and constant term pq.
  2. Generate the positive factor-pair sizes of 35 by division. 35÷1=35 gives 1 and 35. Dividing by 2, 3, or 4 does not give a whole-number quotient, so skip those candidates. 35÷5=7 gives 5 and 7. Stop before trying larger candidates: 6 is already greater than its quotient 35÷6, because 6×6=36>35.A whole-number divisor and its quotient multiply back to 35. Once the candidate is larger than its quotient, any further whole-number pair reverses a pair with a smaller member that was already tried.
  3. Read the factor-pair picture. Under 1 and 35, the sum is 36. Under 5 and 7, the sum is 12. Both pairs have product 35.A positive product with a positive sum needs two positive numbers here. Checking the pairs finds the required sum.
  4. Choose p=5 and q=7, then write (x+5)(x+7).5 + 7 = 12 and 5 × 7 = 35, so both coefficients are reproduced.
  5. Multiply back: (x+5)(x+7)=x2+7x+5x+35=x2+12x+35.Each term in the first factor multiplies each term in the second, and the two middle terms combine.
Answer
x2+12x+35=(x+5)(x+7)
Double-check At x = 2, the original expression is 4 + 24 + 35 = 63. The product is (2 + 5)(2 + 7) = 7 × 9 = 63. Multiplication back checks the identity for every x; substitution checks this numerical case.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

A positive product and a positive sum

Factor x2 + 12x + 35. You are rewriting the expression as multiplied factors with exactly the same value.

Show the steps and the answer
x²7xx5x355x7
The four products combine into the original expression.
input factor pairoutput sum1 and 35365 and 712↑ solve: output given, read every input above it
The same picture again: factor pair: 1 and 35, 5 and 7; sum: 36, 12.
  1. Seek p+q=12 and pq =35.Expanding two factors gives x2 + (p + q)x + pq.
  2. Generate the positive factor-pair sizes of 35 by division. 35÷1=35 gives 1 and 35. Dividing by 2, 3, or 4 does not give a whole-number quotient, so skip those candidates. 35÷5=7 gives 5 and 7. Stop before trying larger candidates: 6 is already greater than its quotient 35÷6, because 6×6=36>35.A whole-number divisor and its quotient multiply back to 35. Once the candidate is larger than its quotient, any further whole-number pair reverses a pair with a smaller member that was already tried.
  3. Read the factor-pair picture. Under 1 and 35, the sum is 36. Under 5 and 7, the sum is 12. Both pairs have product 35.A positive product and positive sum use two positive factor numbers here.
  4. Write (x+5)(x+7).5 + 7 = 12 and 5 × 7 = 35 satisfy both requirements.
  5. Multiply back to obtain x2+7x+5x+35=x2+12x+35.Distribution checks the identity for every input.
Answer
x2+12x+35=(x+5)(x+7)
Double-check At x = 0 both forms give 35, and at x = 2 both give 63. The complete expansion, rather than these two samples alone, proves the factorization.

Rung 2 of 5

A negative product and a small positive sum

Factor x2 + x − 20. You need factors whose multiplication leaves middle coefficient 1 and constant −20.

Show the steps and the answer
x²−4xx5x−205x−4
Use the signs in both the product check and the sum check.
input factor pairoutput sum20 and −11910 and −285 and −41↑ solve: output given, read every input above it
The same picture again: factor pair: 20 and −1, 10 and −2, 5 and −4; sum: 19, 8, 1.
  1. Seek p+q=1 and pq =−20.The coefficient of x is an unwritten 1, and the constant term includes its negative sign.
  2. Generate the factor-pair sizes of 20 by division: 20÷1=20 gives 1 and 20; 20÷2=10 gives 2 and 10; 20÷3 is not whole, so skip it; 20÷4=5 gives 4 and 5. Stop at candidate 5 because its quotient is 4, so that pair repeats in reverse. The picture gives each larger number a positive sign and the smaller one a negative sign.A divisor and its whole-number quotient multiply back to 20. After the candidate exceeds its quotient, the smaller member of every possible pair has already been tried.
  3. Choose +5 and −4, and write (x+5)(x−4).Their product is −20 and their sum is 1.
  4. Multiply back: x2−4x+5x−20=x2+x−20.The opposite middle products leave exactly one copy of x.
Answer
x2+x−20=(x+5)(x−4)
Double-check At x = 1, the original is 1 + 1 − 20 = −18; the product is (1 + 5)(1 − 4) = 6 × (−3) = −18. The expansion checks all inputs.

Rung 3 of 5

Factor to find a fraction's domain

Find the domain of f(x) = 7x+11x2+x−20. You are finding every input that keeps the original fraction defined.

Show the steps and the answer
−54excludedexcluded(−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
A quadratic denominator can require three intervals because it has two zero inputs.
  1. Set x2+x−20=0 to find denominator-zero inputs, then factor it as (x+5)(x−4).These inputs would make division fail. The factor numbers add to 1 and multiply to −20.
  2. Set x+5=0 or x−4=0. Solve to get x=−5 or x=4.The zero product property locates every zero through the smaller factor equations.
  3. Substitute −5 and 4 into the original denominator: 25−5−20=0 and 16+4−20=0.Each substitution confirms an input that must be excluded.
  4. Remove both values and write (−∞,−5)∪(−5,4)∪(4,∞).Every remaining denominator is nonzero, and the polynomial numerator imposes no additional restriction.
Answer
Domain: (−∞, −5) ∪ (−5, 4) ∪ (4, ∞)
Double-check At x = 0, the denominator is −20 and the output is −1120. At x = 5 the output is 235. Both are defined, while the two excluded inputs give zero denominators.

Rung 4 of 5

Cancellation keeps the original exclusions

Find the domain of f(x) = x2−8xx2−64, then simplify it on that domain. You must preserve inputs excluded by the original denominator.

Show the steps and the answer
−88original exclusioncancellation keeps this hole(−∞, −8) ∪ (−8, 8) ∪ (8, ∞)
Both zero inputs remain omitted even though one factor no longer appears in the shorter formula.
  1. Rewrite the fraction as x(x−8)(x−8)(x+8).Factoring out x rebuilds the numerator, and the difference-of-squares identity rebuilds the denominator.
  2. Set x−8=0 or x+8=0 to find forbidden inputs. Solving gives x=8 or x=−8.A zero factor makes the original denominator zero, so these equations identify exclusions.
  3. Check 82−64=0 and (−8)2−64=0, then record x≠−8 and x≠8.The exclusions must be confirmed in the original denominator before any factor disappears.
  4. Cancel x−8 at the remaining inputs to obtain xx+8.The recorded condition x ≠ 8 permits division by this common factor.
  5. Keep (−∞,−8)∪(−8,8)∪(8,∞) as the original domain, and write the shorter formula with both exclusions.A canceled factor does not assign a value where the original fraction had a zero denominator.
Answer
  • Domain: (−∞, −8) ∪ (−8, 8) ∪ (8, ∞)
  • Simplified formula: xx+8, for x ≠ −8 and x ≠ 8
Double-check At input 16, the original gives 128192 = 23 and the shorter expression gives 1624 = 23. At input 8 the original gives 00, so the shorter formula cannot restore that input.

Rung 5 of 5

Factor and keep a root restriction too

Find the domain of f(x) = x+11x2+x−20. You need inputs that make the root real and the original denominator nonzero at the same time.

Show the steps and the answer
−11−54root beginsdenominator zerodenominator zero[−11, −5) ∪ (−5, 4) ∪ (4, ∞)
The root determines the start, and the factored denominator removes two inputs from that allowed ray.
  1. Require x+11≥0 and subtract 11 to obtain x≥−11.The root's radicand must be nonnegative; this inequality identifies the inputs permitted by the numerator.
  2. Set x2+x−20=0 to locate forbidden denominator inputs. Factor to obtain (x+5)(x−4)=0.Division fails at those zero inputs, and the factor numbers 5 and −4 add to 1 and multiply to −20.
  3. Solve x+5=0 or x−4=0, giving x=−5 or x=4. Check 25−5−20=0 and 16+4−20=0 in the original denominator.A zero product has a zero factor; substitution confirms both exclusions.
  4. Keep x≥−11 and exclude −5 and 4 from that ray.The root and division must work together, and both forbidden denominator inputs lie inside the root's allowed ray.
  5. At x=−11, the numerator is 0=0 and the denominator is 121−11−20=90, so keep this endpoint.A zero numerator over a nonzero denominator is a valid zero output.
  6. Write [−11,−5)∪(−5,4)∪(4,∞).The starting root endpoint is included, while both original denominator zeros are omitted.
Answer
Domain: [−11, −5) ∪ (−5, 4) ∪ (4, ∞)
Double-check At x = −12 the radicand is −1, so it fails the root check. At x = −6 the radicand is 5 and the denominator is 36 − 6 − 20 = 10, so the output 510 is defined. At x = 5 the radicand is 16 and the denominator is 10, giving 410 = 25.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Choose any pair multiplying to the constant term.
The pair's sum also determines the middle coefficient. A right product alone can create a different quadratic.
✓ Instead: Match product and sum, then multiply the factors back.
✗ Not this: Keep the solutions of a denominator-zero equation as the domain.
The zero equation deliberately locates where division fails.
✓ Instead: Label those solutions forbidden inputs and exclude them.
✗ Not this: Cancellation restores an input that made the original denominator zero.
Cancellation divides by the common factor and requires that factor to be nonzero.
✓ Instead: Keep every original exclusion beside the shorter formula.

Tips and tricks

  • For factoring, write product = C and sum = B before trying pairs.
  • For a domain, mark denominator zeros as forbidden before writing any intervals.
  • Copy original restrictions before cancellation, then compare the final domain with that list.

7 The trap

Canceling a factor and then forgetting its zero input. The shorter expression equals the original only where the original denominator was nonzero. Record every exclusion before canceling.

Lesson 4 of 10

Write the same set three ways

Subject: MathematicsLeans on: Compound conditionsLeans on: Order of numbersOpen this lesson
Leans on 0Comes back in 11

1 In plain words

Think of directions for a stretch of road. You can say which mile markers a driver may pass, state a condition for an allowed position, or write the beginning and ending markers. These are three descriptions of the same road. Inequality notation states the comparisons. Set-builder notation wraps the condition in braces and reads it as a collection. Interval notation writes the two limits. You must also say whether each boundary is part of the road. A filled dot means you may stand there; a hollow dot means you may get close but that exact position is excluded.

2 Picture it

135[1, 3] ∪ (5, ∞)
[1, 3] and (5, ∞) on a number line.

Reminder

Reminder: Compound conditions, Order of numbers
  • Compound conditions. −2 ≤ x < 3 means x ≥ −2 and x < 3; both must hold.
  • Order of numbers. −4 < −1, so −4 is written first in an interval.

3 Why

The notations are conventions chosen to record the same membership decisions compactly. A square bracket includes its endpoint; a parenthesis excludes it. Ignoring that distinction changes whether an input is allowed. Infinity is a direction of unlimited continuation, not a real endpoint you can reach, so it always takes a parenthesis. Writing the smaller limit first matches the number line's order. A union combines membership in either set, including any overlap. Without it, writing only the outside limits could accidentally fill an excluded gap.

4 The rule

Use [ or ] for an included endpoint, ( or ) for an excluded endpoint or infinity.

Write intervals from smaller to larger; union (∪) means or, including membership in both sets.

The same idea, five ways

Say it

Say at least negative two and less than three.

Write it

The set includes −2, excludes 3, and contains every real number between them.

In math
  • −2≤x<3
  • {x|−2≤x<3}
  • [−2,3)
  • Graph words: closed dot at −2, open dot at 3, shade between
Like

A road segment where one boundary post belongs to your route and the other does not.

See it
−23[−2, 3)
The notation and the endpoint dots describe identical membership.

The same idea, other ways

As a fence with gates

An interval gives the stretch between two fence posts. A square bracket keeps a post in your property; a parenthesis leaves the post outside. A missing stretch needs two intervals rather than one.

As a membership question

For [−2, 3), ask whether each candidate satisfies −2 ≤ x < 3. This includes −2 and excludes 3. Set-builder notation records exactly that question.

As three translations

x ≤ 7, {x | x ≤ 7}, and (−∞, 7] all include 7 and every smaller real number. The descriptions change, but the allowed members do not.

Inequality notationSet-builder notationInterval notation
x > 5{x | x > 5}(5, ∞)
−2≤x<3{x|−2≤x<3}[−2,3)
x ≤ 7{x | x ≤ 7}(−∞,7]
1 ≤ x ≤ 3 or x > 5{x | 1 ≤ x ≤ 3 or x > 5}[1, 3] ∪ (5, ∞)

Part 1: Inequality notation

Inequality notation compares a candidate number with its limits. The word and means the candidate must pass both comparisons. The word or means one comparison or the other is enough. Do not turn two separate stretches into a single and statement.

  • A strict < or > comparison excludes its boundary.
  • A ≤ or ≥ comparison includes its boundary.
  • A compound inequality such as −2 ≤ x < 3 means both limits hold.
5
(5, ∞) on a number line, with a tick at 5.
Reminder
Reminder: Compound conditions, Order of numbers
  • Compound conditions. −2 ≤ x < 3 means x ≥ −2 and x < 3; both must hold.
  • Order of numbers. −4 < −1, so −4 is written first in an interval.
The same idea, five ways
Say it

Say strictly greater than five.

Write it

The number must exceed 5, so equality is excluded.

In math
  • x > 5
  • {x | x > 5}
  • (5, ∞)
  • Graph words: open dot at 5, shade right
Like

An entry sign admits only positions passing the stated height checks.

See it
5
The same picture again: (5, ∞) on a number line, with a tick at 5.

Worked example

Notation ladder 1: one open ray

OpenStax problem

Write x > 5 in set-builder and interval notation.

Show the steps and the answer
5(5, ∞)
(5, ∞) on a number line.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. Read > as strictly greater than, so 5 is excluded.The inequality has no equality part.
  3. Write {x | x > 5}.The braces name a set and the bar means such that.
  4. Write (5,∞).The set starts beyond 5 and has no upper endpoint; both symbols use parentheses.
Answer
  • Set-builder: {x | x > 5}.
  • Interval: (5, ∞).
Double-check 6 belongs to every description; 5 and 4 belong to none.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: x > 5 includes 5.
Strictly greater excludes equality.
✓ Instead: Keep only inputs strictly above 5, described by (5, ∞).
Tips and tricks
  • Read the comparison aloud before choosing an endpoint symbol.

Part 2: Set-builder notation

Set-builder notation is a sentence compressed into symbols. Braces, { and }, mean the set of. The vertical bar means such that. After the bar comes the condition an element must satisfy. Here x is understood to be a real number unless another kind of input is specified.

  • {x | x > 5} reads the set of x such that x is greater than 5.
  • A condition may use words as well as inequalities.
  • A listed set {2, 7} names its elements; a set-builder condition explains membership.

{x | x ≤ 7}

the set of real x

such that x is at most 7

Reminder
Reminder: Compound conditions, Order of numbers
  • Compound conditions. −2 ≤ x < 3 means x ≥ −2 and x < 3; both must hold.
  • Order of numbers. −4 < −1, so −4 is written first in an interval.
The same idea, five ways
Say it

Say the set of real x such that x is at most seven.

Write it

Braces name a set and the bar introduces its membership condition.

In math
  • x ≤ 7
  • {x | x ≤ 7}
  • (−∞,7]
  • Graph words: closed dot at 7, shade left
Like

A guest-list rule states who qualifies without listing every possible guest.

See it

{x | x ≤ 7}

the set of real x

such that x is at most 7

Worked example

A closed ray extending to the left

OpenStax problem

Write x ≤ 7 in set-builder and interval notation.

Show the steps and the answer
7(−∞, 7]
Interval: (−∞, 7]. The endpoint symbols record which limits belong.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. Include 7 and all smaller real values.The ≤ symbol includes equality.
  3. Write {x | x≤7}.Set-builder notation names the same membership condition.
  4. Write (−∞,7].The smaller end comes first, and the finite endpoint is included.
Answer
  • Set-builder: {x | x ≤ 7}.
  • Interval: (−∞, 7].
Double-check 7 and 6.9 belong, while 7.1 does not; there is no smallest real number in this set.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Read the bar in {x | x ≤ 7} as division.
Inside set-builder notation this bar introduces the membership condition.
✓ Instead: Read the set of real x such that x is at most 7.
Tips and tricks
  • Say the set of at the braces and such that at the bar.

Part 3: Interval notation

Interval notation names a continuous stretch of real numbers by its endpoints. It includes all numbers between those limits, not only integers. Use it for a stretch, but use a list for isolated values. An interval may run without an upper or lower bound.

  • Lower limit first, upper limit second: [−2, 3), not (3, −2].
  • Inclusive means included; exclusive means excluded.
  • A bracket is square, while a parenthesis is curved.
  • [c, c] is a one-element set; (c, c) has no elements because no number lies strictly between c and itself.
−203
[−2, 3) on a number line, with a tick at 0.
Reminder
Reminder: Compound conditions, Order of numbers
  • Compound conditions. −2 ≤ x < 3 means x ≥ −2 and x < 3; both must hold.
  • Order of numbers. −4 < −1, so −4 is written first in an interval.
The same idea, five ways
Say it

Say at least negative two and less than three.

Write it

The interval contains every real number between −2 and 3, with only the left endpoint included.

In math
  • −2≤x<3
  • {x|−2≤x<3}
  • [−2,3)
  • Graph words: closed at −2, open at 3, shade between
Like

Two mile markers describe an unbroken permitted stretch of road.

See it
−203
The same picture again: [−2, 3) on a number line, with a tick at 0.

Worked example

Notation ladder 2: one endpoint in, one out

OpenStax problem

Write −2 ≤ x < 3 in words, set-builder notation and interval notation.

Show the steps and the answer
−23[−2, 3)
The same picture again: [−2, 3) on a number line.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. Include −2 and exclude 3.The left comparison has equality, while the right comparison is strict.
  3. Say all real numbers at least −2 and less than 3.Both bounds must hold at the same time.
  4. Write {x | −2≤x<3} and [−2,3).The left bracket includes −2 and the right parenthesis excludes 3.
Answer
  • Words: at least −2 and less than 3.
  • Set-builder: {x | −2 ≤ x < 3}.
  • Interval: [−2, 3).
Double-check The values −2 and 2.5 belong; 3 does not. All three descriptions give these same decisions.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The finite set {−2, 3} equals [−2, 3].
The interval contains every real number between those limits, while the set lists only two numbers.
✓ Instead: Use {−2, 3} for two isolated members, and [−2, 3] for the full stretch.
Tips and tricks
  • Ask whether intervening fractions should belong.

Part 4: Union of sets

Union means gather everything belonging to one collection or the other, or both. Picture pouring two trays of labeled keys onto one table. Keep every different label once. The collections may be separated, overlap, or contain only a few isolated members.

  • The symbol ∪ joins sets without inventing members.
  • Shared members appear once.
  • An intersection keeps only members in both sets. It explains why an input must pass all arithmetic restrictions, while union combines allowed pieces.

{2, 4, 6} ∪ {4, 7}

= {2, 4, 6, 7}

The shared member 4 is listed once

Reminder
Reminder: Compound conditions, Order of numbers
  • Compound conditions. −2 ≤ x < 3 means x ≥ −2 and x < 3; both must hold.
  • Order of numbers. −4 < −1, so −4 is written first in an interval.
The same idea, five ways
Say it

Say in either set or in both.

Write it

Union collects all members from both sets, listing shared members once.

In math
  • {2, 4, 6} ∪ {4, 7} = {2, 4, 6, 7}
  • {x | x = 2 or x = 4 or x = 6 or x = 7}
Like

Combine two guest lists and keep each different guest once.

See it

{2, 4, 6} ∪ {4, 7}

= {2, 4, 6, 7}

The shared member 4 is listed once

Worked example

Union can combine overlapping finite sets

Find {2, 4, 6} ∪ {4, 7}.

Show the steps and the answer

{2, 4, 6, 7}.

  1. We are collecting all members that belong to either set, keeping repeated members once.Naming the requested values tells us which taught method to use.
  2. Collect members belonging to either set: 2, 4, 6, 4, 7.Union means the first set or the second set or both.
  3. List 4 once and write {2, 4, 6, 7}.A set records whether an element belongs, not how many times it appears.
Answer
{2, 4, 6, 7}.
Double-check Each original set is contained in the answer. Listing {7, 2, 6, 4} would name the same set because a finite set has no required ordering.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: A shared member is listed twice in the union.
A set records membership rather than repeated appearances.
✓ Instead: {2, 4, 6} ∪ {4, 7} = {2, 4, 6, 7}.
Tips and tricks
  • Union keeps either collection's members and removes only repeated listings.

5 How

  1. Identify the shaded or allowed portion of the number line.
  2. Use the closed dot / open dot convention: a filled dot is included and a hollow dot is excluded.
  3. State comparisons with <, >, ≤ or ≥ for inequality notation.
  4. Put the condition after the bar in {x | condition} for set-builder notation.
  5. Write the lower limit first and the upper limit second in interval notation.
  6. For separate pieces, join conditions with or and intervals with ∪. Keep every gap that is actually excluded.

Translate an allowed set

1
Is a finite endpoint included?
YesUse a square bracket.
NoUse a parenthesis.
↓
2
Does the interval continue without a finite endpoint?
YesUse −∞ or ∞ with a parenthesis.
NoWrite the actual finite limit.
↓
3
Are there separate allowed pieces?
YesJoin their intervals with ∪ and their conditions with or.
NoWrite one interval without adding a gap.
  1. Identify the shaded or allowed portion of the number line.
  2. Read a filled dot as included and a hollow dot as excluded.
  3. State comparisons with <, >, ≤ or ≥ for inequality notation.
  4. Put the condition after the bar in {x | condition} for set-builder notation.
  5. Write the lower limit first and the upper limit second in interval notation.
  6. For separate pieces, join conditions with or and intervals with ∪. Keep every gap that is actually excluded.

6 Worked example

Worked example

Textbook: read two shaded intervals

OpenStax problem

A number line shades 1 through 3 with filled endpoints, and everything to the right of 5 with a hollow endpoint at 5. Describe the set three ways.

Show the steps and the answer
135[1, 3] ∪ (5, ∞)
The same picture again: [1, 3] and (5, ∞) on a number line.
  1. We are expressing the same allowed values in the requested notation.Naming the requested values tells us which taught method to use.
  2. For the first shaded piece, write 1≤x≤3.Both endpoints have filled dots, so both are included.
  3. For the second piece, write x > 5.The dot at 5 is hollow and the shading continues to the right without a last number.
  4. Join the conditions with or and the intervals with ∪.Membership in either piece is enough; the unshaded gap is not included.
  5. Read the braces and bar in {x | 1≤x≤3 or x > 5}.This says the set of real x such that one of the two stated conditions holds.
Answer
  • Inequality: 1 ≤ x ≤ 3 or x > 5.
  • Set-builder: {x | 1 ≤ x ≤ 3 or x > 5}.
  • Interval: [1, 3] ∪ (5, ∞).
Double-check 2 is included by the first piece and 6 by the second. Neither 4 nor 5 is included, so the gap remains.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

Notation ladder 1: one open ray

OpenStax problem

Write x > 5 in set-builder and interval notation.

Show the steps and the answer
5(5, ∞)
The same picture again: (5, ∞) on a number line.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. Read > as strictly greater than, so 5 is excluded.The inequality has no equality part.
  3. Write {x | x > 5}.The braces name a set and the bar means such that.
  4. Write (5,∞).The set starts beyond 5 and has no upper endpoint; both symbols use parentheses.
Answer
  • Set-builder: {x | x > 5}.
  • Interval: (5, ∞).
Double-check 6 belongs to every description; 5 and 4 belong to none.

Rung 2 of 5

Notation ladder 2: one endpoint in, one out

OpenStax problem

Write −2 ≤ x < 3 in words, set-builder notation and interval notation.

Show the steps and the answer
−23[−2, 3)
The same picture a third time: [−2, 3) on a number line.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. Include −2 and exclude 3.The left comparison has equality, while the right comparison is strict.
  3. Say all real numbers at least −2 and less than 3.Both bounds must hold at the same time.
  4. Write {x | −2≤x<3} and [−2,3).The left bracket includes −2 and the right parenthesis excludes 3.
Answer
  • Words: at least −2 and less than 3.
  • Set-builder: {x | −2 ≤ x < 3}.
  • Interval: [−2, 3).
Double-check The values −2 and 2.5 belong; 3 does not. All three descriptions give these same decisions.

Rung 3 of 5

Textbook: read two shaded intervals

OpenStax problem

A number line shades 1 through 3 with filled endpoints, and everything to the right of 5 with a hollow endpoint at 5. Describe the set three ways.

Show the steps and the answer
135[1, 3] ∪ (5, ∞)
The same picture a third time: [1, 3] and (5, ∞) on a number line.
  1. We are expressing the same allowed values in the requested notation.Naming the requested values tells us which taught method to use.
  2. For the first shaded piece, write 1≤x≤3.Both endpoints have filled dots, so both are included.
  3. For the second piece, write x > 5.The dot at 5 is hollow and the shading continues to the right without a last number.
  4. Join the conditions with or and the intervals with ∪.Membership in either piece is enough; the unshaded gap is not included.
  5. Read the braces and bar in {x | 1≤x≤3 or x > 5}.This says the set of real x such that one of the two stated conditions holds.
Answer
  • Inequality: 1 ≤ x ≤ 3 or x > 5.
  • Set-builder: {x | 1 ≤ x ≤ 3 or x > 5}.
  • Interval: [1, 3] ∪ (5, ∞).
Double-check 2 is included by the first piece and 6 by the second. Neither 4 nor 5 is included, so the gap remains.

Rung 4 of 5

Notation ladder 4: every real number except one

OpenStax problem

Write x ≠ 2 using inequalities, set-builder notation and intervals.

Show the steps and the answer
2(−∞, 2) ∪ (2, ∞)
Interval: (−∞, 2) ∪ (2, ∞). The endpoint symbols record which limits belong.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. Split the allowed inputs into x < 2 or x > 2.Every real number except 2 lies on one side of 2.
  3. Write {x | x≠2}.The condition says to omit that single member.
  4. Write (−∞,2)∪(2,∞).Neither interval includes 2, and their union contains everything else.
Answer
  • Inequality: x < 2 or x > 2.
  • Set-builder: {x | x ≠ 2}.
  • Interval: (−∞, 2) ∪ (2, ∞).
Double-check An input such as 1.9 remains allowed, as does 2.1. The omission is one number, not a whole neighborhood.

Rung 5 of 5

Notation ladder 5: overlap and a single-value set

Simplify [0, 4] ∪ [2, 6]. Also write {8} in interval notation.

Show the steps and the answer
06[0, 6]
The overlapping intervals cover every position from 0 through 6.
8[8, 8]
Both limits are 8 and included, so this is the one-member set {8}.
  1. We need a different description with exactly the same allowed members.State what is being found before choosing the calculation.
  2. The first interval includes every real number from 0 through 4, and the second from 2 through 6.Both use brackets, so all listed endpoints belong.
  3. The pieces overlap from 2 through 4, leaving no gap between 0 and 6.Union includes elements in either piece and does not duplicate shared elements.
  4. Write the union as [0, 6].Its smallest member is 0 and largest is 6, and every number between is included.
  5. Write {8} as [8, 8].The only number between equal included endpoints is that endpoint itself.
Answer
  • Union: [0, 6].
  • Single-value interval: [8, 8].
Double-check 5 comes from the second interval and 1 from the first. In [8, 8], 8 satisfies both limits, while 7.9 and 8.1 do not.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Infinity belongs, so write [5, ∞].
Infinity is not a real number or a reachable endpoint. The left endpoint also depends on whether equality is allowed.
✓ Instead: For x ≥ 5 write [5, ∞); for x > 5 write (5, ∞).
✗ Not this: Union applies only when sets are separate.
Union keeps all members in either set, whether the sets overlap or not.
✓ Instead: [0, 4] ∪ [2, 6] = [0, 6].

Tips and tricks

  • Translate one endpoint at a time: equality means included, and strict means excluded.
  • Write or next to ∪ as a memory cue.
  • Test one boundary and one gap value to check that a notation translation has kept the same set.

7 The trap

Writing [1, ∞) for [1, 3] ∪ (5, ∞). That would fill the missing region after 3 through 5. The union symbol joins sets without filling gaps.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 5 of 10

Read domain and range as shadows of a graph

Subject: MathematicsLeans on: CoordinatesLeans on: Solving for an inputOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Imagine shining a light straight down onto a graph. The shadow on the horizontal number line shows every input position the graph visits. That shadow is the domain. Now shine a light from the side. The shadow on the vertical number line shows every output height the graph reaches. That shadow is the range. You are collecting coordinates, not measuring the length of the curve. A curve can turn around, cross the same height twice, or have separate pieces. You still collect each covered input or output once, and leave a gap only when no included point reaches that coordinate.

2 Picture it

(0, 0)domainrange−222468(0, 0)domainrange−3−2−11232468
For the full square function the horizontal shadow continues both ways.

Reminder

Reminder: Coordinates, Solving for an input
  • Coordinates. The point (2, 4) has input coordinate 2 and output coordinate 4.
  • Solving for an input. y = −2x + 3 gives x = 3−y2, an input for any chosen real y.

3 Why

Every point on a function graph is an ordered pair (x, y). Its horizontal coordinate tells which input was used; its vertical coordinate tells the resulting output. Projecting every included point onto an axis therefore collects exactly the relevant set. A hollow point excludes that point alone. Another point with the same x or y may keep that coordinate in a shadow. Arrows indicate continuation beyond the viewing window, so the edge of a picture is not automatically an endpoint. The answer describes the function's graph, not the camera frame.

4 The rule

Domain = the graph's horizontal shadow on the x-axis.

Range = its vertical shadow on the y-axis; include a coordinate if any included point reaches it.

The same idea, five ways

Say it

Say domain as horizontal shadow and range as vertical shadow.

Write it

An included graph point contributes its x-coordinate to the domain and its y-coordinate to the range.

In math
  • For the pictured original curve:
  • Horizontal extent: x ≥ 6
  • Domain: {x | x ≥ 6} = [6, ∞)
  • Vertical extent: y ≤ 2
  • Range: {y | y ≤ 2} = (−∞, 2]
  • For the textbook graph in the ladder:
  • Horizontal extent: −3 < x ≤ 1
  • Domain: {x | −3 < x ≤ 1} = (−3, 1]
  • Vertical extent: −4 ≤ y ≤ 0
  • Range: {y | −4 ≤ y ≤ 0} = [−4, 0]
Like

Two lights project the same curve onto two different walls.

See it
included start(7, 1)(10, 0)domainrange46810121416−224
For this pictured curve, the input shadow starts at 6 and the output shadow ends at 2.

The same idea, other ways

As two shadows

Drop every graph point onto the x-axis to gather the domain. Push every graph point sideways onto the y-axis to gather the range. The two shadows can have different limits.

domainrange2468−11234
The square root graph starts at zero on both axes and continues upward and rightward.
As addresses

Every graph point carries an address (input, output). If the graph contains (2, 4), then 2 belongs to the domain and 4 belongs to the range. One address supplies membership on both axes.

With a turning graph

For y = x2 on −2 < x ≤ 2, the left point (−2, 4) is absent. The right point (2, 4) is present. The input −2 is excluded, but the output 4 is still reached.

As a camera frame

A window may show a line only between x = −3 and x = 3. If arrows continue past the frame, those marks are viewing limits, not domain endpoints. Ask what the graph does beyond the picture.

Part 1: A bounded graph with endpoints

A bounded graph fits between finite input limits or output limits. Inclusion belongs to a coordinate whenever the graph actually reaches it. A turn in the curve can make its lowest output occur in the middle rather than at an endpoint.

  • Read all reached heights, including a high or low point inside the interval.
  • Use brackets for reached endpoint coordinates.
  • One missing point does not remove a coordinate reached somewhere else.
lowest heightleft boundary locationright boundary location−22246
y=x2.
Reminder
Reminder: Coordinates, Solving for an input
  • Coordinates. The point (2, 4) has input coordinate 2 and output coordinate 4.
  • Solving for an input. y = −2x + 3 gives x = 3−y2, an input for any chosen real y.
The same idea, five ways
Say it

Say inputs after negative two through two; outputs zero through four.

Write it

Removing (−2, 4) does not remove height 4 when (2, 4) still belongs.

In math
  • −2<x≤2
  • Domain: {x | −2 < x ≤ 2} = (−2, 2]
  • 0 ≤ y ≤ 4
  • Range: {y | 0 ≤ y ≤ 4} = [0, 4]
Like

A fence marks finite positions a path may reach.

See it
lowest heightleft boundary locationright boundary location−22246
The same picture again: y = x2.

Worked example

A dipping curve that starts at a hollow dot

The graph shown is one unbroken curve, part of the parabola y = (x − 1)2 − 3. The horizontal axis is x and the vertical axis is y. Both are plain number lines with no units. The curve starts at a hollow dot at (−2, 6). It falls to its lowest point (1, −3), then rises without a break to a solid dot at (3, 1). There are no arrows on the graph. Find the domain and the range of the graph, and write each as an interval.

(−2, 6) hollow(1, −3) lowest point(3, 1) solid−22−4−2246
The piece of the parabola y = (x − 1)2 − 3 for x from −2 to 3.
Show the steps and the answer
  1. Identify the axes. The horizontal x-axis is the input axis and the vertical y-axis is the output axis. Both carry plain numbers with no units, so the domain and the range will be sets of plain numbers.The domain collects inputs, so it is read along the x-axis. The range collects outputs, so it is read along the y-axis. Settling this first stops the two shadows from being swapped.
  2. Sweep a vertical line from left to right. The horizontal shadow begins at x=−2, where the hollow dot (−2,6) sits, and ends at x=3, where the solid dot (3, 1) sits. The curve has no breaks in between, so the shadow covers every x from −2 to 3. Whether each end belongs is settled when the dots are checked below.The domain is the graph's horizontal shadow on the x-axis: every x that has an included point of the graph directly above or below it. An unbroken curve casts an unbroken shadow.
  3. Sweep a horizontal line from bottom to top. The lowest height it meets is y=−3, at the turning point (1,−3). From there the curve rises on both sides. On the right it climbs only to height 1 at the solid dot. On the left it climbs toward height 6 at the hollow dot. So the vertical shadow covers every height from −3 up to 6. The point (1,−3) lies in the middle of the unbroken curve, so it is included and −3 is reached. Whether 6 itself is reached is checked at the hollow dot below.The range is the graph's vertical shadow on the y-axis: every height reached by an included point. On a curve that dips, the lowest height can come from a turning point instead of an endpoint. Reading only the endpoint heights 6 and 1 would miss the dip to −3.
  4. Check the solid dot (3, 1). It is part of the graph, so x=3 is in the domain. Its height 1 already lies between −3 and 6, so it adds nothing new to the range.A solid dot is an included point, so both of its coordinates are reached.
  5. Check the hollow dot (−2,6) for its input. The vertical line x=−2 meets the graph only at this hollow dot, because the curve starts there. No other point has x=−2, so −2 is not in the domain.A hollow dot excludes only that one point. Its x-value is lost only when no included point shares it, and here none does.
  6. Check the hollow dot (−2,6) for its output. Every other point of the piece is lower than 6. The left part falls away from 6 toward (1,−3), and the right part climbs back only to 1. So no included point has height 6, and 6 is not in the range, even though every height just below 6 is reached.A height belongs to the range only if some included point reaches it. Height 6 belongs to the hollow dot alone.
  7. Look for arrows and gaps. Both ends of the curve finish at dots, there are no arrows, and there are no breaks or missing points between the ends.With no arrows, nothing continues beyond the drawn piece. With no gaps, each shadow is a single interval, so no union is needed.
  8. Write each interval from its smaller end to its larger end. Use a round bracket for an excluded end and a square bracket for an included end: domain (−2,3], range [−3,6). The numbers are exact, not estimates.Interval notation lists the smaller number first. The one hollow dot gives the domain a round bracket on the left, because −2 is the domain's smaller end. It gives the range a round bracket on the right, because 6 is the range's larger end. Every coordinate is stated exactly, so no 'approximately' label is needed; that label is only for readings estimated from a data graph.
Answer
Domain: (−2, 3], that is −2 < x ≤ 3. Range: [−3, 6), that is −3 ≤ y < 6.
Double-check Use y = (x − 1)2 − 3. The three marked points fit the curve: x = −2 gives (−3)2 − 3 = 6, x = 1 gives 0 − 3 = −3, and x = 3 gives 22 − 3 = 1. Top end: (x − 1)2 − 3 = 6 gives (x − 1)2 = 9, so x = −2 or x = 4. The point at x = −2 is the hollow dot, and x = 4 lies past the solid end at x = 3. So no included point has height 6, which confirms the round bracket at 6. Bottom end: (x − 1)2 is never negative, so y ≥ −3 everywhere. The value y = −3 occurs at x = 1, inside (−2, 3], which confirms the square bracket at −3. A height inside the range, y = 4: (x − 1)2 = 7 gives x = 1 − 7 ≈ −1.65, which lies in (−2, 3], so 4 is reached, as the range claims. Sizes: the domain is 3 − (−2) = 5 units wide and the range is 6 − (−3) = 9 units tall.

Work to write

  1. x-axis = input, y-axis = output; plain numbers, no units
  2. Hollow dot (−2, 6): no other point has x = −2, so −2 is not in the domain
  3. Solid dot (3, 1): 3 is in the domain
  4. Domain: (−2, 3]
  5. Lowest point (1, −3) is on the curve, so −3 is in the range
  6. Height 6 occurs only at the hollow dot, so 6 is not in the range
  7. Range: [−3, 6)
  8. No arrows and no gaps: each shadow is one interval, and the values are exact
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The open point (−2, 4) removes height 4 from the restricted square graph.
The included point (2, 4) still reaches that height.
✓ Instead: Domain (−2, 2]; range [0, 4].
Tips and tricks
  • Check the whole curve before removing an output height.

Part 2: An unbounded graph

Unbounded means the graph continues without a finite limit in the direction being discussed. Arrows are a promise of continuation. They do not turn infinity into a point. A nonhorizontal line reaches arbitrarily large positive and negative heights as you travel along it.

  • Infinity always takes a parenthesis.
  • A viewing window is not an input restriction.
  • To check a line's full range, solve for the input that produces an arbitrary output.
(0, 3)(1.5, 0)domainrange−4−224−44812
y=−2x+3.
Reminder
Reminder: Coordinates, Solving for an input
  • Coordinates. The point (2, 4) has input coordinate 2 and output coordinate 4.
  • Solving for an input. y = −2x + 3 gives x = 3−y2, an input for any chosen real y.
The same idea, five ways
Say it

Say the line continues without an input or output limit.

Write it

The stated continuation extends the line beyond the viewing frame.

In math
  • y=−2x+3
  • x=3−y2
  • Domain: {x | x is real} = (−∞, ∞)
  • Range: {y | y is real} = (−∞, ∞)
Like

A long road continues beyond the edge of a photograph.

See it
(0, 3)(1.5, 0)domainrange−4−224−44812
The same picture again: y = −2x + 3.

Worked example

A viewing window does not stop a line

The picture shows part of y = −2x + 3. Its caption states that the line continues in both directions, and no input restriction is supplied. Find domain and range. This asks which input positions and output heights belong to the entire line.

(0, 3)(1.5, 0)domainrange−4−224−44812
The same picture a third time: y = −2x + 3.
Show the steps and the answer
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Keep every real x.Multiplication and addition are defined for every real input, and the caption states that the line continues.
  3. To reach a chosen output y, solve y=−2x+3.Finding an input for every proposed output checks the entire range.
  4. Subtract 3 and divide by −2: x=3−y2.The number −2 multiplying x is nonzero, so dividing by it gives a real input for every real y.
  5. Write all real numbers for both sets.Neither input positions nor output heights stop at the window's edges.
Answer
  • Domain: (−∞, ∞).
  • Range: (−∞, ∞).
Double-check To reach y = 13, choose x = −5: −2(−5) + 3 = 13. This output can lie beyond a small visible graph window.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The displayed frame supplies the line's last input.
The caption states that the line continues, and the formula supplies no finite endpoint.
✓ Instead: For y = −2x + 3, both domain and range are (−∞, ∞).
Tips and tricks
  • Distinguish an arrow from an endpoint marker.

Part 3: A graph of real data

A graph from measurements has labels and units as well as a curve. Read the years on one axis and the measured quantity on the other. If the curve falls between grid lines, say that your limits are approximate instead of treating a visual estimate as an exact number.

  • The oil graph's visible inputs run from about 1973 through 2008.
  • Its output unit is thousands of barrels of oil per day.
  • The visible range is approximately [180, 2010] in that unit.
  • A continuous plotted model fills a time span; a table listing separate yearly observations gives only those listed years.

Visible years: [1973, 2008]

Production: about [180, 2010]

Output unit: thousand barrels per day

Reminder
Reminder: Coordinates, Solving for an input
  • Coordinates. The point (2, 4) has input coordinate 2 and output coordinate 4.
  • Solving for an input. y = −2x + 3 gives x = 3−y2, an input for any chosen real y.
The same idea, five ways
Say it

Say the visible years and production levels with their units.

Write it

The oil graph describes a shown time span and approximately read production levels.

In math
  • 1973 ≤ t ≤ 2008
  • Visible domain: [1973, 2008]
  • 180 ≤ b ≤ 2010, approximately
  • Visible range: approximately [180, 2010] thousand barrels per day
Like

Read a measuring instrument's units before interpreting its marks.

See it

Visible years: [1973, 2008]

Production: about [180, 2010]

Output unit: thousand barrels per day

Worked example

Textbook: a visible oil-production graph

OpenStax problem

For the portion of the textbook oil-production graph shown, the horizontal extent is about 1973 through 2008 and the vertical extent is about 180 through 2010 thousand barrels per day. State the visible domain and range with units.

Visible domain: [1973, 2008], in years.

Visible range: approximately [180, 2010], in thousand barrels per day.

Show the steps and the answer
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Identify the input as year and the output as oil production.The horizontal axis records time, and the vertical axis records thousands of barrels per day.
  3. Write [1973, 2008] for the visible domain.These are the first and last years in the portion being described, with endpoints included in the displayed model.
  4. Write approximately [180, 2010] for the range.These are the estimated smallest and largest plotted production levels, not output years.
  5. Retain thousand barrels per day as the output unit.180 on this vertical axis represents about 180000 barrels per day, not 180 barrels per day.
  6. Limit the claim to the shown portion of the graph.The supplied picture does not establish the behavior outside its displayed time span.
Answer
  • Visible domain: [1973, 2008], in years.
  • Visible range: approximately [180, 2010], in thousand barrels per day.
Double-check Multiplying the vertical limits by 1000 gives approximately 180000 through 2010000 barrels per day. These are approximate graph readings rather than exact algebraic bounds.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The output 180 means 180 barrels per day.
The oil-production axis is measured in thousands of barrels per day.
✓ Instead: 180 on this axis represents about 180000 barrels per day.
Tips and tricks
  • Write the unit immediately beside every approximate limit.

5 How

  1. Identify the x-axis as the input axis and the y-axis as the output axis; read their units.
  2. Sweep left to right and collect all input positions covered by included graph points.
  3. Sweep bottom to top and collect all reached output heights.
  4. Check boundary dots. A hollow point excludes only that point, so look for other points sharing its coordinate.
  5. Follow arrows beyond the visible window, and preserve genuine gaps with unions.
  6. Write each interval from smaller to larger and label estimates from a data graph as approximate.

Read the graph's two shadows

1
Does a boundary point belong?
YesKeep its coordinates in the two shadows.
NoCheck whether another included point shares its x-coordinate or y-coordinate.
↓
2
Does an arrow continue beyond the window?
YesFollow the indicated continuation instead of using the frame as an endpoint.
NoRead the stated or drawn finite limits.
↓
3
Is a coordinate gap reached nowhere?
YesPreserve the gap with separate intervals.
NoInclude that coordinate in the shadow.
  1. Identify the x-axis as the input axis and the y-axis as the output axis; read their units.
  2. Sweep left to right and collect all input positions covered by included graph points.
  3. Sweep bottom to top and collect all reached output heights.
  4. Check boundary dots. A hollow point excludes only that point, so look for other points sharing its coordinate.
  5. Follow arrows beyond the visible window, and preserve genuine gaps with unions.
  6. Write each interval from smaller to larger and label estimates from a data graph as approximate.

6 Worked example

Worked example

Read a starting point and two directions

Read the pictured curve’s domain and range. It has an included start at (6, 2) and continues rightward and downward without bound. You are collecting its horizontal input positions and vertical output heights.

Show the steps and the answer
included start(7, 1)(10, 0)domainrange46810121416−224
The same picture again: y = −(x−6) + 2.
  1. Locate the start at input 6 and output 2.The first coordinate is horizontal input, and the second is vertical output.
  2. Project the entire curve onto the input axis: it begins at 6 and continues through every larger input.The curve continues rightward and has no gap in its horizontal shadow.
  3. Include input 6 and write [6,∞).The starting point belongs, so the domain begins with a bracket.
  4. Project onto the output axis: the highest height is 2 and the curve continues through every smaller height.The curve moves downward without a break or a lowest height.
  5. Write (−∞,2] for the range.Height 2 belongs, smaller heights continue without limit, and limits are written in increasing order.
Answer
  • Domain: [6, ∞).
  • Range: (−∞, 2].
Double-check The included start contributes 6 to the domain and 2 to the range. The visible points (7, 1) and (10, 0) confirm the rightward and downward direction; the stated continuation extends both shadows beyond the frame.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

Read a starting point and two directions

Read the pictured curve’s domain and range. It has an included start at (6, 2) and continues rightward and downward without bound. You are collecting its horizontal input positions and vertical output heights.

Show the steps and the answer
included start(7, 1)(10, 0)domainrange46810121416−224
The same picture a third time: y = −(x−6) + 2.
  1. Locate the start at input 6 and output 2.The first coordinate is horizontal input, and the second is vertical output.
  2. Project the entire curve onto the input axis: it begins at 6 and continues through every larger input.The curve continues rightward and has no gap in its horizontal shadow.
  3. Include input 6 and write [6,∞).The starting point belongs, so the domain begins with a bracket.
  4. Project onto the output axis: the highest height is 2 and the curve continues through every smaller height.The curve moves downward without a break or a lowest height.
  5. Write (−∞,2] for the range.Height 2 belongs, smaller heights continue without limit, and limits are written in increasing order.
Answer
  • Domain: [6, ∞).
  • Range: (−∞, 2].
Double-check The included start contributes 6 to the domain and 2 to the range. The visible points (7, 1) and (10, 0) confirm the rightward and downward direction; the stated continuation extends both shadows beyond the frame.

Rung 2 of 5

Textbook: read the full horizontal and vertical extents

OpenStax problem

The textbook graph has a hollow left endpoint at x = −3 and an included right endpoint at x = 1. It covers every x between them, reaches y = −4 and y = 0, and covers every height between them. Find domain and range. This asks which input positions and output heights belong, including the endpoint decisions.

−31(−3, 1]
The horizontal shadow excludes −3 and includes 1; this matches the textbook graph’s endpoint dots.
Show the steps and the answer
−40[−4, 0]
Range: [−4, 0]. The endpoint symbols record which limits belong.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Read the horizontal extent from −3 through 1.The x-coordinate is the input, so the horizontal shadow gives the domain.
  3. Exclude −3, include 1, and write (−3,1].The left endpoint is hollow and no other point has x = −3. The right endpoint is included. Input endpoints and output endpoints are separate decisions.
  4. Read the vertical extent from −4 through 0.The y-coordinate is the output, and the smaller height must be written first.
  5. Include both reached heights and write [−4,0].Every height between them is reached, including the endpoints.
Answer
  • Domain: (−3, 1].
  • Range: [−4, 0].
Double-check Input −3 is absent and input 1 is present, matching the horizontal shadow. The graph reaches heights −4 and 0, so both range endpoints stay included. An output height of −2 belongs, while 1 does not; an input of 0 belongs, while −4 does not.

Rung 3 of 5

Shadows of an arch with one hollow end

A graph is one unbroken arch that is part of the parabola y = −(x − 2)2 + 5. It is drawn on a grid with 1 unit per square on both axes. The arch starts at a hollow dot at (−1, −4), rises to its highest point (2, 5), and falls to a solid dot at (5, −4). It has no arrows and no breaks. Use the graph's shadows to write its domain and its range in interval notation.

(−1, −4) hollow(2, 5)(5, −4) solid24−4−2246
The arch y = −(x − 2)2 + 5 from x = −1 to x = 5.
Show the steps and the answer
  1. Name the axes. The horizontal x-axis is the input axis and the vertical y-axis is the output axis. Each is marked 1 unit per grid square.The domain is read on the input axis and the range on the output axis, so we need to know where each shadow lands and what its marks count.
  2. Sweep left to right. The arch runs from its left end dot at x=−1 to its right end dot at x=5 and covers every x between them without a gap. So the horizontal shadow stretches from −1 to 5.The domain is every input that has a graph point directly above or below it. That set is the shadow the graph casts onto the x-axis.
  3. Sweep bottom to top. The lowest marked height is −4, shared by both end dots. The highest is 5, at the top point (2, 5). The curve passes through every height between them, so the vertical shadow stretches from −4 to 5.The range is every output height the graph reaches. That set is the shadow the graph casts sideways onto the y-axis.
  4. Check the boundary dots. No other point of the arch sits on the line x=−1, so the hollow dot (−1,−4) leaves −1 out of the domain. Height −4 is also reached by the solid dot (5,−4), so −4 stays in the range. The solid dot puts 5 in the domain, and the included top point (2, 5) puts 5 in the range.A hollow dot removes only its own point, not its coordinates. A coordinate drops out of a shadow only when no included point shares it.
  5. Look for arrows and gaps. There are none: the arch stops at its two end dots and has no breaks. So each shadow is a single interval and no union is needed.Arrows would carry a shadow past the visible window, and a genuine break would split a shadow into pieces joined by ∪. This graph has neither.
  6. Write each interval from smaller to larger. Use a round bracket for an excluded end and a square bracket for an included end: domain (−1,5], range [−4,5]. Both ends come from exact labeled points, not readings off a data graph, so no 'approximately' label is needed.Interval notation lists the left end first, and the bracket shape records whether each end belongs to the set.
Answer
Domain: (−1, 5]. Range: [−4, 5].
Double-check Substitute into y = −(x − 2)2 + 5. x = −1 gives −9 + 5 = −4, x = 2 gives 5, and x = 5 gives −9 + 5 = −4, so all three labeled points lie on the parabola. At the ends: the vertical line x = −1 meets the graph only at the hollow dot, so −1 is not an input. The horizontal line y = −4 still meets the graph at the solid dot (5, −4), so −4 is an output. Inside: the height y = 0 is reached at x = 2 − 5 ≈ −0.24 and x = 2 + 5 ≈ 4.24, and both lie in (−1, 5]. No height above 5 is reached, because −(x − 2)2 is never positive.

Work to write

  1. Domain: (−1, 5]
  2. Range: [−4, 5]
  3. −1 is excluded from the domain: the only point at x = −1 is the hollow dot (−1, −4)
  4. −4 is included in the range: the solid dot (5, −4) reaches height −4
  5. 5 is included in both: the solid dot at x = 5 and the top point (2, 5)

Rung 4 of 5

A viewing window does not stop a line

The picture shows part of y = −2x + 3. Its caption states that the line continues in both directions, and no input restriction is supplied. Find domain and range. This asks which input positions and output heights belong to the entire line.

(0, 3)(1.5, 0)domainrange−4−224−44812
The same picture, shown 4 times now: y = −2x + 3.
Show the steps and the answer
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Keep every real x.Multiplication and addition are defined for every real input, and the caption states that the line continues.
  3. To reach a chosen output y, solve y=−2x+3.Finding an input for every proposed output checks the entire range.
  4. Subtract 3 and divide by −2: x=3−y2.The number −2 multiplying x is nonzero, so dividing by it gives a real input for every real y.
  5. Write all real numbers for both sets.Neither input positions nor output heights stop at the window's edges.
Answer
  • Domain: (−∞, ∞).
  • Range: (−∞, ∞).
Double-check To reach y = 13, choose x = −5: −2(−5) + 3 = 13. This output can lie beyond a small visible graph window.

Rung 5 of 5

Textbook: a visible oil-production graph

OpenStax problem

For the portion of the textbook oil-production graph shown, the horizontal extent is about 1973 through 2008 and the vertical extent is about 180 through 2010 thousand barrels per day. State the visible domain and range with units.

Visible domain: [1973, 2008], in years.

Visible range: approximately [180, 2010], in thousand barrels per day.

Show the steps and the answer
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Identify the input as year and the output as oil production.The horizontal axis records time, and the vertical axis records thousands of barrels per day.
  3. Write [1973, 2008] for the visible domain.These are the first and last years in the portion being described, with endpoints included in the displayed model.
  4. Write approximately [180, 2010] for the range.These are the estimated smallest and largest plotted production levels, not output years.
  5. Retain thousand barrels per day as the output unit.180 on this vertical axis represents about 180000 barrels per day, not 180 barrels per day.
  6. Limit the claim to the shown portion of the graph.The supplied picture does not establish the behavior outside its displayed time span.
Answer
  • Visible domain: [1973, 2008], in years.
  • Visible range: approximately [180, 2010], in thousand barrels per day.
Double-check Multiplying the vertical limits by 1000 gives approximately 180000 through 2010000 barrels per day. These are approximate graph readings rather than exact algebraic bounds.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: An open point at (−2, 4) means 4 is not in the range.
The included point (2, 4) also supplies height 4 in the restricted square graph.
✓ Instead: For −2 < x ≤ 2 and y = x2, the range is [0, 4].
✗ Not this: The line picture ends at x = 4, so the domain ends at 4.
The stated continuation extends the line beyond the displayed frame. A window border is not an assigned endpoint.
✓ Instead: For y = −2x + 3 with no restriction, the domain is (−∞, ∞).

Tips and tricks

  • Label the axes input and output before reading their shadows.
  • Read the bottom height first when writing the range.
  • Look for another included point at a hollow point's height before excluding that height.

7 The trap

Deleting an output height because one point at that height is hollow. Look across the whole graph. A different included point can still put that height in the range.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 6 of 10

The first five toolkit functions

Subject: MathematicsLeans on: Substitution and parenthesesLeans on: Principal square root and cube rootOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Think of a toolkit function as a familiar tool in your drawer. You recognize what a hammer does before you pick it up. In the same way, you can recognize what a basic formula does before you calculate many points. A constant function always returns one fixed number. An identity function returns the number you entered. An absolute value function reports distance from zero. A quadratic function squares the input, and a cubic function cubes it. Each has a familiar picture. You still ask two separate questions: which numbers can go in, and which numbers can actually come out? The picture helps you remember the arithmetic behind those answers.

2 Picture it

−4−2024−4−2024
constant: f(x) = c
−4−2024−4−2024
identity: f(x) = x
−4−2024−4−2024
absolute value: f(x) = |x|
−4−2024−4−2024
quadratic: f(x) = x2
−4−2024−4−2024
cubic: f(x) = x3
−4−2024−4−2024
reciprocal: f(x) = 1/x
−4−2024−4−2024
reciprocal squared: f(x) = 1/x2
−4−2024−4−2024
square root: f(x) = x
−4−2024−4−2024
cube root: f(x) = x3

Reminder

Reminder: Substitution and parentheses, Principal square root and cube root
  • Substitution and parentheses. Replace x with the whole input: at x = −4, x2 becomes (−4)2, not −42.
  • Principal square root and cube root. 9 = 3 is the nonnegative square root. ∛(−8) = −2 because (−2)3 = −8.

3 Why

All five formulas accept every real input because copying, measuring distance, multiplying, and returning a constant never require division by zero or an even root of a negative number. Their outputs differ. Squaring and distance cannot produce a negative output, while cubing preserves a negative sign. To establish a full range, go beyond ruling out bad outputs. Choose any proposed allowed output and explain how an input produces it.

4 The rule

For the toolkit formulas c, x, |x|, x2, and x3, the domain is (−∞,∞).

Their ranges are {c}, (−∞,∞),[0,∞),[0,∞), and (−∞,∞), respectively.

The same idea, five ways

Say it

A toolkit function is a familiar basic rule with a familiar shape.

Write it

Recognizing a basic formula helps you explain both its allowed inputs and its attainable outputs.

In math
  • f(x) = c
  • f(x) = x
  • f(x) = |x|
  • f(x)=x2
  • f(x)=x3
  • Domain for these five: (−∞, ∞)
Like

You recognize a hammer, a screwdriver, or a wrench before using it. You learn basic function shapes the same way.

See it
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024

The same nine graphs again, in the same order: constant, identity, absolute value, quadratic, cubic, reciprocal, reciprocal squared, square root and cube root.

The same idea, other ways

As pictures

A horizontal line has one output height. The identity line reaches every height. The absolute value V and the quadratic bowl stay on or above zero. The cubic curve extends downward in one direction and upward in the other.

−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024

The same nine graphs a third time, in the same order: constant, identity, absolute value, quadratic, cubic, reciprocal, reciprocal squared, square root and cube root.

Work backward from an output

For the identity function, to get 13, enter 13. For the absolute value function, to get 13, enter 13 or −13. For the quadratic function, to get 13, enter 13. For the cubic function, to get 13, enter 133. The same choices work with any permitted output, so the ranges contain more than the values in a short sample.

Part 1: Constant function

Picture a parking lot charging one fixed fee, whatever number you enter on a practice calculator. The calculator always returns 6. A constant function works that way: it ignores changes in the input and returns one fixed output. This mathematical version accepts negative numbers and fractions too. The parking story is a memory picture, not an extra restriction on the formula.

  • Formula: f(x) = c, where c is one fixed real number. Here c = 6.
  • Shape: a horizontal line at height c.
  • Domain: (−∞, ∞), because no calculation can fail for an input.
  • Range: {c}, or [c, c]. Only c comes out, and it is attained at every input, for example x = 0.
(0, 6)domainrange−4−2242468
y = 6.
Reminder
Reminder: Substitution and parentheses, Principal square root and cube root
  • Substitution and parentheses. Replace x with the whole input: at x = −4, x2 becomes (−4)2, not −42.
  • Principal square root and cube root. 9 = 3 is the nonnegative square root. ∛(−8) = −2 because (−2)3 = −8.
The same idea, five ways
Say it

Say return the same fixed number every time.

Write it

The constant function returns 6 for every real input.

In math
  • f(x) = 6
  • Domain: {x | x is real} = (−∞, ∞)
  • Range: {6} = [6, 6]
  • Graph words: horizontal line at height 6
Like

A practice fee calculator that always displays the same fixed charge.

See it
(0, 6)domainrange−4−2242468
The same picture again: y = 6.

Worked example

A constant with zero and a fractional input

For f(x) = 6, find f(0), f(−73), the domain, and the range. You are checking two inputs and then identifying all possible inputs and outputs.

Show the steps and the answer
(0, 6)domainrange−4−2242468
The same picture a third time: y = 6.
  1. f(0)=6.The rule returns 6 without using the input.
  2. f(−73)=6.A fractional or negative input does not change a constant output.
  3. Write domain (−∞,∞).Returning 6 is defined for every real input.
  4. Write range {6}, or [6, 6]. Input 0 already produces 6, and no input produces any other number.A range lists outputs actually attained. The closed interval beginning and ending at 6 contains exactly that one number.
Answer
  • f(0) = 6
  • f(−73)=6
  • Domain: (−∞, ∞)
  • Range: {6} = [6, 6]
Double-check Read the graph's heights instead of calculating: both inputs lead to the horizontal line at y = 6. Its output shadow contains only 6, which matches the range.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Range (6, 6).
Parentheses exclude 6, and there are no numbers strictly between 6 and itself. That would describe no outputs.
✓ Instead: Range [6, 6] or {6}, since 6 is attained.
Tips and tricks
  • For a constant, ask what single height the line has. Use braces for that one-number range.

Part 2: Identity function

Think of a mirror that returns the number you show it without changing anything. Show it 0, and you get 0. Show it a negative fraction, and you get the same negative fraction. The identity function is the copying rule f(x) = x. Its domain and range match because every real number is both a usable input and the output of itself.

  • Formula: f(x) = x.
  • Shape: the straight diagonal line through (0, 0), rising one unit for each one-unit move right.
  • Domain: (−∞, ∞), because copying any real number is permitted.
  • Range: (−∞, ∞). For any desired real output y, input x = y produces that output.
(0, 0)(−3, −3)domainrange−4−224−4−224
y = x.
Reminder
Reminder: Substitution and parentheses, Principal square root and cube root
  • Substitution and parentheses. Replace x with the whole input: at x = −4, x2 becomes (−4)2, not −42.
  • Principal square root and cube root. 9 = 3 is the nonnegative square root. ∛(−8) = −2 because (−2)3 = −8.
The same idea, five ways
Say it

Say copy the input unchanged.

Write it

The identity function returns each real number itself.

In math
  • f(x) = x
  • y = x
  • Domain and range: (−∞, ∞)
  • Graph words: diagonal line through (0, 0)
Like

A mirror returns the number you show it.

See it
(0, 0)(−3, −3)domainrange−4−224−4−224
The same picture again: y = x.

Worked example

Copy zero and a negative fraction

For f(x) = x, find f(0), f(−94), the domain, and the range. You are asking what the copying rule returns and what numbers it can return overall.

Show the steps and the answer
(0, 0)(−3, −3)domainrange−4−224−4−224
The same picture a third time: y = x.
  1. f(0)=0.Substituting 0 for x leaves 0.
  2. f(−94)=−94.The identity rule keeps the whole input unchanged.
  3. The domain is (−∞,∞).Copying does not divide or take a root, so every real input works.
  4. The range is (−∞,∞). Given any real y, choose x=y; then f(x)=y.This produces every proposed real output, rather than only a few sampled outputs.
Answer
  • f(0) = 0
  • f(−94)=−94
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
Double-check The points (0, 0) and (−94, −94) have matching coordinates, so both lie on the line y = x. A horizontal line through any height meets this diagonal, confirming no output height is missing.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: f(−94) = 94 for the identity function.
That changes the sign. The identity rule copies the input; the absolute value rule measures its distance instead.
✓ Instead: f(−94) = −94 when f(x) = x.
Tips and tricks
  • For identity, write matching coordinates: (input, the same input).

Part 3: Absolute value function

Imagine you walk left or right from home, which is zero on a number line. Your address records direction, but your distance from home does not. Both 3 steps left and 3 steps right put you 3 steps away. The absolute value function returns that distance. The words magnitude and modulus also describe this size without the sign. Distance can be zero or positive, but never negative.

  • Formula: f(x) = |x|. If x ≥ 0, |x| = x; if x < 0, |x| = −x.
  • Shape: a V with its lowest point at (0, 0).
  • Domain: (−∞, ∞), because every real position has a distance from zero.
  • Range: [0, ∞). For any y ≥ 0, input x = y has distance |y| = y. Thus every nonnegative height, including zero, is attained.
(0, 0)(−3, 3)(3, 3)domainrange−4−224246
y = |x|.
Reminder
Reminder: Opposite of a negative
  • Opposite of a negative. Reversing a negative twice restores a positive: −(−3) = 3.
The same idea, five ways
Say it

Say the distance from zero.

Write it

Absolute value records size without direction, also called magnitude or modulus.

In math
  • f(x) = |x|
  • |x| = x if x ≥ 0
  • |x| = −x if x < 0
  • Range: {y | y ≥ 0} = [0, ∞)
  • Graph words: V with bottom (0, 0)
Like

Walking left or right from home changes direction but not the distance you traveled.

See it
(0, 0)(−3, 3)(3, 3)domainrange−4−224246
The same picture again: y = |x|.

Worked example

Distance of zero and a negative fraction

For f(x) = |x|, find f(0), f(−114), the domain, and the range. You are finding distances from zero, not keeping the original directions.

Show the steps and the answer
(0, 0)(−3, 3)(3, 3)domainrange−4−224246
The same picture a third time: y = |x|.
0[0, ∞)
[0, ∞) on a number line.
  1. f(0)=|0|=0.Home is zero distance from itself.
  2. f(−114)=|−114|=114.The input lies 114 units left of zero, and distance records a nonnegative size.
  3. Write domain (−∞,∞).Every real number has a distance from zero.
  4. Write range [0,∞). For any y≥0, choosing x=y gives |x|=y.No distance is negative, and the chosen input reaches every proposed nonnegative distance.
Answer
  • f(0) = 0
  • f(−114)=114
  • Domain: (−∞, ∞)
  • Range: [0, ∞)
Double-check Use the two-rule formula instead of the distance story: −114 < 0, so use −x. Then −(−114) = 114, agreeing with the distance calculation.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: |−114|=−114.
A negative answer would claim a negative distance from zero.
✓ Instead: |−114| = 114. Keep the size and remove the direction.
Tips and tricks
  • Absolute value asks how far, not which way. Include zero because |0| = 0.

Part 4: Quadratic function

Picture a square tile whose side has length 3. Its area is 3 × 3 = 9. The toolkit quadratic function makes the same multiplication, f(x) = x2. A negative input is allowed in the mathematical formula, even though a physical side length is not negative. Two negative factors still give a positive output. The graph is a bowl, called a parabola, with its lowest point at zero.

  • Formula: the toolkit quadratic function is f(x) = x2.
  • Shape: an upward-opening bowl, called a parabola, with lowest point (0, 0).
  • Domain: (−∞, ∞), because every real number can be squared.
  • Range: [0, ∞). A square cannot be negative. For any y ≥ 0, choose x = y; then x2 = y. Zero and every positive height are therefore attained.
(0, 0)(−3, 9)(3, 9)domainrange−4−2242610
y=x2.
Reminder
Reminder: Squaring a fraction
  • Squaring a fraction. (32)2 = 3×32×2 = 94; square both the top and the bottom.
The same idea, five ways
Say it

Say multiply the input by itself.

Write it

The toolkit quadratic accepts all real inputs and produces all nonnegative outputs.

In math
  • f(x)=x2
  • y ≥ 0
  • Range: {y | y ≥ 0} = [0, ∞)
  • Graph words: parabola with bottom (0, 0)
Like

A square tile's area is its side length multiplied by itself.

See it
(0, 0)(−3, 9)(3, 9)domainrange−4−2242610
The same picture again: y = x2.

Worked example

A square at zero and a negative fraction

For f(x) = x2, find f(0), f(−72), the domain, and the range. You are multiplying each input by itself before describing every possible output.

Show the steps and the answer
(0, 0)(−3, 9)(3, 9)domainrange−4−2242610
The same picture a third time: y = x2.
0[0, ∞)
The same picture again: [0, ∞) on a number line.
  1. f(0)=02=0×0=0.The square of zero is zero, so the lowest output is actually included.
  2. f(−72)=(−72)2=(−72)×(−72)=494.Two negative factors give a positive product. Fractions multiply top times top and bottom times bottom: 7 × 7 = 49 and 2 × 2 = 4.
  3. The domain is (−∞,∞).Squaring is defined for all real inputs, including fractions and negatives.
  4. The range is [0,∞). For any y≥0,x=y gives f(x)=(y)2=y.No square is negative, and the square-root choice reaches every output at or above zero.
Answer
  • f(0) = 0
  • f(−72)=494
  • Domain: (−∞, ∞)
  • Range: [0, ∞)
Double-check Take the principal square root of the fractional output: 494 = 72, the distance of the original input from zero. The matching positive input 72 also squares to 494.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: (−72)2=−494.
The negative sign is inside the parentheses and is multiplied by itself too.
✓ Instead: (−72)2 = 494. In contrast, −(72)2 = −494 has a minus outside the square.
Tips and tricks
  • A squared input includes its sign. Put a negative substitution inside parentheses before multiplying.

Part 5: Cubic function

Imagine a cube-shaped box. A side of 2 gives volume 2 × 2 × 2 = 8. The toolkit cubic function performs that three-factor multiplication, f(x) = x3. Its mathematical inputs can also be negative. A negative input keeps a negative output because the first two negative factors make a positive and the third makes it negative again. The graph bends through zero, extending down to the left and up to the right.

  • Formula: the toolkit cubic function is f(x) = x3.
  • Shape: a rising curve through (0, 0), reaching arbitrarily negative and arbitrarily positive heights.
  • Domain: (−∞, ∞), because every real number can be cubed.
  • Range: (−∞, ∞). For any real y, choose x = y3. Cubing that input returns y, including negative targets.
  • Cubing keeps input order: if a < b, then a3 < b3. For nonnegative inputs, larger factors give a larger cube. For two negative inputs, their positive distances have the reverse order and negating those cubes restores the input order. If the inputs are on opposite sides of zero, their cubes are too.
(−2, −8)(0, 0)(2, 8)domainrange−22−12−8−44812
y=x3.
Reminder
Reminder: Substitution and parentheses, Principal square root and cube root
  • Substitution and parentheses. Replace x with the whole input: at x = −4, x2 becomes (−4)2, not −42.
  • Principal square root and cube root. 9 = 3 is the nonnegative square root. ∛(−8) = −2 because (−2)3 = −8.
The same idea, five ways
Say it

Say multiply three copies of the input.

Write it

The toolkit cubic accepts and produces every real number.

In math
  • f(x)=x3
  • x=y3
  • Domain and range: (−∞, ∞)
  • Graph words: curve through zero extending downward and upward
Like

A cube-shaped box's volume uses three equal side factors; the formula also allows signed numbers.

See it
(−2, −8)(0, 0)(2, 8)domainrange−22−12−8−44812
The same picture again: y = x3.

Worked example

Cube zero and a negative fraction

For f(x) = x3, find f(0), f(−32), the domain, and the range. You are multiplying each input three times and then identifying all attainable outputs.

Show the steps and the answer
(−2, −8)(0, 0)(2, 8)domainrange−22−12−8−44812
The same picture a third time: y = x3.
  1. f(0)=03=0.Multiplying zero by itself three times still gives zero.
  2. f(−32)=(−32)3=(−32)×(−32)×(−32).Cubing means three copies of the entire input.
  3. The first two factors give 94, and 94×(−32)=−278.Two negatives make a positive, the remaining negative makes the product negative, and fractions multiply straight across.
  4. Both domain and range are (−∞,∞). Every real input can be cubed, and every real output y is produced by x=y3.Cube roots undo cubes for negative, zero, and positive real numbers.
Answer
  • f(0) = 0
  • f(−32)=−278
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
Double-check Undo the fractional output by taking its cube root: ∛(−278) = −32, because (−3)3 = −27 and 23 = 8. This returns the input.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Every power removes a negative sign, so a cubic has range [0, ∞).
A cube has an odd number of factors. For instance, (−2)3 = −8.
✓ Instead: The cubic range is (−∞, ∞). Squares and cubes have different output signs.
Tips and tricks
  • Count factors: two copies erase a negative sign; three copies keep it.

5 How

  1. Name the toolkit formula and say what its calculation does.
  2. Check whether that calculation permits every real input.
  3. Identify outputs the calculation cannot produce, including any sign restriction.
  4. Show that every output in the proposed range has an input that produces it.
  5. Write domain and range separately, and use the graph as a memory cue.

Explain a toolkit function's domain and range

1
Does the formula always return one fixed number?
YesIts range contains that single number, attained at every input.
NoLook at the operation performed on the input.
↓
2
Does it measure distance or square the input?
YesOutputs are nonnegative; choose the target itself for distance or its square root for a square.
NoFor identity, choose the target itself. For a cube, choose its cube root.
  1. Name the calculation.
  2. Check all real inputs for arithmetic restrictions.
  3. Explain which output signs and zero values are possible.
  4. Produce an input for any proposed allowed output.
  5. Write the two sets separately and compare with the shape.

6 Worked example

Worked example

The same negative input in a square and a cube

Let p(x) = x2 and q(x) = x3. Find p(−4) and q(−4), then state each function's full domain and range. The input is −4; you are finding its two outputs and the complete sets of allowed inputs and attainable outputs.

Show the steps and the answer
p(−4) = 16domainrange−4−22448121620
The square reaches a positive height at input −4.
q(−4) = −64domainrange−4−224−56−282856
The cube keeps the input’s negative sign.
  1. p(−4)=(−4)2=(−4)×(−4)=16.The parentheses put the negative sign inside the square. Two negative factors give a positive product.
  2. q(−4)=(−4)3=(−4)×(−4)×(−4)=16×(−4)=−64.A cube has three factors, so one negative factor remains after the first pair makes a positive product.
  3. Both domains are (−∞,∞).Every real number can be multiplied by itself two or three times.
  4. The range of p is [0,∞): a square is nonnegative, and for any y≥0, input x=y gives x2=y.The square root supplies an input for every proposed nonnegative output, including zero.
  5. The range of q is (−∞,∞): for any real y, input x=y3 gives x3=y.A real cube root exists for negative, zero, and positive numbers.
Answer
  • p(−4)=16
  • q(−4)=−64
  • p domain: (−∞, ∞)
  • p range: [0, ∞)
  • q domain: (−∞, ∞)
  • q range: (−∞, ∞)
Double-check Undo the calculations: 16 = 4 and |−4| = 4, so the square's size is correct. ∛(−64) = −4, so the cube gives back the original input. The V or bowl cannot sit below zero, while the cubic can.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The domain of x2 is all real numbers, so its range is also all real numbers.
A real number times itself is never negative. No input produces −1.
✓ Instead: Domain: (−∞, ∞). Range: [0, ∞). Every y ≥ 0 is produced by x = y.
✗ Not this: A constant function has a one-number domain because its graph has only one height.
Height records output, not input. You can move left or right along the horizontal line without changing its height.
✓ Instead: For f(x) = 6, the domain is (−∞, ∞), and the range is {6}, also written [6, 6].

Tips and tricks

  • Remember the shape together with the reason: distance and a square stay nonnegative; a cube can keep a negative sign.
  • After writing a range, finish the sentence: every output in it is possible because I can choose this input.

7 The trap

Giving every unrestricted formula an all-real range. An unrestricted domain tells you about inputs. It does not make negative outputs possible for a square or a distance.

Lesson 7 of 10

Reciprocals and roots complete the toolkit

Subject: MathematicsLeans on: Reciprocal of a fractionLeans on: Positive and nonnegativeOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Picture a recipe card with two kinds of jobs. One job shares an amount by division. Another finds the side length of a square or a cube when you know its area or volume. The last four toolkit functions do those jobs: reciprocal, reciprocal squared, square root, and cube root. Division needs a nonzero amount on the bottom. A real square root needs a nonnegative number inside it and returns the nonnegative root. A cube root can accept a negative number and return a negative number. Check both the input permission and the output possibilities. A rule can exclude the same number from both sets, but for different reasons.

2 Picture it

−4−2024−4−2024
constant: f(x) = c
−4−2024−4−2024
identity: f(x) = x
−4−2024−4−2024
absolute value: f(x) = |x|
−4−2024−4−2024
quadratic: f(x) = x2
−4−2024−4−2024
cubic: f(x) = x3
−4−2024−4−2024
reciprocal: f(x) = 1/x
−4−2024−4−2024
reciprocal squared: f(x) = 1/x2
−4−2024−4−2024
square root: f(x) = x
−4−2024−4−2024
cube root: f(x) = x3

Reminder

Reminder: Reciprocal of a fraction, Positive and nonnegative
  • Reciprocal of a fraction. Dividing 1 by a nonzero fraction flips it: 1 ÷ 25 = 52.
  • Positive and nonnegative. Positive means > 0; nonnegative means ≥ 0. The difference decides whether zero gets a bracket.

3 Why

For a reciprocal, zero cannot be an input because division by zero is undefined. Zero cannot be an output either: if 1x = 0, multiplying by an allowed x would give 1 = 0. Squaring a nonzero denominator makes it positive, so reciprocal squared outputs are strictly positive. Square root outputs are nonnegative by the principal-root convention. Cube roots preserve sign because cubing preserves sign. Working backward from a target output establishes the full range of each function.

4 The rule

For 1x: x≠0 and y≠0.

For 1x2: x≠0 and y > 0.
For x: x≥0 and y≥0. For x3: x and y may be any real numbers.

The same idea, five ways

Say it

Reciprocals divide, and roots undo powers. Check what each operation allows.

Write it

A denominator excludes zero, a principal square root requires nonnegative inside and output values, and a cube root accepts either sign.

In math
  • Reciprocal: 1x, x ≠ 0, y ≠ 0
  • Reciprocal squared: 1x2, x ≠ 0, y > 0
  • Square root: x, x ≥ 0, y ≥ 0
  • Cube root: x3, domain and range (−∞, ∞)
Like

Sharing a batch uses division; finding a square or cube's side uses a root.

See it
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024

The same nine graphs again, in the same order: constant, identity, absolute value, quadratic, cubic, reciprocal, reciprocal squared, square root and cube root.

The same idea, other ways

Two different zero questions

In 1x, input zero makes the division fail. Output zero would require 1 to equal zero after multiplication, which cannot happen. Domain and range both omit zero, but the explanations are different.

Undo the machine

To produce output 4, 1x uses input 14, 1x2 uses 12, x uses 16, and x3 uses 64. A desired output tells you which operation to undo.

16principal squarerootinputoutput4
Squaring the desired square-root output finds an input that produces it.
Toolkit functionFormulaShapeDomainRange
Constant functionchorizontal line(−∞,∞){c}, or [c, c]
Identity functionxdiagonal line through zero(−∞,∞)(−∞,∞)
Absolute value function|x|V with bottom at zero(−∞,∞)[0, ∞)
Quadratic functionx2bowl with bottom at zero(−∞,∞)[0, ∞)
Cubic functionx3curve from negative to positive heights(−∞,∞)(−∞,∞)
Reciprocal function1xtwo branches with matching input and output signs(−∞,0)∪(0,∞)(−∞,0)∪(0,∞)
Reciprocal squared function1x2two branches above zero(−∞,0)∪(0,∞)(0, ∞)
Square root functionxcurve starting at zero, going right and up[0, ∞)[0, ∞)
Cube root functionx3curve through zero with negative and positive heights(−∞,∞)(−∞,∞)

Part 1: Reciprocal function

Think of dividing one whole batch into an amount x. The reciprocal function returns 1 divided by x, written 1x. A larger positive denominator gives a smaller positive share. The mathematical rule also allows negative denominators, which give negative answers. It cannot divide by zero. Its graph has two separated branches, one with positive inputs and outputs and one with negative inputs and outputs.

  • Formula: f(x) = 1x.
  • Shape: two branches, with x and y having the same sign; neither branch reaches either axis.
  • Domain: (−∞, 0) ∪ (0, ∞), because the denominator cannot be zero.
  • Range: (−∞, 0) ∪ (0, ∞). Zero would require 1 = 0 after multiplying by x. Every nonzero output y is attained by the nonzero input x = 1y.
(1, 1)(−1, −1)domainrange−4−224−4−224
y = 1/x.
Reminder
Reminder: Reciprocal of a fraction, Positive and nonnegative
  • Reciprocal of a fraction. Dividing 1 by a nonzero fraction flips it: 1 ÷ 25 = 52.
  • Positive and nonnegative. Positive means > 0; nonnegative means ≥ 0. The difference decides whether zero gets a bracket.
The same idea, five ways
Say it

Say one divided by the input.

Write it

Reciprocal input and output both exclude zero.

In math
  • f(x)=1x
  • x ≠ 0
  • y ≠ 0
  • Domain and range: (−∞, 0) ∪ (0, ∞)
Like

One whole batch divided by a nonzero sharing amount.

See it
(1, 1)(−1, −1)domainrange−4−224−4−224
The same picture again: y = 1/x.

Worked example

Reciprocal of one and a negative fraction

For f(x) = 1x, find f(1), f(−27), the domain, and the range. You are dividing 1 by each supplied input, then describing every permitted input and attainable output.

Show the steps and the answer
(1, 1)(−1, −1)domainrange−4−224−4−224
The same picture a third time: y = 1/x.
0(−∞, 0) ∪ (0, ∞)
(−∞, 0) and (0, ∞) on a number line.
0(−∞, 0) ∪ (0, ∞)
Range: (−∞, 0) ∪ (0, ∞) The endpoint symbols record which limits belong.
  1. f(1)=11=1.One divided by one is one.
  2. f(−27)=1÷(−27)=−72.Dividing by a nonzero fraction multiplies by its flip, and the negative sign stays.
  3. Write domain (−∞,0)∪(0,∞).All real inputs work except the input that makes the denominator zero.
  4. Zero is not an output: 1x=0 would imply 1=0×x=0.Multiplying an equation by a permitted nonzero denominator cannot change its truth.
  5. For any y≠0, choose x=1y. Then 1x=1÷1y=y. Write range (−∞,0)∪(0,∞).The chosen input is nonzero and produces every nonzero target output.
Answer
  • f(1) = 1
  • f(−27)=−72
  • Domain: (−∞, 0) ∪ (0, ∞)
  • Range: (−∞, 0) ∪ (0, ∞)
Double-check Multiply the fractional input and its claimed output: (−27) × (−72) = 1414 = 1. This verifies that they are reciprocals without repeating the division.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: A tiny reciprocal equals zero, so zero belongs in the range.
Being close to zero is different from equaling zero. For example 11000 is positive, and multiplying it by 1000 gives 1.
✓ Instead: The reciprocal approaches zero for large input size but never attains zero.
Tips and tricks
  • For a reciprocal, input × output must equal 1. That checks the sign and the fraction.

Part 2: Reciprocal squared function

Use the sharing calculation again, but square the input before putting it on the bottom. The reciprocal squared function is 1x2. Whether the original input is positive or negative, its nonzero square is positive. So every output is positive. At input zero, squaring still gives zero, and division fails. Its two graph branches both sit above the horizontal axis because neither a negative output nor output zero can occur.

  • Formula: f(x) = 1x2.
  • Shape: two matching branches above zero, rising near input zero and approaching output zero for large input size.
  • Domain: (−∞, 0) ∪ (0, ∞), because x2 = 0 exactly when x = 0.
  • Range: (0, ∞). Each denominator is positive and the numerator is 1. For any y > 0, choose x = 1y; then x2 = 1y, so 1x2 = y.
(−1, 1)(1, 1)domainrange−4−224246
y = 1/x2.
Reminder
Reminder: Reciprocal of a fraction, Positive and nonnegative
  • Reciprocal of a fraction. Dividing 1 by a nonzero fraction flips it: 1 ÷ 25 = 52.
  • Positive and nonnegative. Positive means > 0; nonnegative means ≥ 0. The difference decides whether zero gets a bracket.
The same idea, five ways
Say it

Say square the input, then take its reciprocal.

Write it

Reciprocal squared outputs are strictly positive.

In math
  • f(x)=1x2
  • x ≠ 0
  • y > 0
  • Domain: (−∞, 0) ∪ (0, ∞)
  • Range: {y | y > 0} = (0, ∞)
Like

A sharing machine squares its divisor before dividing, so the divisor's original sign disappears.

See it
(−1, 1)(1, 1)domainrange−4−224246
The same picture again: y = 1/x2.

Worked example

Square the denominator before dividing

For f(x) = 1x2, find f(1), f(−35), the domain, and the range. You are squaring the supplied input first and then taking its reciprocal.

Show the steps and the answer
(−1, 1)(1, 1)domainrange−4−224246
The same picture a third time: y = 1/x2.
0(−∞, 0) ∪ (0, ∞)
The same picture a third time: (−∞, 0) and (0, ∞) on a number line.
0(0, ∞)
Range: (0, ∞) The endpoint symbols record which limits belong.
  1. f(1)=112=1.The denominator is the square of 1, which is 1.
  2. (−35)2=925.Square the numerator and denominator; two negative factors give a positive square.
  3. f(−35)=1÷925=259.The reciprocal of a nonzero fraction is its flip.
  4. Write domain (−∞,0)∪(0,∞).The squared denominator is zero only at x = 0.
  5. Write range (0,∞). For any y > 0, x=1y gives x2=1y and then 1x2=y.The output must be positive and cannot be zero, and this input reaches every positive target.
Answer
  • f(1) = 1
  • f(−35)=259
  • Domain: (−∞, 0) ∪ (0, ∞)
  • Range: (0, ∞)
Double-check Multiply the squared input by the output: 925 × 259 = 1. The input 35 gives the same output as −35, agreeing with the graph's matching branches.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: f(−35) = −259 because the input is negative.
The square makes the denominator positive before division happens.
✓ Instead: f(−35) = 259, which is strictly positive.
Tips and tricks
  • Put parentheses around a negative input in the denominator. Compute the square on a separate line.

Part 3: Square root function

Suppose a square tile has area 16. Its side length is 4, the nonnegative number whose square is 16. The square root function makes that choice: x returns the principal square root, meaning the nonnegative root. Although both 4 and −4 square to 16, 16 returns only 4. This convention gives each input one output. A square cannot have negative real area, so negative inputs have no real square root.

  • Formula: f(x) = x, the principal square root.
  • Shape: a curve starting at (0, 0) and extending right and upward.
  • Domain: [0, ∞), because no real square is negative and zero is allowed.
  • Range: [0, ∞). The principal-root convention requires nonnegative outputs. For any y ≥ 0, input x = y2 gives x = y2 = y. Thus every nonnegative output is attained.
  • A principal square root preserves order on nonnegative inside values. For example, an inside greater than 4 has root greater than 2: a nonnegative output at most 2 would square to at most 4 and could not produce that inside.
(0, 0)(4, 2)(9, 3)domainrange481224
y=x.
Reminder
Reminder: Reciprocal of a fraction, Positive and nonnegative
  • Reciprocal of a fraction. Dividing 1 by a nonzero fraction flips it: 1 ÷ 25 = 52.
  • Positive and nonnegative. Positive means > 0; nonnegative means ≥ 0. The difference decides whether zero gets a bracket.
The same idea, five ways
Say it

Say the nonnegative number whose square is the input.

Write it

The principal square-root convention selects one nonnegative output.

In math
  • f(x)=x
  • x ≥ 0
  • y ≥ 0
  • Domain and range: [0, ∞)
  • x2=|x|
Like

Find a square tile's nonnegative side length from its area.

See it
(0, 0)(4, 2)(9, 3)domainrange481224
The same picture again: y = x.

Worked example

Principal roots at zero and a fraction

For f(x) = x, find f(0), f(8116), the domain, and the range. You are selecting the nonnegative number whose square equals each input.

Show the steps and the answer
(0, 0)(4, 2)(9, 3)domainrange481224
The same picture a third time: y = x.
0[0, ∞)
Domain: [0, ∞) The endpoint symbols record which limits belong.
0[0, ∞)
Range: [0, ∞) The endpoint symbols record which limits belong.
  1. f(0)=0=0.Zero is nonnegative and 02 = 0.
  2. f(8116)=8116=8116=94.The square of 94 is 8116, and 94 is nonnegative.
  3. Write domain [0,∞).Zero and positive numbers have real principal square roots; negative numbers do not.
  4. Write range [0,∞). For any y≥0, choose x=y2; then x=y.The square-root symbol returns only nonnegative values, and every such value has a usable squared input.
Answer
  • f(0) = 0
  • f(8116)=94
  • Domain: [0, ∞)
  • Range: [0, ∞)
Double-check Square the claimed output: (94)2 = 8116, the original input. Its sign is nonnegative, so it is the principal root. The negative value −94 would pass the square check but fail the principal-root sign check.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: (−4)2 = −4 because the root cancels the square.
The inner square equals 16, and 16 selects 4. A square loses the original sign.
✓ Instead: x2 = |x| for real x, so (−4)2 = 4.
Tips and tricks
  • Check a square root twice: square it to recover the input, then check that the output is nonnegative.

Part 4: Cube root function

Picture finding the side of a cube-shaped box when you know its volume. The cube root undoes the three-factor multiplication. In the mathematical rule, a negative input works too: the cube of −2 is −8, so the cube root of −8 is −2. Unlike squaring, cubing keeps the sign. The cube root function therefore accepts every real input and can produce every real output, including negative numbers and zero.

  • Formula: f(x) = x3.
  • Shape: a rising curve through (0, 0), extending to negative inputs and outputs on the left and positive inputs and outputs on the right.
  • Domain: (−∞, ∞), because every real number has a real cube root.
  • Range: (−∞, ∞). For any real y, choose x = y3; then x3 = y.
  • It is an odd function: f(−x) = −f(x). Opposite inputs have opposite outputs because (−y)3 = −y3.
(−8, −2)(0, 0)(8, 2)domainrange−8−448−22
y=x3.
Reminder
Reminder: Reciprocal of a fraction, Positive and nonnegative
  • Reciprocal of a fraction. Dividing 1 by a nonzero fraction flips it: 1 ÷ 25 = 52.
  • Positive and nonnegative. Positive means > 0; nonnegative means ≥ 0. The difference decides whether zero gets a bracket.
The same idea, five ways
Say it

Say the real number whose cube is the input.

Write it

Cube roots allow either sign, and opposite inputs have opposite outputs.

In math
  • f(x)=x3
  • x=y3
  • Domain and range: (−∞, ∞)
  • f(−x)=−f(x)
Like

Undo the three equal factors of a cube, keeping a negative direction when the signed input has one.

See it
(−8, −2)(0, 0)(8, 2)domainrange−8−448−22
The same picture again: y = x3.

Worked example

Cube roots at zero and a negative fraction

For f(x) = x3, find f(0), f(−12564), the domain, and the range. Explain how the negative input fits the odd-function rule. You are finding the real number that cubes to each input.

Show the steps and the answer
(−8, −2)(0, 0)(8, 2)domainrange−8−448−22
The same picture a third time: y = x3.
  1. f(0)=03=0.03=0.
  2. (−54)3=−5×5×54×4×4=−12564.Three negative numerator factors keep a negative sign; the cubes of 5 and 4 are 125 and 64.
  3. Therefore f(−12564)=−54.A cube root is the real number whose cube equals the input.
  4. Write domain and range (−∞,∞). For any proposed real output y, input x=y3 produces x3=y.Cubing and cube-rooting work with negative, zero, and positive real numbers.
  5. f(12564)=54, so f(−12564)=−f(12564).The odd-function rule says that opposite inputs produce opposite outputs.
Answer
  • f(0) = 0
  • f(−12564)=−54
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
  • Odd-function check: f(−12564) = −f(12564)
Double-check The corresponding positive root is 54, since 53 = 125 and 43 = 64. Reversing both signs gives the opposite graph point and the negative root, agreeing with the direct cube calculation.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: ∛(−8) is not real because roots cannot contain negative numbers.
The restriction applies to even roots. A negative number cubed stays negative, so (−2)3 = −8.
✓ Instead: ∛(−8) = −2, and cube-root inputs can be any real number.
Tips and tricks
  • Odd root, original sign. A cube root undoes a cube without losing a negative sign.

5 How

  1. Identify whether you are dividing, squaring a denominator, taking a square root, or taking a cube root.
  2. Find the domain by checking denominators and the number under an even root.
  3. Determine the sign and possible zero value of the output.
  4. Supply an input for every proposed allowed output by undoing the calculation.
  5. Write domain and range on separate lines and compare the formula with its toolkit shape.

Choose the reciprocal or root restrictions

1
Is x in a denominator?
YesExclude any x that makes the denominator zero. A square on that denominator also makes each valid denominator positive.
NoCheck for a root.
↓
2
Is the root a square root?
YesRequire a nonnegative inside and use the nonnegative principal output.
NoA cube root allows negative, zero, and positive inside and output values.
  1. Identify the actual operation and its order.
  2. Exclude zero denominators and negative even-root insides.
  3. Determine whether output zero and each sign are possible.
  4. Undo the formula to reach any claimed output.
  5. Write the full domain and range.

6 Worked example

Worked example

Compare reciprocal, reciprocal squared, and two roots

Evaluate r(−3) for r(x) = 1x, s(−3) for s(x) = 1x2, t(9) for t(x) = x, and u(−125) for u(x) = x3. Then state the domain and range of each. The inputs are supplied; first find the outputs, then describe the full sets.

Show the steps and the answer
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024
−4−2024−4−2024

The same nine graphs a third time, in the same order: constant, identity, absolute value, quadratic, cubic, reciprocal, reciprocal squared, square root and cube root.

  1. We need all permitted inputs and all outputs they actually produce.Translate the question into what must be found before calculating.
  2. r(−3)=1−3=−13.A positive number divided by a negative number is negative, and the denominator is not zero.
  3. s(−3)=1(−3)2=19.Square the whole denominator first. Two negative factors make 9, so this reciprocal is positive.
  4. t(9)=9=3.The principal square root chooses the nonnegative number whose square is 9.
  5. u(−125)=(−125)3=−5.(−5) × (−5) × (−5) = −125, so a negative cube root is real.
  6. For r, omit input 0 and output 0. Every y≠0 comes from x=1y.Division cannot have a zero denominator, and substituting this nonzero x into 1x gives y.
  7. For s, omit input 0 and require output y > 0. Every positive y comes from x=1y.Squaring this nonzero input gives 1y, and taking its reciprocal gives y.
  8. For t, domain and range are [0,∞). Every y≥0 comes from x=y2. For u, domain and range are (−∞,∞); every real y comes from x=y3.The indicated powers undo their matching roots. The principal square root returns y only when y is nonnegative, whereas cubing and cube-rooting preserve every real sign.
Answer
  • r(−3)=−13
  • s(−3)=19
  • t(9) = 3
  • u(−125)=−5
  • r domain: (−∞, 0) ∪ (0, ∞)
  • r range: (−∞, 0) ∪ (0, ∞)
  • s domain: (−∞, 0) ∪ (0, ∞)
  • s range: (0, ∞)
  • t domain: [0, ∞)
  • t range: [0, ∞)
  • u domain: (−∞, ∞)
  • u range: (−∞, ∞)
Double-check Undo each numerical calculation: (−3) × (−13) = 1, 9 × 19 = 1, 32 = 9, and (−5)3 = −125. These multiplication and power checks verify the division and root results by a second operation.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: 9 = 3 and −3, so the square root function has two outputs at input 9.
The equation z2 = 9 has two solutions, but the symbol 9 selects the principal square root. This convention gives the function one output for each input.
✓ Instead: 9 = 3. Solving z2 = 9 gives z = 3 or z = −3.
✗ Not this: 1x2 has range [0, ∞) because it is nonnegative.
Nonnegative includes zero, but a fraction with numerator 1 cannot equal zero. Its nonzero squared denominator is positive.
✓ Instead: The range is (0, ∞): every positive value is attained, and zero is excluded.

Tips and tricks

  • Read the denominator before deciding the sign: 1−3 is negative; 1(−3)2 is positive.
  • Square root means the principal square root. It includes output zero, but a root placed in a denominator may have to exclude input zero.

7 The trap

Treating all roots as square roots, or all reciprocals as positive. An odd root accepts negative inputs. A reciprocal can be negative; reciprocal squared is positive because its denominator is squared.

Lesson 8 of 10

Use toolkit behavior to find a changed function's range

Subject: MathematicsLeans on: Principal square rootLeans on: Solving backwardLeans on: Multiplying an inequality by a negativeOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Imagine relabeling the buttons on a familiar machine and then changing what comes out. If a square-root machine receives x + 4 instead of x, its inside first reaches zero when your button says −4. That is why its graph starts farther left. If you then double every output, zero stays zero while other heights double. You can understand these changes by doing the arithmetic in order. First check which original inputs survive the calculation. Then ask which final outputs can be reached. A familiar graph helps you see the behavior, but a few plotted points cannot guarantee that every height in an interval occurs.

2 Picture it

(−4, 0)(−3, 2)(0, 4)domainrange−6−4−2246246(−4, 0)(−3, 2)(0, 4)domainrange−6−4−2246246
The solid 2x+4 curve receives zero at x = −4 and doubles each root output.

Reminder

Reminder: Principal square root, Solving backward, Multiplying an inequality by a negative
  • Principal square root. z2 = |z|. You may replace it with z only when you already know z ≥ 0.
  • Solving backward. Undo outside operations first: if y = 2t + 3, subtract 3 and divide by 2 to get t = y−32.
  • Multiplying an inequality by a negative. A negative multiplier reverses order: t ≥ 0 implies −3t ≤ 0.

3 Why

Horizontal changes act on the number fed into the toolkit rule. Setting that inside number to zero locates a square-root start or a reciprocal input that would make its denominator zero. Outside multiplication and addition act on outputs instead. To prove a range, either solve backward for a valid input or explain why a continuous graph crosses every proposed height. Continuous means the graph has no jumps or breaks on the interval in question, so it cannot skip an intermediate height while passing from below it to above it.

4 The rule

Find the domain from the inside arithmetic.

Find the range from the final output, and show every claimed output is attained.
A function continuous on the whole real line, with arbitrarily negative and positive outputs, has range (−∞,∞).

The same idea, five ways

Say it

Check what feeds the basic machine, then what changes its output.

Write it

Inside changes determine the permitted original inputs, while outside changes alter the attainable output heights.

In math
  • For x+4, solve x + 4 ≥ 0 to get x ≥ −4
  • For 2x+4, y ≥ 0 and range [0, ∞)
  • Every y ≥ 0 comes from x = (y2)2 − 4
Like

Relabel a machine's buttons before its calculation, then change the result after the calculation.

See it
−3add 4square root,then doublefirstsecond12
The original input and the number fed into the root are different quantities.

The same idea, other ways

Inside first

For x+4, an original input of −4 feeds 0 into the square-root rule. An original input of −3 feeds 1. To reproduce the basic square-root point (1, 1), solve x + 4 = 1, giving x = −3. The point moved left by 4 because of this equation, not because a plus sign always moves every kind of quantity left.

Backward from a target

For 2x+4, suppose the desired output is 6. Divide the output by 2 to get root value 3. Square to get inside value 9. Subtract 4 to get input 5. Substitution returns 29 = 6. Doing the same steps with any y ≥ 0 gives an input for every nonnegative output.

5add 4square root,then doublefirstsecond96
Follow the arithmetic forward to check an input found by working backward.
Crossing a height

For a continuous graph, think of walking along a connected ramp. To get from a height below 10 to a height above 10, you must pass through height 10. A graph with a jump could skip that height, so the no-jump condition is essential.

Part 1: Shifted reciprocal

Think of changing the number of groups on a sharing machine before it divides. For f(x) = 2x+1, the denominator is the original input plus 1. At input −1, that number becomes zero and division fails. To give the basic reciprocal denominator a value of 1, you now enter 0, since 0 + 1 = 1. This algebra explains the leftward change before you use the shifted picture.

  • Formula: f(x) = 2x+1. It takes the reciprocal of x + 1 and doubles it.
  • Shape: the reciprocal branches lie around the forbidden input x = −1; the output level zero is still never reached.
  • Domain: (−∞, −1) ∪ (−1, ∞), because x + 1 must not equal zero.
  • Range: (−∞, 0) ∪ (0, ∞). The nonzero numerator prevents output zero. For any y ≠ 0, choose x = 2y − 1; the denominator becomes 2y, so the output is y.
(0, 2)(−2, −2)domainrange−6−4−224−6−4−2246
y = 2/(x + 1).
Reminder
Reminder: Principal square root, Solving backward, Multiplying an inequality by a negative
  • Principal square root. z2 = |z|. You may replace it with z only when you already know z ≥ 0.
  • Solving backward. Undo outside operations first: if y = 2t + 3, subtract 3 and divide by 2 to get t = y−32.
  • Multiplying an inequality by a negative. A negative multiplier reverses order: t ≥ 0 implies −3t ≤ 0.
The same idea, five ways
Say it

Say add one, then divide two by the result.

Write it

The denominator fails at input −1, while no input produces output zero.

In math
  • f(x)=2x+1
  • x≠−1
  • Domain: (−∞, −1) ∪ (−1, ∞)
  • y ≠ 0
  • Range: (−∞, 0) ∪ (0, ∞)
Like

A sharing machine adds a group before division, moving the original input at which its divisor is zero.

See it
(0, 2)(−2, −2)domainrange−6−4−224−6−4−2246
The same picture again: y = 2/(x + 1).

Worked example

Domain and range of the given shifted reciprocal

OpenStax problem

Find the domain and range of f(x) = 2x+1. You need every input for which division works and every output some such input can produce.

Show the steps and the answer
(0, 2)(−2, −2)domainrange−6−4−224−6−4−2246
The same picture a third time: y = 2/(x + 1).
−1(−∞, −1) ∪ (−1, ∞)
Domain: (−∞, −1) ∪ (−1, ∞) The endpoint symbols record which limits belong.
0(−∞, 0) ∪ (0, ∞)
Range: (−∞, 0) ∪ (0, ∞) The endpoint symbols record which limits belong.
  1. Require x+1≠0. Subtract 1 to get x≠−1. At x=−1, the denominator is −1+1=0, confirming the excluded input. Domain: (−∞,−1)∪(−1,∞).A denominator cannot equal zero; every other real input gives a defined fraction.
  2. The output cannot be zero: if 2x+1=0, multiplying by the allowed denominator would give 2=0.A nonzero numerator cannot produce a zero fraction.
  3. Take any proposed y≠0 and solve y=2x+1: y(x+1)=2, then x+1=2y, then x=2y−1.Multiplication undoes division by the denominator, division by the nonzero target y isolates x + 1, and subtraction undoes the inside addition.
  4. This input is not −1 because 2y is not zero. Substituting it gives 2÷2y=y. Range: (−∞,0)∪(0,∞).Every proposed nonzero output has a valid input, so no other output is missing.
Answer
  • Domain: (−∞, −1) ∪ (−1, ∞)
  • Range: (−∞, 0) ∪ (0, ∞)
Double-check At x = 0 the output is 2; at x = −2 it is −2. Working backward from either output returns those inputs. At x = −1 division fails. The graph has positive and negative branches but no point of height zero, matching the arithmetic proof.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Exclude output −1 because input −1 is forbidden.
An excluded input is an x-value, not an output height. Output −1 is attained: f(−3) = 2−2 = −1.
✓ Instead: Exclude −1 from the domain and 0 from the range.
Tips and tricks
  • Write the forbidden input and omitted output in separate columns on scratch paper.

Part 2: Shifted and scaled square root

Imagine adding 4 to the area display before a square-root machine finds a side length, then doubling the returned length. The formula is f(x) = 2x+4. The original input may be negative as long as the inside area is not. At −4 the inside becomes zero, so the graph starts there. Doubling acts after the root, so it changes output heights and keeps their nonnegative sign.

  • Formula: f(x) = 2x+4. The principal square root is taken before multiplying by 2.
  • Shape: a square-root curve starting at (−4, 0), with heights doubled.
  • Domain: [−4, ∞), because x + 4 ≥ 0 gives x ≥ −4.
  • Range: [0, ∞). Principal square roots are nonnegative, and doubling preserves that sign. For any y ≥ 0, input x = (y2)2 − 4 is valid and produces y.
(−4, 0)(0, 4)(5, 6)domainrange−4482468
y=2(x+4).
Reminder
Reminder: Principal square root, Solving backward, Multiplying an inequality by a negative
  • Principal square root. z2 = |z|. You may replace it with z only when you already know z ≥ 0.
  • Solving backward. Undo outside operations first: if y = 2t + 3, subtract 3 and divide by 2 to get t = y−32.
  • Multiplying an inequality by a negative. A negative multiplier reverses order: t ≥ 0 implies −3t ≤ 0.
The same idea, five ways
Say it

Say add four, take the square root, then double.

Write it

The root’s inside starts at zero when the original input is −4.

In math
  • f(x)=2x+4
  • x + 4 ≥ 0
  • x≥−4
  • Domain: [−4, ∞)
  • y ≥ 0
  • Range: [0, ∞)
Like

Add four to the area display before finding a side, then double the displayed side.

See it
(−4, 0)(0, 4)(5, 6)domainrange−4482468
The same picture again: y = 2(x+4).

Worked example

Domain and range of the given doubled square root

OpenStax problem

Find the domain and range of f(x) = 2x+4. You are deciding which original inputs give a real root and which final outputs are attainable.

Show the steps and the answer
(−4, 0)(0, 4)(5, 6)domainrange−4482468
The same picture a third time: y = 2(x+4).
−4[−4, ∞)
Domain: [−4, ∞) The endpoint symbols record which limits belong.
0[0, ∞)
Range: [0, ∞) The endpoint symbols record which limits belong.
  1. Require x+4≥0. Subtract 4 to obtain x≥−4. Domain: [−4,∞).The radicand, the expression inside an even root, must be nonnegative. Zero is permitted here because the root is not a denominator.
  2. At x=−4, the output is 20=0. All outputs are nonnegative.The principal square root returns a nonnegative number, and multiplying by positive 2 keeps that sign.
  3. For any proposed y≥0, solve y=2x+4: divide by 2 to get y2=x+4, then square to get (y2)2=x+4, then subtract 4 to get x=(y2)2−4.Undo the outside multiplication before undoing the root and the inside addition. The chosen root value y2 is nonnegative.
  4. The constructed input is at least −4. Substitution gives 2(y2)2=2×y2=y. Range: [0,∞).The nonnegative target makes the principal-root check valid, and every such target is attained.
Answer
  • Domain: [−4, ∞)
  • Range: [0, ∞)
Double-check Input −4 gives output 0, and input 5 gives 29 = 6. Working backward from target 6 gives (6 ÷ 2)2 − 4 = 9 − 4 = 5. These checks confirm the start and the scaling; the input formula proves the entire range.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The domain is [0, ∞) because the formula contains a square root.
The root receives x + 4 rather than x. For example input −3 gives inside value 1 and output 2, which is real.
✓ Instead: Require x + 4 ≥ 0, so the domain starts at −4. The range starts at output zero.
Tips and tricks
  • The inside must be nonnegative, even when the original input is negative. Keep those two numbers separate.

Part 3: Cubic minus a linear term

Picture walking along a ramp that bends but has no gaps or jumps. If one end goes farther and farther below you while the other goes farther and farther above you, the ramp must cross every possible height somewhere. The graph of f(x) = x3 − x behaves that way. It is continuous, meaning its curve does not break or jump. Subtracting x changes the curve near zero, but it cannot stop the cubic term from reaching very large positive and negative outputs.

  • Formula: f(x) = x3 − x, a polynomial, which is a sum or difference of constant multiples of whole-number powers of x.
  • Shape: a continuous curve with bends near zero; it is not merely a shifted graph of x3.
  • Domain: (−∞, ∞), because cubing and subtracting are defined for every real input.
  • Continuous here means no jumps or breaks. Powers, multiplication, and subtraction vary without jumps, so this polynomial graph is continuous.
  • Range: (−∞, ∞). For t ≥ 2, f(t) = t(t2 − 1) ≥ 3t, which grows without bound; f(−t) = −f(t) falls without bound. A continuous curve between those outputs must cross every intermediate height.
input xoutput x³ − x−2−6−10001026↓ evaluate: input given, read the output below it
x:−2,−1,0,1,2;x3−x:−6,0,0,0,6.
Reminder
Reminder: Principal square root, Solving backward, Multiplying an inequality by a negative
  • Principal square root. z2 = |z|. You may replace it with z only when you already know z ≥ 0.
  • Solving backward. Undo outside operations first: if y = 2t + 3, subtract 3 and divide by 2 to get t = y−32.
  • Multiplying an inequality by a negative. A negative multiplier reverses order: t ≥ 0 implies −3t ≤ 0.
The same idea, five ways
Say it

Say a connected curve cannot skip a height.

Write it

The continuous polynomial x3 − x extends in both output directions, so it reaches every real output.

In math
  • f(x)=x3−x
  • For t ≥ 2: f(t) ≥ 3t
  • f(−t)=−f(t)
  • Domain and range: (−∞, ∞)
Like

A connected ramp must pass through a middle height when you walk from below that height to above it.

See it
input xoutput x³ − x−2−6−10001026↓ evaluate: input given, read the output below it
The same picture again: x: −2, −1, 0, 1, 2; x3 − x: −6, 0, 0, 0, 6.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: x3 − x is the cubic moved down by x, so its range is read from one fixed vertical shift.
x is not one fixed number. The amount being subtracted changes with each input and alters the shape.
✓ Instead: Treat x3 − x as a continuous polynomial with arbitrarily negative and positive outputs. Those facts establish its all-real range.
Tips and tricks
  • You do not need a formula solving the cubic for every y. A continuous crossing argument can prove every target is attained.

Part 4: Absolute value after another function

Imagine a thermometer reporting positions on either side of zero. You now ask how far each reported position is from zero, rather than whether it is above or below. Applying absolute value to a function’s outputs makes that change. Keep the original input choices. Transform the entire old output set into distances. A negative endpoint moves to a positive distance, but the smaller resulting distance may occur inside the old interval at zero, rather than at either endpoint. A value such as −9 and a value such as 9 both have distance 9. To reach a target distance, it is enough for either of those old outputs to belong to the old range.

  • For g(x) = |f(x)| on f’s domain, turn every old range member into its nonnegative distance.
  • If the old range contains 0, the new range contains 0.
  • For a bounded interval, compare both endpoint distances for the output bound, then check whether an old output attains that bound. An excluded outer endpoint can give a bound that is approached but never reached.
  • Check all intermediate distances, rather than applying absolute value to only two endpoints.
−127[−12, 7]
Read the entire old range before turning it into distances.
Reminder
Reminder: Absolute value as distance
  • Absolute value as distance. |−8| = 8, |7| = 7, and |0| = 0.
The same idea, five ways
Say it

Say take the distance from zero of every old output.

Write it

Applying absolute value changes output heights to nonnegative distances while preserving the supplied domain.

In math
  • g(x) = |f(x)|
  • Old range: [−12, 7]
  • New output: y = |z| for an old output z
  • New range: {y | 0 ≤ y ≤ 12} = [0, 12]
Like

Replace a signed thermometer reading with its distance from zero.

See it
012[0, 12]
Zero and twelve are both attained distances.

Worked example

Take the distance of every output

A function f has range [−12, 7]. Find the range of g(x) = |f(x)| on the same domain. You are taking the distance from zero of every output f can produce.

Show the steps and the answer
−127[−12, 7]
These are all old output values, including zero.
012[0, 12]
Their distances cover every value from zero through twelve.
  1. The given range contains every real output from −12 through 7, including 0.An interval includes the numbers between its limits, not only the endpoints.
  2. Taking absolute value turns each negative output into its positive distance and leaves each nonnegative output unchanged.Absolute value is distance from zero, so its final outputs cannot be negative.
  3. Output 0 is attained because f actually produces 0; output 12 is attained because f actually produces −12.A range consists of attained outputs, and both given values belong to f’s range.
  4. For any desired distance y with 0≤y≤12, the old output −y lies in [−12,0], so some allowed input produces it. At that input |f(x)|=|−y|=y.This supplies every intervening distance and proves there are no missing values in the claimed range.
  5. No output distance can exceed 12: old outputs lie no farther than 12 from zero. Write [0, 12].The old left endpoint has distance 12 and the old right endpoint has distance 7, so 12 is the greatest possible distance.
Answer
Range of g: [0, 12].
Double-check For example, old output −8 gives new output 8 and old output 7 gives new output 7. Taking only the endpoints would suggest [7, 12] and miss the attained distance 0 and all smaller distances.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The old endpoints have distances 12 and 7, so the new range is [7, 12].
The old interval also contains zero and all numbers near it, so the new function attains distances smaller than 7.
✓ Instead: The full new range is [0, 12].
Tips and tricks
  • Mark zero in the old output interval if it belongs. Find the lower and upper distance bounds, then check which bounds are attained.

5 How

  1. Identify the toolkit calculation inside the formula and teach yourself what number is actually fed into it.
  2. Apply all denominator and even-root restrictions to find the domain.
  3. Track each operation on the output, including a negative multiplier or an added constant.
  4. Prove the full range by constructing an input for any allowed output, or by using a continuous graph with heights on both sides of every target.
  5. Confirm a few values with substitution or a picture, keeping the proof separate from the sample check.

Find a changed function's domain and prove its range

1
Does a denominator become zero for any input?
YesFind those inputs, substitute to confirm the zero denominator, and exclude them.
NoCheck any even root's inside.
↓
2
Is an output multiplier negative?
YesReverse output order: a lower starting bound can become an upper bound.
NoKeep the output order, then account for any outside addition.
↓
3
Can you solve backward for a target output?
YesState its permitted values and show the constructed input gives it.
NoIf the graph is continuous across an interval and crosses both sides of each target, explain why it cannot skip that height.
↓
4
Does the final operation take absolute value?
YesTurn the whole old output set into distances. Check whether zero is reached, compare endpoint distances, and prove every claimed distance occurs.
NoTrack the actual final operation on the outputs.
  1. Name the toolkit operation and the expression it receives.
  2. Solve the arithmetic restrictions on the original input.
  3. Track all operations performed on the toolkit output.
  4. Find a valid input for each allowed target, or use a continuous crossing argument on an interval.
  5. Substitute sample inputs to check the result.

6 Worked example

Worked example

A square root moved right and lifted

Find the domain and range of f(x) = x−10 + 3. Find an input that gives output 8. You are identifying permitted inputs, attainable final heights, and one input producing the specified height.

Show the steps and the answer
(10, 3)(14, 5)domainrange81012141618246
The start is (10, 3); the curve continues right and up beyond the displayed frame.
  1. The inside must satisfy x−10≥0, so add 10 to get x≥10. Domain: [10,∞).The square root accepts nonnegative inside values. The inside first equals zero at x = 10.
  2. At x=10,f(10)=0+3=3. Every output is at least 3.The principal square root is nonnegative, and the outside addition lifts that root value by 3.
  3. For an arbitrary target y≥3, subtract 3: x−10=y−3. The right side is nonnegative. Square and add 10 to obtain x=(y−3)2+10.These operations undo the output addition and then the square root. The nonnegative condition keeps the principal-root convention.
  4. This input is at least 10, and f((y−3)2+10)=(y−3)2+3=y−3+3=y. Range: [3,∞).Every proposed y ≥ 3 has a valid input, while no smaller output can occur.
  5. For output 8, x=(8−3)2+10=52+10=25+10=35.Use the backward formula with the desired output y = 8.
Answer
  • Domain: [10, ∞)
  • Range: [3, ∞)
  • Output 8 occurs at input 35
Double-check Substitute the obtained input: f(35) = 35−10 + 3 = 25 + 3 = 5 + 3 = 8. The basic square-root start occurs at inside value zero, so the changed graph starts at (10, 3), independently confirming both closed endpoints.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 6

Add a height to a square

Find the domain and range of f(x) = x2 + 8. You are checking the inputs and the possible square outputs after adding 8.

Show the steps and the answer
(0, 8)domainrange−4−2246101418
Adding 8 changes the minimum output but does not restrict inputs.
  1. Domain: (−∞,∞).Every real input can be squared and then have 8 added.
  2. Since x2≥0,f(x)≥8; x=0 attains output 8.Adding 8 moves the square's minimum from 0 to 8.
  3. For any y≥8, choose x=y−8. Then x2+8=y−8+8=y. Range: [8,∞).The target condition makes the root real and constructs an input for every claimed height.
Answer
  • Domain: (−∞, ∞)
  • Range: [8, ∞)
Double-check The quadratic graph's bottom is (0, 8). To check output 17, use input 3: 32 + 8 = 9 + 8 = 17, matching x = 17−8 = 3.

Rung 2 of 6

Move the square-root start

Find the domain and range of g(x) = x−10. You are deciding which original inputs feed nonnegative numbers into the root and which root outputs occur.

Show the steps and the answer
(10, 0)domainrange812162024
The start moves to input 10, while the root still reaches zero and every positive output.
  1. Require x−10≥0; add 10 to get x≥10. Domain: [10,∞).The inside, rather than the original x alone, must be nonnegative.
  2. g(10)=0=0, and every output is nonnegative.The root is principal and zero is included.
  3. For any y≥0, choose x=y2+10. Then x−10=y2=y. Range: [0,∞).The input is at least 10, and the nonnegative target passes the principal-root check.
Answer
  • Domain: [10, ∞)
  • Range: [0, ∞)
Double-check Target output 5 gives input 52 + 10 = 35. Substitution gives 35−10 = 25 = 5. The graph starts at (10, 0), as the inside-zero equation predicts.

Rung 3 of 6

Reflect a square root and raise its start

Find the domain and range of h(x) = −3x+8 + 2. You are tracking an inside addition, a negative output multiplier, and an outside addition.

Show the steps and the answer
(−8, 2)(−4, −4)domainrange−8−44−8−44
The negative multiplier turns the start into a maximum output of 2, and the curve continues downward.
  1. Require x+8≥0; subtract 8 to get x≥−8. Domain: [−8,∞).The square-root inside is nonnegative, first becoming zero at x = −8.
  2. The principal root is at least 0. Multiplying it by −3 gives a number at most 0; adding 2 gives h(x)≤2.A negative multiplier reverses the order of the output heights, so the starting height is now a maximum.
  3. h(−8)=−30+2=2.The upper bound is attained and therefore included.
  4. To find an input for any target y≤2, start with y=−3x+8+2. Subtract 2 from both sides: y−2=−3x+8.We are undoing the outside addition to find an input that reaches the target output, not solving a domain restriction.
  5. Divide both sides by −3: y−2−3=x+8. Rewrite the fraction as 2−y3. This root value is nonnegative because y≤2.Negative division changes both signs in the fraction. The target restriction is what lets a principal square root equal that value.
  6. Square both sides: x+8=(2−y3)2. Subtract 8: x=(2−y3)2−8.Squaring recovers the inside value from the nonnegative root value. Subtracting 8 then finds the original input.
  7. This input is at least −8 and gives −3×2−y3+2=−(2−y)+2=y. Range: (−∞,2].Every proposed output at or below 2 has a valid input, and no output exceeds 2.
Answer
  • Domain: [−8, ∞)
  • Range: (−∞, 2]
Double-check For target output −4, the input formula gives (2−(−4)3)2 − 8 = 22 − 8 = −4. Direct substitution gives −3−4+8 + 2 = −3 × 2 + 2 = −4. The curve drops from its included start (−8, 2).

Rung 4 of 6

A decreasing inside and a reflected square root

Find the domain and range of K(x) = −17−x. You are checking which inputs make the root real and which final heights appear after reversing the output sign.

Show the steps and the answer
included start(8, −3)domainrange6101418−4−22
The inside 17 − x permits inputs left of 17, while the outside minus gives heights at or below zero.
  1. Require 17−x≥0. Subtract 17: −x≥−17. Divide by −1 and reverse the comparison: x≤17.The inside must be nonnegative; negative division reverses the order of the input condition.
  2. At x=17,K(17)=−0=0. For every valid input, K(x)≤0.A principal root is nonnegative and its opposite is nonpositive. Nonpositive means negative or zero, written ≤ 0.
  3. For any target y≤0, solve y=−17−x. Multiply by −1: −y=17−x; the right target is nonnegative. Square: y2=17−x. Subtract 17 and multiply by −1: x=17−y2.Undoing the final sign and the root constructs the original input that would produce the target output.
  4. This input is at most 17. Substitution gives −17−(17−y2)=−y2=−|y|=y, because y≤0.The target sign makes |y| = −y, so every nonpositive output is attained.
Answer
  • Domain: (−∞, 17].
  • Range: (−∞, 0].
Double-check For target −3, the constructed input is 17 − 9 = 8. Then K(8) = −9 = −3. Input 18 fails because the radicand is −1; the endpoint 17 gives the included maximum height 0.

Rung 5 of 6

A reciprocal with an omitted height of 3

Find the domain and range of p(x) = 5x−7 + 3. You are locating the forbidden denominator input and the final output height that no input reaches.

Show the steps and the answer
(2, 2)(12, 4)domainrange261014−448
The excluded input is 7 and the excluded output is 3; the two exclusions come from different questions.
  1. Require x−7≠0, so x≠7. At x=7, the denominator is 7−7=0, confirming the excluded input. Domain: (−∞,7)∪(7,∞).Only input 7 makes the denominator zero.
  2. The fraction cannot equal zero. Therefore p(x) cannot equal 3.If the final output were 3, subtracting 3 would force a fraction with nonzero numerator 5 to equal zero.
  3. For any y≠3, subtract 3 from y=5x−7+3 and solve: x−7=5y−3, so x=7+5y−3.The target condition permits division by y − 3, and reversing the denominator calculation isolates x.
  4. This input is not 7 and produces y. Range: (−∞,3)∪(3,∞).The added fraction is nonzero, and substitution returns 5 ÷ 5y−3 + 3 = y − 3 + 3 = y.
Answer
  • Domain: (−∞, 7) ∪ (7, ∞)
  • Range: (−∞, 3) ∪ (3, ∞)
Double-check Target 4 gives input 7 + 5 ÷ 1 = 12, and p(12) = 5 ÷ 5 + 3 = 4. Target 2 gives input 7 + 5 ÷ (−1) = 2, and p(2) = 5 ÷ (−5) + 3 = 2. Both sides of the missing height are attained.

Rung 6 of 6

Reciprocal squared below a new height

Find the domain and range of q(x) = −4(x+2)2 + 7. You are locating the forbidden squared denominator and tracking the negative fraction before adding 7.

Show the steps and the answer
(−1, 3)(0, 6)domainrange−6−4−22−448
Both branches lie below the omitted height 7, and input −2 is forbidden.
  1. Find the input that makes the denominator zero: x+2=0 gives x=−2. Substitution gives (−2+2)2=02=0, so exclude −2. Domain: (−∞,−2)∪(−2,∞).A square equals zero only when its base equals zero, and division by that zero denominator would be undefined.
  2. For every valid input, (x+2)2>0, so −4(x+2)2<0. Adding 7 gives q(x) < 7.The fraction has a positive denominator and a negative numerator, and it never equals zero.
  3. To find an input for any target y < 7, start with y=7−4(x+2)2. Subtract 7: y−7=−4(x+2)2. Multiply both sides by −1: 7−y=4(x+2)2.These steps isolate the fraction so we can find an input producing the target. The target condition gives 7 − y > 0.
  4. Multiply both sides by the nonzero denominator (x+2)2: (7−y)(x+2)2=4. Divide both sides by the positive number 7−y: (x+2)2=47−y.The first multiplication undoes division by the original denominator. The second division isolates the square; both divisions use nonzero quantities.
  5. Choose x=−2+47−y. This input is not −2, since the root is strictly positive.The positive number under the root gives a nonzero base whose square is the required denominator.
  6. Substituting gives 7−4÷47−y=7−(7−y)=y. Range: (−∞,7).Every output strictly below 7 has a permitted input, while 7 itself and greater outputs are impossible.
Answer
  • Domain: (−∞, −2) ∪ (−2, ∞)
  • Range: (−∞, 7)
Double-check For target 3, choose x = −2 + 4÷4 = −1; direct substitution gives q(−1) = −4 ÷ 1 + 7 = 3. For target 6, choose x = −2 + 4÷1 = 0; q(0) = −4 ÷ 4 + 7 = 6. The curve can approach height 7 but never reaches it.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The graph of x+4 starts at x = 4 because the formula has +4.
The input fed into the root is x + 4. It is zero when x = −4, not when x = 4.
✓ Instead: Solve x + 4 = 0 first. The graph starts at (−4, 0), and its domain is [−4, ∞).
✗ Not this: Any function with arbitrarily negative and positive outputs must attain every real output.
A graph with jumps could skip some intermediate heights. Reaching both directions is not enough by itself.
✓ Instead: For x3 − x, the graph is continuous, with no jumps or breaks, and extends to both extremes. Together those facts show that every intermediate output is attained.

Tips and tricks

  • For an inside change, solve an equation such as x + 4 = 0 before describing the graph's movement.
  • For a square-root range, check the starting height and whether the outside multiplier is positive or negative.
  • For a range proof, an input formula or a continuous crossing argument covers infinitely many outputs at once.

7 The trap

Listing outputs that seem possible without showing that an input produces them. Excluding zero, or observing a sign, may give a restriction but does not by itself prove the whole range.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 9 of 10

Write and evaluate a piecewise function

Subject: MathematicsLeans on: Order of operationsLeans on: PercentagesLeans on: Negating a negativeOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Picture a parking sign with different prices for different lengths of stay. You first read which time interval your stay belongs to. Only then do you calculate its price. A piecewise function works this way: one rule applies on one part of its domain, and another rule applies somewhere else. Each part is called a piece. The conditions beside the formulas tell you which lane to choose. A boundary is the input where a lane starts or stops. Look carefully at whether equality is allowed there. The price rule for the next lane may be different, even though the two inputs are very close.

2 Picture it

C(g) = 25 if 0 < g < 2

C(g) = 25 + 10(g − 2) if g ≥ 2

Choose the condition first

Reminder

Reminder: Order of operations, Percentages, Negating a negative
  • Order of operations. 25 + 10(4 − 2) means subtract first, multiply next, then add: 25 + 20 = 45.
  • Percentages. 10% of 10000 is 10100 × 10000 = 1000.
  • Negating a negative. −(−11) = 11, so the negative-input absolute value branch gives a positive distance.

3 Why

A function must give one output for each allowed input. Several formulas can work together if their conditions tell you which formula supplies that output. The domain is the union of the allowed branch inputs because an input may belong to any available piece. Boundary conditions show which inputs are assigned or omitted, and help you spot two conflicting outputs. A deliberate gap is allowed outside the domain. Some rules meet at the same height, like the data plan at its threshold. Other rules jump to a new height. Meeting is not required; a single assigned output is required.

4 The rule

Choose the condition your input satisfies, then use that piece's formula.

The whole domain is the union of the pieces' domains; each allowed input must receive one output.

The same idea, five ways

Say it

Say choose the condition, then calculate its formula.

Write it

A piecewise function assigns different formulas to specified parts of its domain.

In math
  • C(g) = 25 if 0 < g < 2
  • C(g) = 25 + 10(g − 2) if g ≥ 2
  • Domain: {g | g > 0} = (0, ∞)
  • Graph words: each formula is used only on its own input interval
Like

A price sign routes your purchase to the rate for its size.

See it

C(g) = 25 if 0 < g < 2

C(g) = 25 + 10(g − 2) if g ≥ 2

Choose the condition first

The same idea, other ways

As a price sign

A museum sign can say $5 per person for a small group and $50 for a larger group. The group size chooses the rule. You do not pay both listed prices.

As a routing machine

Send the input to the condition it satisfies, then let that branch calculate the output. A boundary value belongs wherever equality is included.

g = 4g >= 2: 25 + 10(g −2)inputoutput$45
An input of 4 is routed to the excess-usage branch.
With a distance

|−11| uses the rule −x because its input is negative, giving 11. |11| uses x because its input is nonnegative, also giving 11. Two processes produce the same kind of distance.

Why the conditions matter

If an input receives different answers from overlapping conditions, the rule is not a function at that input. Usual piecewise notation avoids this by assigning each input to one branch. If overlapping formulas agree, they still give only one output.

Part 1: Absolute value as two formulas

Absolute value measures how far a number is from zero. This distance is also called its magnitude or modulus. A nonnegative number already tells its distance. A negative number needs its opposite, so the two sides of zero use different formulas.

  • |x| = x when x ≥ 0.
  • |x| = −x when x < 0.
  • −x is positive when x is negative; it does not mean the output is always negative.
  • The domain is (−∞, ∞) and the range is [0, ∞).
(0, 0)domainrange−4−224246
y = |x|.
Reminder
Reminder: Order of operations, Percentages, Negating a negative
  • Order of operations. 25 + 10(4 − 2) means subtract first, multiply next, then add: 25 + 20 = 45.
  • Percentages. 10% of 10000 is 10100 × 10000 = 1000.
  • Negating a negative. −(−11) = 11, so the negative-input absolute value branch gives a positive distance.
The same idea, five ways
Say it

Say keep a nonnegative input; take the opposite of a negative input.

Write it

Absolute value uses the formula matching the input’s sign.

In math
  • |x| = x if x ≥ 0
  • |x| = −x if x < 0
  • Domain: (−∞, ∞)
  • Range: [0, ∞)
Like

Your distance from home is nonnegative. At home it is zero; walking either way makes it positive.

See it
(0, 0)domainrange−4−224246
The same picture again: y = |x|.

Worked example

Absolute value uses the negative-input piece

Write |x| as a piecewise rule and use it to find |−11|.

Show the steps and the answer

|x| = x if x ≥ 0.

|x| = −x if x < 0.

|−11|=11.

  1. We need one formula for nonnegative inputs, another for negative inputs, then the output at −11.Absolute value measures distance from zero, so an input’s sign determines which formula returns that distance.
  2. For x≥0, use |x|=x.A nonnegative coordinate is already its own distance from zero.
  3. For x < 0, use |x|=−x.The distance to zero is positive, so negating a negative coordinate gives its length.
  4. The input −11 satisfies x < 0, so choose −x.The input's sign selects the piece; you do not use both rules.
  5. Evaluate −(−11)=11.Taking the opposite of a negative number produces the positive distance.
Answer
  • |x| = x if x ≥ 0.
  • |x| = −x if x < 0.
  • |−11|=11.
Double-check Both 11 and −11 are eleven units from zero on the number line. At zero the nonnegative branch gives |0| = 0.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The formula −x always gives a negative output.
If x is negative, −x is its positive opposite.
✓ Instead: At x = −11, the branch −x gives −(−11) = 11.
Tips and tricks
  • Substitute the whole negative input in parentheses.

Part 2: A museum group discount

For a small tour group, adding one person adds $5 to the bill. At ten people, the group pays a fixed $50. A discrete function here uses whole-number people counts. For the exercise, you extend the rule to real inputs between counts. This particular extension is a continuous function because its graph has no jumps or holes, including at ten.

  • Actual small-group charge: 5n for n in {1, 2, …, 9}.
  • Actual larger-group charge: 50 for integers n ≥ 10.
  • For the textbook continuous drawing, use 0 < n < 10 and n ≥ 10, with domain (0, ∞).
  • The actual count domain is {1, 2, 3, …}; a fractional person is not a real group member.

Small group: $5 × n

At least 10 people: $50

Actual n is a positive whole number

Reminder
Reminder: Order of operations, Percentages, Negating a negative
  • Order of operations. 25 + 10(4 − 2) means subtract first, multiply next, then add: 25 + 20 = 45.
  • Percentages. 10% of 10000 is 10100 × 10000 = 1000.
  • Negating a negative. −(−11) = 11, so the negative-input absolute value branch gives a positive distance.
The same idea, five ways
Say it

Say small groups pay per person; larger groups pay one fixed fee.

Write it

Actual groups use positive integer counts; the textbook drawing extends the rule to every positive real input.

In math
  • M(n) = 5n if 0 < n < 10
  • M(n) = 50 if n ≥ 10
  • Actual domain: {1, 2, 3, …}
  • Continuous domain: (0, ∞)
  • Continuous range: (0, 50]
Like

A cash register switches from per-person pricing to one fixed group fee.

See it

Small group: $5 × n

At least 10 people: $50

Actual n is a positive whole number

Worked example

Textbook: write a museum group-pricing function

OpenStax problem

A museum charges $5 per person for groups of 1 to 9 people and a fixed $50 for groups of 10 or more. Write the actual pricing rule and the textbook continuous exercise model.

Show the steps and the answer
input actual group size noutput M(n), dollars1594510501250↓ evaluate: input given, read the output below it
Whole-number groups choose the per-person or fixed-fee rule; sizes 10 and 12 both have output 50.
0(0, ∞)
The textbook continuous model uses every positive real input; real groups use only positive integer counts.
  1. We need a pricing formula on each group-size condition, then the actual and continuous input and output sets.The price changes its calculation at a group size of 10; the actual visitor counts and the continuous exercise model use different input sets.
  2. Use 5n when n is a whole number from 1 through 9.Per person means multiply the number of people by $5.
  3. Use 50 when n is a whole number at least 10.A fixed group fee stays $50 even when the group is larger.
  4. The actual domain is {1, 2, 3, …}.A group contains a positive whole-number count of people.
  5. For a continuous drawing, use 5n on 0 < n < 10 and 50 on n≥10.The source asks for a continuous drawing; here we extend the small-group rule over every real input strictly between 0 and 10 so it forms a line segment with an open point at (0, 0).
  6. The actual range is {5, 10, 15, 20, 25, 30, 35, 40, 45, 50}; the continuous range is (0, 50].Positive integer counts give separate actual prices. In the continuous model, positive inputs can approach 0 without reaching it, so their costs can approach $0 without attaining it. The first branch approaches $50 and the second branch supplies $50 itself.
Answer
  • Actual rule: M(n) = 5n for n in {1, …, 9}.
  • Actual rule: M(n) = 50 for integers n ≥ 10.
  • Actual domain: {1, 2, 3, …}.
  • Actual range: {5, 10, 15, 20, 25, 30, 35, 40, 45, 50}.
  • Textbook continuous model: M(n) = 5n if 0 < n < 10.
  • Textbook continuous model: M(n) = 50 if n ≥ 10.
  • Continuous domain: (0, ∞).
  • Continuous range: (0, 50].
Double-check M(9) = $45 and M(10) = $50. The continuous formula would give M(9.5) = $47.50, which explains the drawing but is not a real group size.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: A group of 9.5 people is an actual allowed input.
An actual head count must be a whole number, even if the exercise drawing interpolates between counts.
✓ Instead: Actual inputs are positive integers; 9.5 appears only in the chosen continuous drawing.
Tips and tricks
  • State whether you are using the real counting rule or the continuous exercise model.

Part 3: A fictional marginal tax model

Imagine placing the first portion of income in one basket and the excess in a second basket. The baskets have different percentage charges. Crossing the boundary puts only the added income into the second basket. This is a fictional teaching model, not a statement about a current tax law.

  • A tax bracket is an income interval with a specified tax rate in this model.
  • For income through $10000, use 10% of that income.
  • Above $10000, retain $1000 on the first portion and add 20% of only the excess.
  • At $10000 the first branch includes the boundary; the second branch starts above it.

First $10000: 10%

Income above $10000: 20%

Keep the first portion's $1000 tax

Reminder
Reminder: Order of operations, Percentages, Negating a negative
  • Order of operations. 25 + 10(4 − 2) means subtract first, multiply next, then add: 25 + 20 = 45.
  • Percentages. 10% of 10000 is 10100 × 10000 = 1000.
  • Negating a negative. −(−11) = 11, so the negative-input absolute value branch gives a positive distance.
The same idea, five ways
Say it

Say the first portion and the excess have separate rates.

Write it

Only income above the threshold gets the higher rate in this fictional tax model.

In math
  • T(i) = 0.10i if 0 ≤ i ≤ 10000
  • T(i) = 1000 + 0.20(i − 10000) if i > 10000
  • Domain: [0, ∞)
Like

Put the first portion of income and the excess into two baskets with different rates.

See it

First $10000: 10%

Income above $10000: 20%

Keep the first portion's $1000 tax

Worked example

A fictional tax bracket charges only the excess at the higher rate

In this fictional model, income through $10000 is taxed at 10%, and only additional income is taxed at 20%. Write T(i) for i ≥ 0 and find T(15000).

Show the steps and the answer

T(i) = 0.10i if 0 ≤ i ≤ 10000.

T(i) = 1000 + 0.20(i − 10000) if i > 10000.

T(15000) = $2000.

  1. We need the tax formula in each income bracket and its value at $15000.The lower rate covers the first $10000, and only the excess uses the higher rate.
  2. For 0≤i≤10000, write T(i)=0.10i.Ten percent is 10100 = 0.10 of the income in this first bracket.
  3. The tax on the first $10000 is 0.10×10000=1000.This charge remains part of the total when income enters the second bracket.
  4. For i > 10000, write T(i)=1000+0.20(i−10000).The second rate applies to the income above $10000, not to the whole income.
  5. At i=15000, excess income is 15000−10000=5000.Subtracting the threshold isolates the amount charged at 20%.
  6. Compute T(15000)=1000+0.20×5000=1000+1000=2000.The total includes tax from both portions of the income.
Answer
  • T(i) = 0.10i if 0 ≤ i ≤ 10000.
  • T(i) = 1000 + 0.20(i − 10000) if i > 10000.
  • T(15000) = $2000.
Double-check At the threshold, both formulas would produce $1000, so the total does not suddenly jump to 20% of all income. Taxing all $15000 at 20% would incorrectly give $3000.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Charge 20% of the entire $15000 income.
The higher bracket applies only to $5000 above the threshold.
✓ Instead: Keep $1000 on the first $10000 and add $1000 on the excess, for $2000.
Tips and tricks
  • Find the excess amount before applying the second rate.

Part 4: A data plan with a threshold

The plan charges a base amount for usage below two gigabytes. Beyond that threshold, it adds a price for excess usage. The given formula includes two gigabytes in the second branch. It does not assign a price to zero usage, so do not invent one.

  • C(g) = 25 for 0 < g < 2.
  • C(g) = 25 + 10(g − 2) for g ≥ 2.
  • Domain: (0, 2) ∪ [2, ∞) = (0, ∞).
  • Range: [25, ∞), because the base charge is reached and arbitrary nonnegative excess charges can be added.

g = 2 belongs to g ≥ 2

C(2) = 25 + 10 × 0 = 25

g = 0 belongs to neither piece

Reminder
Reminder: Order of operations, Percentages, Negating a negative
  • Order of operations. 25 + 10(4 − 2) means subtract first, multiply next, then add: 25 + 20 = 45.
  • Percentages. 10% of 10000 is 10100 × 10000 = 1000.
  • Negating a negative. −(−11) = 11, so the negative-input absolute value branch gives a positive distance.
The same idea, five ways
Say it

Say a base price plus an extra charge above two gigabytes.

Write it

The conditions assign one formula to each positive usage input.

In math
  • C(g) = 25 if 0 < g < 2
  • C(g) = 25 + 10(g − 2) if g ≥ 2
  • Domain: (0, ∞)
  • Range: [25, ∞)
Like

Pay a base entrance price, then pay for extra usage beyond what it includes.

See it

g = 2 belongs to g ≥ 2

C(2) = 25 + 10 × 0 = 25

g = 0 belongs to neither piece

Worked example

Piecewise ladder 3: the threshold itself

For the same data-plan rule, find C(2) and decide whether C(0) is defined.

Show the steps and the answer
input goutput C(g), dollars125225445↓ evaluate: input given, read the output below it
g: 1, 2, 4; C(g), dollars: 25, 25, 45.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. At g=2, the condition 0 < g < 2 is false.A strict inequality excludes its boundary.
  3. The condition g≥2 is true, so C(2)=25+10(2−2)=25.The second condition includes equality, and the excess usage is zero.
  4. At g=0, neither condition is true.Zero is not strictly positive and is not at least 2.
  5. Report C(0) as undefined for this given rule.No branch assigns an output to zero; a real provider's policy would require a separately supplied rule.
Answer
  • C(2) = $25.
  • C(0) is undefined for the stated function.
Double-check The branch domains (0, 2) and [2, ∞) join to (0, ∞). The threshold belongs, while zero does not.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The stated data plan assigns a cost to zero usage.
Neither 0 < g < 2 nor g ≥ 2 includes zero.
✓ Instead: Its domain is (0, ∞), and C(0) is undefined.
Tips and tricks
  • Check zero in the given conditions instead of guessing a policy.

5 How

  1. Identify what the input measures and where the rule changes.
  2. Write a formula for each region and state its condition with the boundary ownership explicit.
  3. Include any context limits, such as positive whole-number people counts.
  4. To evaluate, compare the input with all conditions before using a formula.
  5. Substitute into the selected formula and follow the order of operations.
  6. At a boundary, check which condition includes equality. Do not add the outputs of different pieces.

Write or evaluate a piecewise rule

1
Does the input satisfy this branch's condition?
YesUse that branch's formula.
NoCheck the next condition.
↓
2
Is the input exactly a boundary?
YesChoose the condition that includes equality.
NoUse the interval containing the input.
↓
3
Does no branch assign an output?
YesThe input is outside the given domain.
NoCalculate the one assigned output.
  1. Identify what the input measures and where the rule changes.
  2. Write a formula for each region and state its condition with the boundary ownership explicit.
  3. Include any context limits, such as positive whole-number people counts.
  4. To evaluate, compare the input with all conditions before using a formula.
  5. Substitute into the selected formula and follow the order of operations.
  6. At a boundary, check which condition includes equality. Do not add the outputs of different pieces.

6 Worked example

Worked example

Evaluate a data-plan function

OpenStax problem

A data plan has C(g) = 25 for 0 < g < 2, and C(g) = 25 + 10(g − 2) for g ≥ 2. Here g is gigabytes and C is dollars. Find C(1.5) and C(4).

Show the steps and the answer
input goutput C(g), dollars1.525225445↓ evaluate: input given, read the output below it
g: 1.5, 2, 4; C(g), dollars: 25, 25, 45.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. For g=1.5, test 0 < 1.5 < 2.The condition decides which formula applies before any calculation.
  3. Use the first formula: C(1.5)=25.Every input strictly between 0 and 2 has the flat charge.
  4. For g=4, test 4≥2.This input belongs to the second piece.
  5. Subtract the included 2 gigabytes: 4−2=2.Only usage above the threshold is charged at the extra rate.
  6. Calculate C(4)=25+10×2=25+20=45.The base charge and the charge for two excess gigabytes must both be paid.
Answer
  • C(1.5) = $25.
  • C(4) = $45.
Double-check The second input uses two gigabytes above the threshold, so its $20 excess charge explains why the total is $20 above the flat $25 charge.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

Absolute value uses the negative-input piece

Write |x| as a piecewise rule and use it to find |−11|.

Show the steps and the answer

|x| = x if x ≥ 0.

|x| = −x if x < 0.

|−11|=11.

  1. We need one formula for nonnegative inputs, another for negative inputs, then the output at −11.Absolute value measures distance from zero, so an input’s sign determines which formula returns that distance.
  2. For x≥0, use |x|=x.A nonnegative coordinate is already its own distance from zero.
  3. For x < 0, use |x|=−x.The distance to zero is positive, so negating a negative coordinate gives its length.
  4. The input −11 satisfies x < 0, so choose −x.The input's sign selects the piece; you do not use both rules.
  5. Evaluate −(−11)=11.Taking the opposite of a negative number produces the positive distance.
Answer
  • |x| = x if x ≥ 0.
  • |x| = −x if x < 0.
  • |−11|=11.
Double-check Both 11 and −11 are eleven units from zero on the number line. At zero the nonnegative branch gives |0| = 0.

Rung 2 of 5

Piecewise ladder 2: a flat-charge input

For C(g) = 25 if 0 < g < 2 and C(g) = 25 + 10(g − 2) if g ≥ 2, find C(1).

Show the steps and the answer
input goutput C(g), dollars1251.525225↓ evaluate: input given, read the output below it
g: 1, 1.5, 2; C(g), dollars: 25, 25, 25.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. Check 0 < 1 < 2.The input fits the condition of the first branch.
  3. Use C(1)=25.This branch has no variable in its formula, so every input in it has the same cost.
Answer
C(1) = $25.
Double-check Do not substitute 1 into the second formula: it is not assigned to this input.

Rung 3 of 5

Piecewise ladder 3: the threshold itself

For the same data-plan rule, find C(2) and decide whether C(0) is defined.

Show the steps and the answer
input goutput C(g), dollars125225445↓ evaluate: input given, read the output below it
The same picture again: g: 1, 2, 4; C(g), dollars: 25, 25, 45.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. At g=2, the condition 0 < g < 2 is false.A strict inequality excludes its boundary.
  3. The condition g≥2 is true, so C(2)=25+10(2−2)=25.The second condition includes equality, and the excess usage is zero.
  4. At g=0, neither condition is true.Zero is not strictly positive and is not at least 2.
  5. Report C(0) as undefined for this given rule.No branch assigns an output to zero; a real provider's policy would require a separately supplied rule.
Answer
  • C(2) = $25.
  • C(0) is undefined for the stated function.
Double-check The branch domains (0, 2) and [2, ∞) join to (0, ∞). The threshold belongs, while zero does not.

Rung 4 of 5

Piecewise ladder 4: usage above the threshold

For the same data plan, find C(6.5).

Show the steps and the answer
input goutput C(g), dollars2254456.570↓ evaluate: input given, read the output below it
g: 2, 4, 6.5; C(g), dollars: 25, 45, 70.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. Since 6.5≥2, choose C(g)=25+10(g−2).The input belongs to the excess-usage branch.
  3. Calculate 6.5−2=4.5 gigabytes above the included amount.The first two gigabytes are accounted for by the base charge.
  4. Calculate 10×4.5=45, then add 25 to get 70.The excess amount is charged at $10 per gigabyte, on top of the base charge.
Answer
C(6.5) = $70.
Double-check Compared with C(4) = $45, the extra 2.5 gigabytes add $25. The difference $70 − $45 = $25 agrees.

Rung 5 of 5

Piecewise ladder 5: two boundary owners

Let P(x) = x + 6 if x < −2, P(x) = 7 if −2 ≤ x ≤ 4, and P(x) = 3x − 5 if x > 4. Find P(−5), P(−2), P(4), and P(6).

Show the steps and the answer
input xoutput P(x)−51−2747613↓ evaluate: input given, read the output below it
x:−5,−2,4,6;P(x):1,7,7,13.
  1. We need the outputs for the given inputs, choosing a condition before calculating.State what is being found before choosing the calculation.
  2. For −5, use x+6 and get −5+6=1.−5 satisfies the first condition x < −2.
  3. For −2, use the constant 7.Equality at −2 is included in the middle condition, not the first.
  4. For 4, also use the constant 7.Equality at 4 is included in the middle condition, not the last.
  5. For 6, use 3x−5 and get 3×6−5=18−5=13.6 satisfies x > 4.
Answer
  • P(−5)=1.
  • P(−2)=7.
  • P(4) = 7.
  • P(6) = 13.
Double-check The middle interval [−2, 4] owns both its endpoints, so −2 and 4 each belong to exactly one branch. On a number line, −5 sits left of −2 and 6 sits right of 4, so each of those uses an outer branch.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: At g = 4, use the flat $25 data-plan rule.
The flat branch is assigned only to 0 < g < 2. Four gigabytes belongs to g ≥ 2.
✓ Instead: C(4)=25+10(4−2)=$45.
✗ Not this: The given data plan assigns C(0) = $25.
Zero satisfies neither 0 < g < 2 nor g ≥ 2. A missing branch cannot be supplied from a guess.
✓ Instead: C(0) is undefined for the stated rule.
✗ Not this: In the fictional second tax bracket, charge 20% of all $15000.
Only the $5000 excess is assigned the higher rate; the first $10000 retains its 10% charge.
✓ Instead: Tax is $1000 + $1000 = $2000.

Tips and tricks

  • Memory device: choose the lane, then calculate.
  • Underline the condition that contains the boundary's equality sign.
  • For a threshold charge, write excess = input − threshold before multiplying by the extra rate.

7 The trap

Using a formula because it is familiar before reading its condition. At g = 2 the data plan uses the g ≥ 2 piece. At g = 0 neither piece applies.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 10 of 10

Graph each piece only where its condition allows it

Subject: MathematicsLeans on: SubstitutionLeans on: Equality at a boundaryLeans on: Principal square rootOpen this lesson
Leans on 0Comes back in 1

1 In plain words

Think of laying several sections of road on one map. Each section has its own shape and its own starting and stopping positions. To graph a piecewise function, draw the shape for one formula, then keep it only where its condition allows it. Put all the permitted sections on the same axes. A filled endpoint says the road includes that exact location. A hollow endpoint shows where the shape would go if extended, but that point is absent. At a boundary, a different section may include a point at a different height. Read the assigned height rather than connecting every nearby endpoint.

2 Picture it

1213
Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.

Reminder

Reminder: Substitution, Equality at a boundary, Principal square root
  • Substitution. If f(x) = x2 on the selected branch, f(1) means replace x by 1 and compute 12 = 1.
  • Equality at a boundary. 1 < x ≤ 2 includes 2, while x > 2 does not.
  • Principal square root. If y ≥ 0, y is nonnegative and (−y)2 = y.

3 Why

Graphing the whole formula of every branch can give inputs several competing outputs. Restricting each shape to its branch condition preserves the function's assigned pairs. At a strict boundary, the limiting point can help show where the curve approaches, but it is not part of the graph. The vertical line test counts only included points, so open boundary circles do not create extra outputs. After drawing all pieces, take the union of their horizontal shadows for the domain and their vertical shadows for the range. Different branch ranges may overlap.

4 The rule

Draw each branch only on its assigned interval, using open dots for strict boundaries and closed dots for included ones.

Combine the pieces; domain is the input union and range is the union of reached output heights.

The same idea, five ways

Say it

Say keep the permitted piece and mark whether its endpoint belongs.

Write it

A piecewise graph consists of the formula's points only where its condition allows them.

In math
  • x ≤ 1: draw x2 with a closed endpoint at (1, 1)
  • 1 < x ≤ 2: draw 3 with open (1, 3), closed (2, 3)
  • x > 2: draw x with open (2, 2)
  • Whole domain: {x | x is real} = (−∞, ∞)
  • Whole range: {y | y ≥ 0} = [0, ∞)
Like

Cut unused road sections away before placing the remaining pieces on one map.

See it
1213
The same picture again: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.

The same idea, other ways

As cut-and-keep shapes

Imagine drawing the full square curve, horizontal line and identity line on separate sheets. Cut away the inputs their conditions reject. Place the remaining pieces on one coordinate plane.

As boundary ownership

At x = 1 in the given function, (1, 1) belongs and (1, 3) does not. At x = 2, (2, 3) belongs and (2, 2) does not. The filled point gives the function value.

As a picture convention

A filled endpoint is present, and a hollow endpoint is absent. A piecewise graph can show several endpoint markers at one input, but the vertical line test counts only the included points.

1213
Filled and hollow endpoint dots distinguish included graph points from boundary locations that are absent.
As two separate unions

The given function's input pieces fill the whole real number line. Its square branch alone already reaches every nonnegative output. Other pieces can change which input gives a height without adding new heights to the range.

Part 1: Draw the quadratic branch

The first branch uses the familiar square curve. Its condition keeps all inputs at most 1, including negative inputs far to the left. That left arm keeps rising, so this one branch reaches output heights much larger than its right endpoint's height.

  • Formula: x2 for x ≤ 1.
  • Closed endpoint: (1, 1).
  • Included vertex: (0, 0).
  • Branch domain: (−∞, 1]; branch range: [0, ∞).
1213
The same picture, shown 4 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
Reminder
Reminder: Substitution, Equality at a boundary, Principal square root
  • Substitution. If f(x) = x2 on the selected branch, f(1) means replace x by 1 and compute 12 = 1.
  • Equality at a boundary. 1 < x ≤ 2 includes 2, while x > 2 does not.
  • Principal square root. If y ≥ 0, y is nonnegative and (−y)2 = y.
The same idea, five ways
Say it

Say keep the square curve through input one and all inputs to its left.

Write it

The quadratic branch includes its boundary and reaches every nonnegative height.

In math
  • f(x) = x2 if x ≤ 1
  • Branch domain: (−∞, 1]
  • Branch range: [0, ∞)
  • Graph words: closed (1, 1), vertex (0, 0), left arm continues
Like

Cut away only the forbidden input side of a drawn square curve.

See it
1213
The same picture, shown 5 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.

Worked example

Draw the first branch of the given function

OpenStax problem

Graph only the branch f(x) = x2 for x ≤ 1.

input xoutput x²−24−110011
x:−2,−1,0,1;x2:4,1,0,1.
Show the steps and the answer
input xoutput x²−24−110011↓ evaluate: input given, read the output below it
The four input columns give the points for the square branch.
1213
The same picture, shown 6 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
1(−∞, 1]
Keep the square curve only on this input interval.
  1. We need the included graph points, keeping only the assigned input interval.State what is being found before choosing the calculation.
  2. Mark the boundary x=1 and choose sample inputs −2,−1, 0 and 1.All these inputs satisfy this branch's condition.
  3. Read the column under −2: (−2)2=4. Under −1,(−1)2=1. Under 0, 02=0. Under 1, 12=1.Squaring each selected input supplies points on the quadratic shape.
  4. Draw the U-shaped curve through these points, keeping only x≤1.The formula is assigned to this interval alone.
  5. Place a closed dot at (1, 1) and extend the left side upward with an arrow.Equality includes x = 1, and there is no lower input bound.
  6. This branch has domain (−∞,1] and range [0,∞).The vertex reaches zero, and arbitrarily negative inputs have arbitrarily large squares.
Answer
  • Plot (−2, 4), (−1, 1), (0, 0) and the closed point (1, 1).
  • Keep the curve only for x ≤ 1.
  • Branch domain: (−∞, 1].
  • Branch range: [0, ∞).
Double-check For any desired y ≥ 0, x = −y is at most zero, hence allowed, and x2 = y. This proves every claimed height occurs.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The branch x2 for x ≤ 1 has no outputs above 1.
The restriction limits inputs, and negative inputs can have large squares.
✓ Instead: Input −3 is allowed and gives 9. This branch has range [0, ∞).
Tips and tricks
  • Use a negative sample input to remember the rising left arm.

Part 2: Draw the constant branch

The middle branch is a horizontal shelf at height 3. It begins after input 1 and includes input 2. Every position on that shelf has the same output. The endpoints have different inclusion rules even though the shelf is flat.

  • Formula: 3 for 1 < x ≤ 2.
  • Open endpoint: (1, 3); closed endpoint: (2, 3).
  • Branch domain: (1, 2]; branch range: {3}.
12
(1, 2] on a number line.
Reminder
Reminder: Substitution, Equality at a boundary, Principal square root
  • Substitution. If f(x) = x2 on the selected branch, f(1) means replace x by 1 and compute 12 = 1.
  • Equality at a boundary. 1 < x ≤ 2 includes 2, while x > 2 does not.
  • Principal square root. If y ≥ 0, y is nonnegative and (−y)2 = y.
The same idea, five ways
Say it

Say a shelf after input one through input two.

Write it

The constant branch excludes its left boundary and includes its right boundary.

In math
  • f(x) = 3 if 1 < x ≤ 2
  • Branch domain: (1, 2]
  • Branch range: {3} = [3, 3]
  • Graph words: open (1, 3), closed (2, 3)
Like

A horizontal shelf keeps the same height across its allowed span.

See it
12
The same picture again: (1, 2] on a number line.

Worked example

Draw the middle branch of the given function

OpenStax problem

Graph only f(x) = 3 for 1 < x ≤ 2.

1213
The same picture, shown 7 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
Show the steps and the answer
12
The same picture a third time: (1, 2] on a number line.
  1. We need the included graph points, keeping only the assigned input interval.State what is being found before choosing the calculation.
  2. Mark the interval from 1 to 2.The condition restricts this branch to those input positions.
  3. Draw a horizontal segment at y=3.The output stays 3 for every input in this interval.
  4. Use an open dot at (1, 3) and a closed dot at (2, 3).The left comparison is strict and the right comparison includes equality.
  5. The branch domain is (1, 2] and range is {3}.Many allowed inputs produce the single output 3.
Answer
  • Draw a horizontal segment at height 3.
  • Open point: (1, 3).
  • Closed point: (2, 3).
  • Branch domain: (1, 2].
  • Branch range: {3}, also [3, 3].
Double-check The allowed input 1.5 gives 3, while this branch does not assign anything to x = 1.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Include (1, 3) on the middle shelf.
The condition is 1 < x ≤ 2, so 1 is excluded from this branch.
✓ Instead: Use open (1, 3) and closed (2, 3).
Tips and tricks
  • Mark each endpoint from its own comparison sign.

Part 3: Draw the identity branch

The last branch follows the slanted line where output equals input. It starts strictly after 2, so the point (2, 2) is hollow. The whole function still has a value at input 2 because the middle branch supplies it at height 3.

  • Formula: x for x > 2.
  • Open boundary point: (2, 2).
  • Sample included points: (3, 3) and (4, 4).
  • Branch domain and branch range: (2, ∞).

Open boundary: (2, 2)

Included points: (3, 3), (4, 4)

Continue upward and rightward

Reminder
Reminder: Substitution, Equality at a boundary, Principal square root
  • Substitution. If f(x) = x2 on the selected branch, f(1) means replace x by 1 and compute 12 = 1.
  • Equality at a boundary. 1 < x ≤ 2 includes 2, while x > 2 does not.
  • Principal square root. If y ≥ 0, y is nonnegative and (−y)2 = y.
The same idea, five ways
Say it

Say copy each input strictly above two.

Write it

The last branch is the identity line only to the right of its excluded boundary.

In math
  • f(x) = x if x > 2
  • Branch domain and range: (2, ∞)
  • Graph words: open (2, 2), ray through (3, 3) and (4, 4)
Like

A diagonal path keeps the horizontal position and vertical height equal.

See it

Open boundary: (2, 2)

Included points: (3, 3), (4, 4)

Continue upward and rightward

Worked example

Draw the final branch of the given function

OpenStax problem

Graph only f(x) = x for x > 2.

1213
The same picture, shown 8 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
Show the steps and the answer

Open boundary: (2, 2)

Included points: (3, 3), (4, 4)

Continue upward and rightward

  1. We need the included graph points, keeping only the assigned input interval.State what is being found before choosing the calculation.
  2. Compute the boundary position (2, 2), but leave it open.The formula would give 2 there, but the condition excludes that input from this branch.
  3. Plot (3, 3) and (4, 4).Both inputs are above 2, and the identity rule keeps their values.
  4. Draw a straight ray through the included points and continue upward to the right.The identity graph is a line and has no upper input bound.
  5. Write (2,∞) for both this branch's domain and range.The included inputs and identical outputs are strictly greater than 2.
Answer
  • Open point: (2, 2).
  • Draw the ray through (3, 3) and (4, 4), continuing rightward.
  • Branch domain: (2, ∞).
  • Branch range: (2, ∞).
Double-check The output 2 is not supplied by this branch, but every output greater than 2 comes from the input with the same value.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: The last branch supplies f(2) = 2.
Its condition is x > 2, so its point (2, 2) is absent.
✓ Instead: The middle branch supplies f(2) = 3.
Tips and tricks
  • A branch exclusion does not remove an input assigned by another branch.

5 How

  1. Mark every boundary input on one common x-axis.
  2. Identify each formula's known shape and calculate at least two useful points, or include a turning point for a curve.
  3. Keep only the portion satisfying that branch's condition.
  4. Calculate the boundary height and make its dot open or closed according to that branch's inequality.
  5. Combine all allowed portions without inventing connecting segments across jumps or gaps.
  6. Check the vertical line test at every boundary, then collect the domain and range shadows.

Build a piecewise graph

1
Does the branch include its boundary?
YesDraw a closed dot at the calculated boundary point.
NoDraw an open dot there.
↓
2
Is there a jump or gap?
YesLeave it unconnected.
NoKeep only the allowed curve or line portions.
↓
3
Does a vertical line hit two different included points?
YesThe plotted rule fails to be a function there; check the conditions.
NoRead and combine the branch shadows.
  1. Mark every boundary input on one common x-axis.
  2. Identify each formula's known shape and calculate at least two useful points, or include a turning point for a curve.
  3. Keep only the portion satisfying that branch's condition.
  4. Calculate the boundary height and make its dot open or closed according to that branch's inequality.
  5. Combine all allowed portions without inventing connecting segments across jumps or gaps.
  6. Check the vertical line test at every boundary, then collect the domain and range shadows.

6 Worked example

Worked example

Graph and read all three pieces

OpenStax problem

Let f(x) = x2 if x ≤ 1, f(x) = 3 if 1 < x ≤ 2, and f(x) = x if x > 2. Graph it, find f(1), f(1.5), f(2) and f(4), and state domain and range.

Show the steps and the answer
1213
The same picture, shown 9 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw y=x2 only for x≤1, with a closed point at (1, 1).The first condition includes its boundary; the square curve has its lowest point at (0, 0).
  3. Draw y=3 on 1<x≤2, with an open point at (1, 3) and a closed point at (2, 3).This condition excludes its left endpoint and includes its right endpoint.
  4. Draw y=x only for x > 2, beginning with an open point at (2, 2).The third condition excludes 2, so its line does not assign an output there.
  5. At x=1, choose the first branch and calculate 12=1.The ≤ 1 condition owns this boundary.
  6. At x=1.5, choose the middle branch and get 3.1 < 1.5 ≤ 2.
  7. At x=2, also choose the middle branch and get 3.The middle condition includes equality at 2; the final branch does not.
  8. At x=4, choose the last branch and get 4.4 satisfies x > 2.
  9. Take the input union (−∞,1]∪(1,2]∪(2,∞)=(−∞,∞).Every real input belongs to one of these three intervals, with no gap.
  10. The first branch already reaches every y≥0, and neither other branch goes below zero.For any y ≥ 0 the allowed input −y supplies that output through the first branch.
  11. Write range [0,∞).Union with {3} and (2, ∞) adds no new values beyond the first branch's range.
Answer
  • f(1) = 1.
  • f(1.5) = 3.
  • f(2) = 3.
  • f(4) = 4.
  • Domain: (−∞, ∞).
  • Range: [0, ∞).
Double-check At x = 1 the only included boundary point is (1, 1), and at x = 2 it is (2, 3). The open points are absent, so a vertical line meets exactly one included point at either boundary. Also f(−3) = 9 confirms that the first branch's output heights continue above the constant piece.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 6

Graphing ladder 1: two pieces that meet

Graph F(x) = x for x < 0 and F(x) = 2x for x ≥ 0. State domain and range.

−44−8−44812
y = x.
Show the steps and the answer
0(−∞, 0)
Keep only x < 0 from y = x.
−44−8−44812
This is the full line y = 2x; use the next picture to keep only the branch’s allowed inputs.
0[0, ∞)
Keep only x ≥ 0 from y = 2x.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw the line y=x only left of 0 with an open point at (0, 0).The first branch excludes its boundary and gives negative outputs for negative inputs.
  3. Draw the line y=2x on and right of 0 with a closed point at (0, 0), passing through (1, 2).The second branch includes the boundary and has twice the input as its output.
  4. Keep the included point at (0, 0) where the branches meet.An open marker from the first piece does not remove a point included by the second piece.
  5. Take the domain union (−∞,0)∪[0,∞).All negative and nonnegative inputs are covered.
  6. Take the range union (−∞,0)∪[0,∞).The first piece reaches every negative output; the second reaches every nonnegative output.
Answer
  • Domain: (−∞, ∞).
  • Range: (−∞, ∞).
  • The graph has an included point at (0, 0).
Double-check For a negative output y choose x = y in the first branch. For a nonnegative output y choose x = y2 in the second branch.

Rung 2 of 6

Graphing ladder 2: a jump creates a missing output interval

Graph G(x) = x − 2 for x < 4 and G(x) = x + 3 for x ≥ 4. Find domain and range.

−44−8−44812
This is the full line y = x − 2; use the next picture to keep only the branch’s allowed inputs.
Show the steps and the answer
4(−∞, 4)
Keep only x < 4 from y = x − 2; (4, 2) is open.
−44−8−44812
This is the full line y = x + 3; use the next picture to keep only the branch’s allowed inputs.
4[4, ∞)
Keep only x ≥ 4 from y = x + 3; (4, 7) is closed.
27(−∞, 2) ∪ [7, ∞)
Range: (−∞, 2) ∪ [7, ∞). The endpoint symbols record which limits belong.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw y=x−2 left of 4, ending at the open point (4, 2).Inputs below 4 use the first branch. At 4 it would give 4 − 2 = 2, but 4 is not below 4, so that point is hollow and these outputs stay strictly below 2.
  3. Draw y=x+3 on and right of 4, starting at the closed point (4, 7) and passing through (5, 8).The second branch includes 4, where 4 + 3 = 7, and it produces outputs at least 7.
  4. The input intervals join to all real numbers.Every real input is either below 4 or at least 4.
  5. The output intervals remain (−∞,2) and [7,∞).No included point reaches a height from 2 up to but not including 7.
  6. Join the output intervals with ∪.A union preserves the missing heights rather than filling them.
Answer
  • Domain: (−∞, ∞).
  • Range: (−∞, 2) ∪ [7, ∞).
  • G(4) = 7.
Double-check The output 5 cannot occur: x − 2 = 5 needs x = 7, which is not below 4, and x + 3 = 5 needs x = 2, which is not at least 4. A vertical line at x = 4 meets only the included point (4, 7).

Rung 3 of 6

Graph and read all three pieces

OpenStax problem

Let f(x) = x2 if x ≤ 1, f(x) = 3 if 1 < x ≤ 2, and f(x) = x if x > 2. Graph it, find f(1), f(1.5), f(2) and f(4), and state domain and range.

Show the steps and the answer
1213
The same picture, shown 10 times now: Three pieces: x2 up to x = 1, 3 from 1 to 2, and x after 2.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw y=x2 only for x≤1, with a closed point at (1, 1).The first condition includes its boundary; the square curve has its lowest point at (0, 0).
  3. Draw y=3 on 1<x≤2, with an open point at (1, 3) and a closed point at (2, 3).This condition excludes its left endpoint and includes its right endpoint.
  4. Draw y=x only for x > 2, beginning with an open point at (2, 2).The third condition excludes 2, so its line does not assign an output there.
  5. At x=1, choose the first branch and calculate 12=1.The ≤ 1 condition owns this boundary.
  6. At x=1.5, choose the middle branch and get 3.1 < 1.5 ≤ 2.
  7. At x=2, also choose the middle branch and get 3.The middle condition includes equality at 2; the final branch does not.
  8. At x=4, choose the last branch and get 4.4 satisfies x > 2.
  9. Take the input union (−∞,1]∪(1,2]∪(2,∞)=(−∞,∞).Every real input belongs to one of these three intervals, with no gap.
  10. The first branch already reaches every y≥0, and neither other branch goes below zero.For any y ≥ 0 the allowed input −y supplies that output through the first branch.
  11. Write range [0,∞).Union with {3} and (2, ∞) adds no new values beyond the first branch's range.
Answer
  • f(1) = 1.
  • f(1.5) = 3.
  • f(2) = 3.
  • f(4) = 4.
  • Domain: (−∞, ∞).
  • Range: [0, ∞).
Double-check At x = 1 the only included boundary point is (1, 1), and at x = 2 it is (2, 3). The open points are absent, so a vertical line meets exactly one included point at either boundary. Also f(−3) = 9 confirms that the first branch's output heights continue above the constant piece.

Rung 4 of 6

Graphing ladder 4: missing inputs and missing outputs

Let H(x) = x if x < −1 and H(x) = x + 2 if x ≥ 2. Graph it and state its domain and range.

Show the steps and the answer
−44−8−44812
The same picture again: y = x.
−1(−∞, −1)
Keep only x < −1 from y = x.
−44−8−44812
This is the full line y = x + 2; use the next picture to keep only the branch’s allowed inputs.
2[2, ∞)
Keep only x ≥ 2 from y = x + 2.
−12(−∞, −1) ∪ [2, ∞)
Domain: (−∞, −1) ∪ [2, ∞). The endpoint symbols record which limits belong.
−14(−∞, −1) ∪ [4, ∞)
Range: (−∞, −1) ∪ [4, ∞). The endpoint symbols record which limits belong.
  1. We need every allowed input and every output the rule actually reaches.State what is being found before choosing the calculation.
  2. Draw y=x for x<−1, ending with an open point at (−1,−1).The first branch excludes its right boundary and extends downward to the left.
  3. Leave all inputs from −1 through values below 2 blank.Neither condition assigns an output to those inputs.
  4. Draw y=x+2 for x≥2, starting with a closed point at (2, 4) and passing through (3, 5).The second condition includes 2 and gives output 2 + 2 = 4 there.
  5. Write domain (−∞,−1)∪[2,∞).These are exactly the two allowed input intervals.
  6. Write range (−∞,−1)∪[4,∞).The first line reaches every height below −1; the second reaches every height at least 4.
Answer
  • Domain: (−∞, −1) ∪ [2, ∞).
  • Range: (−∞, −1) ∪ [4, ∞).
  • H(0) is undefined.
Double-check For y < −1, choose x = y in the first branch. For y ≥ 4, choose x = y − 2 ≥ 2 in the second. The outputs in the claimed range all have an allowed input.

Rung 5 of 6

Graph a constant and a square-root branch

Let Q(x) = 5 if x < −4 and Q(x) = x+4 if x ≥ −4. Graph the two assigned pieces and find domain and range. You are drawing each shape only for its own input condition, then collecting the whole graph’s two shadows.

Show the steps and the answer
−8−6−4−22246
This is the full constant line; keep only its inputs x < −4, leaving (−4, 5) open.
−4(−∞, −4)
The constant branch uses only these inputs.
closed start(0, 2)(5, 3)range−44824
This root curve already has exactly its assigned inputs x ≥ −4 and includes its start.
  1. For x<−4, draw a horizontal ray at height 5, with an open point at (−4,5) and continuation to the left.The constant rule gives one height on its assigned inputs, and the strict condition excludes the boundary.
  2. For x≥−4, draw the root curve beginning at the closed point (−4,0). At x=0 it passes through (0, 2), and at x=5 it passes through (5, 3).Substitution gives 0 = 0, 4 = 2, and 9 = 3. The second condition includes the starting input and its root is real for every assigned input.
  3. Take the input union (−∞,−4)∪[−4,∞)=(−∞,∞).Every input below the boundary uses the constant, and every input at or above it uses the root, so none is missing.
  4. The constant branch gives {5}. The root branch gives [0,∞), because any target y≥0 comes from x=y2−4≥−4.The nonnegative root outputs are all attained by the constructed input.
  5. The full output union is {5}∪[0,∞)=[0,∞).Output 5 already lies in the root range, so including the constant branch adds no new height.
Answer
  • Domain: (−∞, ∞).
  • Range: [0, ∞).
  • Q(−4)=0.
Double-check At the boundary, the point (−4, 5) is absent and (−4, 0) is included, so the vertical line there has exactly one included crossing. Output 5 is reached at negative inputs and also at x = 21 because 25 = 5.

Rung 6 of 6

Three shapes with two omitted boundary inputs

Let P(x) = x3 if x < −3, P(x) = −7 if −3 < x < 9, and P(x) = x−5 if x > 9. Graph the pieces and find domain and range. You are retaining the branch shapes only on the stated intervals, including any missing inputs or isolated output heights.

Show the steps and the answer
−6−4−2−144−112−80−48−16
This is the full cube shape; keep only x < −3 and leave its boundary location (−3, −27) open.
−3(−∞, −3)
The cube branch has exactly these inputs.
−448−10−8−6−4−2
This is the full constant line; keep only −3 < x < 9 with both endpoints open.
−39(−3, 9)
The middle branch includes every input strictly between the two omitted boundaries.
48121624
This is the full square-root shape; keep only x > 9, leaving (9, 2) open.
9(9, ∞)
The root branch uses these inputs rather than all inputs allowed by its full shape.
−27−72excluded boundincluded isolated heightexcluded bound(−∞, −27) ∪ [−7, −7] ∪ (2, ∞)
The output shadow has two unbounded pieces and the one included height −7.
  1. Draw the cube curve only for x<−3. At its right boundary the formula would give (−3)3=−27, so place an open point at (−3,−27).The strict condition excludes −3. Every earlier input gives a cube below −27.
  2. Draw a horizontal segment at height −7 only for −3<x<9, with both (−3,−7) and (9,−7) open.Both comparisons are strict, although every interior input supplies the actual output −7.
  3. For x > 9, the root curve’s boundary location is (9, 2), because 9−5=4=2. Leave that point open, and draw the curve through (14, 3), continuing rightward.Only inputs above 9 belong to this branch; they make the root inside greater than 4, so their root outputs are strictly greater than 2.
  4. Keep both missing input values and write (−∞,−3)∪(−3,9)∪(9,∞).No condition includes −3 or 9; each other real input belongs to exactly one branch.
  5. The cube branch reaches exactly (−∞,−27): for any y<−27, the input y3 is below −3 and cubes to y. The middle branch reaches the single value −7.Cubing preserves input order, and the constant branch has only one output despite its many inputs.
  6. The root branch reaches (2,∞): for any target y > 2, choose x=y2+5>9; then x−5=y.The target is positive, so its square exceeds 4 and the principal root returns y. This proves every claimed root height is attained.
  7. Combine the three output sets as (−∞,−27)∪[−7,−7]∪(2,∞).The isolated height −7 belongs. A one-member set can be written [−7, −7], and union must preserve all missing heights around it.
Answer
  • Domain: (−∞, −3) ∪ (−3, 9) ∪ (9, ∞).
  • Range: (−∞, −27) ∪ [−7, −7] ∪ (2, ∞).
  • P(−3) and P(9) are undefined.
Double-check Input −4 gives −64, input 0 gives −7, and input 14 gives 3. Each value belongs to its listed range piece. No included point reaches −27 or 2: their only matching branch boundary inputs are excluded.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Connect (1, 1) to (1, 3) with a vertical line segment.
That would give several included output heights for the one input x = 1.
✓ Instead: Keep (1, 1) closed and (1, 3) open, without connecting the jump.
✗ Not this: At x = 2, take the identity formula and output 2.
The identity branch requires x > 2. The middle branch owns x = 2.
✓ Instead: f(2) = 3.

Tips and tricks

  • List each branch's domain and range separately before taking the two unions.
  • Count only filled points in a vertical line test at a boundary.
  • Keep jumps and missing intervals visible. Do not draw extra connecting segments.

7 The trap

Joining the endpoint (1, 1) to the hollow endpoint (1, 3) with a vertical segment. That segment would create many outputs for x = 1. A jump stays a jump; it is not filled in.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.