document.write( "Question 403073: Hi, can you please help me?\r
\n" ); document.write( "\n" ); document.write( "I need to factor the following completely:\r
\n" ); document.write( "\n" ); document.write( "21x^3-18x^2y+24xy^2
\n" ); document.write( "Can you please show me how?
\n" ); document.write( "thank you!
\n" ); document.write( "

Algebra.Com's Answer #285115 by jsmallt9(3758)\"\" \"About 
You can put this solution on YOUR website!
\"21x%5E3-18x%5E2y%2B24xy%5E2\"
\n" ); document.write( "When factoring, always start with the Greatest Common Factor (GCF). The GCF here is 3x:
\n" ); document.write( "\"3x%287x%5E2-6xy%2B8y%5E2%29\"
\n" ); document.write( "Always keep factoring until no more factoring can be done. The second factor is a trinomial we should try to factor. It does not fit any of the patterns for factoring. But we can try trinomial factoring. This factoring is \"un-FOIL-ing\" the expression. We are looking to see if some pair of binomials will result in \"7x%5E2-6xy%2B8y%5E2\" when multiplied. We are looking for
\n" ); document.write( "\"7x%5E2-6xy%2B8y%5E2+=+%28a%5B1%5D+%2B+b%5B1%5D%29%28a%5B2%5D+%2B+b%5B2%5D%29\"
\n" ); document.write( "where \"a%5B1%5D\" and \"a%5B2%5D\" (the \"First\" terms) are factors of \"7x%5E2\" and \"b%5B1%5D\" and \"b%5B2%5D\" (the \"Last\" terms) are factors of \"8y%5E2\". That is the easy part the hard part is that the \"Outside\" terms, \"a%5B1%5D\" and \"b%5B2%5D\", and \"Inside\" terms, \"a%5B2%5D\" and \"b%5B1%5D\" must produce the -6xy if the expression is to factor at all.

\n" ); document.write( "For \"a%5B1%5D\" and \"a%5B2%5D\" there is really only one choice: 7x and x. For \"b%5B1%5D\" and \"b%5B2%5D\" there are several choices. Since the middle term has a minus in front of it we need them both to be negative. But they could be -8y and -y or -2y and -4y. And which one is \"b%5B1%5D\" and which one is \"b%5B2%5D\" is also not known yet.

\n" ); document.write( "So the possibilities are:
\n" ); document.write( "(7x-8y)(x-y)
\n" ); document.write( "(7x-y)(x-8y)
\n" ); document.write( "(7x-2y)(x-4y)
\n" ); document.write( "or
\n" ); document.write( "(7x-4y)(x-2y)
\n" ); document.write( "All of these will produce the \"7x%5E2\" and the \"8y%5E2\". But only 1 (or none) of these will produce the -6xy. And that will come from the Outside and Inside terms. Let's try each one, looking at just the Outside and Inside multiplications of FOIL:
\n" ); document.write( "(7x-8y)(x-y)
\n" ); document.write( "Outside: 7x*(-y) = -7xy
\n" ); document.write( "Inside: x*(-8y) = -8xy
\n" ); document.write( "Together they make -15xy

\n" ); document.write( "(7x-y)(x-8y)
\n" ); document.write( "Outside: 7x*(-8y) = -56xy
\n" ); document.write( "Inside: x*(-y) = -xy
\n" ); document.write( "Together they make -57xy

\n" ); document.write( "(7x-2y)(x-4y)
\n" ); document.write( "Outside: 7x*(-4y) = -28xy
\n" ); document.write( "Inside: x*(-2y) = -2xy
\n" ); document.write( "Together they make -30xy

\n" ); document.write( "(7x-4y)(x-2y)
\n" ); document.write( "Outside: 7x*(-2y) = -14xy
\n" ); document.write( "Inside: x*(-4y) = -4xy
\n" ); document.write( "Together they make -18xy

\n" ); document.write( "None of these produced the -6xy we were looking for. So \"7x%5E2-6xy%2B8y%5E2\" will not factor any further. So your fully factored expression is:
\n" ); document.write( "\"3x%287x%5E2-6xy%2B8y%5E2%29\"
\n" ); document.write( "
\n" );