document.write( "Question 332863: How would I evaluate this expression using the correct order of operations? \r
\n" ); document.write( "\n" ); document.write( "2-6(1/2-(3))^2+ 2^3
\n" ); document.write( "

Algebra.Com's Answer #238489 by Edwin McCravy(20060)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "2-6*(1/2-(3))^2+ 2^3\r\n" );
document.write( "\r\n" );
document.write( "P for Parentheses comes first in PE(MD)(AS)\r\n" );
document.write( "\r\n" );
document.write( "So first look for the innermost parentheses.\r\n" );
document.write( "\r\n" );
document.write( "I'll color them red:\r\n" );
document.write( "\r\n" );
document.write( "2-6(1/2-(3))^2+2^3\r\n" );
document.write( "\r\n" );
document.write( "There is nothing to do in that, so we can remove them, since\r\n" );
document.write( "there will be no confusion if we do:\r\n" );
document.write( "\r\n" );
document.write( "2-6*(1/2-3)^2+2^3\r\n" );
document.write( "\r\n" );
document.write( "Now start over, look for the innermost parentheses:\r\n" );
document.write( "\r\n" );
document.write( "I'll color them red:\r\n" );
document.write( "\r\n" );
document.write( "2-6*(1/2-3)^2+2^3\r\n" );
document.write( "\r\n" );
document.write( "Inside the parentheses there is a division and a subtraction.\r\n" );
document.write( "\r\n" );
document.write( "Division comes before subtraction in PE(MD)(AS),\r\n" );
document.write( "So we divide 1 by 2 and get .5.  Now we replace 1/2 by .5\r\n" );
document.write( "\r\n" );
document.write( "2-6*(.5-3)^2+2^3\r\n" );
document.write( "\r\n" );
document.write( "We look for the innermost parentheses:\r\n" );
document.write( "\r\n" );
document.write( "2-6*(.5-3)^2+2^3\r\n" );
document.write( "\r\n" );
document.write( "The only thing to do is to subtract .5-3, getting -2.5,\r\n" );
document.write( "so we replace .5-3 by -2.5\r\n" );
document.write( "\r\n" );
document.write( "2-6*(-2.5)^2+2^3\r\n" );
document.write( "\r\n" );
document.write( "Now there is nothing to do inside the only parentheses.  However\r\n" );
document.write( "we cannot remove them because the number inside them is negative.\r\n" );
document.write( "\r\n" );
document.write( "Next comes exponents, so we do the leftmost exponent, which is (-2.5)^2\r\n" );
document.write( "which gives us 6.25, so we replace (-2.5)^2 by 6.25\r\n" );
document.write( "\r\n" );
document.write( "2-6*6.25+2^3\r\n" );
document.write( "\r\n" );
document.write( "There are no parentheses so we look for an exponent.  There is just one\r\n" );
document.write( "exponent left, 2^3, which gives 8, so we replace 2^3 by 8\r\n" );
document.write( "\r\n" );
document.write( "2-6*6.25+8\r\n" );
document.write( "\r\n" );
document.write( "Now there are no parentheses or exponents, there is one multiplication,\r\n" );
document.write( "so we do that.  6*6.25. That gives 37.5, so we replace 6*6.25 by 37.5\r\n" );
document.write( "\r\n" );
document.write( "2-37.5+8\r\n" );
document.write( "\r\n" );
document.write( "The only things left are additions and subtractions, and we do additions and\r\n" );
document.write( "subtractions as we come to them left to right.\r\n" );
document.write( "\r\n" );
document.write( "So we do the subtraction 2-37.5 and get -35.5 so we replace 2-37.5 by -35.5\r\n" );
document.write( "\r\n" );
document.write( "-35.5+8\r\n" );
document.write( "\r\n" );
document.write( "And that gives \r\n" );
document.write( "\r\n" );
document.write( "-27.5\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );