We know function g(x) is obtained from f(x)

transformations we use for g(x) are

\(f(x)g=|x|\) reflection of f(x) with x−axis

\(=>-∣x∣\)

then we shift our resultant graph by 5 units towards left on x axis

\(=>-∣x−5∣\)

then at last shift the resultant graph by 1 unit towards upward

\(g(x)=-x∣x−5∣∣+1\)