5 Each of the graphs of \(y = \mathrm { f } ( x )\) and \(y = \mathrm { g } ( x )\) below is obtained using a sequence of two transformations applied to the corresponding dashed graph. In each case, state suitable transformations, and hence find expressions for \(\mathrm { f } ( x )\) and \(\mathrm { g } ( x )\).
\includegraphics[max width=\textwidth, alt={}, center]{8b8958be-0ebc-4f72-ac3f-c16a8ec9e4ab-2_430_712_1366_680}
\includegraphics[max width=\textwidth, alt={}, center]{8b8958be-0ebc-4f72-ac3f-c16a8ec9e4ab-2_394_608_1925_731}