Square roots add boundary checks
Quick review (2 minutes)
Picture a square tile whose area you know.
requires A(x) ≥ 0. A denominator requires A(x) > 0.
For f(g(x)), apply every root requirement at its own stage and keep both gates.
1. Write the inner radicand requirement before using the inner function's output.
2. Substitute the inner output into the outer radicand and require it to be nonnegative.
3. Use the inner range when possible. A real square root output is always at least zero.
4. Before squaring an inequality, check that both compared sides are nonnegative. Then square and solve while preserving the earlier requirements.
5. If a root is a denominator, replace its nonnegative condition with a greater than zero one.
6. Combine the bounds and test endpoints in the original two-stage formula.
Let f(x) = and g(x) = . Find (f ∘ g)(x) and its domain. You want a nested-root formula and the starting inputs for which both roots exist. Plan: find where the inner root exists, then use its nonnegative output to check the outer radicand after adding 2.
(f ∘ g)(x) = .
Domain: (−∞, 3].
Demanding a positive radicand for every square root. Ordinary roots allow zero; roots in denominators must avoid zero because of division.
Use the two-gate strategy from the preceding lesson. Write the original inner restrictions first.
At every root require the whole inside ≥ 0. When that root is a bottom, require the inside > 0.
An inner root gives only nonnegative answers. Check whether this makes an outer requirement automatic or impossible.
If a forbidden outer value is nonnegative, solve the root equation by squaring both nonnegative sides, then substitute the candidate back into the original root.
For an outer upper bound on a root, establish both sides nonnegative before squaring. Retain the inner lower bound.
Combine every restriction and test included boundaries and excluded points in the original stages.
Function
A rule that gives exactly one output for each input it accepts.
Input
The starting value you give a function. It goes inside the parentheses in function notation.
Output
The answer a function produces from an accepted input.
Domain
All inputs for which a function is defined.
Range
All outputs a function actually produces from its allowed inputs.
Undefined
Having no permitted output under the rule being used, as with division by zero or a negative real square-root radicand.
Inner function
The function evaluated first in a composition. Its output becomes the next function's input.
Outer function
The function evaluated second in a two-function composition. It receives the inner function's output.
Substitution
Replacing a variable with a number or expression everywhere that variable appears. Parentheses hold a multi-term replacement together.
Radicand
The number or expression inside a root symbol. A real square root requires its radicand to be nonnegative.
Square root
The nonnegative number whose square is the given nonnegative number. Here the √ symbol names that one nonnegative value.
Reciprocal
One divided by a nonzero number. A fraction's reciprocal swaps its top and bottom, and their product is 1.
Intersection
The values shared by all the sets or conditions being combined.
Formula
A written rule using numbers, symbols, and operations to describe how a quantity is calculated.
Denominator
The bottom of a fraction. It names the divisor and cannot be zero.
Real number
A number on the ordinary number line, including negatives, zero, fractions, and numbers such as .
Nonnegative
Greater than or equal to zero. Zero is included, while positive means greater than zero and excludes zero.
Fraction
One number divided by another nonzero number. The top is divided by the bottom; equal pieces give a picture of its size.
Nested
Placed inside another expression, like one pair of parentheses inside another.
Solve
Find every input that makes a stated equality or inequality true. This differs from evaluating at a given input.
Endpoint
A boundary number at an end of an interval. A bracket includes it; a parenthesis leaves it out.
Equation
A statement that two expressions have equal values.
Inequality
A comparison saying less than, greater than, or either relation with equality allowed. It can describe many permitted inputs rather than one number.
Numerator
The top of a fraction. It is the amount divided by the denominator.
1 In plain words
Picture a square tile whose area you know. A square root asks for its nonnegative side length. The number under the root sign is the radicand. A negative area cannot make a real square tile, so a real square root needs a nonnegative radicand, meaning zero or more. Zero is allowed: = 0. For a composition, a square root can appear at the first gate or the second gate, so check its radicand at the stage where it appears. Also notice whether a root sits on the bottom of a fraction. Then zero fails the division even though the root itself exists.
2 Picture it
Reminder
Reminder: Square roots, Inequality reversal, Squaring a nonnegative inequality, Intersection of bounds, Denominator, Substitution, Solve a root equation, Squares greater than a bound
- Square roots. = 3, = 0, and has no real value.
- Inequality reversal. −x ≥ −3 becomes x ≤ 3 after multiplying by −1.
- Squaring a nonnegative inequality. If u ≥ 0, then ≤ 4 is equivalent to u ≤ 16; 4 is nonnegative too.
- Intersection of bounds. x ≥ −1 and x ≤ 15 together give [−1, 15].
- Denominator. is undefined, even when that zero came from .
- Substitution. For f(x) = , replacing x with g(x) gives .
- Solve a root equation. = 5 has nonnegative sides. Square to get x + 9 = 25, hence x = 16; plug back in to obtain = 5. A negative right side would give no solution.
- Squares greater than a bound. > 36 means x < −6 or x > 6. For example, (−10 = 100 > 36, while = 0 fails.
3 Why
Every real number squared is nonnegative, so no real number can square to a negative radicand. The root symbol chooses the nonnegative answer, which makes an inner root's range useful: its output can never be below zero. This may make an outer requirement automatic or may impose an upper bound. When squaring a root inequality, first establish that both sides are nonnegative; squaring preserves their order there, but can erase important sign information otherwise.
4 The rule
requires .
A denominator requires A(x) > 0.
For f(g(x)), apply every root requirement at its own stage and keep both gates.
The same idea, five ways
A square root needs zero or more inside. A root on the bottom needs more than zero.
Every root must exist at the stage where you use it, and every bottom must be nonzero.
- [a, ∞) includes a; (a, ∞) excludes a
A tile may have zero area, but you cannot divide by its zero side length.
The same idea, other ways
A tile with area 9 has side length 3. Area zero has side length zero. A negative area does not have a real side length, because no real square has negative area.
If g is a square root, every value coming out is at least zero. Then an outer root of g(x) + 2 always has a radicand at least 2, once g exists.
A root can hand the next fraction its zero-bottom input. For g(x) = , start 16 gives 5. The fraction then fails. The first root exists, so you must inspect the second stage too.
Part 1: A root at the first gate
A root in the inner function restricts the starting inputs. An outer operation cannot remove that restriction, even when it squares the inner root and shortens the formula.
- For g(x) = , the first gate requires x ≥ 2.
- Squaring an existing nonnegative root returns its radicand.
Worked example
Squaring a root preserves its starting restriction
Let g(x) = and f(x) = . Find the formula and domain of f(g(x)). You want to square the inner root after checking that it exists. Plan: require the inner radicand x − 2 to be nonnegative, then square the existing root while keeping its original restriction.
Show the steps and the answer
- Require , so .The inner square root must have a nonnegative radicand.
- , on .Squaring undoes an existing square root but does not create values where that root failed.
- Domain: [2, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- A square can remove a root symbol, but it cannot repair a root that never existed.
Part 2: A root at the second gate
When the outer function is a square root, its input is the inner output. Check that output against the outer radicand condition. Sometimes an inner square root also needs to stay below a bound.
- For f(x) = , the outer function requires its input ≤ 4.
- If g(x) = , both x ≥ −1 and g(x) ≤ 4 are required.
Worked example
An outer root bounds the inner root
Let f(x) = and g(x) = . Find the domain of f(g(x)). You want starting inputs that produce a real inner root no larger than 4. Plan: keep the inner root’s existence condition, bound its answer by 4 for the outer root, and square only after checking nonnegative sides.
Show the steps and the answer
- Gate 1 requires , so .The inner root must exist.
- Gate 2 requires , so .The outer radicand cannot be negative.
- Square both sides: , so .The inner root is nonnegative and 4 is nonnegative, so squaring preserves order.
- Combine and .Both gates must work for the same starting input.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Write the inner lower bound before finding the outer upper bound.
Part 3: A root in a denominator
A root on the bottom must exist and must not be zero. Those two requirements combine into a positive radicand. The boundary that an ordinary root accepts is removed by division.
- requires x − 2 > 0, so x > 2.
- A zero numerator over a nonzero denominator is allowed; a zero denominator is not.
Worked example
Division removes the zero-root endpoint
Let f(x) = and g(x) = x − 2. Find the domain of f(g(x)). You want the reciprocal of a root, so its denominator must be real and nonzero. Plan: substitute x − 2 into the outer input and require it to be positive, so the root exists and the denominator is nonzero.
Show the steps and the answer
- g accepts every real input.Subtracting 2 has no restriction.
- The outer rule requires g(x) > 0.A negative input has no real root, and zero would give denominator zero.
- , so x > 2.Adding 2 preserves the inequality direction.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Look for the fraction bar before choosing an open or closed endpoint.
5 How
- Write the inner radicand requirement before using the inner function's output.
- Substitute the inner output into the outer radicand and require it to be nonnegative.
- Use the inner range when possible. A real square root output is always at least zero.
- Before squaring an inequality, check that both compared sides are nonnegative. Then square and solve while preserving the earlier requirements.
- If a root is a denominator, replace its nonnegative condition with a greater than zero one.
- Combine the bounds and test endpoints in the original two-stage formula.
Apply the two gates to roots
- Use the two-gate strategy from the preceding lesson. Write the original inner restrictions first.
- At every root require the whole inside ≥ 0. When that root is a bottom, require the inside > 0.
- An inner root gives only nonnegative answers. Check whether this makes an outer requirement automatic or impossible.
- If a forbidden outer value is nonnegative, solve the root equation by squaring both nonnegative sides, then substitute the candidate back into the original root.
- For an outer upper bound on a root, establish both sides nonnegative before squaring. Retain the inner lower bound.
- Combine every restriction and test included boundaries and excluded points in the original stages.
6 Worked example
Worked example
A root inside a root
Let f(x) = and g(x) = . Find (f ∘ g)(x) and its domain. You want a nested-root formula and the starting inputs for which both roots exist. Plan: find where the inner root exists, then use its nonnegative output to check the outer radicand after adding 2.
Show the steps and the answer
- .The whole inner root replaces the outer input.
- The inner root requires .A real square root cannot have a negative radicand.
- , so .Subtracting 3 gives the first inequality; multiplying by −1 reverses its direction.
- The outer root requires . This adds no restriction.Where the inner root exists, it is at least zero, so adding 2 makes the outer radicand at least 2.
- Domain: (−∞, 3].
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 7
An inner root and an unrestricted outer rule
Let g(x) = and f(x) = x + 1. Find the composite domain. You want a real root followed by addition. Plan: require a real inner root, then check that adding 1 accepts every resulting output.
Show the steps and the answer
- The inner root requires .Its radicand is the starting input.
- The outer function adds no restriction.Any real inner output can have 1 added to it.
Rung 2 of 7
A line feeds an outer root
Let g(x) = 5x − 15 and f(x) = . Find the composite domain. You need the inner output to be nonnegative. Plan: require the line’s output 5x − 15 to be nonnegative before it enters the outer root.
Show the steps and the answer
- g accepts every real x; f requires .The outer root's radicand is the entire g output.
- , so .Add 15, then divide by the positive number 5 without reversing the sign.
Rung 3 of 7
The inner range makes gate 2 automatic
Let g(x) = and f(x) = . Find the domain of f(g(x)). You want both roots to exist. Plan: find where the inner root exists, then use its nonnegative output to check the outer radicand after adding 5.
Show the steps and the answer
- gives .This is the inner root requirement; reversing the sign when multiplying by −1 gives the bound.
- The inner output is at least 0, so is at least 5.A square root's output is nonnegative.
- No further restriction is needed.The outer radicand is already positive whenever the inner function exists.
Rung 4 of 7
An inner root reaches a forbidden outer input
Let g(x) = and f(x) = . Find the domain of f(g(x)). You need the root to exist and its answer to avoid 5. Plan: keep the inner lower bound, solve = 5, then exclude the verified start.
Show the steps and the answer
- Gate 1: gives .This finds the starting inputs where the inner root exists.
- Gate 2: f rejects input 5, since . Solve to find the start that hands f that value.The equation locates the failed outer handoff.
- Both sides are nonnegative. Square: . Subtract 9: .Squaring reverses the existing root here; subtraction isolates the failed start.
- Plug back in: and . Exclude 16.The candidate truly breaks gate 2 and already lies in the inner domain.
- At the lower boundary and , so include .A zero root is permitted here because the outer bottom is −5, not zero.
Rung 5 of 7
Both a lower and an upper bound
Let g(x) = and f(x) = . Find the composite domain. The inner root must exist and its output must be no greater than 3. Plan: keep the inner lower bound, require its root output to be at most 3, then square the nonnegative comparison to find the upper bound.
Show the steps and the answer
- gives .Gate 1 requires a real inner root.
- gives .Gate 2 requires a real outer root.
- Square to get , so .Both the existing root and 3 are nonnegative.
- Combine the two bounds.Both stages must exist.
Rung 6 of 7
A denominator makes the bound strict
Let g(x) = 3x − 9 and f(x) = . Find the composite domain. You need a real square root that is also a nonzero denominator. Plan: require the line’s output to be positive, because its outer root is also a denominator.
Show the steps and the answer
- Require .The outer input must be positive, not only nonnegative, to avoid a zero denominator.
- 3x > 9, so x > 3.Add 9 and divide by positive 3.
Rung 7 of 7
A square feeds a root in a bottom
Let m(x) = − 36 and p(x) = . Find both p(m(x)) and m(p(x)), with their domains. You want to compare the two orders and keep any restriction hidden by simplification. Plan: first require − 36 > 0 for p after m; then retain p’s positive-input requirement for the reverse order.
Show the steps and the answer
- . Require .The root is a bottom, so its inside must be positive to make it real and nonzero.
- Add 36: . This means distance from zero greater than 6, so or x > 6.Both positive and negative numbers can have squares larger than 36. The points 6 and −6 give a zero bottom.
- For the reverse order, p must act first, so require x > 0.An inner root on the bottom rejects negative starts and zero before m can act.
- , still for x > 0.An existing root squares to x. The shorter expression retains the inner positive-input restriction.
- Domain: (−∞, −6) ∪ (6, ∞).
- Domain: (0, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Put on the cheat sheet for study: ordinary root means ≥ 0; root denominator means > 0.
- Know cold: zero is allowed under a root but not under a fraction bar. Picture a filled endpoint for the root and an open endpoint for division.
- Test boundary inputs in the original nested formula before choosing brackets.
7 The trap
Demanding a positive radicand for every square root. Ordinary roots allow zero; roots in denominators must avoid zero because of division.
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.