Skip to content

Functions with square roots: the domain and asymptotes

Functions with square roots: the domain and asymptotes

The domain of a function with roots

A square root has a value only where the expression under it is not negative, and a fraction only where its denominator is not 0. A function with roots is defined where all its parts are:

  • f(x)=x+2x−1\displaystyle {f(x)}={\frac{\sqrt{x+2}}{x-1}}: x+2≥0\displaystyle x+2\geq0 and x≠1\displaystyle x\neq1, that is x≥−2\displaystyle x\geq-2, x≠1\displaystyle x\neq1;
  • g(x)=x+4−x\displaystyle {g(x)}={\sqrt{x}+\sqrt{4-x}}: x≥0\displaystyle x\geq0 and 4−x≥0\displaystyle 4-x\geq0, that is 0≤x≤4\displaystyle 0\leq x\leq4 – a closed interval with two ends;
  • h(x)=x2−4\displaystyle {h(x)}={\sqrt{x^2-4}}: x2−4≥0\displaystyle x^2-4\geq0, that is x≤−2\displaystyle x\leq-2 or x≥2\displaystyle x\geq2 – two pieces with a gap between them;
  • k(x)=1x−1\displaystyle {k(x)}={\frac{1}{\sqrt{x-1}}}: the root in the denominator must be positive, so x>1\displaystyle x>1.

Unlike a rational function, which is defined everywhere but at a few points, a function with a root may be defined only on an interval, and its graph ends at the ends of that interval.

The root of a square

The square root is never negative, so the root of a square is the absolute value:

x2\displaystyle \sqrt{x^2} =\displaystyle = ∣x∣\displaystyle |x|

For example, (−3)2=9=3=∣−3∣\displaystyle {\sqrt{(-3)^2}}={\sqrt{9}}={3}={|-3|}, not −3\displaystyle -3. So for large ∣x∣\displaystyle |x|, x2+1\displaystyle \sqrt{x^2+1} is close to ∣x∣\displaystyle |x|: to x\displaystyle x on the right, and to −x\displaystyle -x on the left.

Two horizontal asymptotes

Because x2=∣x∣\displaystyle {\sqrt{x^2}}={|x|}, a function with a root may approach one line far to the right and another far to the left. The example below finds the asymptotes of f(x)=xx2+1\displaystyle {f(x)}={\frac{x}{\sqrt{x^2+1}}}:

  • for large positive x\displaystyle x, x2+1\displaystyle \sqrt{x^2+1} is close to x\displaystyle x, so f(x)\displaystyle f(x) is close to xx=1\displaystyle {\frac{x}{x}}={1}: the asymptote y=1\displaystyle {y}={1} as x→∞\displaystyle x\to\infty;
  • for large negative x\displaystyle x, x2+1\displaystyle \sqrt{x^2+1} is close to −x\displaystyle -x, so f(x)\displaystyle f(x) is close to x−x=−1\displaystyle {\frac{x}{-x}}={-1}: the asymptote y=−1\displaystyle {y}={-1} as x→−∞\displaystyle x\to-\infty.
f(x)=xx2+1\displaystyle f(x)=\frac{x}{\sqrt{x^{2}+1}}
y=1\displaystyle y=1
y=−1\displaystyle y=-1
An asymptote on one side only

A function may also have a horizontal asymptote on one side and grow without end on the other. The example below shows it for f(x)=x2+4−x\displaystyle {f(x)}={\sqrt{x^2+4}-x}:

  • as x→∞\displaystyle x\to\infty both terms grow, so the difference is not clear at once; multiplying and dividing by x2+4+x\displaystyle \sqrt{x^2+4}+x gives f(x)=(x2+4)−x2x2+4+x=4x2+4+x\displaystyle {f(x)}={\frac{(x^2+4)-x^2}{\sqrt{x^2+4}+x}}={\frac{4}{\sqrt{x^2+4}+x}}, which approaches 0: the asymptote y=0\displaystyle {y}={0} on the right;
  • as x→−∞\displaystyle x\to-\infty, x2+4\displaystyle \sqrt{x^2+4} grows and −x\displaystyle -x grows too: f(x)\displaystyle f(x) grows without end, and there is no asymptote on the left.
f(x)=x2+4−x\displaystyle f(x)=\sqrt{x^{2}+4}-x
A vertical asymptote at the end of the domain

A root in a denominator is 0 at the end of the domain, so the function may grow without end there – but from one side only, the side of the domain. For f(x)=1x−1\displaystyle {f(x)}={\frac{1}{\sqrt{x-1}}}:

  • the domain is x>1\displaystyle x>1;
  • just right of 1 the denominator is a small positive number: f(x)\displaystyle f(x) grows without end, and x=1\displaystyle {x}={1} is a vertical asymptote;
  • as x→∞\displaystyle x\to\infty, f(x)\displaystyle f(x) approaches 0: the asymptote y=0\displaystyle {y}={0}.
Exercise 1

Find the domain of each function.

a

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

    b

    g(x)=x+2x−3\displaystyle {g(x)}={\sqrt{\frac{x+2}{x-3}}}

      Exercise 2

      The function is f(x)=2xx2+4\displaystyle {f(x)}={\frac{2x}{\sqrt{x^2+4}}}.

      a

      Write on the board the equations of its two horizontal asymptotes.

      f(x)=2xx2+4\displaystyle f(x)=\frac{2x}{\sqrt{x^{2}+4}}

      b

      Which asymptote does the graph approach far to the right, and which far to the left? Explain by x2=∣x∣\displaystyle {\sqrt{x^2}}={|x|}.

      Exercise 3

      Each board shows the graph of one of these functions:

      • f1(x)=4−x2\displaystyle {f_1(x)}={\sqrt{4-x^2}}
      • f2(x)=x4−x2\displaystyle {f_2(x)}={x\sqrt{4-x^2}}
      • f3(x)=x2−4\displaystyle {f_3(x)}={\sqrt{x^2-4}}
      • f4(x)=x2−4x2\displaystyle {f_4(x)}={\frac{\sqrt{x^2-4}}{x^2}}

      Decide by the domain, the sign and the asymptotes, and write the function on the board.

      a
      y= ?\displaystyle y=\,?

      b
      y= ?\displaystyle y=\,?

      Exercise 4

      The function is f(x)=x2+2x−x\displaystyle {f(x)}={\sqrt{x^2+2x}-x}.

      a

      Find the domain of f\displaystyle f.

        b

        f(x)=2xx2+2x+x\displaystyle {f(x)}={\frac{2x}{\sqrt{x^2+2x}+x}} for x>0\displaystyle x>0.
        Write on the board the equation of the asymptote that the graph approaches far to the right.

        f(x)=x2+2x−x\displaystyle f(x)=\sqrt{x^{2}+2x}-x

        c

        What does f(x)\displaystyle f(x) do as x→−∞\displaystyle x\to-\infty? Explain.