Piecewise Functions - Algebra 3

  1. An electric company charges $0.12\$0.12 per kWh for the first 500 kWh, $0.15\$0.15 per kWh for the next 500 kWh, and $0.20\$0.20 per kWh for any usage above 1000 kWh. What is the total charge for using 1200 kWh?
    Answer: $175\$175 Whenever you see a tiered pricing question, your first instinct should be to break the usage into blocks and apply each rate only to the kWh inside that block. Don't just multiply total usage by one number. For 1200 kWh, split it: the first 500 kWh cost 500×0.12=$60500 \times 0.12 = \$60. The next 500 kWh cost 500×0.15=$75500 \times 0.15 = \$75. The remaining 200 kWh are above 1000, so they cost 200×0.20=$40200 \times 0.20 = \$40. Adding the three blocks gives 60+75+40=$17560 + 75 + 40 = \$175. Each wrong answer comes from a flawed shortcut. $144 treats all 1200 kWh at the lowest rate of $0.12, ignoring the higher-tier charges. $190 incorrectly charges the first 1000 kWh at $0.15, as if the $0.15 rate applied to the whole first block rather than only the second 500. $240 charges all 1200 kWh at the highest rate of $0.20, ignoring the cheaper introductory tiers entirely. Your study tip: for any "piecewise" or tiered charge problem, draw mental boundaries at the thresholds, then calculate each slab separately before adding. Check that the middle rate only touches the middle block, never the first block. That block-by-block habit will save you on tax, utility, and discount questions too.
  2. Let f(x)={2x2−1,x<2kx+3,x≥2f(x)=\begin{cases}2x^2-1,&x<2\\\\kx+3,&x\ge2\end{cases}. For what value of kk is ff continuous at x=2x=2?
    Answer: 22 Whenever you see a piecewise function and a question about continuity at the break point, your job is to make the two pieces meet at that x-value. Here the switch is at x=2x=2. From the left, f(x)=2x2−1f(x)=2x^2-1, so the left-hand limit is: lim⁡x→2−(2x2−1)=2(2)2−1=8−1=7. \lim_{x\to2^-}(2x^2-1)=2(2)^2-1=8-1=7. For x≥2x\ge2, the function is kx+3kx+3, so at x=2x=2 we have: f(2)=k(2)+3=2k+3. f(2)=k(2)+3=2k+3. Since the second piece is continuous for x≥2x\ge2, this is also the right-hand limit. Continuity requires the left-hand limit, right-hand limit, and actual value to all agree: 7=2k+3. 7=2k+3. Subtract 33 from both sides: 4=2k4=2k, so k=2k=2. If k=5k=5, then f(2)=10+3=13f(2)=10+3=13, leaving a huge jump from 77. If k=72k=\frac72, then f(2)=7+3=10f(2)=7+3=10, not 77; this choice traps you if you forget the +3+3 and just solve 2k=72k=7. If k=3k=3, then f(2)=6+3=9f(2)=6+3=9, which also fails to match the left-hand limit of 77. Only k=2k=2 makes both sides meet at the same value. adenAs your final check, plug k=2k=2 back in: 2(2)+3=72(2)+3=7, exactly matching the left-side limit. On continuity questions, always write down the one-sided limit at the break point, then set it equal to the function's value there — and don't drop any constant from the piecewise formula.
  3. Which piecewise-defined function is equivalent to f(x)=x∣x−2∣f(x)=x|x-2| for all real xx?
    Answer: f(x)={2x−x2,x<2x2−2x,x≥2f(x)=\begin{cases}2x-x^2,&x<2\\x^2-2x,&x\ge2\end{cases} If x<2x<2, then ∣x−2∣=2−x|x-2|=2-x, so f(x)=x(2−x)=2x−x2f(x)=x(2-x)=2x-x^2. If x≥2x\ge2, then ∣x−2∣=x−2|x-2|=x-2, so f(x)=x(x−2)=x2−2xf(x)=x(x-2)=x^2-2x. The form with 2x−x22x-x^2 on x<2x<2 and x2−2xx^2-2x on x≥2x\ge2 is correct. The other forms use the first-branch expression in the wrong interval, reverse the sign in the second branch, or take an absolute value that changes the sign for negative xx.
  4. Let f(x)={3x+2,x<−1x2−4,−1≤x<25−x,x≥2f(x)=\begin{cases}3x+2,&x<-1\\\\x^2-4,&-1\le x<2\\\\5-x,&x\ge2\end{cases}. What is the value of f(f(−1))f(f(-1))?
    Answer: −7-7 Whenever you see a piecewise function inside another function, the key is to work step by step from the inside out. Composite notation f(f(−1))f(f(-1)) means plug −1-1 into ff first, then take that output and plug it into ff again. . First, evaluate the inner value: f(−1)f(-1). Because −1-1 satisfies −1≤x<2-1 \le x < 2, use the middle rule: f(−1)=(−1)2−4=1−4=−3f(-1)=(-1)^2-4=1-4=-3. .Now take that result, −3-3, and evaluate f(−3)f(-3). Since −3<−1-3<-1, use the first rule: f(−3)=3(−3)+2=−9+2=−7f(-3)=3(-3)+2=-9+2=-7. Therefore, f(f(−1))=−7f(f(-1))=-7. . The choice −3-3 is the result of stopping after the first evaluation, confusing the inner value with the final composite value. The choice 77 could come from flipping both signs when computing the first rule, writing 3(3)−2=73(3)-2=7, which treats the input as positive and subtracts instead of adding. Similarly, 1111 likely comes from computing 3(3)+2=113(3)+2=11, using a positive input for a negative piece — a sign error on the domain condition. And if you mistakenly think −3-3 falls in the middle rule, you'd get (−3)2−4=5(-3)^2-4=5,which isn't listed; among the options, 1111 may also arise from 9+29+2 without considering the input sign at all. . A good study habit for piecewise function questions: always write down which piece applies at each step, and check the input against the domain intervals before substituting. Evaluating inside-out prevents the most common trap of mixing up the inner value with the final answer.
  5. Let f(x)={x2,x<02x+1,0≤x<36−x,x≥3f(x)=\begin{cases}x^2,&x<0\\\\2x+1,&0\le x<3\\\\6-x,&x\ge3\end{cases}. How many real numbers xx satisfy f(x)=4f(x)=4?
    Answer: 22 When you see a piecewise function and are asked how many inputs satisfy an equation, treat each piece as its own mini-problem—but check its domain. For x<0x<0, set x2=4x^2=4. The solutions are x=2x=2 and x=−2x=-2, but only x=−2x=-2 lies in the domain x<0x<0. So this branch contributes 1. For 0≤x<30\le x<3, set 2x+1=42x+1=4. Then 2x=32x=3, so x=1.5x=1.5, which is in the domain. This branch contributes 1. For x≥3x\ge3, set 6−x=46-x=4. Then x=2x=2, but 22 is not in x≥3x\ge3, so this branch contributes 0. Thus the real numbers satisfying f(x)=4f(x)=4 are x=−2x=-2 and x=1.5x=1.5: exactly 2 solutions. Why the other choices are traps: "1" misses one valid branch, often by forgetting that the first branch can produce a negative solution. "3" often adds x=2x=2 from the third piece without checking the domain, or counts the excluded x=2x=2 from the first branch. "4" typically counts x=2x=2 twice—from both x2=4x^2=4 and 6−x=46-x=4—while also including the two valid solutions; but x=2x=2 is excluded by both domains. Study tip: after solving each piece, always verify the solution against that piece's domain restriction. The domain is the real trap in piecewise-function equation questions.
  6. A piecewise-linear function ff is described as follows. For x≤−2x\le-2, the graph is the horizontal line through (−3,4)(-3,4). For −2<x<1-2<x<1, the graph is a line of slope −2-2 passing through (0,2)(0,2). For x≥1x\ge1, the graph is a line of slope 11 passing through (3,5)(3,5). Which formula defines ff?
    Answer: f(x)={4,x≤−2−2x+2,−2<x<1x+2,x≥1f(x)=\begin{cases}4,&x\le-2\\-2x+2,&-2<x<1\\x+2,&x\ge1\end{cases} The horizontal line through (−3,4)(-3,4) is y=4y=4 on x≤−2x\le-2. The line with slope −2-2 through (0,2)(0,2) is y=−2x+2y=-2x+2. The line with slope 11 through (3,5)(3,5) is y=x+2y=x+2. The other options use the wrong slope, the wrong intercept, or the wrong interval for the horizontal piece.
  7. Let f(x)={x+2,x<13,1≤x<34−x,x≥3f(x)=\begin{cases}x+2,&x<1\\3,&1\le x<3\\4-x,&x\ge3\end{cases}. Which statement correctly describes the graph of ff?
    Answer: At x=3x=3, there is an open circle at (3,3)(3,3) and a closed circle at (3,1)(3,1). Whenever you see a piecewise function, your job is to check each boundary point carefully: plug the boundary into the neighboring rules and see which rule actually includes that xx-value. A closed circle means the point is part of the graph; an open circle means the rule approaches that value but does not include it. At x=3x=3, look at the two pieces around it. The rule 33 applies for 1≤x<31\le x<3, so it gives the value 33 but does not include x=3x=3. That means there is an open circle at (3,3)(3,3). The rule 4−x4-x applies for x≥3x\ge3, so it gives 4−3=14-3=1 and does include x=3x=3. That means there is a closed circle at (3,1)(3,1). So the correct description is: open circle at (3,3)(3,3), closed circle at (3,1)(3,1). Now the wrong answers. Saying "every real xx appears in one of the pieces" is not enough for continuity—continuity requires the two sides to meet at the same point, and here they jump. Saying there are open circles at both (3,3)(3,3) and (3,1)(3,1) is wrong because the third piece includes x=3x=3, so its endpoint is closed. The statement about x=1x=1—that there is an open circle at (1,3)(1,3) because the first piece excludes 11—misses that the second piece 33 applies for 1≤x<31\le x<3, so x=1x=1 is actually included, giving a closed circle at (1,3)(1,3). On this exam, always mark boundary points by checking each adjacent inequality: ≤\le or ≥\ge means closed, << or >> means open. That simple check prevents most piecewise-function mistakes.
  8. Let f(x)={x2+2,x≤−13,−1<x<22x−4,x≥2.f(x)=\begin{cases}x^2+2,&x\le-1\\3,&-1<x<2\\2x-4,&x\ge2.\end{cases} Which statement about ff is true?
    Answer: The range of ff is [0,∞)[0,\infty). For x≤−1x\le-1, x2+2≥3x^2+2\ge3, so that piece has range [3,∞)[3,\infty). The middle piece is the single value 33. For x≥2x\ge2, 2x−4≥02x-4\ge0, giving the interval [0,∞)[0,\infty). The union is [0,∞)[0,\infty). The interval [3,∞)[3,\infty) ignores the last piece, (0,∞)(0,\infty) incorrectly excludes 00, and the stated domain omits the middle piece.
  9. Let f(x)={2x+6,x<−24−x2,−2≤x<3x−5,x≥3.f(x)=\begin{cases}2x+6,&x<-2\\4-x^2,&-2\le x<3\\x-5,&x\ge3.\end{cases} For which real values of xx is f(x)<0f(x)<0?
    Answer: x<−3x<-3 or 2<x<52<x<5 For x<−2x<-2, 2x+6<02x+6<0 gives x<−3x<-3. For −2≤x<3-2\le x<3, 4−x2<04-x^2<0 gives x<−2x<-2 or x>2x>2, so only 2<x<32<x<3 is valid. For x≥3x\ge3, x−5<0x-5<0 gives 3≤x<53\le x<5. Combining the last two intervals gives 2<x<52<x<5, so the full solution is x<−3x<-3 or 2<x<52<x<5.
  10. Let C(w)={5,0<w≤25+2(w−2),2<w≤817,8<w≤1217+3(w−12),w>12C(w)=\begin{cases}5,&0<w\le2\\5+2(w-2),&2<w\le8\\17,&8<w\le12\\17+3(w-12),&w>12\end{cases} dollars be the cost to ship a package weighing ww pounds. If a package costs exactly 23 dollars to ship, which of the following could be its weight?
    Answer: 1414 lb The only branch that can reach 23 dollars is the final one. Solving 17+3(w−12)=2317+3(w-12)=23 gives 3(w−12)=63(w-12)=6, so w=14w=14, which is valid because w>12w>12. The value 1111 comes from solving 5+2(w−2)=235+2(w-2)=23, but 1111 is not in the interval 2<w≤82<w\le8.
  11. Let f(x)={x2−8,x<−2∣x+1∣−3,−2≤x<210−3x,x≥2.f(x)=\begin{cases}x^2-8,&x<-2\\|x+1|-3,&-2\le x<2\\10-3x,&x\ge2.\end{cases} What is the value of f(f(f(−3)))f(f(f(-3)))?
    Answer: −3-3 First f(−3)=(−3)2−8=1f(-3)=(-3)^2-8=1. Since 11 is in the middle interval, f(1)=∣1+1∣−3=−1f(1)=|1+1|-3=-1. Then f(−1)=∣−1+1∣−3=−3f(-1)=|-1+1|-3=-3. The value −1-1 is f(f(−3)))f(f(-3))), so it comes from stopping after two applications; 11 is f(−3)f(-3), one application; 77 comes from applying the third formula to x=1x=1.
  12. Let f(x)={2x+1,x<0x2−1,x≥0.f(x)=\begin{cases}2x+1,&x<0\\x^2-1,&x\ge0.\end{cases} Define g(x)=f(x−2)+3g(x)=f(x-2)+3. Which formula defines gg?
    Answer: g(x)={2x,x<2x2−4x+6,x≥2g(x)=\begin{cases}2x,&x<2\\x^2-4x+6,&x\ge2\end{cases} Substituting x−2x-2 shifts the branch condition: x−2<0x-2<0 becomes x<2x<2, and x−2≥0x-2\ge0 becomes x≥2x\ge2. For x<2x<2, f(x−2)+3=2(x−2)+1+3=2xf(x-2)+3=2(x-2)+1+3=2x. For x≥2x\ge2, f(x−2)+3=(x−2)2−1+3=x2−4x+6f(x-2)+3=(x-2)^2-1+3=x^2-4x+6.
  13. Let f(x)={x2−3,x<02x+a,x≥0.f(x)=\begin{cases}x^2-3,&x<0\\2x+a,&x\ge0.\end{cases} For which values of aa does the equation f(x)=0f(x)=0 have exactly two distinct real solutions?
    Answer: a≤0a\le0 In the first branch, x2−3=0x^2-3=0 always contributes exactly one valid solution, x=−3x=-\sqrt3. In the second branch, the root is x=−a2x=-\frac{a}{2}, and it is valid exactly when −a2≥0-\frac{a}{2}\ge0, so a≤0a\le0. Thus there are exactly two distinct real solutions precisely when a≤0a\le0. The option a<0a<0 incorrectly excludes the valid boundary value a=0a=0, and a≥0a\ge0 includes values for which the second branch contributes no root.
  14. Let f(x)={2x+1,x<12x2,x≥12f(x)=\begin{cases}2x+1,&x<\frac12\\\\x^2,&x\ge\frac12\end{cases}. What is the value of f(12)−f(−12)f\left(\frac12\right)-f\left(-\frac12\right)?
    Answer: 14\frac14 Whenever you see a piecewise function, your first job is to locate each input on the number line and decide which branch applies. Here the function changes at x=12x=\frac12. For f(12)),theconditionisf\left(\frac12\right)), the condition isx\ge\frac12,soyoumustusethesecondbranch:, so you must use the second branch:f\left(\frac12\right)=\left(\frac12\right)^2=\frac14.For. Forf\left(-\frac12\right)), since −12<12-\frac12<\frac12, you use the first branch: f(−12)=2(−12)+1=0f\left(-\frac12\right)=2\left(-\frac12\right)+1=0. Thus the difference is 14−0=14\frac14-0=\frac14, so the correct choice is 14\frac14. The trap choices come from misassigning branches. The choice 22 results from incorrectly using 2x+12x+1 at x=12x=\frac12 and forgetting that the "greater than or equal" sign sends that input to the quadratic piece. The choice 00 can happen if you evaluate both inputs with the quadratic branch: f(−12)=14f\left(-\frac12\right)=\frac14 and f(12)=14f\left(\frac12\right)=\frac14, then subtract to get 00; but −12-\frac12 is less than 12\frac12, so it belongs to the linear piece. The choice 74\frac74 comes from mixing both mistakes: using the linear branch at 12\frac12 to get 22, using the quadratic branch at −12-\frac12 to get 14\frac14, and computing 2−142-\frac14. In every case, the error is ignoring the inequality signs. boundary condition. On future piecewise questions, circle the inequalities before plugging in. Ask: Which side is inclusive? The boundary x=12x=\frac12 belongs to the quadratic branch because of the "x≥12x\ge\frac12" sign, so evaluate each input on its correct side before subtracting. This habit will save you on similar exam questions.
  15. Let f(x)={x+3,x<−2−2x+1,−2≤x<1x2−2,x≥1.f(x)=\begin{cases}x+3,&x<-2\\-2x+1,&-2\le x<1\\x^2-2,&x\ge1.\end{cases} Which statement correctly describes the graph of ff at the boundaries of the branches?
    Answer: The graph has a jump at x=−2x=-2 and is continuous at x=1x=1. As x→−2−x\to-2^-, the first formula approaches 11, but f(−2)=−2(−2)+1=5f(-2)=-2(-2)+1=5, so there is a jump at x=−2x=-2. As x→1−x\to1^-, −2x+1→−1-2x+1\to-1, and f(1)=12−2=−1f(1)=1^2-2=-1, so the graph is continuous at x=1x=1. Therefore the graph jumps only at x=−2x=-2.
  16. A store applies a 15% discount at checkout to any item whose original price is over $50\$50. Items priced at $50\$50 or less are not discounted. If the sale price of an item was $60\$60, what was its original price?
    Answer: $70.59\$70.59 When you see a discount problem, remember that a 15% discount means the customer pays 85% of the original price — not that you add 15% to the sale price to get back to the original. Here, the sale price was $60, and since an item must be over $50 to receive the discount, the original price must be the unknown that was reduced by 15%. So set up: 0.85×original=600.85 \times \text{original} = 60. Divide both sides by 0.85: original=60÷0.85=70.588…\text{original} = 60 \div 0.85 = 70.588\ldots, which rounds to $70.59. This is over $50, so the discount correctly applies. The other choices each come from a common misunderstanding. $69.00 is found by computing 60×1.1560 \times 1.15, adding 15% of the sale price back to the sale price; but 15% off $69 would be $58.65, not $60. $400.00 treats the $60 as if it were the 15% discount amount itself, since 60÷0.15=40060 \div 0.15 = 400; however, $60 is the price paid, not the amount saved. $51.00 comes from taking 15% off $60, i.e. 60×0.85=5160 \times 0.85 = 51, which mistakenly treats the sale price as the original price; if the original were $51, the discount would apply, but the sale price would be $43.35. Strategy: in any percent decrease problem, identify the "whole" (original price) and the "part" (final price). Use final=original×(1−percent as decimal)\text{final} = \text{original} \times (1 - \text{percent as decimal}), and divide when you know the final amount.
  17. Let f(x)={x+1,x<−1x2,−1≤x<24−x,x≥2f(x)=\begin{cases}x+1,&x<-1\\\\x^2,&-1\le x<2\\\\4-x,&x\ge2\end{cases}. What is the range of ff?
    Answer: (−∞,4)(-\infty,4) When you see a piecewise function, the range is the union of the outputs each piece produces on its own domain. Think of each branch as a separate "machine" with its own input interval, then combine all possible yy-values. For x<−1x<-1, the rule x+1x+1 produces every value below 00, because as xx approaches −1-1 from the left, x+1x+1 approaches 00 but never reaches it, and as xx goes to −∞-\infty, so does x+1x+1. This branch contributes (−∞,0)(-\infty,0). For −1≤x<2-1\le x<2, the rule x2x^2 gives values from 00 up to but not including 44: 00 is reached at x=0x=0, and 44 is approached as xx gets close to 22, but 22 is not included. This branch contributes [0,4)[0,4). For x≥2x\ge2, the rule 4−x4-x gives 22 at x=2x=2, then decreases without bound, contributing (−∞,2](-\infty,2]. Unioning these gives (−∞,0)∪[0,4)∪(−∞,2]=(−∞,4)(-\infty,0)\cup[0,4)\cup(-\infty,2]=(-\infty,4). The choice (−∞,4](-\infty,4] is wrong because 44 is never actually produced. The choice [0,4)[0,4) is wrong because it ignores all negative outputs from the first and third branches. The choice (−∞,∞)(-\infty,\infty) is wrong because the function never produces any value 44 or larger. Study tip: for piecewise range questions, test the endpoints and the behavior at the extremes of each interval, then union the results carefully. Watch especially for open versus closed endpoints — that's where traps live.
  18. Let f(x)={x2−3,x<−1ax+b,−1≤x<25x−6,x≥2.f(x)=\begin{cases}x^2-3,&x<-1\\ax+b,&-1\le x<2\\5x-6,&x\ge2.\end{cases} If ff is continuous at both x=−1x=-1 and x=2x=2, what is a+ba+b?
    Answer: 22 At x=−1x=-1, the first piece gives (−1)2−3=−2(-1)^2-3=-2, so −a+b=−2-a+b=-2. At x=2x=2, the left limit of the middle piece is 2a+b2a+b, and the third piece gives 5(2)−6=45(2)-6=4, so 2a+b=42a+b=4. Solving gives a=2a=2 and b=0b=0, hence a+b=2a+b=2. The value −2-2 is the matching value at x=−1x=-1, 00 is bb, and 44 is the matching value at x=2x=2.
  19. Let f(x)={x2,x≤1a−x,x>1.f(x)=\begin{cases}x^2,&x\le1\\a-x,&x>1.\end{cases} For which values of aa is the range of ff equal to all real numbers?
    Answer: a≥1a\ge1 For x≤1x\le1, x2x^2 has range [0,∞)[0,\infty). For x>1x>1, the linear expression a−xa-x has range (−∞,a−1)(-\infty,a-1). To cover all real numbers, the second piece must reach every value below 00, so we need a−1≥0a-1\ge0, or a≥1a\ge1. The boundary a=1a=1 works because the first piece supplies 00.
  20. A gym charges a one-time $50\$50 enrollment fee, $20\$20 per month for the first 6 months, and $35\$35 per month after that. Which function gives the total cost C(m)C(m) after mm months?
    Answer: C(m)={50+20m,0≤m≤635m−40,m>6C(m)=\begin{cases}50+20m,&0\le m\le6\\\\35m-40,&m>6\end{cases} When you see a cost scenario with different rates after a certain time, model it as a piecewise function and compute the cumulative cost at the switch point. For the first 6 months, the total cost is 50+20m50+20m. At m=6m=6, that is 50+120=17050+120=170. For m>6m>6, you have already paid the enrollment fee and 6 months at $20, so the cost is 170+35(m−6)=170+35m−210=35m−40170+35(m-6)=170+35m-210=35m-40. Thus the correct piecewise form is 50+20m50+20m for 0≤m≤60\le m\le6, and 35m−4035m-40 for m>6m>6. The option using 50+35m50+35m for m>6m>6 charges $35 for all months; you must subtract the $90 overcharge from the first 6 months, giving 50+35m−90=35m−4050+35m-90=35m-40. The option using 170+35m170+35m for m>6m>6 correctly adds the first-six-month total but then also charges $35 for those same months, double-counting them. The option using 120+35m120+35m omits the $50 enrollment fee and still charges $35 for every month; it also fails to include m=6m=6. A reliable strategy: write the second piece as C(6)+35(m−6)C(6)+35(m-6), where C(6)C(6) is the total paid through the switch, rather than just C(6)+35mC(6)+35m. This prevents both double-counting and missing the initial fee.

Start this quiz