The correct option is B −3,−15
Given equation is x2+px+45=0.
Let a,b be the roots of the equation.
Then,
a+b=−p
ab=45
It is given that,
(a−b)2=144
(a+b)2−4ab=144
⇒p2−4×45=144
⇒p2=324
⇒p=±18
Substituting p=18 in the given equation, we obtain
x2+18x+45=0
⇒(x+3)(x+15)=0
⇒x=−3,−15
Substituting p=−18 in the given equation, we obtain
x2−18x+45=0
(x−3)(x−15)=0
⇒x=3,15
Hence, the roots of the given equation are −3,−15 or 3,15