GMAT

GMAT Piecewise Functions: Domains and Solving

3 October 20266 min read

A piecewise function selects a formula using a condition on its input. Your task is to choose the correct branch, calculate within that branch, and check that any proposed input satisfies both the branch condition and the function's domain. A correct algebraic calculation can still produce an invalid candidate.

This guide focuses on cases, input restrictions and solving for an input. For basic substitution and the order of two different functions, see defined functions: substitution and composition. All examples here are original teaching material rather than released GMAT questions.

Select a branch using the input, not the output

For real x, define p(x) by two cases:

p(x) = 2x + 1 when x < 5.
p(x) = x² when x ≥ 5.

To calculate p(4) + p(5), inspect each input separately. Since 4 < 5, p(4) = 2(4) + 1 = 9. Since 5 ≥ 5, p(5) = 5² = 25. The sum is 34.

The boundary input 5 belongs to the second case because the rule uses ≥ there. Choosing the first case would give 11, but that formula is not assigned to input 5. Write the branch condition beside the input when an endpoint is involved.

A repeated application can change branches

To calculate p(p(4)), begin with p(4) = 9. The next input is now 9, so use the second branch: p(9) = 81. The original input 4 does not select the branch for every later step. Each application evaluates its own current input.

This also shows why function values cannot be substituted as branch tests too early. The condition x < 5 describes the input to that application; it is not a claim that every output from the first branch is less than 5.

Solve within each branch, then check the candidates

Using the same p, find every real x for which p(x) = 9.

  1. In the x < 5 branch, solve 2x + 1 = 9. This gives x = 4, and 4 < 5, so it is valid.
  2. In the x ≥ 5 branch, solve x² = 9. Algebra gives x = 3 or x = −3, but neither satisfies x ≥ 5. Both are rejected for this branch.

There is therefore one valid input, x = 4. A list of roots from the formulas alone is not a solution to the piecewise equation. Substitute each remaining candidate into the original piecewise rule.

For contrast, p(x) = 25 gives x = 12 in the first formula, but 12 fails x < 5. The second formula gives ±5, of which only 5 meets x ≥ 5. The valid input is x = 5. The rejected 12 would actually produce p(12) = 144.

One output can come from two inputs

Define h(x) = (x − 3)² + 1 for real x. Solving h(x) = 10 gives:

(x − 3)² = 9
x − 3 = 3 or x − 3 = −3
x = 6 or x = 0.

Both inputs satisfy the unrestricted rule: h(6) = 10 and h(0) = 10. If a separate condition requires x > 0, only 6 remains. If the question asks for the sum of all real solutions without that extra condition, the answer is 6; if it asks how many real solutions there are, the answer is 2. Read the requested quantity as carefully as the equation.

A function gives one output for each allowed input. It need not give a different output for every different input. Thus an output by itself does not always identify one input, and a reversed relationship need not be a function on the whole original domain.

Denominators create excluded inputs

For r(x) = (x + 2)/(x − 1), the domain excludes x = 1 because the denominator would be zero. To solve r(x) = 2, first record x ≠ 1, then multiply by x − 1:

x + 2 = 2(x − 1)
x + 2 = 2x − 2
x = 4.

The candidate is allowed, and r(4) = 6/3 = 2. By contrast, r(1) has no value under this rule. It is neither zero nor an especially large finite output. Cancelling terms or multiplying an equation does not restore an excluded original input.

Square roots require a domain and a sign check

For real inputs, let s(x) = √(x + 1). Its domain is x ≥ −1. Suppose we want s(x) = x − 1. The square root is nonnegative, so any solution must also satisfy x − 1 ≥ 0, or x ≥ 1.

√(x + 1) = x − 1
x + 1 = (x − 1)²
x² − 3x = 0
x(x − 3) = 0.

Squaring produces candidates x = 0 and x = 3. The first fails the necessary sign condition and the original equation: √1 = 1, whereas 0 − 1 = −1. The second works: √4 = 2 and 3 − 1 = 2. The only solution is x = 3.

Squaring removes a sign distinction, so it can introduce an extraneous root. Checking only the domain x ≥ −1 would not catch x = 0; checking the original equation does.

Parity rules depend on an integer domain

For integer n, define u(n) = n + 1 when n is even and u(n) = 3n when n is odd. Then u(2) = 3 and u(3) = 9. For u(u(2)), the inner output is 3, so the outer step uses the odd branch and gives 9.

The input 2.5 is outside this stated domain. Trying to decide whether it is an even or odd integer would ignore the question's definition. Domain restrictions may come directly from the prompt as well as from denominators and radicals.

What Data Sufficiency needs you to determine

If the question asks for an input x, consider whether the information determines a unique value. In the h(x) = 10 example, the unrestricted information leaves 0 and 6, while adding x > 0 removes 0. A yes-or-no target can have a definite answer even when the exact value of x is unknown. Do not replace the actual question with “can I calculate x?”

In the current exam, Data Sufficiency is part of Data Insights, while Quantitative Reasoning uses Problem Solving. GMAC's official exam-content page supports that section distinction. This guide makes no claim about how often these particular custom rules appear. Source checked: 14 October 2026.

Review errors by their cause

For an incorrect answer, write the branch or domain condition that was missed, then check the candidate in the original definition. Boundary values, negative inputs and multiple roots are useful ways to test your reasoning. Getting a fixed number of exercises right does not certify mastery. Continue with the GMAT question bank and assess unfamiliar problems as well as familiar ones.

Frequently asked questions

Which branch applies at a boundary?
Use the inequality in the definition. If one branch says x < 5 and another says x ≥ 5, input 5 belongs to the second branch.
Do I keep the same branch for p(p(x))?
No. Calculate the inner output, then use that output as the new input and check the branch condition again.
Can solving each branch produce invalid roots?
Yes. A candidate must satisfy the branch condition, the original domain and the original equation. Algebra alone does not check all three.
Why check a radical equation after squaring?
Squaring can remove a sign distinction and introduce an extraneous root. Substitute each candidate into the original equation, including its domain restrictions.

Related articles

All articles

Ready to start your GMAT prep?

Book a free intro call and we will work out together the best way to reach your target score.

Comments (0)

No comments yet. Be the first to comment on this article.

Leave a comment

Comments are checked before they are published.

Rating (optional)

WhatsApp