If $f(x)$ is defined for all $x>-2$ as the square root of the number that is $2$ more than $x$, what is the value of $f(7) - f(-1)$?
My attempted solution:
$f(x) = \sqrt{x + 2}$
Now, $f(7) = \sqrt{7 + 2} = \pm3$
and,
$f(-1) = \sqrt{-1 + 2} = \pm1$.
So, $f(7) - f(-1) = 2, 4, -4, -2$.
Given answer is, $2$ only.
Why?
The given answer is taking what is referred to as the principal square root, rather like $x=\frac{\pi}{6}^c$ or $x=30^0$ is the principal root of $\sin(x)=\frac{1}{2}$, there are many other solutions, but this is the one that is most commonly used, and given by calculatorss.
In this question, it is standard to use the principal square root for equations like these. Hence we get $\sqrt{9}=3, \sqrt{1}=1$, thus $f(7)-f(-1)=3-1=2$