Question
Question: If a and b are the roots of the quadratic equation \({{x}^{2}}+px+12=0\) with the condition \(a-b=1\...
If a and b are the roots of the quadratic equation x2+px+12=0 with the condition a−b=1, then the value of ‘p’ is:
(). 1
(). 7
(). -7
(). +7 or -7
Solution
Hint: We will use the formula of sum of roots and product of roots. And with the help of that we can find the value of a + b and ab. Then we will use the formula (a−b)2=(a+b)2−4ab and then we will substitute all the values that we know to find the value of p.
Complete step-by-step answer:
If the equation is ax2+bx+c=0 and roots are α and β,
Then the formula for sum of roots is: α+β=a−b
The formula for product of roots is: αβ=ac
Using the above formula for the equation x2+px+12=0 we get,
The sum of roots as: a+b=−p........(1)
The product of roots as: ab=12.........(2)
Now we have been given that a – b = 1
Now using the formula (a−b)2=(a+b)2−4ab and substituting the values from (1) and (2) we get,
(1)2=(−p)2−4(12)1=p2−48p2=49p=±7
Hence, from this we get the value of p as +7 and -7.
Hence, the correct answer is option (d).
Note: The formula for sum of roots and product of roots must be kept in mind. And how we have used (a−b)2=(a+b)2−4ab this formula to solve this question easily. One can also solve this question by finding the value of a and b in terms of p and then substituting it in a – b = 1, and from there also we can find the value of p.