Yes, they are the same.

Let F(x) be an anti-derivative of f(x) and G(t) be an anti-derivative of g(t).

Then and . Your solution becomes which can be written .

Now, suppose you used indefinite integrals: and so you would have or just where . Now put , into that: so . That gives , exactly the same answer as above.