1.2 Visualizing Functions: Graphs

To truly understand a function’s behavior, we must visualize it.

Definition 1.2.1 (Graph).

The graph of a function ff is the set of all points in the x⁢yxy-plane that satisfy the equation y=f⁢(x)y=f(x). Here, xx represents the independent variable and yy represents the dependent variable.

Example 1.2.2.

For f⁢(x)=x2f(x)=x^{2}, the point (1,1)(1,1) lies on the graph because when we substitute x=1x=1, we find y=12=1⟹y=x2y=1^{2}=1\implies y=x^{2}. Thus, (1,1)∈graph of ⁢f⁢(x)=x2(1,1)\in\text{graph of }f(x)=x^{2}, see Figure 1.1.

A Cartesian coordinate graph demonstrating the vertical line test on the parabola y = x^2. The horizontal x-axis and vertical y-axis intersect at the origin. A smooth, symmetric blue parabola opening upwards is plotted. A vertical red dashed line is drawn parallel to the y-axis at x = 1.2. A solid red dot marks the single point of intersection between the vertical red dashed line and the blue parabola at (1.2, 1.44), with a text label pointing to it indicating that there is only one intersection point, proving that the relation is a function.
Figure 1.1: Illustration of the vertical line test on the graph y=x2y=x^{2}
Moral (The Vertical Line Test).

Because a function must return a unique output for each input, a curve represents a function if and only if it passes the Vertical Line Test (VLT): every vertical line intersects the graph at most once.

Example 1.2.3.

Does the graph of the equation x=y2x=y^{2} represent a function with variable xx? No. If we pick an input x>0x>0, say x=4x=4, we find two corresponding yy-values: y=xy=\sqrt{x} and y=−xy=-\sqrt{x}. The output is not unique. The graph is a sideways parabola that unequivocally fails the VLT, see Figure 1.2.

A Cartesian coordinate graph demonstrating the vertical line test on the sideways parabola x = y^2. The parabola opens to the right, starting at the origin (0,0) and passing through (1,1), (1,-1), (4,2), and (4,-2). A vertical red dashed line is drawn parallel to the y-axis at x = 1.5. This vertical line intersects the blue parabola at two distinct points, marked with solid red dots: one in the upper half-plane and one in the lower half-plane. A red text box in the lower-right quadrant labels this as failing the vertical line test, proving that the relation is not a function of x.
Figure 1.2: Illustration of the vertical line test on the graph x=y2x=y^{2}