I am working through the proof of taylor's theorem going from this step:

to this step:

for the integral in the first equation I have

so for uv I get the 0.5*(x-a)^2*f''(a) just fine.

but for integral of u'v I get:

and if i integrate and evaluate the extra term, it does not seem to help.

Which step/s are incorrect?