Cubic Coefficients and Quotient Discriminant
Cubic Coefficients and Quotient Discriminant
Recover the two unknown middle coefficients of a cubic from a remainder and a known linear factor, then classify the roots of its quadratic quotient.
- 101 bytes
- COMP mode
Worked examples
Example 1
Original practice. Find h,k and the discriminant of Q(x)=f(x)/(px+q). f(x)=3x³+hx²+kx−2; f(−1)=4; (x+2)∣f(x).
Answer
Standard solution (without a calculator)
- h−k=9; 2h−k=13 ⇒ h=4,k=−5
- f(x)=(x+2)(3x²−2x−1)
- Δ=(−2)²−4(3)(−1)=16
- Expand or substitute to verify each equality above.
Example 2
Original practice. Find h,k and the discriminant of Q(x)=f(x)/(px+q). f(x)=4x³+hx²+kx−9; f(−2)=−63; (−2x+3)∣f(x).
Answer
Standard solution (without a calculator)
- 2h−k=−11; 3h+2k=−6 ⇒ h=−4,k=3
- f(x)=(−2x+3)(−2x²−x−3)
- Δ=(−1)²−4(−2)(−3)=−23
- Expand or substitute to verify each equality above.
Example 3
Original practice. Find h,k and the discriminant of Q(x)=f(x)/(px+q). f(x)=6x³+hx²+kx−4; f(−3)=−352; (3x−2)∣f(x).
Answer
Standard solution (without a calculator)
- 3h−k=−62; 2h+3k=10 ⇒ h=−16,k=14
- f(x)=(3x−2)(2x²−4x+2)
- Δ=(−4)²−4(2)(2)=0
- Expand or substitute to verify each equality above.
When to use it
Recover the two unknown middle coefficients of a cubic from a remainder and a known linear factor, then classify the roots of its quadratic quotient.
Input order
- a,d,m,R,p,q
- A=a; D=d; X=m→k; Y=R→h; B=p; C=q; M=−q/p
- Enter every value afresh; blank EXE retains old memory and is not zero. All working variables and Ans may be overwritten.
Output order
- h,k,Δ(Q)
- Only the x² and x coefficients may be unknown. Require integer a,d,m,R,p,q: 0<|a|≤50, 0<|d|≤100, 0<|m|≤10, |R|≤1000, 0<|p|,|q|≤10 and mp≠q. Keep the original divisor px+q, including its sign and scale. Outputs are h,k,Δ of the quotient by that divisor. A negative quotient discriminant does not remove the known cubic root −q/p. Unsupported zero inputs or coincident conditions can give Math ERROR. Very large coefficients or nearly coincident evaluation points are unreliable. Norm 1 remains active after completion.
Conditions and limits
- Use COMP and Norm 1; the images use Deg, which does not change this algebra.
- a,d,m,R,p,q∈ℤ; 0<|a|≤50; 0<|d|≤100; 0<|m|≤10; |R|≤1000; 0<|p|,|q|≤10; mp≠q
- Only the x² and x coefficients may be unknown. Require integer a,d,m,R,p,q: 0<|a|≤50, 0<|d|≤100, 0<|m|≤10, |R|≤1000, 0<|p|,|q|≤10 and mp≠q. Keep the original divisor px+q, including its sign and scale. Outputs are h,k,Δ of the quotient by that divisor. A negative quotient discriminant does not remove the known cubic root −q/p. Unsupported zero inputs or coincident conditions can give Math ERROR. Very large coefficients or nearly coincident evaluation points are unreliable. Norm 1 remains active after completion.
- Use the original equation to check signs, excluded values and endpoint inclusion. Decimal screens are numerical approximations; preserve exact fractions or radicals in written answers.
Checking access…