# Integral of the product of a function and its derivative. [closed]

Say I have the indefinite integral $\int g(x)g'(x)~dx$, how would I go about solving this?

## closed as off-topic by Shailesh, C. Falcon, user91500, Namaste, TMMJan 31 '17 at 18:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Shailesh, C. Falcon, user91500, Namaste, TMM
If this question can be reworded to fit the rules in the help center, please edit the question.

Notice that $2g'(x) g(x) = [g(x)^2]'$
$$\int g'(x) g(x) dx = \int [\frac{g(x)^2}{2}]' dx = \frac{g(x)^2}{2}$$
If we write $u=g(x)$ then $du=g'(x)dx$ and so
$$\int g(x)g'(x)~dx=\int udu=\frac{u^2}{2}+c=\frac{[g(x)]^2}{2}+c$$