Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I've been asked to factor the following polynomial:

poly = 6 x^3 + x^2 y - 11 xy^2 - 6 y^3 - 5 x^2 z + 11 xyz + 11 y^2 z - 2 xz^2 - 6 yz^2 + z^3

And to solve for z so that poly = 0

Can anyone help me with the syntax for factoring polynomials with unlike terms in Mathematica?

share|improve this question

marked as duplicate by belisarius, Leonid Shifrin, Jens, Artes, István Zachar Apr 6 '13 at 19:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Here is the answer : mathematica.stackexchange.com/questions/8255/… It's neither too localized nor not a real question, but a duplicate. –  Artes Apr 6 '13 at 18:17
    
It's not the same, really. The link is about 1D polys with complex-valued roots. This is about multi-D polys, and the second part of the question, about finding the null space does not occur in 1D. –  bill s Apr 6 '13 at 19:08
    
There is always direct recourse to Solve. In[3]:= Solve[poly == 0, z] Out[3]= {{z -> x + y}, {z -> 3 x + 2 y}, {z -> -2 x + 3 y}} –  Daniel Lichtblau Apr 6 '13 at 19:30

1 Answer 1

poly = 6 x^3 + x^2 y - 11 x y^2 - 6 y^3 - 5 x^2 z + 11 x y z + 11 y^2 z - 2 x z^2 - 
       6 y z^2 + z^3;
Factor[poly]
sol = Solve[poly == 0, z]

d = Directive[Opacity[.7], Specularity[White, 60]];
Plot3D[z /. sol, {x, -1, 1}, {y, -1, 1}, Mesh -> None, 
      PlotStyle -> {{d, Red}, {d, Green}, {d, Blue}}, Evaluated -> True]

enter image description here

share|improve this answer

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