We will use integration by parts to evaluate the integral. The formula for integration by parts is
∫udv=uv−∫vdu. Let u=x and dv=e−2xdx. Then du=dx and v=∫e−2xdx=−21e−2x. Substituting these values into the integration by parts formula, we have
∫xe−2xdx=x(−21e−2x)−∫(−21e−2x)dx =−21xe−2x+21∫e−2xdx =−21xe−2x+21(−21e−2x)+C =−21xe−2x−41e−2x+C =−41e−2x(2x+1)+C.