I came across the problem on Khan Academy while studying differential calculus:
Consider the function $f(x) = e^{2x}(x^2 + 2x)$.
There are two x-coordinates at which $f'(x) = f''(x)$. What is the sum of these two coordinates?
While finding the derivative of $f(x)$, I got everything reduced down to
$$f'(x) = e^{2x}(2x+2) + 2e^{2x}(x^2 + 2x)$$
Khan Academy says this can be further reduced to $e^{2x}(2x^2 + 6x + 2)$, obviously so I can apply the product rule again to find the second derivative, but I have no idea how they made that happen. Can anyone help me understand their algebra?