Limited access

Upgrade to access all content for this subject

For two functions $f, g$ such that the image of $g$ is contained in the domain of $f$, define the composition $f\circ g$ of $f$ and $g$ by $(f\circ g)(x)=f(g(x))$, for all $x$ in the domain of $g$.

In this question, we assume $x$ takes values in $\mathbb{R}$, and we denote by $|x|$ the absolute value of $x\in\mathbb{R}$.

For $x\ge 0$, we always assume that $\sqrt{x}\ge0$. That is, we choose the nonnegative square root.

For which of the following pairs of functions $g, f$ do we have​ $g\circ f=f\circ g$?

Select ALL that apply.


$f(x)=x^2$ and $g(x)=\sqrt{|x|}$


$f(x)=(x-1)^2$ and $g(x)=\sqrt{|x|}+1$


$f(x)=2x$ and $g(x)=x+1$


$f(x)=2x$ and $g(x)=\frac12 x$


$f(x)=x-1$ and $g(x)=\frac1{|x|+1}$

Select an assignment template