Find the function with the given derivative whose graph passes through the point P.

1.)

2.)

Can someone please explain what I have to do here. I'm pretty sure it involves anti-derivatives, but I've never done them before. If you could, could you explain step by step how to do them. Any help is appreciated, thanks.