Use the graph of f(x) = log x to obtain the graph of g(x) = log x + 5.

The graph of g(x) = f(x) + 5 will have the graph of f(x) moved 5 units upward. The best choice is the last one.
_____
Adding 5 to each y-value (the output of f(x)) moves it upward by 5 units.
Answer:
Option D
Step-by-step explanation:
Given : f(x) = log x
g(x) = log x + 5.
Solution:
Rule : f(x)→f(x)+b
Graph f(x) is translated up by b units
Now using this rule
f(x) = log x→g(x) = log x + 5.
So, f(x) is translated up by 5 units to obtain g(x).
In option D the graph is translated up by 5 units.
Thus Option D is correct.
Refer the attached graph for the translation.