Skip to content

The square root function and the inverse function

The square root function and the inverse function

The inverse function

The inverse function of f\displaystyle f goes the way back: if f\displaystyle f gives y\displaystyle y for x\displaystyle x, the inverse gives x\displaystyle x for y\displaystyle y.

  • f(x)=2x+1\displaystyle {f(x)}={2x+1} gives 7 for 3, and the inverse g(x)=x−12\displaystyle {g(x)}={\frac{x-1}{2}} gives 3 for 7.
  • To find the inverse: write y=f(x)\displaystyle {y}={f(x)}, get x\displaystyle x on its own, and swap the names of the variables.
  • On a graph, swapping x\displaystyle x and y\displaystyle y is a reflection in the line y=x\displaystyle {y}={x}: the point (3,7)\displaystyle (3,7) goes to (7,3)\displaystyle (7,3).
f(x)=2x+1\displaystyle f(x)=2x+1
g(x)=x−12\displaystyle g(x)=\frac{x-1}{2}
y=x\displaystyle y=x

A function has an inverse only if each value of y\displaystyle y comes from one x\displaystyle x alone – for example a function that only rises or only falls. y=x2\displaystyle {y}={x^2} has no inverse: both x=2\displaystyle {x}={2} and x=−2\displaystyle {x}={-2} give y=4\displaystyle {y}={4}, and there is no single way back from 4.

The square root function

Looked at only where x≥0\displaystyle x\geq0, y=x2\displaystyle {y}={x^2} rises, and it has an inverse: the square root function y=x\displaystyle {y}={\sqrt{x}}. a\displaystyle \sqrt{a} is the non-negative number whose square is a\displaystyle a.

x\displaystyle \sqrt{x} =\displaystyle = x12\displaystyle x^{\frac{1}{2}}

On the graph below, y=x\displaystyle {y}={\sqrt{x}} is the reflection of the right half of the parabola in the line y=x\displaystyle {y}={x}:

f(x)=x\displaystyle f(x)=\sqrt{x}
y=x2\displaystyle y=x^{2}
y=x\displaystyle y=x
  • The domain: x≥0\displaystyle x\geq0, and always x≥0\displaystyle \sqrt{x}\geq0.
  • Its only zero: (0,0)\displaystyle (0,0).
  • It rises in all its domain, and (0,0)\displaystyle (0,0) is a minimum point at the end of the domain.
  • It rises more and more slowly: from 0 to 1 it rises by 1, and from 1 to 4 – also only by 1.
The cube root and the root of a square

y=x3\displaystyle {y}={x^3} rises everywhere, so it has an inverse on the whole line: the cube root function y=x3\displaystyle {y}={\sqrt[3]{x}}.

x3\displaystyle \sqrt[3]{x} =\displaystyle = x13\displaystyle x^{\frac{1}{3}}
  • It is defined for every x\displaystyle x: 83=2\displaystyle {\sqrt[3]{8}}={2}, and −83=−2\displaystyle {\sqrt[3]{-8}}={-2} because (−2)3=−8\displaystyle {(-2)^3}={-8}.

The square root of a square needs care: (−3)2=9=3\displaystyle {\sqrt{(-3)^2}}={\sqrt{9}}={3}, not −3\displaystyle -3. A square root is never negative, so:

x2\displaystyle \sqrt{x^2} =\displaystyle = ∣x∣\displaystyle |x|
Shifts and stretches of x\displaystyle \sqrt{x}

The shifts and stretches you have learnt work on x\displaystyle \sqrt{x} too:

y\displaystyle y =\displaystyle = ax−p+k\displaystyle a\sqrt{x-p}+k
  • The graph starts at the point (p,k)\displaystyle (p,k), and the domain is x≥p\displaystyle x\geq p.
  • a>0\displaystyle a>0: the graph rises from that point. a<0\displaystyle a<0: it falls from it.

On the graph below, y=2x−1+1\displaystyle {y}={2\sqrt{x-1}+1}:

f(x)=x\displaystyle f(x)=\sqrt{x}
g(x)=2x−1+1\displaystyle g(x)=2\sqrt{x-1}+1
A=(1,1)\displaystyle A=(1,1)
  • x\displaystyle \sqrt{x} was shifted one unit right and one unit up, and stretched by 2.
  • It starts at (1,1)\displaystyle (1,1), is defined where x≥1\displaystyle x\geq1 and rises.
The root of a function

In y=f(x)\displaystyle {y}={\sqrt{f(x)}} the inner function is f\displaystyle f, and the outer one is the root. What you read from f\displaystyle f:

  • The domain: a negative number has no square root, so f(x)\displaystyle \sqrt{f(x)} is defined where f(x)≥0\displaystyle f(x)\geq0.
  • The zeros: the zeros of f\displaystyle f.
  • Rising and falling: the root rises, so f(x)\displaystyle \sqrt{f(x)} rises where f\displaystyle f rises, and falls where f\displaystyle f falls.

The example below reads y=6−2x\displaystyle {y}={\sqrt{6-2x}} this way:

  • 6−2x≥0\displaystyle 6-2x\geq0 where x≤3\displaystyle x\leq3: that is the domain.
  • 6−2x=0\displaystyle {6-2x}={0} where x=3\displaystyle {x}={3}: the zero (3,0)\displaystyle (3,0), at the end of the domain.
  • 6−2x\displaystyle 6-2x falls, so 6−2x\displaystyle \sqrt{6-2x} falls in all its domain too.
An equation with a root

An equation with a root is solved by squaring both sides. Squaring can add a solution: 2=−2\displaystyle {2}={-2}, which is false, gives 4=4\displaystyle {4}={4} once squared. So check every solution in the original equation.

The example below solves x+3=x−3\displaystyle {\sqrt{x+3}}={x-3}:

  • Squaring: x+3=x2−6x+9\displaystyle {x+3}={x^2-6x+9}, so x2−7x+6=0\displaystyle {x^2-7x+6}={0}, that is (x−1)(x−6)=0\displaystyle {(x-1)(x-6)}={0}.
  • x=1\displaystyle {x}={1}: the left side is 4=2\displaystyle {\sqrt{4}}={2}, the right side 1−3=−2\displaystyle {1-3}={-2}. Not a solution.
  • x=6\displaystyle {x}={6}: the left side is 9=3\displaystyle {\sqrt{9}}={3}, the right side 6−3=3\displaystyle {6-3}={3}. The only solution.
Exercise 1

The function is f(x)=3x−6\displaystyle {f(x)}={3x-6}.
Find its inverse function, and write it in a row of your own on the board.
Check that its graph is the reflection of the graph of f\displaystyle f in the line y=x\displaystyle {y}={x}.

f(x)=3x−6\displaystyle f(x)=3x-6
y=x\displaystyle y=x

Exercise 2

The board shows the graph of f(x)=x\displaystyle {f(x)}={\sqrt{x}}, and three graphs made from it by shifts, stretches and reflections.
Write a function of the form y=ax−p+k\displaystyle {y}={a\sqrt{x-p}+k} for each of them.

f(x)=x\displaystyle f(x)=\sqrt{x}
g(x)= ?\displaystyle g(x)=\,?
h(x)= ?\displaystyle h(x)=\,?
k(x)= ?\displaystyle k(x)=\,?

Exercise 3

Find the domain of each function.

a

f(x)=8−2x\displaystyle {f(x)}={\sqrt{8-2x}}

    b

    g(x)=x2−x−6\displaystyle {g(x)}={\sqrt{x^2-x-6}}

      c

      Write the zeros of f\displaystyle f and of g\displaystyle g.
      Where does g\displaystyle g rise? Explain by the parabola y=x2−x−6\displaystyle {y}={x^2-x-6}.

      Exercise 4

      Solve the equations.
      Check every solution in the original equation.

      a
        b
          Exercise 5

          Work out.

          a

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            b

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              c

              Dana wrote: “x2=x\displaystyle {\sqrt{x^2}}={x} for every x\displaystyle x”.
              Give an example that shows she is wrong, and write what is true.