Using integration by parts to evaluate an integrals Can't understand how to solve this math: use integration by parts to evaluate this integrals:
$$\int x\sin(2x + 1) \,dx$$
can any one solve this so i can understand how to do this! Thanks :)

The idea behind integrating by parts is the following. If $u,v$ are functions of $x$ then using the chain rule we know that:
$$\frac{d(uv)}{dx}=\frac{du}{dx}v+u\frac{dv}{dx}$$
Thus, integrating throughout with respect to $x$, we get:
$$uv = \int{\frac{d(u)}{dx}v dx} + \int{u\frac{dv}{dx}}$$
Or in other words:
$$\int{\frac{du}{dx}v dx} = uv - \int{u\frac{dv}{dx}}$$
So, on the left is an integral and on the right is a product of two functions and another integral. So, when we have to do an integral using integration by parts the strategy is to choose $u$ and $v$ carefully so that:
Step 1: We choose what part of the integrand represents $\frac{du}{dx}$ such that we can identify the function $u$ which when differentiated with respect to $x$ gets us that part of the integrand
and
Step 2: Choose which part of the integrand represents $v$.
The ultimate goal is to reduce the integral (the one on the left) we have to solve by another integral (the one on the right) which hopefully is easier to solve given a judicious choice of $u$ and $v$.
Let us examine the above strategy in your example. We have:
$$\int{x\sin(2x+1)dx}$$
Step 1: Suppose, we try $u=-0.5\cos(2x+1)$
$$\frac{d[-0.5 \cos(2x+1)]}{dx}=\sin(2x+1)$$
and
Step 2: And set $v=x$
$$\frac{d(x)}{dx}=1$$
Thus, setting $u=-0.5\cos(2x+1)$ and $v=x$ may get us a simpler integral to work with. So, we get:
$$\int{x\sin(2x+1)dx} = x[-0.5\cos(2x+1)]-\int{-0.5\cos(2x+1)dx}$$
The integral on the right $\int{-0.5\cos(2x+1)dx}$ is indeed simpler and easy to solve.
Hopefully, the above will help with not just this particluar integral but any future integrals you need to do using integration by parts.
