Let g(x):=log(f(x)). Notice g′(x)=f(x)f′(x).
In order to show that the two curves have horizontal tangent lines at the same values of x, we will show two things: first, that if f(x) has a horizontal tangent line at some
value of x, then also g(x) has a horizontal tangent line at that value of x.
Second, we will show that if g(x) has a horizontal tangent line at some
value of x, then also f(x) has a horizontal tangent line at that value of x.
Suppose f(x) has a horizontal tangent line where x=x0 for some point x0. This means f′(x0)=0. Then g′(x0)=f(x0)f′(x0). Since f(x0)=0, f(x0)f′(x0)=f(x0)0=0, so g(x) also has a horizontal tangent line when x=x0. This shows that whenever f has a horizontal tangent line, g has one too.
Now suppose g(x) has a horizontal tangent line where x=x0 for some point x0. This means g′(x0)=0. Then g′(x0)=f(x0)f′(x0)=0,
so f′(x0) exists and is equal to zero.
Therefore, f(x) also has a horizontal tangent line when x=x0. This shows that whenever g has a horizontal tangent line, f has one too.
Remark: if we were not told that f(x) gives only positive numbers, it would not necessarily be true that f(x) and log(f(x)) have horizontal tangent lines at the same values of x. If f(x) had a horizontal tangent line at an x-value where f(x) were negative, then log(f(x)) would not exist there, let alone have a horizontal tangent line.