The integral is .
Substitute .
Apply derivative on each side with respect to .
.
Substitute and .
As then .
From the figure .