Step 1: Understand the given equation:
We are given the quadratic equation:
\[
x^2 + x - p(p + 1) = 0
\]
We need to find the roots of this quadratic equation.
Step 2: Use the quadratic formula:
The general form of a quadratic equation is \( ax^2 + bx + c = 0 \). The quadratic formula to find the roots of such an equation is:
\[
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\]
For the given equation \( x^2 + x - p(p + 1) = 0 \), we have:
- \( a = 1 \)
- \( b = 1 \)
- \( c = -p(p + 1) \)
Substitute these values into the quadratic formula:
\[
x = \frac{-1 \pm \sqrt{1^2 - 4(1)(-p(p + 1))}}{2(1)}
\]
Simplify the discriminant:
\[
x = \frac{-1 \pm \sqrt{1 + 4p(p + 1)}}{2}
\]
Simplify the expression inside the square root:
\[
x = \frac{-1 \pm \sqrt{1 + 4p^2 + 4p}}{2}
\]
\[
x = \frac{-1 \pm \sqrt{(2p + 1)^2}}{2}
\]
Since \( \sqrt{(2p + 1)^2} = |2p + 1| \), we have two cases for the roots:
Step 3: Case 1: Positive root:
\[
x = \frac{-1 + (2p + 1)}{2} = \frac{2p}{2} = p
\]
Step 4: Case 2: Negative root:
\[
x = \frac{-1 - (2p + 1)}{2} = \frac{-2p - 2}{2} = -(p + 1)
\]
Step 5: Conclusion:
The roots of the quadratic equation \( x^2 + x - p(p + 1) = 0 \) are \( \boxed{p} \) and \( \boxed{-(p + 1)} \).