The graph of functions

You can think of the graph of a function as its picture, so the graph shows how the function "looks". The way to do this is simple: every input output pair of the function defines a point in a coordinate system, where the xx-coordinate of the point is the input and the yy-coordinate is the corresponding output:

The set of all these points (that is, all possible input-output pairs) is called the graph of the function ff. Typically, for all the functions we discuss here, the graph forms a nice smooth line (or several smooth lines).

Example 1

Sketch the graph of the function f(x)=x2f(x)=x^2.

Solution

We have to determine a couple of input-output pairs, then indicate the points in a coordinate system, and use a smooth line to connect the dots. The more points you use, the more accurate the graph will be, of course.

Exercise 1
Q1

Assign each graph below to a function equation:

  • f(x)=12x42x2+1f(x)=\frac{1}{2}x^4-2x^2+1
  • h(x)=1xh(x)=\frac{1}{x}
  • k(x)=0.5x1k(x)=0.5x-1
Q2

Draw the graph of the functions shown below. Find a geometrical operation to get from one graph to the next.

  1. f(x)=xf(x)=\sqrt{x}
  2. g(x)=x1g(x)=\sqrt{x-1}
  3. h(x)=x2h(x)=\sqrt{x-2}
Q3

Draw the graph of the functions shown below. Find a geometrical operation to get from one graph to the next.

  1. f(x)=x3f(x)=x^3
  2. g(x)=0.5x3g(x)=0.5x^3
  3. h(x)=0.25x3h(x)=0.25x^3
Q4

Consider the function f(x)=2x2x+1f(x)=2x^2-x+1. Find values xx and yy such that

  1. the points A(2y)A(2\vert y) are on the graph of ff.
  2. the points B(x1)B(x\vert 1) are on the graph of ff.
Q5

Consider some function ff. Based on its graph (shown below), estimate the following:

  1. f(1),f(0)f(-1), f(0), f(0.5)f(0.5), and f(0.5)f(-0.5)
  2. all input values with output value 1-1
  3. all input values with output value 00
  4. the domain and range of ff
Q6

Which of these lines are graphs of some function ff? Also, indicate the domain of each function on the xx-axis, and the range of each function on the yy-axis.

Solution
A1

Function hh is not defined for x=0x=0, so this must be the graph on the right side. Function kk is negative for x=0x=0, so this must be the graph to the left, and ff is position at x=0x=0, so it must be the graph in the middle.

Of course you could also sketch the graph of each function and then compare with the three figures.

A2

Shift to the right by 11 unit.

A3

Compressed in yy-direction by the factor 22 (or stretched by 0.5).

A4
  1. y=f(2)=2222+1=7y=f(2)=2\cdot 2^2-2+1=7, thus A(27)\underline{A(2\vert 7)}.
  2. Find input xx with y=f(x)=2x2x+1=1y=f(x)=2x^2-x+1=1. Subtracting both sides by one, we get the following condition for xx:
2x2x=02x^2-x=0

Let's factor out an xx, we get

x(2x1)=0x(2x-1)=0

Thus, x1=0x_1=0 or 2x1=0x2=0.52x-1=0 \rightarrow x_2=0.5. Thus, we have the two points B1(01)\underline{B_1(0\vert 1)} and B2(0.51)\underline{B_2(0.5\vert 1)}.

A5
  1. f(1)=0,f(0)=0f(-1)=0, f(0)=0, f(0.5)0.55f(0.5)\approx -0.55, and f(0.5)0.3f(-0.5)\approx 0.3
  2. The inputs x1.4x\approx -1.4, x1x\approx 1 and x1.4x\approx 1.4 have output 1-1
  3. The inputs x=1x=-1, x=0x=0, and x=2x=2 have output 00
  4. D=R=RD=R=\mathbb{R} (assuming that the graph continuous upwards on the right, and downwards on the left)
A6
  1. ff and hh are functions, gg is not a function because some inputs (xx) have more than two values (yy).
  2. The domain and range are indicated below.