Answer
$f(x)=x^2-x$
Work Step by Step
Since, the derivative is given as: $f'(x)=2x-1$.
General form of the function is: $f(x)=x^2-x+C$
Since, the graph of the given function passes through $(0,0)$ .
Thus, $f(0)=0 \implies 0^2-0+C \implies C=0$
Hence, $f(x)=x^2-x$