document.write( "Question 1190174: In factoring using the difference of cubes formula, if you have the problem 1+8x^3 do you need to switch it to 8x^3+1 to work or can you solve it the way it is written? \n" ); document.write( "
Algebra.Com's Answer #821743 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Either way works perfectly fine. This is because adding any two numbers can be done in any order you want.
\n" ); document.write( "A+B = B+A
\n" ); document.write( "Furthermore, 8x^3+1 will factor the same way as 1+8x^3\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I should point out however, that the 8x^3+1 is a sum of cubes (not a difference of cubes). \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The sum of cubes factoring formula is
\n" ); document.write( "a^3 + b^3 = (a+b)(a^2 - ab + b^2)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "One example of using that formula
\n" ); document.write( "a^3 + b^3 = (a+b)(a^2 - ab + b^2)
\n" ); document.write( "(4x)^3 + (2)^3 = (4x+2)((4x)^2 - (4x)*2 + 2^2)
\n" ); document.write( "64x^3 + 8 = (4x+2)(16x^2 - 8x + 4)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Notice how swapping the roles of 'a' and b doesn't matter
\n" ); document.write( "a^3 + b^3 = (a+b)(a^2 - ab + b^2)
\n" ); document.write( "2^3 + (4x)^3 = (2+4x)(2^2 - 2*4x + (4x)^2)
\n" ); document.write( "8 + 64x^3 = (2+4x)(4 - 8x + 16x^2)
\n" ); document.write( "8 + 64x^3 = (4x+2)(16x^2 - 8x + 4)
\n" ); document.write( "Showing we get the same exact factorization as earlier.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "---------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "A related factoring formula is the difference of cubes factoring formula
\n" ); document.write( "a^3 - b^3 = (a-b)(a^2 + ab + b^2)
\n" ); document.write( "In this case, order does matter because a^3-b^3 is not the same as b^3-a^3 (much like how 10-3 = 7 is not the same as 3-10 = -7)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "An example:
\n" ); document.write( "a^3 - b^3 = (a-b)(a^2 + ab + b^2)
\n" ); document.write( "(7x)^3 - 5^3 = (7x-5)((7x)^2 + 7x*5 + 5^2)
\n" ); document.write( "343x^3 - 125 = (7x-5)(49x^2 + 35x + 25)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If we swapped 'a' and b, then,
\n" ); document.write( "a^3 - b^3 = (a-b)(a^2 + ab + b^2)
\n" ); document.write( "(5)^3 - (7x)^3 = (5-7x)((5)^2 + 5*7x + (7x)^2)
\n" ); document.write( "125 - 343x^3 = (5-7x)(25 + 35x + 49x^2)
\n" ); document.write( "125 - 343x^3 = (5-7x)(49x^2 + 35x + 25)
\n" ); document.write( "It's very close to the earlier factorization in the previous paragraph.
\n" ); document.write( "However, the key difference is that the 7x-5 is not the same as 5-7x.
\n" ); document.write( "Therefore, the two factorizations aren't the same.
\n" ); document.write( "Again it's all because the order of subtraction matters.
\n" ); document.write( "
\n" ); document.write( "
\n" );