Aimathic
Login | English | Deutsch

Free Math Worksheets

Build your own math worksheets from 21,000 problems for grades 3 to 12, from fractions to calculus. Every problem includes step-by-step solutions.

Piecewise and step functions features

Click problems to add them to your worksheet.

51191911
A bus travels between two stops that are \(1\,\text{mi}\) apart. Use this idealized model: - During the first \(0.2\,\text{mi}\), the speed increases linearly with distance from \(0\) to \(40\,\text{mph}\). - During the next \(0.6\,\text{mi}\), the bus travels at \(40\,\text{mph}\). - During the final \(0.2\,\text{mi}\), the speed decreases linearly with distance from \(40\,\text{mph}\) to \(0\). Create a table for distance \(s\) and speed \(v\) at \(s\in\{0,0.1,0.2,0.5,0.8,0.9,1.0\}\).

Hints

- Divide the trip into the three described distance intervals. - For a linear change, the value halfway through an interval is halfway between the endpoint values. - Check the speed at the start and end of the trip.

Solution

1. On \(0\le s\le0.2\), the speed rises linearly from \(0\) to \(40\). Therefore, halfway through that segment, at \(s=0.1\), the speed is \(20\,\text{mph}\). 2. On \(0.2\le s\le0.8\), the speed is constant at \(40\,\text{mph}\). 3. On \(0.8\le s\le1.0\), the speed falls linearly from \(40\) to \(0\). Therefore, at \(s=0.9\), the speed is \(20\,\text{mph}\).

Answer

<table><tr><td>Distance \(s\) in miles</td><td>\(0\)</td><td>\(0.1\)</td><td>\(0.2\)</td><td>\(0.5\)</td><td>\(0.8\)</td><td>\(0.9\)</td><td>\(1.0\)</td></tr><tr><td>Speed \(v\) in mph</td><td>\(0\)</td><td>\(20\)</td><td>\(40\)</td><td>\(40\)</td><td>\(40\)</td><td>\(20\)</td><td>\(0\)</td></tr></table>
51206411
Two scooter-rental companies use different pricing systems. Company Swift charges a \(\$1.00\) rental fee plus \(\$0.15\) for each started minute. Company Zip has no rental fee but charges \(\$0.25\) for each started minute. a) Find the cost from each company for rides lasting \(5\), \(10\), and \(15\) minutes. b) Make a table of both companies' costs for whole-number ride times from \(1\) through \(12\) minutes. c) Lucas claims, “For rides of at least \(10\) minutes, Swift is always no more expensive than Zip.” Determine whether the claim is true. d) Because any fraction of a minute is billed as a full minute, should consecutive points on the graph be connected by straight line segments? Explain.

Hints

- First determine the number of billed minutes. - Compare the costs at \(10\) minutes and the additional cost for each minute after that. - Decide whether the price changes continuously within a billed minute.

Solution

1. Let \(n\) be the number of billed minutes. Then \(C_S=1.00+0.15n\) and \(C_Z=0.25n\). 2. For \(5\), \(10\), and \(15\) minutes, Swift costs \(\$1.75\), \(\$2.50\), and \(\$3.25\). Zip costs \(\$1.25\), \(\$2.50\), and \(\$3.75\). 3. For whole-number ride times from \(1\) through \(12\): <table><tr><td>Minutes</td><td>\(1\)</td><td>\(2\)</td><td>\(3\)</td><td>\(4\)</td><td>\(5\)</td><td>\(6\)</td><td>\(7\)</td><td>\(8\)</td><td>\(9\)</td><td>\(10\)</td><td>\(11\)</td><td>\(12\)</td></tr><tr><td>Swift</td><td>\(\$1.15\)</td><td>\(\$1.30\)</td><td>\(\$1.45\)</td><td>\(\$1.60\)</td><td>\(\$1.75\)</td><td>\(\$1.90\)</td><td>\(\$2.05\)</td><td>\(\$2.20\)</td><td>\(\$2.35\)</td><td>\(\$2.50\)</td><td>\(\$2.65\)</td><td>\(\$2.80\)</td></tr><tr><td>Zip</td><td>\(\$0.25\)</td><td>\(\$0.50\)</td><td>\(\$0.75\)</td><td>\(\$1.00\)</td><td>\(\$1.25\)</td><td>\(\$1.50\)</td><td>\(\$1.75\)</td><td>\(\$2.00\)</td><td>\(\$2.25\)</td><td>\(\$2.50\)</td><td>\(\$2.75\)</td><td>\(\$3.00\)</td></tr></table> 4. At \(10\) billed minutes, both cost \(\$2.50\). After that, Swift adds only \(\$0.15\) per minute while Zip adds \(\$0.25\), so the claim is true. 5. For an actual ride time between two minute marks, the cost remains constant until the next billing boundary and then jumps. A step graph, not straight segments between table points, represents this pricing.

Answer

a) Swift: \(\$1.75\), \(\$2.50\), \(\$3.25\); Zip: \(\$1.25\), \(\$2.50\), \(\$3.75\) b) <table><tr><td>Minutes</td><td>\(1\)</td><td>\(2\)</td><td>\(3\)</td><td>\(4\)</td><td>\(5\)</td><td>\(6\)</td><td>\(7\)</td><td>\(8\)</td><td>\(9\)</td><td>\(10\)</td><td>\(11\)</td><td>\(12\)</td></tr><tr><td>Swift</td><td>\(\$1.15\)</td><td>\(\$1.30\)</td><td>\(\$1.45\)</td><td>\(\$1.60\)</td><td>\(\$1.75\)</td><td>\(\$1.90\)</td><td>\(\$2.05\)</td><td>\(\$2.20\)</td><td>\(\$2.35\)</td><td>\(\$2.50\)</td><td>\(\$2.65\)</td><td>\(\$2.80\)</td></tr><tr><td>Zip</td><td>\(\$0.25\)</td><td>\(\$0.50\)</td><td>\(\$0.75\)</td><td>\(\$1.00\)</td><td>\(\$1.25\)</td><td>\(\$1.50\)</td><td>\(\$1.75\)</td><td>\(\$2.00\)</td><td>\(\$2.25\)</td><td>\(\$2.50\)</td><td>\(\$2.75\)</td><td>\(\$3.00\)</td></tr></table> c) The claim is true. d) No. The graph should be a step graph because each started minute is billed as a whole minute.
51207111
A downtown parking garage uses this pricing system: - The first \(30\) minutes are free. - After that, each additional started hour costs \(\$2.50\). - The daily maximum is \(\$15.00\). a) Find the parking fee for \(45\) minutes, \(2\) hours, \(6\) hours, and \(10\) hours. b) Describe the graph of price versus parking time from \(0\) to \(10\) hours, with parking time on the x-axis. c) Give two reasons this relation is not proportional.

Hints

- After the free period, round each partial paid hour up to a full billed hour. - Identify the jumps at the billing boundaries and the horizontal section at the daily maximum. - Recall the graph and constant-ratio tests for proportional relationships.

Solution

1. For \(45\) minutes, the first paid hour has begun, so the fee is \(\$2.50\). For \(2\) hours, \(90\) paid minutes have elapsed, so two started hours cost \(\$5.00\). For \(6\) hours and \(10\) hours, the daily maximum applies, so each costs \(\$15.00\). 2. The graph is a step graph. It is \(\$0\) through \(0.5\) hour, then increases in \(\$2.50\) steps. At exactly \(5.5\) hours, the price is \(\$12.50\); for times greater than \(5.5\) hours, the maximum price is \(\$15.00\). 3. The graph is not a line through the origin, and doubling the parking time does not consistently double the price. Therefore, the relation is not proportional.

Answer

a) \(45\) min: \(\$2.50\); \(2\) h: \(\$5.00\); \(6\) h: \(\$15.00\); \(10\) h: \(\$15.00\) b) A step graph that begins at \(\$0\), rises by \(\$2.50\) per started paid hour, and is capped at \(\$15.00\) c) It is not a line through the origin, and it does not have a constant ratio of price to time.
52632511
The piecewise function \(f\) is defined by \(f(x)=\begin{cases}-2&\text{if }x<0\\x-2&\text{if }x\ge0\end{cases}\). a) Find \(f(-3)\), \(f(0)\), and \(f(3)\). b) Describe the graph of the function for \(-4\le x\le4\). c) Determine algebraically whether the two pieces meet without a gap at \(x=0\).

Hints

- Choose the formula whose condition includes the given input. - A constant formula produces a horizontal graph. - Compare the value approached by the left piece with \(f(0)\).

Solution

1. For \(x=-3\), use the first piece: \(f(-3)=-2\). For \(x=0\), use the second piece: \(f(0)=0-2=-2\). For \(x=3\), \(f(3)=3-2=1\). 2. For \(-4\le x<0\), the graph is the horizontal segment \(y=-2\). For \(0\le x\le4\), the graph is the line \(y=x-2\). 3. The left-hand piece stays at \(-2\) as \(x\) approaches \(0\), and the second piece gives \(f(0)=-2\). Therefore, both pieces meet at \((0, -2)\) with no gap.

Answer

a) \(f(-3)=-2\), \(f(0)=-2\), and \(f(3)=1\) b) \(y=-2\) for \(-4\le x<0\), and \(y=x-2\) for \(0\le x\le4\) c) Yes. The pieces meet at \((0, -2)\).
53409911
A mobile data plan includes the first \(0.5\,\text{GB}\) in the base price. Whenever usage exceeds the current included amount, another \(0.5\,\text{GB}\) package is added automatically for \(\$5\). The graph shows added cost \(K\) as a function of data usage \(v\). a) Use the graph to find the added cost for \(0.3\,\text{GB}\), \(0.5\,\text{GB}\), and \(1.6\,\text{GB}\) of usage. b) Explain the meaning of the filled point at \(v=1.0\,\text{GB}\).
Figure for problem 534099

Hints

- Read the horizontal step directly above each usage value. - At a jump, a filled point is included and an open point is excluded. - Pay special attention to exact threshold values.

Solution

1. At \(0.3\,\text{GB}\), the graph is at \(\$0\). At exactly \(0.5\,\text{GB}\), the filled point is also at \(\$0\), so the base price still applies. The value \(1.6\,\text{GB}\) lies in the interval \((1.5, 2.0]\), where the graph is at \(\$15\). 2. The filled point at \(v=1.0\,\text{GB}\) shows that the \(\$5\) price level includes exactly \(1.0\,\text{GB}\). The next price level, \(\$10\), applies only when usage exceeds \(1.0\,\text{GB}\).

Answer

a) \(0.3\,\text{GB}\): \(\$0\); \(0.5\,\text{GB}\): \(\$0\); \(1.6\,\text{GB}\): \(\$15\) b) At exactly \(1.0\,\text{GB}\), the added cost is \(\$5\); the \(\$10\) level begins above \(1.0\,\text{GB}\).
53410011
The graph shows a step function \(g\) defined for every real number. a) Find \(g(2.4)\), \(g(0.5)\), and \(g(-1.3)\). b) Describe the operation represented by the graph. What is the standard name of this function?
Figure for problem 534100

Hints

- Move vertically from each input to the graph and read the output. - At a jump, use the closed endpoint rather than the open endpoint. - Compare each input with the two nearest integers.

Solution

1. Since \(2.4\in[2, 3)\), the graph has height \(2\), so \(g(2.4)=2\). 2. Since \(0.5\in[0, 1)\), the graph has height \(0\), so \(g(0.5)=0\). 3. Since \(-1.3\in[-2, -1)\), the graph has height \(-2\), so \(g(-1.3)=-2\). 4. The function assigns each real number the greatest integer less than or equal to it. It is the greatest integer function, also called the floor function: \(g(x)=\lfloor x\rfloor\).

Answer

a) \(g(2.4)=2\), \(g(0.5)=0\), and \(g(-1.3)=-2\) b) It rounds each number down to the greatest integer less than or equal to it. It is the greatest integer, or floor, function.
52190811
A gaming lounge charges for computer use as follows: - The first started \(30\)-minute block costs \(\$2.50\). - Each additional started \(30\)-minute block costs \(\$1.50\). - The maximum daily charge is \(\$12.00\). a) Find the charge for \(145\) minutes of use. b) If usage time is recorded to the nearest whole minute, at what duration does a customer first pay the maximum daily charge? c) Describe the graph of the cost function \(f(x)\) for \(0 < x \le 240\), where \(x\) is the number of minutes used. Identify the type of function.

Hints

- Determine how many complete or partial \(30\)-minute blocks are included in the total time. - A “started \(30\)-minute block” means that any amount of time past a block boundary counts as a new full block. - Write an inequality to determine when the uncapped charge reaches or exceeds the daily maximum.

Solution

1. For \(145\) minutes, \(145 \div 30 \approx 4.83\), so \(5\) blocks have been started. The charge is \(\$2.50 + 4\cdot \$1.50 = \$8.50\). 2. Let \(n\) be the number of started blocks. The uncapped charge reaches the daily maximum when \(2.50 + 1.50(n-1) \ge 12.00\). This gives \(n \ge 7.33\), so the cap first applies during the eighth block. 3. The eighth block begins when the usage time is greater than \(7\cdot 30=210\) minutes. With whole-minute recording, the first such duration is \(211\) minutes. 4. The graph is an increasing step function with jumps every \(30\) minutes. It is constant at \(12.00\) for \(x>210\).

Answer

a) \(\$8.50\) b) \(211\) minutes c) An increasing step function, or piecewise-constant function, capped at \(\$12.00\).
52879511
Let \(f(x)=|2x-5|-3\). Rewrite \(f\) as a piecewise-defined function without absolute value symbols. Then find all zeros of \(f\).

Hints

- Find where the expression inside the absolute value equals \(0\). - On one side of the breakpoint, keep the expression unchanged; on the other side, negate it. - Solve each linear equation and check that each solution belongs to its corresponding interval.

Solution

1. The expression inside the absolute value changes sign where \(2x-5=0\), so the breakpoint is \(x=2.5\). 2. If \(x\ge 2.5\), then \(2x-5\ge 0\), so \(f(x)=2x-5-3=2x-8\). 3. If \(x<2.5\), then \(2x-5<0\), so \(f(x)=-(2x-5)-3=-2x+2\). 4. On the first interval, \(2x-8=0\) gives \(x=4\), which satisfies \(x\ge 2.5\). 5. On the second interval, \(-2x+2=0\) gives \(x=1\), which satisfies \(x<2.5\).

Answer

\(f(x)=\begin{cases}-2x+2, &x<2.5\\2x-8, &x\ge 2.5\end{cases}\) The zeros are \(x=1\) and \(x=4\).
52879611
Let \(g(x)=|x-3|+x\). Rewrite \(g\) as a piecewise-defined function. Then describe the function values for \(x<3\).

Hints

- Find where the expression inside the absolute value changes sign. - Simplify the formula separately for \(x<3\) and \(x\ge 3\). - If the variable cancels completely, the resulting function is constant on that interval.

Solution

1. The expression inside the absolute value equals zero at \(x=3\). 2. If \(x\ge 3\), then \(|x-3|=x-3\), so \(g(x)=x-3+x=2x-3\). 3. If \(x<3\), then \(|x-3|=-(x-3)=-x+3\), so \(g(x)=-x+3+x=3\). 4. Therefore, \(g(x)=\begin{cases}3, &x<3\\2x-3, &x\ge 3\end{cases}\). For \(x<3\), every function value equals \(3\), so the function is constant on that interval.

Answer

\(g(x)=\begin{cases}3, &x<3\\2x-3, &x\ge 3\end{cases}\) For \(x<3\), the function is constant with value \(3\).
52885911
A hiking trail rises in two straight sections, each with a constant slope. During the first \(150\,\text{m}\) of horizontal distance, the trail rises \(30\,\text{m}\). The overlook at the end of the second section is \(130\,\text{m}\) above the parking area and \(400\,\text{m}\) away horizontally. a) Find the slopes \(m_1\) and \(m_2\) of the two sections. b) Write a piecewise function \(h(x)\) for height above the parking area as a function of horizontal distance. Include the domain of each piece. c) Find the height after \(250\,\text{m}\) of horizontal distance. d) At what horizontal distance does the trail reach a height of \(90\,\text{m}\)?

Hints

- Find the horizontal and vertical changes for each section. - Use rise divided by run for each slope. - Make sure the second formula gives the correct height at the joining point. - Choose the correct piece before evaluating or solving.

Solution

1. The first slope is \(m_1=\frac{30}{150}=0.2\). 2. The second section rises \(130-30=100\) meters over \(400-150=250\) meters, so \(m_2=\frac{100}{250}=0.4\). 3. On the first section, \(h(x)=0.2x\) for \(0\le x\le150\). On the second, use the point \((150, 30)\): \(h(x)=0.4(x-150)+30=0.4x-30\) for \(150<x\le400\). 4. Since \(250>150\), \(h(250)=0.4\cdot 250-30=70\). The height is \(70\,\text{m}\). 5. Since \(90>30\), use the second piece: \(90=0.4x-30\). Then \(x=300\,\text{m}\).

Answer

a) \(m_1=0.2\); \(m_2=0.4\) b) \(h(x)=\begin{cases}0.2x, &0\le x\le150\\0.4x-30, &150<x\le400\end{cases}\) c) \(70\,\text{m}\) d) \(300\,\text{m}\)
52886011
A material ramp consists of two straight sections. The first runs from \((0, 0)\) to a platform \(15\,\text{m}\) high and \(50\,\text{m}\) away horizontally. The second ends at a loading station \(75\,\text{m}\) high and \(150\,\text{m}\) away horizontally. a) Write a piecewise linear function \(h(x)\) for the ramp's height. b) Complete the table. <table> <tr> <td>Horizontal distance \(x\) in meters</td> <td>\(20\)</td> <td>\(x_2\)</td> <td>\(100\)</td> <td>\(x_4\)</td> </tr> <tr> <td>Height \(h\) in meters</td> <td>\(h_1\)</td> <td>\(9\)</td> <td>\(h_3\)</td> <td>\(60\)</td> </tr> </table> c) Find the average slope over the full horizontal distance of \(150\,\text{m}\).

Hints

- Find the slope and equation of each straight section. - Choose the appropriate formula for each table entry. - To find a missing input, set the appropriate piece equal to the given height. - Average slope uses the total rise and total horizontal run.

Solution

1. The first slope is \(\frac{15}{50}=0.3\), so \(h(x)=0.3x\) for \(0\le x\le50\). 2. The second slope is \(\frac{75-15}{150-50}=0.6\). Through \((50, 15)\), its equation is \(h(x)=0.6(x-50)+15=0.6x-15\) for \(50<x\le150\). 3. For \(x=20\), \(h_1=0.3\cdot 20=6\). 4. For \(h=9\), use the first piece: \(0.3x_2=9\), so \(x_2=30\). 5. For \(x=100\), \(h_3=0.6\cdot 100-15=45\). 6. For \(h=60\), use the second piece: \(0.6x_4-15=60\), so \(x_4=125\). 7. The average slope from start to finish is \(\frac{75}{150}=0.5\), equivalent to a \(50\%\) grade.

Answer

a) \(h(x)=\begin{cases}0.3x, &0\le x\le50\\0.6x-15, &50<x\le150\end{cases}\) b) \(h_1=6\); \(x_2=30\); \(h_3=45\); \(x_4=125\) c) \(0.5\), or \(50\%\)
52881211
A package-storage company offers two daily pricing plans based on a package's weight \(x\) in pounds. Plan A charges \(\$2.00\) for each started pound. The weight is rounded up to the next whole pound and multiplied by \(2\). Plan B charges according to \(g(x)=1.5x+1\), in dollars. a) Find the cost of each plan for packages weighing \(0.5\) lb, \(1.0\) lb, and \(2.2\) lb. b) For \(0<x\le5\), determine exactly when Plan A costs less than Plan B.

Hints

- “Each started pound” means round the weight up before calculating Plan A. - Treat Plan A as a step function, one pound-interval at a time. - Compare the plans with an inequality on each interval. - Check strict inequality carefully at interval endpoints.

Solution

1. At \(x=0.5\), Plan A costs \(2\cdot 1=\$2.00\), and Plan B costs \(1.5\cdot 0.5+1=\$1.75\). 2. At \(x=1.0\), Plan A costs \(2\cdot 1=\$2.00\), and Plan B costs \(1.5\cdot 1.0+1=\$2.50\). 3. At \(x=2.2\), Plan A costs \(2\cdot 3=\$6.00\), and Plan B costs \(1.5\cdot 2.2+1=\$4.30\). 4. On \((0, 1]\), Plan A costs \(\$2.00\). Solve \(2<1.5x+1\): \(x>\frac{2}{3}\). This gives \(\frac{2}{3}<x\le1\). 5. On \((1, 2]\), Plan A costs \(\$4.00\). The inequality \(4<1.5x+1\) requires \(x>2\), so there is no solution in that interval. 6. On every later interval \((k-1, k]\), the condition is \(x>\frac{4k-2}{3}\), and this threshold is greater than or equal to \(k\) for \(k\ge2\). Therefore, there are no additional solutions.

Answer

a) At \(0.5\) lb: A \(\$2.00\), B \(\$1.75\) At \(1.0\) lb: A \(\$2.00\), B \(\$2.50\) At \(2.2\) lb: A \(\$6.00\), B \(\$4.30\) b) Plan A costs less for \(\frac{2}{3}<x\le1\) lb.
53562911
The diagram shows the interior shape of an open-top, stepped container. All dimensions are in centimeters. The container is filled with water to a height of \(h\) centimeters. a) Write a piecewise-defined function for the water volume \(V(h)\), in cubic centimeters. b) Find the water volume when \(h=4\,\text{cm}\) and when \(h=8\,\text{cm}\). c) State the domain and range of \(V\).
Figure for problem 535629

Hints

- Find the horizontal cross-sectional area below and above the step. - Treat the lower and upper height intervals separately. - When the water passes \(h=5\,\text{cm}\), include the full volume of the lower section. - Use the physical minimum and maximum fill heights to determine the domain and range.

Solution

1. For \(0\le h\le5\), the horizontal cross section measures \(20\,\text{cm}\times10\,\text{cm}\), so its area is \(200\,\text{cm}^2\). Thus, \(V(h)=200h\). 2. For \(5<h\le10\), the lower section already contains \(200\cdot5=1000\,\text{cm}^3\). The upper cross section measures \(10\,\text{cm}\times10\,\text{cm}\), so each additional centimeter of height adds \(100\,\text{cm}^3\). Therefore, \(V(h)=1000+100(h-5)=100h+500\). 3. The piecewise function is \(V(h)=\begin{cases}200h,&0\le h\le5\\100h+500,&5<h\le10\end{cases}\). 4. \(V(4)=200\cdot4=800\,\text{cm}^3\). Also, \(V(8)=100\cdot8+500=1300\,\text{cm}^3\). 5. The possible fill heights are from \(0\) to \(10\,\text{cm}\), and the volume increases from \(0\) to \(1500\,\text{cm}^3\). The domain is \([0, 10]\), and the range is \([0, 1500]\).

Answer

a) \(V(h)=\begin{cases}200h,&0\le h\le5\\100h+500,&5<h\le10\end{cases}\) b) \(V(4)=800\,\text{cm}^3\); \(V(8)=1300\,\text{cm}^3\) c) Domain: \([0, 10]\); range: \([0, 1500]\)

All problems may be used, copied and printed free of charge for school and tutoring, including paid tutoring. Commercial adaptations as well as publication or redistribution on the internet are not permitted.