Find the function f given that the slope of the tangent line to the graph at any point (x,f(x)) is f'(x) and that the graph of f passes through the given point.

a. f'(x)=3x²-4x+1; (1,1)
b. f'(x)=1-e⁻ˣ ; (0, 2)