Skip to content

Derivatives of functions with roots, and root equations

Derivatives of functions with roots, and root equations

A product and a quotient with a root

A function with a root is differentiated by the rules you know, with the derivative of the root of a function:

(f(x))′\displaystyle (\sqrt{f(x)})' =\displaystyle = f′(x)2f(x)\displaystyle \frac{f'(x)}{2\sqrt{f(x)}}

In the two examples below, the last step brings the derivative over one denominator, where its sign is easy to read:

(x4−x2)′=4−x2+x⋅−2x24−x2=(4−x2)−x24−x2=4−2x24−x2\left(x\sqrt{4-x^2}\right)'=\sqrt{4-x^2}+x\cdot\frac{-2x}{2\sqrt{4-x^2}}=\frac{(4-x^2)-x^2}{\sqrt{4-x^2}}=\frac{4-2x^2}{\sqrt{4-x^2}}(xx+1)′=12x⋅(x+1)−x(x+1)2=(x+1)−2x2x(x+1)2=1−x2x(x+1)2\left(\frac{\sqrt{x}}{x+1}\right)'=\frac{\frac{1}{2\sqrt{x}}\cdot(x+1)-\sqrt{x}}{(x+1)^2}=\frac{(x+1)-2x}{2\sqrt{x}(x+1)^2}=\frac{1-x}{2\sqrt{x}(x+1)^2}
  • The first derivative is defined where −2<x<2\displaystyle -2<x<2: at the ends ±2\displaystyle \pm2 of the domain the root in its denominator is 0.
  • The second is defined where x>0\displaystyle x>0: the function is defined at 0, its derivative is not.
A vertical tangent at the end of the domain

At an end of the domain where a root is 0, the derivative usually has no value, and the slopes near it grow without end. For f(x)=x\displaystyle {f(x)}={\sqrt{x}}:

  • f′(x)=12x\displaystyle {f'(x)}={\frac{1}{2\sqrt{x}}}: at x=0.01\displaystyle {x}={0.01} the slope is 5, at x=0.0001\displaystyle {x}={0.0001} it is 50;
  • the tangents get steeper and steeper as x\displaystyle x approaches 0, and the tangent at (0,0)\displaystyle (0,0) is the y\displaystyle y-axis – a vertical tangent;
  • the graph of f′\displaystyle f' has the vertical asymptote x=0\displaystyle {x}={0}.
f(x)=x\displaystyle f(x)=\sqrt{x}
g(x)=12x\displaystyle g(x)=\frac{1}{2\sqrt{x}}
Equations with a root

An equation with a root is solved by squaring both sides, and squaring may add solutions: a=b\displaystyle {a}={b} and a=−b\displaystyle {a}={-b} both give a2=b2\displaystyle {a^2}={b^2}. So every solution of the squared equation is checked in the original one. The example below solves x+3=x+1\displaystyle {\sqrt{x+3}}={x+1}:

  • squaring: x+3=x2+2x+1\displaystyle {x+3}={x^2+2x+1}, that is x2+x−2=0\displaystyle {x^2+x-2}={0}, so x=1\displaystyle {x}={1} or x=−2\displaystyle {x}={-2};
  • x=1\displaystyle {x}={1}: 4=2\displaystyle {\sqrt{4}}={2} and 1+1=2\displaystyle {1+1}={2} – a solution;
  • x=−2\displaystyle {x}={-2}: 1=1\displaystyle {\sqrt{1}}={1} but −2+1=−1\displaystyle {-2+1}={-1} – not a solution: it solves x+3=−(x+1)\displaystyle {\sqrt{x+3}}={-(x+1)}.

A shorter check: the root is never negative, so a solution must have x+1≥0\displaystyle x+1\geq0.

Taking x\displaystyle x into the root

Noam investigated f(x)=x4−x2\displaystyle {f(x)}={x\sqrt{4-x^2}}. To save the product rule, he wrote f(x)=x2(4−x2)=4x2−x4\displaystyle {f(x)}={\sqrt{x^2(4-x^2)}}={\sqrt{4x^2-x^4}}, and his sketch had no negative values at all. The step is right only where x≥0\displaystyle x\geq0:

  • x2(4−x2)=∣x∣4−x2\displaystyle {\sqrt{x^2(4-x^2)}}={|x|\sqrt{4-x^2}}, since x2=∣x∣\displaystyle {\sqrt{x^2}}={|x|};
  • for x<0\displaystyle x<0, x4−x2\displaystyle x\sqrt{4-x^2} is negative, while 4x2−x4\displaystyle \sqrt{4x^2-x^4} is not;
  • so 4x2−x4\displaystyle \sqrt{4x^2-x^4} is a different function: its graph is that of f\displaystyle f with the part left of the y\displaystyle y-axis flipped above the x\displaystyle x-axis.
Exercise 1

Differentiate, and bring each derivative over one denominator.

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

        / – 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

        Exercise 2

        The equation is 2x+7=x+2\displaystyle {\sqrt{2x+7}}={x+2}.

        a

        Square both sides, and solve the equation you get.

          b

          Check each solution in the original equation, and write here only the solutions of the original equation.

            Exercise 3

            The function is f(x)=xx+3\displaystyle {f(x)}={x\sqrt{x+3}}.
            The point (1,2)\displaystyle (1,2) is on its graph.

            a

            Work out the slope of the tangent at the point (1,2)\displaystyle (1,2).

            f(x)=xx+3\displaystyle f(x)=x\sqrt{x+3}

              / – 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

              Write the equation of the tangent on the board.

              f(x)=xx+3\displaystyle f(x)=x\sqrt{x+3}
              (1,2)\displaystyle (1,2)

              Exercise 4

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

              a

              Find f′(x)\displaystyle f'(x).

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

                / – 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

                What happens to f′(x)\displaystyle f'(x) as x\displaystyle x approaches 3 from the left?
                What is the tangent to the graph at the point (3,0)\displaystyle (3,0)?

                Exercise 5

                Dana wrote: x2−6x+9=x−3\displaystyle {\sqrt{x^2-6x+9}}={x-3}.
                For which x\displaystyle x is it true? Explain by m2=∣m∣\displaystyle {\sqrt{m^2}}={|m|}.