Domain of the composition of functions

138 Views Asked by At

If $f(x) = x^2$ and $g(x) = \sqrt{x-1}$, find $f(g(x))$ and specify the domain.

My solution

$$ f(g(x)) = \left(\sqrt{x-1}\right)^2 = x-1, $$ Domain: $x$ such that $x$ is any real number.

Solution at the back of the book states that the domain is, $x$ such that $x \ge 1$.

Now I understand why that is the domain for $g(x)$, for any number less than 1 would make $g(x)$ negative and the square root of a negative number is an imaginary number.

But, that is not the cases with $f(g(x))$. When is $(\sqrt{x-1})^2$ not a real number? isn't any input valid?

2

There are 2 best solutions below

0
On BEST ANSWER

I think you have to differentiate between $$ f(g(x)) = \left(\sqrt{x-1}\right)^2 $$ and $h(x) = x-1$. For $h(x)$, indeed the domain are all reals, but $f(g(x))$ is defined to only take the output of $g(x)$, so you have to go through $g(x)$ first, resulting in the domain being $x \ge 1$.

4
On

Another way to put the answer, which has already been given, is that it’s not always the case that $\left(\sqrt{x-1}\right)^2=x-1$! This equation holds if and only if $x\ge 1$. If $x=0$, for instance, then the left hand is undefined while the right is $-1$. So it’s incorrect to simplify this composite to $x-1$ without explicitly restricting the domain.