1
$\begingroup$

I have gotten the code to do polynomial long division, but I want my students to also factor the solution if possible.enter image description here

$\endgroup$
  • 2
    $\begingroup$ Could you clarify what your question is exactly? Also, please post code rather than images. $\endgroup$ – MarcoB Dec 1 '19 at 4:42
  • $\begingroup$ The solution x^2+7x+10 can be factored further, is there a way to add code so that the final solution is in simplest/factored form. $\endgroup$ – Nicole Margaret Herra Dec 1 '19 at 22:10
  • $\begingroup$ With Mathematica or Wolfram Alpha? $\endgroup$ – C. E. Dec 2 '19 at 14:16
2
$\begingroup$
poly1 = (x^3 + 3 x^2 - 18 x - 40);
poly2 = (x - 4);

query = "polynomial long division (" <> ToString[poly1, InputForm] <> 
  ")/(" <> ToString[poly2, InputForm] <> ")";

WolframAlpha[query, {{"QuotientAndRemainder"}, "Content"}, 
 PodStates -> {"QuotientAndRemainder__Step-by-step solution"}]

enter image description here

(quotient = poly1/poly2 // Simplify) // TraditionalForm

enter image description here

(quotient // Factor) // TraditionalForm

enter image description here

$\endgroup$

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