What is the dervative of e^((5x^2)+(3x)-(7))?

Is it (10x+3)(e^((5x^2)+(3x)-(7))) or 10x+3(e^((5x^2)+(3x)-(7)))

e^((5x^2)+(3x)-(7))

d/dx(e^u) = e^u du/dx
= (10x+3) e^(5x^2 + 3x - 7)

why would you even consider the 2nd choice?