[tex]\bf \qquad \qquad \qquad \qquad \textit{function transformations}
\\ \quad \\\\
\begin{array}{rllll}
% left side templates
f(x)=&{{ A}}({{ B}}x+{{ C}})+{{ D}}
\\ \quad \\
y=&{{ A}}({{ B}}x+{{ C}})+{{ D}}
\\ \quad \\
f(x)=&{{ A}}\sqrt{{{ B}}x+{{ C}}}+{{ D}}
\\ \quad \\
f(x)=&{{ A}}(\mathbb{R})^{{{ B}}x+{{ C}}}+{{ D}}
\\ \quad \\
f(x)=&{{ A}} sin\left({{ B }}x+{{ C}} \right)+{{ D}}
\end{array}[/tex]
[tex]\bf \begin{array}{llll}
% right side info
\bullet \textit{ stretches or shrinks horizontally by } {{ A}}\cdot {{ B}}\\\\
\bullet \textit{ flips it upside-down if }{{ A}}\textit{ is negative}
\\\\
\bullet \textit{ horizontal shift by }\frac{{{ C}}}{{{ B}}}\\
\qquad if\ \frac{{{ C}}}{{{ B}}}\textit{ is negative, to the right}\\\\
\qquad if\ \frac{{{ C}}}{{{ B}}}\textit{ is positive, to the left}\\\\
\end{array}[/tex]
[tex]\bf \begin{array}{llll}
\bullet \textit{ vertical shift by }{{ D}}\\
\qquad if\ {{ D}}\textit{ is negative, downwards}\\\\
\qquad if\ {{ D}}\textit{ is positive, upwards}\\\\
\bullet \textit{ period of }\frac{2\pi }{{{ B}}}
\end{array}[/tex]
now, with that template above in mind, let's see this one
[tex]\bf parent\implies f(x)=|x|
\\\\\\
\begin{array}{lllcclll}
f(x)=&3|&1x&+2|&+4\\
&\uparrow &\uparrow &\uparrow &\uparrow \\
&A&B&C&D
\end{array}[/tex]
A=3, B=1, shrunk by AB or 3 units, about 1/3
C=2, horizontal shift by C/B or 2/1 or just 2, to the left
D=4, vertical shift upwards of 4 units
check the picture below