Piecewise Functions: Core practice
10 practice problems for this lesson. Work on paper, use hints when you need them, and check the answer or the full solution when you are ready.
Difficulty: Core (core-course level)
0 of 10 completed · 0 skipped
Progress saved in this browser.
Progress can't be saved in this browser, so your choices last for this visit only.
-
Problem 1 The function machine
Let for , and for . Find .
- Hint 1
The first output becomes the input for the second application.
- Hint 2
Choose a piece separately for each input rather than keeping the first choice.
Answer
.
Full solution
The input is negative, so
giving .
That output is nonnegative, so the other piece applies next:
Thus the requested value is .
Answer
.
Key idea
Each application of a piecewise function chooses its piece from its own current input.
- Hint 1
-
Problem 2 The hidden threshold
A function returns when and when , where is real. The records say and . Find all possible .
- Hint 1
Each recorded output tells you which condition its input satisfies.
- Hint 2
The input must lie below the threshold, while must be at or above it.
Answer
.
Full solution
The output at input requires .
The output at input requires .
Together the conditions give
Every threshold in this interval assigns both inputs their recorded outputs.
Answer
.
Key idea
Recorded outputs of constant pieces can constrain an unknown switching threshold.
- Hint 1
-
Problem 3 Which piece owns the input
Let for , let for , and let for . Find , , , , and .
- Hint 1
Settle which condition an input satisfies before substituting it into any formula.
- Hint 2
At each boundary, exactly one condition carries an equality sign, and that piece owns the input.
Answer
, , , , .
Full solution
Both and satisfy , so the first piece applies to each of them.
Negating the input turns into and into , so the outputs are and :
Both and satisfy , so the middle piece applies.
Their squares are and , so the outputs are and :
The boundary lands here because this condition includes it, while the boundary went to the first piece for the same reason.
The input satisfies , so the last piece gives , that is
Answer
, , , , .
Key idea
Reading the condition first, and noticing which side of a boundary carries the equality sign, decides every value of a piecewise function.
- Hint 1
-
Problem 4 The cropped graph
Let for , and for . On the axes in the figure, sketch only the part with . State the range of the part you draw and whether the two pieces connect at .
A blank grid for and . Text description of this figure
A blank coordinate grid with equal unit lengths on both axes. The horizontal x-axis runs from 0 to 6 and the vertical y-axis runs from negative two to four, with gridlines, tick marks and number labels at every whole number, the origin labeled 0, an arrowhead at the right end of the x-axis and an arrowhead at the top of the y-axis. Nothing is plotted on the grid: no points, segments, curves or equations.
- Hint 1
Restrict both formulas to the requested drawing interval before choosing endpoints or outputs.
- Hint 2
Compare the two formulas at the switching input, and find the lowest and highest drawn heights.
Answer
Range ; the pieces connect at .
Full solution
The line piece runs from to , including both endpoints.
The quadratic piece runs from just beyond to , including the outer endpoint but not its input .
Both formulas have boundary height .
The first includes that point, so the pieces connect.
The line gives heights from to , and the quadratic gives heights greater than through .
The combined range is
Draw no portion outside the requested input interval.
Answer
Range ; the pieces connect at .
Key idea
Restrict each piece to the part being drawn before reading off the heights it actually reaches.
- Hint 1
-
Problem 5 The three segments
The figure shows all of a piecewise function. Write its rule with one formula for each drawn segment, and state its domain and range.
The complete graph of the function, drawn as three segments. Text description of this figure
A square coordinate grid with equal unit lengths on both axes, gridlines, tick marks and number labels at every whole number, the horizontal x-axis running from negative five to five and the vertical y-axis from negative two to six, the origin labeled 0 and arrowheads on both ends of each axis. Three straight segments are drawn. The first falls from a filled dot at the point (negative 4, 2) down to a hollow dot at the point (negative 1, negative 1). The second is horizontal at height 3, from a filled dot at the point (negative 1, 3) across to a filled dot at the point (2, 3). The third rises from that same filled dot at the point (2, 3) up to a filled dot at the point (4, 5). Each of those five endpoints is labeled with its coordinates. Nothing else is drawn: no formulas, no domain or range labels and no graph outside these three segments.
- Hint 1
Each straight segment is fixed by its two labeled endpoints: get its slope from them, then its rule.
- Hint 2
Combine the input intervals for the domain and the attained heights for the range.
Answer
on ; on ; on , or equivalently on and on . Domain ; range .
Full solution
The sloping left segment passes through and approaches , so its slope is and its rule is on
Its heights satisfy .
The middle segment is on
The right segment has slope and rule on , reaching heights .
The conditions cover
Combining the attained heights gives
The height is included by the middle piece.
The point may instead be assigned to the right piece and excluded from the middle piece; that choice gives the same function.
Answer
on ; on ; on , or equivalently on and on . Domain ; range .
Key idea
A piecewise graph supplies separate equations and endpoint conditions whose output ranges must be combined.
- Hint 1
-
Problem 6 The limited display
A display takes any real reading . It reports if , reports if , and otherwise reports the reading unchanged. Write a piecewise rule, find the displayed values for inputs , , and , and state the range.
- Hint 1
The unchanged region includes the two boundary readings.
- Hint 2
Use a separate condition for each constant output and for the middle identity rule.
Answer
if , if , and if ; outputs ; range .
Full solution
The instructions translate directly into three mutually exclusive conditions: gives , gives , and gives .
The three requested inputs belong to the left, middle, and right regions respectively, so
The middle piece reaches every value from to , including both ends.
The outer pieces add no further heights, so the range is .
Answer
if , if , and if ; outputs ; range .
Key idea
A display that caps extreme readings is described by constant outer pieces and an unchanged middle piece.
- Hint 1
-
Problem 7 The step labels
A function equals on , on , on , and on . Write one formula using a ceiling and state its domain. Explain how its endpoint ownership agrees with that formula.
- Hint 1
Each interval includes its right integer endpoint and excludes its left one.
- Hint 2
Compare each output with the ceiling of an input in its interval.
Answer
; domain .
Full solution
On the four intervals, the ceiling values are , , , and .
Subtracting gives exactly the four specified outputs.
Thus
on .
Ceiling pieces own their right endpoints, matching every stated interval, and the domain must remain restricted as given.
Answer
; domain .
Key idea
A finite piecewise staircase can match a shifted ceiling on its stated domain.
- Hint 1
-
Problem 8 The alternative rule
Let for , and for . Tariq claims that for every real input. Is he correct? Explain.
- Hint 1
A rule claimed for every input is refuted as soon as one input disagrees.
- Hint 2
Each piece of reports how far the input sits from , while the claimed rule starts from the distance from .
Answer
No; at the pieces give , while .
Full solution
The input satisfies , so the second piece applies and
The claimed rule gives at that same input.
One disagreeing input settles the question, so the claim is false.
The pieces keep when it is nonnegative and negate it when it is negative, so , the distance from to .
The claimed instead measures the distance from to and then lowers every height by one.
Answer
No; at the pieces give , while .
Key idea
The number inside absolute value bars marks where the two sign pieces switch, and is not a change made to the outputs.
- Hint 1
-
Problem 9 Ben's adjustment
A function agrees with at every real input except , where its value is changed to . Ben claims this change joins the two floor steps on either side of . Is he correct? Explain using the nearby pieces.
- Hint 1
Ask what heights the graph actually takes just to the left and just to the right of zero.
- Hint 2
A step is a whole horizontal piece rather than a single point, so ask what one point at can and cannot fill.
Answer
No; the neighboring step heights remain and .
Full solution
On , the unchanged rule gives .
On , it gives .
These different heights remain separated, regardless of the assigned value at the single input .
The new point is
It lies on neither neighboring horizontal step, so the graph still does not connect at zero.
Answer
No; the neighboring step heights remain and .
Key idea
Changing one boundary output does not join neighboring constant pieces that approach different heights.
- Hint 1
-
Problem 10 The studio rental fee
A studio charges a flat dollars for any rental of up to and including hours, and dollars for a rental of hours when , where is a positive constant and . Find the value of that makes the cost graph connect at , and describe what happens to the cost at hours if the studio sets instead.
- Hint 1
Connecting at a boundary means the two pieces settle on the same height there.
- Hint 2
Work out the height the second formula approaches at hours, then compare it with the flat fee.
Answer
. With the cost is dollars at exactly hours but just above dollars for slightly longer rentals, a drop of about a dollar.
Full solution
The flat piece owns every rental time up to and including hours, so its height at the boundary is dollars.
The second formula approaches
as the rental time comes down toward hours.
The two heights agree exactly when
so that fee joins the pieces and the cost graph connects at hours.
With there is a closed dot at and an open dot at , so the cost drops by about a dollar just past hours.
A customer who books a few minutes over hours then pays less than one who books exactly hours.
Answer
. With the cost is dollars at exactly hours but just above dollars for slightly longer rentals, a drop of about a dollar.
Key idea
Matching the two pieces at the threshold fixes the constant in a tiered price, and any other value leaves a step at the boundary.
- Hint 1