I am now trying to understand functions, inverses and composites. I must admit am not getting a thing. But following some leads, I managed to work one as below. Is this a good understanding on hows and whys?
Find the inverse of function $ y=\sqrt{6+x}$
$ y=\sqrt{6+x}$ can be expanded as $y^2=6+x$
solving for $x$ we get $x=y^2-6$
swapping the position of $x$ and $y$ we get $y=x^2-6$
$ \therefore$ the inverse of $y=\sqrt{6+x}$ is $$y=x^2-6$$
Careful here, your work is actually correct (the swapping method is in fact standard), except that you must keep track of your domain. The inverse of $y=\sqrt{6+x}$ is $y=x^2-6$, and your work is absolutely correct. However the domain on $\sqrt{6+x}$ is $x \geq -6$, hence on the inverse, we have that $y \geq -6$.
Now for the inverse $y=x^2-6$, since $y \geq -6$, it follows that $x \geq 0$ as, $$x^2 -6 \geq -6 \Rightarrow x^2 \geq 0 \Rightarrow x \geq 0.$$ Now if you plot the two solutions you will have something that looks like this.
If you do not keep track of your domains and ranges like this, then your work is wrong as the inverse must be 1-1, and the inverse of the inverse must also be 1-1. The inverse of the inverse must give the function you started with on the correct domain.