Answer
$y=10x-\dfrac{x^2}{2}-1$
Work Step by Step
The anti-derivative for $\dfrac{dy}{dx}=10-x$ is $y=10x-\dfrac{x^2}{2}+C$
Now, apply the initial conditions in $y=10x-\dfrac{x^2}{2}+C$ to get the value of$C$.
This implies $0+C=-1$ and $ C=-1$
Hence,$y=10x-\dfrac{x^2}{2}-1$