![graph a piecewise function graph a piecewise function](https://showme0-9071.kxcdn.com/files/116239/pictures/thumbs/1632634/last_thumb1409716089.jpg)
We would draw the parabola first and then the line. If we couldn't already see the graph, we would begin by examining the equation. This is very important as it makes the function a function. But, y = x² has just a "less than" sign which indicates that the circle at 2 will be open. The "equal to" indicates that the line y=-1 will have a closed dot at 2. Notice that we use a "greater than or equal to" sign for the horizontal line's domain.
![graph a piecewise function graph a piecewise function](https://i.ytimg.com/vi/TMv2dQAOrjY/maxresdefault.jpg)
So the parabola would be denoted as y=x², x2 But, the parabola ceases to exist at x=2. The parabola is the parent parabola y=x².
![graph a piecewise function graph a piecewise function](https://prod-qna-question-images.s3.amazonaws.com/qna-images/question/9183562b-bdd0-452d-89f4-99f4183afdcd/cb56fe55-cc3b-4a20-99cc-63a21ffa6e04/0xnjiqh.jpeg)
Let's begin with the parabola since it is furthest left. Let's write an equation for the piecewise function to the left, then walk through how we would graph it, and then determine the domain and range. Always check at the end to ensure that your function is a function. When graphing, try graphing the lines first, then erase and make dots and arrows as dictated by the domain (the x value behind the comma). Notice that the domain is determined by the comma and the x notation afterwards. If we were to write an equation for the graph to the right, it would look like this: You'll notice that only (2,6) is actually included in the domain. If the dot is open, the coordinate is excluded, if it is closed than it is included. This is when closed and open dots come back into play from our domain graphs (see Project 1, page 2). But, we know that can't be the case or this wouldn't be a function. Assuming that each box is one unit, it appears that at an x value of 2, there are three different pieces of the function overlapping. Look at the piecewise function to the right. You'll notice that although there can be several different pieces, we must be careful not to have several outputs (y values) belonging to a single input (x value). A piecewise function is a function that is in pieces.