Answer
$y=x^2-7x+10$
Work Step by Step
The anti-derivative for $\dfrac{dy}{dx}=2x-7$ is $y=x^2-7x+C$
Now, apply the initial conditions in equation $y=x^2-7x+C$ for solving the value of $C$.
This impliest $2^2-7(2)x+C=0 $ and $ C=10$
Hence, $y=x^2-7x+10$