Precalculus-I · Unit 2 · Video 4 · Interactive Practice

Piecewise Functions: Writing, Evaluating and Graphing

IKey Formulas

IdeaFormula
Piecewise functionf(x)={formula 1if x in domain 1formula 2if x in domain 2f(x) = \begin{cases} \text{formula 1} & \text{if } x \text{ in domain 1} \\ \text{formula 2} & \text{if } x \text{ in domain 2} \end{cases}   domain of ff = union of the pieces
Absolute value∣x∣={xif x≥0−xif x<0\lvert x \rvert = \begin{cases} x & \text{if } x \ge 0 \\ -x & \text{if } x < 0 \end{cases}
Tax exampleT(S)={0.1Sif S≤10,0001000+0.2(S−10,000)if S>10,000T(S) = \begin{cases} 0.1S & \text{if } S \le 10{,}000 \\ 1000 + 0.2(S - 10{,}000) & \text{if } S > 10{,}000 \end{cases}
Endpointsstrict <,><, > → open dot (like a parenthesis); inclusive ≤,≥\le, \ge → solid dot (like a bracket)

Key Insight: the conditions must cover the domain without overlapping, so every input uses exactly one row — and has exactly one output.

IIPick the Row, Then Use Only That Formula

To evaluate, first decide which condition the input satisfies; that row's formula alone gives the output.

f(x)=f(x) =x2x^2if x≤1x \le 1
33if 1<x≤21 < x \le 2
xxif x>2x > 2

IIIWho Owns the Boundary?

At each boundary exactly one row may include the input — otherwise the graph fails the vertical line test or leaves a hole.

IVQuiz Questions

Problem 1 · A Data Plan

Given: a phone plan costs C(g)={30if 0<g<330+8(g−3)if g≥3C(g) = \begin{cases} 30 & \text{if } 0 < g < 3 \\ 30 + 8(g - 3) & \text{if } g \ge 3 \end{cases} dollars for gg gigabytes — find C(5)C(5).

✅ Correct! 5≥35 \ge 3, so the second row applies: 30+8(5−3)=30+16=4630 + 8(5 - 3) = 30 + 16 = 46.
❌ Not quite. Only the gigabytes beyond 33 cost 88 each: use g−3=2g - 3 = 2, not 55.
❌ Not quite. The first row needs g<3g < 3, and 55 is not less than 33.
❌ Close, but… 1616 is the extra charge; the 3030 that covers the first 33 gigabytes is still owed.
❌ Not quite. Decide which row g=5g = 5 belongs to first.
Show solution

Which row? 5≥35 \ge 3, so the second row. Then

C(5)=30+8(5−3)=30+16=46C(5) = 30 + 8(5 - 3) = 30 + 16 = 46

The plan costs $$46$.

Problem 2 · The Tax Rule

Given: T(S)={0.1Sif S≤10,0001000+0.2(S−10,000)if S>10,000T(S) = \begin{cases} 0.1S & \text{if } S \le 10{,}000 \\ 1000 + 0.2(S - 10{,}000) & \text{if } S > 10{,}000 \end{cases} is the tax in dollars on an income of SS dollars — find the tax on an income of $$18{,}000$.

✅ Correct! 1000+0.2(8,000)=1000+1600=26001000 + 0.2(8{,}000) = 1000 + 1600 = 2600.
❌ Not quite. That taxes all $$18{,}000atat20\%—theworrytheruleisbuilttoavoid.Onlythepartabove— the worry the rule is built to avoid. Only the part above$10{,}000istaxedatis taxed at20\%$.
❌ Not quite. The first row applies only up to $$10{,}000$.
❌ Close, but… $$1{,}600isthetaxonthepartaboveis the tax on the part above$10{,}000;thefirst; the first$10{,}000stillowesstill owes$1{,}000$.
❌ Not quite. Pick the row for S=18,000S = 18{,}000, then evaluate it.
Show solution

18,000>10,00018{,}000 > 10{,}000, so the second row applies. The part above $$10{,}000isis$8{,}000$:

T(18,000)=1000+0.2(18,000−10,000)=1000+1600=2600T(18{,}000) = 1000 + 0.2(18{,}000 - 10{,}000) = 1000 + 1600 = 2600

The tax is $$2{,}600$.

Problem 3 · Inputs on and past a Boundary

Given: f(x)={x+2if x<0x2if 0≤x≤26if x>2f(x) = \begin{cases} x + 2 & \text{if } x < 0 \\ x^2 & \text{if } 0 \le x \le 2 \\ 6 & \text{if } x > 2 \end{cases} — find f(0)f(0) and f(3)f(3).

What is f(0)f(0)?

What is f(3)f(3)?

✅ Correct! 00 satisfies 0≤x≤20 \le x \le 2, so f(0)=02=0f(0) = 0^2 = 0; 3>23 > 2, so f(3)=6f(3) = 6.
❌ Not quite. The first row needs x<0x < 0, and 0<00 < 0 is false. 00 belongs to the middle row.
❌ Not quite. 0≤x0 \le x includes 00, so the middle row covers it.
❌ Not quite. 66 is the output for inputs greater than 22.
❌ Not quite. x2x^2 applies only for 0≤x≤20 \le x \le 2; 33 is outside that piece.
❌ Not quite. x+2x + 2 applies only for x<0x < 0.
❌ Not quite. The row for x>2x > 2 is the constant 66; the input does not appear in it.
❌ Check f(0)f(0). Which condition does x=0x = 0 satisfy?
❌ Check f(3)f(3). Which condition does x=3x = 3 satisfy?
Show solution

x=0x = 0: 0<00 < 0 is false, 0≤0≤20 \le 0 \le 2 is true, so the middle row: f(0)=02=0f(0) = 0^2 = 0.

x=3x = 3: 3>23 > 2, so the last row, a constant: f(3)=6f(3) = 6.

Problem 4 · Completing the Conditions

Given: g(x)={2xif x≤35if   ?g(x) = \begin{cases} 2x & \text{if } x \le 3 \\ 5 & \text{if } \;? \end{cases} — choose the second condition that makes gg a function whose domain is all real numbers.

✅ Correct! x≤3x \le 3 and x>3x > 3 cover every real number and never overlap.
❌ Not quite. Then x=3x = 3 satisfies both rows and gets two outputs, 2⋅3=62 \cdot 3 = 6 and 55 — not a function.
❌ Not quite. Inputs between 33 and 44, such as 3.53.5, would satisfy neither row, so they would not be in the domain.
❌ Not quite. Every x<3x < 3 would get two outputs, and inputs above 33 none at all.
❌ Not quite. The two conditions must cover every real number exactly once.
Show solution

The first row covers (−∞,3](-\infty, 3]. To reach all real numbers the second row must cover (3,∞)(3, \infty) — and not 33 itself, which the first row already owns:

g(x)={2xif x≤35if x>3g(x) = \begin{cases} 2x & \text{if } x \le 3 \\ 5 & \text{if } x > 3 \end{cases}

Here the graph jumps from height 66 (solid dot at (3,6)(3, 6)) down to 55 (open dot at (3,5)(3, 5)), which is fine: each input still has one output.

Solved: 0 / 4