4
$\begingroup$

Let's say that I have a function $f(x)=6x^3-5x^2-12x+k$. What should I put in Mathematica to solve the value of $k$ such that $3x+2$ is a factor of $f(x)$?

$\endgroup$
1
  • $\begingroup$ Straightforward maniac computation: Table[{k, Factor[6 x^3 - 5 x^2 - 12 x + k]}, {k, -6, 6}] // Column shows k==-4. More finely: f[x_, k_] := 6 x^3 - 5 x^2 - 12 x + k; Solve[f[-(2/3), k] == 0, k] $\endgroup$
    – Artes
    Commented Dec 17, 2016 at 17:43

2 Answers 2

11
$\begingroup$

One liner:

Solve[PolynomialRemainder[6 x^3 - 5 x^2 - 12 x + k, 3 x + 2, x] == 0, k]
$\endgroup$
5
  • $\begingroup$ Whoops, didn't notice the flip. Thanks @Runny! $\endgroup$ Commented Dec 22, 2016 at 10:11
  • $\begingroup$ you're welcome. $\endgroup$
    – RunnyKine
    Commented Dec 22, 2016 at 17:51
  • $\begingroup$ @RunnyKine I observe that you have largely stopped posting here. Is everything OK? I hope that you find the time and interest to participate more actively as you once did. $\endgroup$
    – Mr.Wizard
    Commented Dec 24, 2016 at 18:55
  • $\begingroup$ @Mr.Wizard. Thanks for the concern. I hope to start participating actively again soon. Just not in the right state of mind currently. Thanks again. $\endgroup$
    – RunnyKine
    Commented Dec 24, 2016 at 20:27
  • $\begingroup$ @RunnyKine I am glad you are well and I completely understand needing to be in the right mood for it. Should you move on to other things let me say thanks for all your contributions; I have some sense of the time involved in that. $\endgroup$
    – Mr.Wizard
    Commented Dec 24, 2016 at 20:37
2
$\begingroup$
f[x_] := 6 x^3 - 5 x^2 - 12 x
poly = f[x] - f[-2/3]

so

PolynomialRemainder[poly, 3 x + 2, x]

yields 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.