
Write a function that relates the number of people, x, and the cost of attending the event, f(x). They also offer a fixed fee of $50 for a table with 6 or more people. They charge $6 per person for a table of 1 to 5 guests. Spoken word poetry is being held at the nearby cafe. Since the graph only covers the values of y above the x-axis, the range of the function is [0, ∞ ) in interval notation. Since all values of x extend in both directions, the domain would be all real numbers or (-∞, ∞). Let’s go ahead and simplify this graph now so that we can analyze it for its domain and range. The image above breaks down the three components of the piecewise function. Using this information, we can now graph f(x). When x ≥ 2, f(x) is a function and will pass through (2, 1) and (6,3).

Make sure to leave (0,5) and (2,5) unfilled since they are not part of the solution.

Just make sure that the two points satisfy y = 2x. To graph the linear function, we can use two points to connect the line. Using the graph, determine its domain and range.įor all intervals of x other than when it is equal to 0, f(x) = 2x (which is a linear function). Graph the piecewise function shown below. Let’s evaluate f(49) using the expression.

When x = 49 (and consequently, greater 0), the expression for f(x) is √ x.Let’s evaluate f(-36) using the expression. When x = -36 (or less than 0), the expression for f(x) is x/6.2x, for x 0, x = 0, and x 0, f(x) is equal to 2x. The function is defined by pieces of functions for each part of the domain. Piecewise function definitionĪ piecewise function is a function that is defined by different formulas or functions for each given interval. To fully understand what piecewise functions are and how we can construct our own piecewise-defined functions, let’s first dive into a deeper understanding of how it works. Graphing and interpreting piecewise functions.

#GRAPHING A PIECEWISE FUNCTION HOW TO#
