How can I do the indefinite integral using the chain rule on the second pic? The derivative looks like it was divided by 2