Hi again I'm tackling a question that is very likely to be on a future exam, and I'm a bit stuck.
The question:
g(x){ 0 if x<2
2 if 2<x<4
-1 if x>4
Sketch the graph of a continuous function f(x) knowing that f(0)=1, and f'(x) = g(x)
Graphing g(x) is not a problem, but understanding how to formulate a seperate function with just the info given is a major roadblock.
Any suggestions would be helpful.

