topic badge
Standard Level

2.06 Graphing square root functions

Lesson

In the last chapter, we saw that we can rearrange $y^2=x$y2=x so that $y$y is the subject and obtain $y=\pm\sqrt{x}$y=±x.

We can break this up into two separate functions: $y=\sqrt{x}$y=x and $y=-\sqrt{x}$y=x

Shown below we can see that, since the square root function is not defined for negative values, we have a domain of $x\ge0$x0.


The graph of $y=\sqrt{x}$y=x


The graph of $y=-\sqrt{x}$y=x

Let's take a closer look at the function $y=\sqrt{x}$y=x.

$x$x $0$0 $1$1 $4$4 $9$9 $16$16 $25$25
$y=\sqrt{x}$y=x $0$0 $1$1 $2$2 $3$3 $4$4 $5$5

Notice that in order for the $y$y-values to reach the next integer, the $x$x-values get further and further apart. This gives rise to the square root function's recognisable shape when graphed.

A graph of $y=\sqrt{x}$y=x

 

Transformations of $y=\sqrt{x}$y=x

The basic root function can be dilated and translated in a similar way to other functions.

The root function $y=\sqrt{x}$y=x can be transformed to $y=a\sqrt{x-h}+k$y=axh+k. Use the applet below to experiment with these transformations, and try to summarise your findings. Take careful note of the 'starting point' of the function, as well as the domain and range.

Summary:

  • If $a$a is negative, the basic curve is reflected across the $x$x-axis
  • The graph is dilated vertically by a factor of $a$a
  • The graph is translated horizontally by $h$h units
  • The graph is translated vertically by $k$k units
  • The vertex point, originally at the origin, is moved to the point $\left(h,k\right)$(h,k)
  • The domain of the graph becomes $x\ge h$xh. Since the function is only defined when the term under the square root is positive, we need $x-h\ge0$xh0 and so $x\ge h$xh.
  • The range of the graph becomes $y\ge k$yk for $a>0$a>0, or $y\le k$yk for $a<0$a<0, due to the vertical shift of $k$k units

 

Horizontal reflection

We can also reflect the square root function across the $y$y-axis.

This is achieved by the function $y=\sqrt{-x}$y=x. Think about what values of $x$x this function is defined for - the square root will return real values when $x$x is negative or zero, and so the domain is $x\le0$x0. This is a reflection of the function $y=\sqrt{x}$y=x about the $y$y-axis.

We can reflect our general form $y=a\sqrt{x-h}+k$y=axh+k by multiplying the expression under the square root by $-1$1. Doing so, we obtain the form $y=a\sqrt{-\left(x-h\right)}+k$y=a(xh)+k, which can also be written as $y=a\sqrt{h-x}+k$y=ahx+k.

 

Worked example

Graph the function given by $f\left(x\right)=-2\sqrt{3-x}$f(x)=23x .

Think: We can rewrite this function as $f(x)=-2\sqrt{-\left(x-3\right)}$f(x)=2(x3). Doing so, we can see that the graph can be obtained from the basic graph $y=\sqrt{x}$y=x by the following transformations:

  • Dilating the graph by a factor of $2$2 from the $x$x-axis
  • Reflecting the graph across the $x$x-axis
  • Reflecting the graph across the $y$y-axis
  • Translating the graph $3$3 units to the right

As a result of these transformations, the vertex will be at the point $\left(3,0\right)$(3,0), and the domain will be all real numbers $x$x where $x\le3$x3, since we need to ensure that $3-x\ge0$3x0.

Also note that when $x=3$x=3, $y=-2\times\sqrt{0}=0$y=2×0=0, and when $x=0$x=0, $y=-2\sqrt{3-0}=-2\sqrt{3}$y=230=23. This means that the $x$x- and $y$y-intercepts are the points $\left(3,0\right)$(3,0) and $\left(0,-2\sqrt{3}\right)$(0,23).

Do: We have enough information to sketch the graph. Before we do so, however, we can increase the accuracy of the sketch by evaluating a few carefully chosen points - say the points at $x=-1$x=1, $x=-6$x=6 and $x=-13$x=13, since these values create square numbers for the term $3-x$3x. Doing so, we have:

$f\left(-1\right)$f(1) $=$= $-2\sqrt{3-\left(-1\right)}=-4$23(1)=4
$f\left(-6\right)$f(6) $=$= $-2\sqrt{3-\left(-6\right)}=-6$23(6)=6
$f\left(-13\right)$f(13) $=$= $-2\sqrt{3-\left(-13\right)}=-8$23(13)=8

So we know that the curve passes through the points $\left(-1,-4\right)$(1,4), $\left(-6,-6\right)$(6,6) and $\left(-13,-8\right)$(13,8).

Putting all of this information together, we can make an accurate sketch of $f\left(x\right)=-2\sqrt{3-x}$f(x)=23x:

Reflect: Look at the graph that we sketched, and compare it to the graph of $y=\sqrt{x}$y=x. Can you see the effects of each of the transformations that occurred?

 

Practice questions

QUESTION 1

Consider the function $y=2\sqrt{x}+3$y=2x+3.

  1. Is the function increasing or decreasing from left to right?

    Decreasing

    A

    Increasing

    B
  2. Is the function more or less steep than $y=\sqrt{x}$y=x?

    More steep

    A

    Less steep

    B
  3. What are the coordinates of the vertex?

  4. Hence graph $y=2\sqrt{x}+3$y=2x+3

    Loading Graph...

QUESTION 2

Consider the function $f\left(x\right)=\sqrt{-x}-1$f(x)=x1.

  1. Graph the function $f\left(x\right)=\sqrt{-x}-1$f(x)=x1.

    Loading Graph...

  2. What is the domain?

    $x\le-1$x1

    A

    $x$x $\le$ $0$0

    B

    $x$x $\ge$ $0$0

    C

    $x\ge-1$x1

    D
  3. What is the range?

    $f\left(x\right)$f(x) $\ge$ $0$0

    A

    $f\left(x\right)$f(x) $\ge$ $-1$1

    B

    $f\left(x\right)$f(x) $\le$ $-1$1

    C

    $f\left(x\right)$f(x) $\le$ $0$0

    D

QUESTION 3

Consider the function $y=\sqrt{x-3}+2$y=x3+2.

  1. State the domain of the function in the form of an inequality.

  2. State the range of the function.

  3. Which of the following is the graph of $y=\sqrt{x-3}+2$y=x3+2?

    Loading Graph...

    A

    Loading Graph...

    B

    Loading Graph...

    C

    Loading Graph...

    D

What is Mathspace

About Mathspace