Concept:
- A definite integral with an unknown limit evaluates to a specific number; substituting the limits into the antiderivative converts this into an ordinary algebraic equation in the unknown limit.
- Once that equation is a quadratic, both of its roots can be obtained directly from the quadratic formula, and then added together, instead of relying on a shortcut formula for the sum of roots.
Step 1: Evaluate the integral and form the equation.
$\int_1^a (2x+1)\,dx = [x^2+x]_1^a = (a^2+a) - (1+1) = a^2+a-2$
Setting this equal to the given value 5:
$a^2+a-2 = 5$
$a^2+a-7 = 0$
Step 2: Solve the quadratic equation using the quadratic formula.
For $Ax^2+Bx+C=0$, the roots are $a = \dfrac{-B \pm \sqrt{B^2-4AC}}{2A}$.
Here $A=1, B=1, C=-7$, so the discriminant is $D = 1^2-4(1)(-7) = 1+28 = 29$.
$a = \dfrac{-1 \pm \sqrt{29}}{2}$
Step 3: Add the two roots directly.
$a_1 = \dfrac{-1+\sqrt{29}}{2}$, $a_2 = \dfrac{-1-\sqrt{29}}{2}$
$a_1+a_2 = \dfrac{(-1+\sqrt{29})+(-1-\sqrt{29})}{2} = \dfrac{-2}{2} = -1$
Final Answer: The sum of all values of $a$ is $-1$.