Consider a function $$f(x)=\vert{\vert {x-3} \vert -2}\vert$$ for $0\le x\le 4$
And $$g(x)= 4-\vert {2-x}\vert$$ for $-1\le x\le 3$
Where $\vert .\vert$ represents modulus function.
Now the problem is that I want to draw the graph of $f(g(x))$.
Now I could make cases by the finding the critical points of the modulus functions and then plot the graph. But this seems to be a very tedious task. I want to know if there is any other way to plot the graph of such composite functions without taking so much of cases. Any help would be greatly appreciated.
$\mathbf {Edit :} $
CY Aries' method seems to be very appropriate for this question but what if the question asks for some cubic or quadratic function. e. g. $$f(x) = \begin{cases} 1+x^3, & \text{$x\le 0$} \\ x^2-1, & \text{$x\ge 0$} \end{cases}$$
and
$$g(x) = \begin{cases} (x-1)^{\frac{1}{3}}, & \text{$x\le 0$} \\ (x+1)^{\frac{1}{2}}, & \text{$x\ge 0$} \end{cases}$$
Then plot $g(f(x))$. Now that method won't work here. I am also supposed to define the non-uniform function $g(f(x))$
![f[g[x]]](https://i.stack.imgur.com/chqYw.png)
(i) The graph of $y=2-x$
(ii) Taking the modulus function means flipping everything below the $x$-axis to the upper half-plane. The graph of $y=|2-x|$
(iii) The graph of $y=-|2-x|$
(iv) The graph of $y=g(x)=-|2-x|+4$
(v) The graph of $y=g(x)-3$
(vi) The graph of $y=|g(x)-3|$
(vii) The graph of $y=|g(x)-3|-2$
(viii) The graph of $f(g(x))=||g(x)-3|-2|$
If the domain is the set of all real numbers, the graph will be