Quarry School

Domain and range: crash course

about 24 min to listen10 lessons15 questions to tryUnit 2 of 17

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

Starts here no skill from another unit needed first

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

about 2 minOpen the full lessonOnly this lesson

The rule

Domain = all permitted inputs.

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

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.

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.

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.

2 Find the domain by checking the arithmetic

about 1 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 4 of 8 in the full lesson, where they run from easy to exam-hard.

Try it · level 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, ∞)

3 Factor a denominator and keep every original exclusion

about 3 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 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.

4 Write the same set three ways

about 2 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 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.

5 Read domain and range as shadows of a graph

about 2 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 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)

6 The first five toolkit functions

about 2 minOpen the full lessonOnly this lesson

The rule

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

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

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.

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.

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.

7 Reciprocals and roots complete the toolkit

about 4 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

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

about 3 minOpen the full lessonOnly this lesson

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 (−∞,∞).

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 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).

9 Write and evaluate a piecewise function

about 2 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 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.

10 Graph each piece only where its condition allows it

about 3 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 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.

11 Quick checks for the whole unit

8 questions

Quick check 1 of 8

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

Show the steps and the answer
Answer
(−∞, 4) ∪ (4, ∞), because x − 4 = 0 at x = 4 and division by zero is undefined.

Quick check 2 of 8

Find the domain of f(x) = x−9.

Show the steps and the answer
Answer
[9, ∞), because x − 9 ≥ 0 gives x ≥ 9 and the endpoint produces 0.

Quick check 3 of 8

Write −1 < x ≤ 6 in interval notation.

Show the steps and the answer
Answer
(−1, 6], because −1 is excluded and 6 is included.

Quick check 4 of 8

Write x < −3 or x ≥ 2 in interval notation.

Show the steps and the answer
Answer
(−∞, −3) ∪ [2, ∞), because or combines the two allowed pieces without filling the gap.

Quick check 5 of 8

Find the range of f(x) = x2 + 5 for all real x.

Show the steps and the answer
Answer
[5, ∞), because x2 ≥ 0 and every y ≥ 5 is reached by x = y−5.

Quick check 6 of 8

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

Show the steps and the answer
Answer
(−∞, ∞), because a polynomial uses only arithmetic defined for every real input.

Quick check 7 of 8

Solve 12 − 3x ≥ 0.

Show the steps and the answer
Answer
x ≤ 4, because subtracting 12 gives −3x ≥ −12 and dividing by negative 3 reverses the comparison.

Quick check 8 of 8

For f(x) = x2 if x ≤ 1, f(x) = 3 if 1 < x ≤ 2, and f(x) = x if x > 2, find f(2). The input is 2; choose its condition and find the output.

Show the steps and the answer
Answer
f(2) = 3, because 2 belongs to 1 < x ≤ 2, while the identity branch requires x > 2.