First, recognize that a function of t is independent of x and is therefore a constant with respect to x, this turns the integral into:

Now, solve the integral, which is just x evaluated from 0 to x:

Now we take the derivative, which is just -1: