# 3.2 Domain and range  (Page 7/11)

 Page 7 / 11

## Writing a piecewise function

A museum charges $5 per person for a guided tour with a group of 1 to 9 people or a fixed$50 fee for a group of 10 or more people. Write a function    relating the number of people, $\text{\hspace{0.17em}}n,\text{\hspace{0.17em}}$ to the cost, $\text{\hspace{0.17em}}C.$

Two different formulas will be needed. For n -values under 10, $\text{\hspace{0.17em}}C=5n.\text{\hspace{0.17em}}$ For values of $\text{\hspace{0.17em}}n\text{\hspace{0.17em}}$ that are 10 or greater, $\text{\hspace{0.17em}}C=50.$

$C\left(n\right)=\left\{\begin{array}{ccc}5n& \text{if}& 0

## Working with a piecewise function

A cell phone company uses the function below to determine the cost, $\text{\hspace{0.17em}}C,\text{\hspace{0.17em}}$ in dollars for $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ gigabytes of data transfer.

$C\left(g\right)=\left\{\begin{array}{ccc}25& \text{if}& 0

Find the cost of using 1.5 gigabytes of data and the cost of using 4 gigabytes of data.

To find the cost of using 1.5 gigabytes of data, $\text{\hspace{0.17em}}C\left(1.5\right),\text{\hspace{0.17em}}$ we first look to see which part of the domain our input falls in. Because 1.5 is less than 2, we use the first formula.

$C\left(1.5\right)=\text{}25$

To find the cost of using 4 gigabytes of data, $\text{\hspace{0.17em}}C\left(4\right),\text{\hspace{0.17em}}$ we see that our input of 4 is greater than 2, so we use the second formula.

$C\left(4\right)=25+10\left(4-2\right)=\text{}45$

Given a piecewise function, sketch a graph.

1. Indicate on the x -axis the boundaries defined by the intervals on each piece of the domain.
2. For each piece of the domain, graph on that interval using the corresponding equation pertaining to that piece. Do not graph two functions over one interval because it would violate the criteria of a function.

## Graphing a piecewise function

Sketch a graph of the function.

$f\left(x\right)=\left\{\begin{array}{ccc}{x}^{2}& \text{if}& x\le 1\\ 3& \text{if}& 12\end{array}$

Each of the component functions is from our library of toolkit functions, so we know their shapes. We can imagine graphing each function and then limiting the graph to the indicated domain. At the endpoints of the domain, we draw open circles to indicate where the endpoint is not included because of a less-than or greater-than inequality; we draw a closed circle where the endpoint is included because of a less-than-or-equal-to or greater-than-or-equal-to inequality.

[link] shows the three components of the piecewise function graphed on separate coordinate systems.

Now that we have sketched each piece individually, we combine them in the same coordinate plane. See [link] .

Graph the following piecewise function.

$f\left(x\right)=\left\{\begin{array}{ccc}{x}^{3}& \text{if}& x<-1\\ -2& \text{if}& -14\end{array}$

Can more than one formula from a piecewise function be applied to a value in the domain?

No. Each value corresponds to one equation in a piecewise formula.

Access these online resources for additional instruction and practice with domain and range.

## Key concepts

• The domain of a function includes all real input values that would not cause us to attempt an undefined mathematical operation, such as dividing by zero or taking the square root of a negative number.
• The domain of a function can be determined by listing the input values of a set of ordered pairs. See [link] .
• The domain of a function can also be determined by identifying the input values of a function written as an equation. See [link] , [link] , and [link] .
• Interval values represented on a number line can be described using inequality notation, set-builder notation, and interval notation. See [link] .
• For many functions, the domain and range can be determined from a graph. See [link] and [link] .
• An understanding of toolkit functions can be used to find the domain and range of related functions. See [link] , [link] , and [link] .
• A piecewise function is described by more than one formula. See [link] and [link] .
• A piecewise function can be graphed using each algebraic formula on its assigned subdomain. See [link] .

the gradient function of a curve is 2x+4 and the curve passes through point (1,4) find the equation of the curve
1+cos²A/cos²A=2cosec²A-1
test for convergence the series 1+x/2+2!/9x3
a man walks up 200 meters along a straight road whose inclination is 30 degree.How high above the starting level is he?
100 meters
Kuldeep
Find that number sum and product of all the divisors of 360
Ajith
exponential series
Naveen
what is subgroup
Prove that: (2cos&+1)(2cos&-1)(2cos2&-1)=2cos4&+1
e power cos hyperbolic (x+iy)
10y
Michael
tan hyperbolic inverse (x+iy)=alpha +i bita
prove that cos(π/6-a)*cos(π/3+b)-sin(π/6-a)*sin(π/3+b)=sin(a-b)
why {2kπ} union {kπ}={kπ}?
why is {2kπ} union {kπ}={kπ}? when k belong to integer
Huy
if 9 sin theta + 40 cos theta = 41,prove that:41 cos theta = 41
what is complex numbers
Dua
Yes
ahmed
Thank you
Dua
give me treganamentry question
Solve 2cos x + 3sin x = 0.5