Answer
$y=x^2-7x+10$
Work Step by Step
We need to find the anti-derivative for $\dfrac{dy}{dx}=2x-7$
Thus, we have $y=x^2-7x+C$
Apply the initial conditions in the above equation to solve for $C$.
we get $2^2-7(2)x+C=0 \implies C=10$
Hence, $y=x^2-7x+10$