For what value(s) of p will the quadratic equation x^2+px+7=0 have equal roots?

Given
[tex]x^2+px+7=0[/tex]To find:
For what value(s) of p will the quadratic equation have equal roots?
Explanation:
It is given that,
[tex]x^2+px+7=0[/tex]That implies,
Since the quadratic equation has equal roots.
Then,
[tex]b^2-4ac=0[/tex]From the quadratic equation,
[tex]b=p,\text{ }a=1,\text{ }c=7[/tex]Therefore,
[tex]\begin{gathered} p^2-4\times1\times7=0 \\ p^2-28=0 \\ p^2=28 \\ p=\pm2\sqrt{7} \end{gathered}[/tex]Hence, for p = 2√7 and p = -2√7 the given quadratic equation has equal roots.