After we looked at the last example today I realized I should have been more clear about the restrictions on the composition problems we looked at.
For the problems we looked at, like `sin(tan^-1(x))`, you need to make sure that `x` is in the domain of `tan^-1(x)`. But once you do that, then really the only question is – are any of those values not allowed in `sin(x)`? For this example since inverse tangent accepts all real numbers and sine can evaluate all real numbers, we have no restriction, and `x in RR`.
My statement that `x` has to be in the domain of the inside function and in the range of the outside function helps us to avoid mistakes like `cos^-1(cos(10))=10`. This is not true although very tempting. In order for this to be true, 10 would have to be in the range of `cos^-1(x)`, which it isn’t. The range of `cos^-1(x)` is `[0,pi]`.