{"id":12416,"date":"2020-07-03T21:31:51","date_gmt":"2020-07-03T13:31:51","guid":{"rendered":"https:\/\/www.intmath.com\/blog\/?p=12416"},"modified":"2020-07-03T21:31:51","modified_gmt":"2020-07-03T13:31:51","slug":"how-to-use-operator-precedence-in-algebra","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/mathematics\/how-to-use-operator-precedence-in-algebra-12416","title":{"rendered":"How to Use Operator Precedence in Algebra"},"content":{"rendered":"<p>The mathematical term\u00a0<strong>operator\u00a0<\/strong>refers\u00a0to the various symbols used\u00a0in arithmetic and other branches of mathematics to represent a type of mathematic manipulation. This definition, however, does not capture all aspects of mathematics. The widespread use of operators in programming and physics makes the meaning behind \"operator\"\u00a0too big to be described\u00a0in a few sentences.<\/p>\n<p>Regardless, an operator in algebraic terms tells us what type of calculation to perform on an\u00a0expression involving two numbers.<\/p>\n<h2>Algebra and Operators<\/h2>\n<p>Algebra is a branch of mathematics involving\u00a0the study and manipulation of symbols\u00a0using defined laws. These laws apply to almost all branches of mathematics.<\/p>\n<p>Algebra's unique feature\u00a0is that it uses letters and other symbols to represent numbers. These are called\u00a0<strong>variables<\/strong>. The use of variables permits the assignment of different numerical values depending on the situation.<\/p>\n<p>For example, in the expression,\u00a0<em>x<\/em>\u00a0+ 2, the letter\u00a0<em>x<\/em>\u00a0can assume any value. Let's assign it the value of 5.\u00a0The sum of the expression\u00a0is, therefore,\u00a07.<\/p>\n<p>The operator in this\u00a0expression is \u201c+\u201d. It\u00a0defines how\u00a0<em>x<\/em>\u00a0and 2 should be manipulated. In this case, we add the variable with 2.<\/p>\n<h2><strong>Operator Precedence AKA Order of Operations<\/strong><\/h2>\n<p>There are situations in algebra when more than one operator is used in an expression. We must now determine\u00a0which operation to do first.<\/p>\n<p>Here is an example of this instance:<\/p>\n<p><em>x + y * 6<\/em><\/p>\n<p>Let's now assume<em>\u00a0x<\/em>\u00a0= 2 and\u00a0<em>y<\/em>\u00a0= 3. Your possible\u00a0solutions could\u00a0be:<\/p>\n<p>Case 1: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<em>2 + 3 * 6 = 5 * 6 = 30<\/em><\/p>\n<p>Case 2: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<em>\u00a02 + 3 * 6 = 2 + 18 = 20<\/em><\/p>\n<p>The math in both cases is correct, but according to\u00a0<strong>Operator Precedence<\/strong>, also known as\u00a0<strong>Order of Operations<\/strong>, only one case is the right answer.<\/p>\n<h3>Why Operator Precedence Exists<\/h3>\n<p>If we used\u00a0the above mathematical expression to represent a process or some other phenomenon, another person who uses the\u00a0expression might arrive at a different result. Without a law to the expression, it opens it up to inconsistent usage.<\/p>\n<p>To resolve this problem, mathematicians all over the world agreed on which operators should have precedence over others.<\/p>\n<h3>The Order of Operations Explained<\/h3>\n<p>Anything in parentheses and brackets is calculated first, regardless of the operator inside. Exponents and square roots are calculated second. Multiplication and division hold precedence over addition and subtraction.<\/p>\n<p>If you are in the US, you can remember this order by the acronym\u00a0<strong>PEMDAS\u00a0<\/strong>(Parentheses, Exponents, Multiplication, Division, Addition, Subtraction).<\/p>\n<p>In other English speaking countries, including Nigeria, they\u00a0use the variation\u00a0<strong>BODMAS<\/strong>\u00a0(Bracket Of Division, Multiplication, Addition, and Subtraction).<\/p>\n<p>Convention also states that if operators are of the same precedence -- as is the case with multiplication\/division and addition\/subtraction --\u00a0then the expression should be evaluated from left to right.<\/p>\n<p>The rules of Operator Precedence apply even if variables are used instead of numbers.<\/p>\n<h3>Example 1<\/h3>\n<p>Step 1: 6 + 3 * 4 + 8<\/p>\n<p>Step 2: 6 + 12 + 8 = 26<\/p>\n<p>Multiplication was done before addition. Note on the second step of the evaluation that addition was the only operator. Based on the commutative nature of addition (6 + 3 = 3 + 6 = 9), an expression involving only addition can be done in any order.<\/p>\n<h3>Example 2<\/h3>\n<p>Step 1: 2 * 6 \/ 3 \u2013 3<\/p>\n<p>Step 2: 12 \/ 3 \u2013 3<\/p>\n<p>Step 3: 4 \u2013 3 = 1<\/p>\n<p>Both multiplication and division are at the same precedence, so the expression is evaluated from left to right.<\/p>\n<h3>Example 3<\/h3>\n<p>Step 1: 2 * 2^3 + 11<\/p>\n<p>Step 2: 2 * 8 + 11<\/p>\n<p>Step 3: 16 + 11 = 27<\/p>\n<p>The exponential is evaluated first before the multiplication.<\/p>\n<h3>Example 4<\/h3>\n<p>Step 1: (3 + 2) ^ 2<\/p>\n<p>Step 2: 5 ^ 2 = 25<\/p>\n<p>Here, brackets are used to break the convention by forcing the addition operator to be evaluated before the exponentiation.<\/p>\n<h3>Example 5<\/h3>\n<p>Step 1: [5 \u2013 (8 - 5)] * 2<\/p>\n<p>Step 2: (5 - 3) * 2<\/p>\n<p>Step 3: 2 * 2 = 4<\/p>\n<p>Where the brackets are nested, a different type of brackets may be used, such as square brackets or curly braces.<\/p>\n<h2><strong>Other Cases<\/strong><\/h2>\n<p>There are some situations when you may be unsure of the order in which you should solve a multi-operator equation. Despite your knowledge of\u00a0operator precedence, when you're given a lot of data, it can throw you off. Here are some common instances you may encounter:<\/p>\n<h3>Cascaded Exponentials<\/h3>\n<p>3 ^ 2 ^ 2 = 3 ^ 4 = 81.<\/p>\n<p>In cascading exponentials, the cascaded powers are evaluated first.<\/p>\n<h3>Division<\/h3>\n<p>100 \/ 10 \/ 2<\/p>\n<p>The correct order of division is from left to right.<\/p>\n<p>10 \/ 2 = 5<\/p>\n<p>If done the other way, it will be 100 \/ 5 = 20.<\/p>\n<p>Division is not commutative. However, multiplication is commutative and will yield the same answer regardless of the direction of operation.<\/p>\n<h3>Implied Multiplication<\/h3>\n<p>There are cases when\u00a0multiplication is not explicit, such as 2 \/ 3<em>x.\u00a0<\/em>This expression should be evaluated as 2 \/ (3<em>x<\/em>). The implied multiplication in the denominator takes precedence over the division.<\/p>\n<h2>Conclusion<\/h2>\n<p>Knowing the correct order of operator precedence is important in various fields such as computer programming, physics, and all areas of mathematics. Fortunately, it is easy to learn this useful tool.<\/p>\n<p class=\"alt\"><a href=\"#respond\" id=\"comms\">Be the first to comment<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The mathematical term\u00a0operator\u00a0refers\u00a0to the various symbols used\u00a0in arithmetic and other branches of mathematics to represent a type of mathematic manipulation. This definition, however, does not capture all aspects of mathematics. The widespread use of operators in programming and physics makes the meaning behind \"operator\"\u00a0too big to be described\u00a0in a few sentences. Regardless, an operator in [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/12416"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=12416"}],"version-history":[{"count":1,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/12416\/revisions"}],"predecessor-version":[{"id":12417,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/12416\/revisions\/12417"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=12416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=12416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=12416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}