HELP?!?!?

okay! so our class is into derivatives, and now into graphs of primes.

to my knowledge, our teacher never fully explained how to get f'(x)=graphed when f(x) is given. i need someone to explain. you don't need to show me the graph-->the answer's in the back of the book. i just need to know how to work it. please? i'm getting quite discouraged. calculus is so fast-paced and i'm a slow learner. but i absolutely love it, i'm such a geek for math. sad, sad story, but okay!

sketch graph of a function "f" for which f(0)=0.

f'(0)=3

f'(1)=0

f'(2)=-1

well, there's another that the answer ISN'T in the back. so if you would like to show me the graph somehow, that would be nice!

g(0)=0

g'(0)=0

g'(-1)=-1

g'(1)=-1

g'(2)=1

disclaimer: i can assure you: i will be here at odd times during this weekend. test wednesday, so sorry if i seem overactive on here soon. i just found this site. !! plz &tyvm.