A function assigns the values. The function g(x) can be written as g(x) = -3x + 12.
A function assigns the value of each element of one set to the other specific element of another set.
Given the function f(x)=-x, now since a transformed function g(x) is produced by shifting the function 4 units upwards and vertical stretch by a factor of 3. Therefore, g(x) can be written as,
Vertical Shift by 4 units,
f(x)+4
Vertical stretch by a factor of 3
g(x) = 3(f(x) + 4)
g(x) = -3x + 12
Hence, the function g(x) can be written as g(x) = -3x + 12.
Learn more about Function:
https://brainly.com/question/5245372
#SPJ1