Under what conditions for f'(x) and f''(X) can a graph be " straight" wthout being horizontal?

f'(x) must be constant but not zero.

f''(x) will be zero is the first condition is met.