Finding the Parameter for a Repeated Root
Finding the Parameter for a Repeated Root
Finds every real k for which x² + kx + pk + q = 0 has a repeated root, with the root for each k.
- 162 bytes
- COMP mode
Worked examples
Example 1
Let k be a real constant. The quadratic equation x² + k(x + 2) + 5 = 0 has a repeated root. What is the sum of all possible values of k?
Answer
Standard solution (without a calculator)
- State the repeated-root condition: the equation is x² + kx + 2k + 5 = 0; the coefficient of x² is 1, so it is a quadratic for every k. A repeated root occurs exactly when the discriminant is 0: k² − 4(2k + 5) = 0.
- Solve the equation in the parameter: k² − 8k − 20 = 0 factorises as (k + 2)(k − 10) = 0, so k = −2 or k = 10, and their sum is 8. The answer is D.
- Check each case: for k = −2 the equation becomes x² − 2x + 1 = (x − 1)² = 0, with repeated root x = 1; for k = 10 it becomes x² + 10x + 25 = (x + 5)² = 0, with repeated root x = −5. Both values really give a repeated root.
- Check the options: the sum of the roots of the k equation is also 8 directly, from −(−8)/1. −8 has the wrong sign, −2 is only one of the two values and 4 is half the sum. For the program enter p = 2 and q = 5; it shows N = 2, then −2, 1, 10, −5.
Example 2
Let k be a real constant. In the rectangular coordinate plane the parabola y = x² + kx − 3k + 16 touches the x-axis. Answer the following and show the necessary steps.
(a) Find all possible values of k.
(b) For each possible k, find the coordinates of the point of contact and state the pairing clearly.
Answer
Standard solution (without a calculator)
- Turn tangency into a repeated root: points on the x-axis have y = 0, so the x-coordinates of the common points satisfy x² + kx − 3k + 16 = 0. The coefficient of x² is fixed at 1; touching the x-axis means this equation has a repeated root.
- All parameters: set the discriminant to 0: k² − 4(−3k + 16) = 0, that is k² + 12k − 64 = 0. Factorising gives (k + 16)(k − 4) = 0, so (a) k = −16 or 4.
- First point of contact: for k = −16 the curve is y = x² − 16x + 64 = (x − 8)². Only x = 8 gives y = 0, so the point of contact is (8, 0).
- Second point of contact: for k = 4 the curve is y = x² + 4x + 4 = (x + 2)². Only x = −2 gives y = 0, so the point of contact is (−2, 0).
- Check the pairing: both perfect squares have minimum value 0, reached only at the x listed, so both touch the x-axis. The answer must pair k = −16 with (8, 0) and k = 4 with (−2, 0); the two points must not be swapped.
Example 3
Let k be a real constant. In the same rectangular coordinate plane two parabolas have equations y = 2x² + kx + 3k − 9 and y = x². They have exactly one common point. Answer the following and show the necessary steps.
(a) Find k.
(b) Find the coordinates of the unique common point.
Answer
Standard solution (without a calculator)
- Eliminate y: a common point satisfies both equations, so 2x² + kx + 3k − 9 = x². Rearranged: x² + kx + 3k − 9 = 0. Each x found gives only one y on y = x².
- Parameter from the unique point: the coefficient of x² is now 1, so exactly one common point means a repeated root. Setting the discriminant k² − 4(3k − 9) = 0 gives k² − 12k + 36 = (k − 6)² = 0, so the only possible parameter is k = 6.
- Both coordinates: for k = 6 the equation is x² + 6x + 9 = (x + 3)² = 0, so x = −3. Substituting into y = x² gives y = 9, so the point is (−3, 9).
- Check independently: putting k = 6 and x = −3 into the other curve gives y = 2(−3)² + 6(−3) + 3(6) − 9 = 9, the same as y = x². The difference of the two right-hand sides is (x + 3)², which is 0 only at x = −3, so the common point is unique.
When to use it
DSE questions often say that a quadratic in x has equal roots, that a parabola touches the x-axis, or that two curves have exactly one common point, and then ask for the parameter k. When the equation can be written x² + kx + pk + q = 0 with known p and q, the condition Δ = 0 becomes (k − 2p)² = 4(p² + q). 028 takes p and q, shows how many real values of k work (N = 0, 1 or 2), then each k in increasing order, each followed by its repeated root x = −k ÷ 2. You still have to set up the equation, eliminate y and read the question.
What it is for
- Finding all real k for which x² + kx + pk + q = 0 has a repeated root
- A parabola touching the x-axis, or two curves with exactly one common point (after eliminating y, when the coefficient of x² becomes 1)
- Pairing each k with its repeated root, which gives the x-coordinate of the point of contact or intersection
What you enter
- A: p, the signed multiplier of k in the constant part
- B: q, the rest of the constant part, without k
- For −3k + 16 enter −3 then 16; keep the minus sign, keyed with (−)
What it shows
- N = 2: the values 2, k₁, x₁, k₂, x₂ (k in increasing order, each followed by its root)
- N = 1: the values 1, k, x. N = 0: only 0
- N counts the possible values of k, not the roots of the original equation; N = 0 does not mean the equation has no real root
Check before use
- Only x² + kx + pk + q = 0 is handled directly; p and q are known coefficients and k is the unknown parameter. Move terms and collect like terms first if needed.
- At A? enter p and at B? enter q. If the constant part is −3k + 16, enter −3 and then 16; the minus sign must not be left out.
- N = 2: read 2, k₁, x₁, k₂, x₂. N = 1: read 1, k, x. N = 0: only 0. N is the number of possible values of k, not the number of roots x of the original equation, and N = 0 does not mean the original equation has no real root.
- Use COMP. The example uses P1, but another empty area works too and the angle unit does not matter. The program sets Norm 1 itself and uses A, B, C, D, X, Y and Ans; it does not use M.
- A blank EXE keeps the previous coefficient; it is not 0. When Disp shows, press EXE to continue; the final result has no Disp, and another EXE reruns the program.
- When p² + q is very close to 0, only integers p and q with absolute value below 10¹⁰ are accepted. For example p = 0.5, q = −0.25 has a mathematical answer, but this program still gives Math ERROR; see the method section for the reason.
- Very large, very small or unreliable borderline data may give Math ERROR; this is not the same as N = 0. Precision already lost in the input expression cannot be recovered, so do not turn an exact fraction into a rough decimal first.
- For points of contact or intersection you still have to substitute x to find y; for an inequality range the program gives only the repeated-root boundary values. If the coefficient of x² contains the unknown parameter, the case where it becomes 0 needs separate treatment.
- The screen pictures follow the key presses of each example; if your screen differs, check the inputs and the program first.
Checking access…