Distribution over Multi-Variable Expressions Consider the following question. A bakery sells boxes containing 2 cupcakes and 1 donut, with each cupcake costing $x and each donut costing $y If Ann buys 3 boxes, write an expression to find out how much it will cost for Ann. Each box contains two cupcakes which will cost \boldsymbol{$x \times 2 = 2x} dollars and a donut which will cost y dollars. Therefore, the price of one box \boldsymbol{= 2x + y} Since, Ann buys three of them, the total cost \boldsymbol{= 3 × (2x + y) = 3(2x + y)} Write an expression for how much it will cost only for the cupcakes when buying the 3 boxes All the \boldsymbol{3} boxes contain \boldsymbol{3 × 2 = 6} cupcakes and each cupcake costs \boldsymbol{$x} , so it will cost \boldsymbol{6 \times $x = 6x} dollars only for the cupcakes Write an expression for how much it will cost only for the donuts when buying the 3 boxes All the \boldsymbol{3} boxes contain \boldsymbol{3 × 1 = 3} donuts and each donut costs \boldsymbol{$y} , so it will cost \boldsymbol{3 × $y = 3y} dollars only for the donuts write an expression to find how much it will cost for Ann to buy 3 boxes by combining the above part (II) and part (III) Considering part \boldsymbol{(II)} and part \boldsymbol{(III)} , we can conclude that the total cost \boldsymbol{= 6x + 3y} dollars Discuss how the obtained expression in part (IV) is related to the expression you found in part (I) In both Part \boldsymbol{I} and Part \boldsymbol{IV} , we found the total cost for Ann when buying \boldsymbol{3} boxes. Therefore, we can relate the two expressions as \boldsymbol{3(2x + y) = 6x + 3y} This equation shows the behavior of the distributive property. Let’s recall the general formula of distributive property that we learned in unit 1.4. Let’s consider a few examples to explore the distributive property over the multi-variable expressions. Examples Simplify each of the following expressions by using the distributive property. 2(x + 3) We will expand the expression 2(x + 3) , by multiplying each term inside the parentheses by 2 : 2(x + 3) = 2 \times x + 2 \times 3 = 2x + 6 5xy(x - y) We will expand the expression 5xy(x - y) , by multiplying each term inside the parentheses by 5xy : 5xy(x - y) = 5xy × x + 5xy × (-y) = 5x2y - 5xy2 (a + 2b) - 2(3a + b) We will expand the expression -2(3a + b) by multiplying each term inside the parentheses by -2 , then simplify by combining like terms: (a + 2b) - 2(3a + b) = a + 2b -2 × 3a - 2 × b (Expanding) = a + 2b - 6a - 2b = a - 6a + 2b - 2b (Grouping like terms) = -5a (Simplifying) 7(x - y) - 3(2x + y - 1) We will first expand the expression 7(x + y) by multiplying each term inside the parentheses by 7 and the expression - 3(2x + y - 1) by multiplying each term inside the parentheses by -3 . Then, we simplify the expanded expression by combining like terms. 7(x - y) - 3(2x + y - 1) = 7 × x + 7 × (-y) -3 × 2x -3 × y -3 × (-1) (Expanding) = 7x - 7y - 6x - 3y + 3 = 7x - 6x - 7y - 3y + 3 (Grouping like terms) = x - 10y - 3 (Simplifying) Let’s consider a few more examples Simplify each of the following expressions. 3(2x + 4y - 1) = 3 × 2x + 3 × 4y + 3 × (-1) = 6x + 12y - 3 ii. 2(x2 + 3xy) = 2 × x2 + 2 × 3xy = 2x2 + 6xy iii. 4a(b + c − 2d) = 4a × b +4a × c + 4a × (-2d) = 4ab + 4ac - 8ad iv. 3(x^2 + 2xy − y^2) = 3 × x^2 + 3 × 2xy + 3 × (-y^2) = 3x^2 + 6xy - 3y^2 v. 3(a^2 - 2) - (b^2 + 3) = 3 × a^2 + 3 × (-2) - b^2 - 3 = 3a^2 - 6 - b^2 - 3 = 3a^2 - b^2 - 6 - 3 = 3a^2 - b^2 - 9 vi. n(n - 5m) + 3(2n - 3m) + 1 = n × n + n × (-5m) + 3 × 2n + 3 × (-3m) + 1 = n2 - 5mn + 6n - 9m + 1 Factoring Multivariable Expressions Factoring is a familiar topic for us, as we learned factoring non-variable expressions and one-variable expressions in the units 1.4 and 2.3 respectively. Writing an expression as a product of its factors is called factoring. Let’s learn how to factorize multivariable expressions in this section. Consider the expression 4x + 6y and factorize it. As you can see in the above diagram, we can factor out 2 because both terms in the multivariable expression which are 4x and 6y are divisible by 2 without remainder. Therefore, when factoring, the product of factors can be expressed as follows: 4x + 6y = 2 \times 2x + 2 \times 3y = 2 (2x + 3y) Here, 2 and (2x+3y) are factors of the expression 4x+6y. This process is also called writing the expression as a product of its factors . Consider the expression a(c - 1) + b(c - 1) . In this expression, we have two terms which are a(c - 1) and b(c - 1) . So, both terms have a common factor which is (c - 1) . Therefore, we can factorize the expression a(c - 1) + b(c - 1) as follows. a(c - 1) + b(c - 1) = (c - 1) \times a + (c - 1) \times b = (c - 1)(a + b) Highest Common Factor(H. C. F.) Consider the following two numbers which are expressed with their factors. As we can see, the factors of 30 are 1, 2, 3, 5, 6, 10, 15, and 30 , while the factors of 45 are 1, 3, 5, 9, 15, and 45 . Now, let’s consider the common factors that can be seen in both numbers. We can see that 1, 3, 5 and 15 are common factors of both 30 and 45 . The largest of these common factors is called the highest common factor (H.C.F.) of 30 and 45 . Therefore, we can define H.C.F as follows: The largest common number that can divide two or more numbers without leaving a remainder can be called the highest common factor (H.C.F.) of the given numbers. Let’s consider a few more examples. Find the H.C.F. of each of the given sets of numbers. a. 12 and 15 Let’s take a look at the factors of 12 and 15 : 12 → 1, 2, 3, 4, 6, 12 15 → 1, 3, 5, 15 1 and 3 are common factors. Therefore, H.C.F of 12 and 15 is 3 48 and 60 Let’s take a look at the factors of 48 and 60 48 → 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 60 → 1,2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 1, 2, 3, 4, 6 and 12 are common factors. Therefore, H.C.F. of 48 and 60 is 12 4x^2y and 8x^3y When finding H.C.F. of algebraic terms or expressions, we can use the following methodology. First, we write each term as a product of its prime factors as follows: 4x^2y = 2 \times 2 \times x \times x \times y 8x^3y = 2 \times 2 \times 2 \times x \times x \times x \times y We can see that 2 , x , and y are common factors of 6x^2y and 8x^3y . Then, when finding the H.C.F, for each distinct factor common to both terms, choose the lowest power present in both. In that case, the lowest power of variable x present in both 4x^2y and 8x^3y is x^2 , and the lowest power of variable y present in both 6x^2y and 8x^3y is y . Moreover, the lowest power of 2 present in both 4x^2y and 8x^3y is 2^2 . Now, we can find the H.C.F of 4x^2y and 8x^3y by multiplying the lowest power of each distinct factor present in both terms, as follows: H.C.F of 4x^2y and 8x^3y is 2^2 \times x^2 \times y = 4x^2y Note: We can use the above method to find the H.C.F. of numbers as well. 2(x + 2)^2(y − 2) and 6(y + 1)^2(x + 2) First, we write each expression as a product of its prime factors as follows: 2(x + 2)^2(y − 2) = 2 \times (x + 2) \times (x + 2) \times (y − 2) 6(y + 1)^2(x + 2) = 2 \times 3 \times (y + 1) \times (y + 1) \times (x + 2) 2 and (x + 2) are common factors of 2(x + 2)^2(y − 2) and 6(y + 1)^2(x + 2) . The lowest powers of each distinct factor are 2^1 and (x + 2)^1 . Therefore, H.C.F of 2(x + 2)2(y − 2) and 6(y + 1)2(x + 2) is 2 × (x + 2) = 2(x + 2) Now, let’s see how we can factorize algebraic expressions using H.C.F. Factorize each of the following expression 30xy - 45x^2 Let’s find the H.C.F. of the expression as follows: 30xy = 2 \times 3 \times 5 \times x \times y 45x^2 = 3 \times 3 \times 5 \times x \times x H.C.F. = 3 \times 5 \times x = 15x Now we have found the H.C.F in the expression which is 15x and next, we rewrite each term in the expression as a product of the H.C.F as follows: 30xy - 45x^2 = 15x \times y - 15x \times x Finally, we can factor out the H.C.F resulting in the factorization of the expression as follows: 30xy - 45x^2 = 15x \times y - 15x \times x = 15x(y - x) 24a^3b - 60a^2c - 18a^3bc Let’s find the H.C.F. of the expression as follows: 24a^3b = 2 \times 2 \times 2 \times 3 \times a \times a \times a \times b 60a^2c = 2 \times 2 \times 3 \times 5 \times a \times a \times c 18a^3bc = 2 \times 3 \times 3 \times a \times a \times a \times b \times c H.C.F. = 2 \times 3 \times a \times a = 6a^2 Now we have found the H.C.F in the expression which is 6a^2 and next, we rewrite each term in the expression as a product of the H.C.F as follows: 24a^3b - 60a^2c - 18a^3bc = 6a^2 \times 4ab - 6a^2 \times 10c - 6a^2 \times 3abc Finally, we can factor out the H.C.F resulting in the factorization of the expression as follows: 24a^3b - 60a^2c - 18a^3bc = 6a^2 \times 4ab - 6a^2 \times 10c - 6a^2 \times 3abc = 6a^2(4ab - 10c - 3abc) p(q - 2r) - q(q - 2r) Let’s find the H.C.F. of the expression as follows: p(q - 2r) = p \times (q - 2r) q(q - 2r) = q \times (q - 2r) H.C.F. = (q - 2r) Now we have found the H.C.F in the expression which is (q - 2r) and next, we rewrite each term in the expression as a product of the H.C.F as follows: p(q - 2r) - q(q - 2r) = p \times (q - 2r) - q \times (q - 2r) Finally, we can factor out the H.C.F resulting in the factorization of the expression as follows: p(q - 2r) - q(q - 2r) = p \times (q - 2r) - q \times (q - 2r) = (q - 2r)(p - q) (x - y) + x^2 -xy In this expression, we can see that there is no common factor other than 1 for all three terms. But, on closer observation, we can see that x is a common factor of the latter two terms, x^2 and −xy . Therefore, we can rewrite the expression by factoring out the expression as follows: (x - y) + x^2 -xy = 1 \times (x - y) + x \times (x - y) Now we can see that H.C.F in the expression is (x - y) . Then, as usual, we can factor out the H.C.F resulting in the factorization of the expression as follows: (x - y) + x^2 -xy = 1(x - y) + x(x - y) = (x - y)(1 + x) = (x - y)(x + 1) Let’s consider a few more examples. Factorize each of the following expressions 6x + 9y = 3 \times 2x + 3 \times 3y (H.C.F. is 3) = 3(2x + 3y) 4a^2b - 10ab = 2ab \times 2a - 2ab \times 5 (H.C.F. is 2ab) = 2ab(2a - 5) 3p^3q - p^2r - 6pqr = p \times 3p^2q - p \times pr - p \times 6qr (H.C.F. is p) = p(3p2q - pr - 6qr) x(y + z) - y(y + z) = (y + z) \times x + (y + z) \times (-y) [ H.C.F. is (y + z) ] = (y + z)(x - y) (x - y) + x^2 -xy = (x - y) + x \times x + x \times (-y) = 1(x - y) +x(x - y) [ H.C.F. is (x - y) ] = (x - y)(1 + x) = (x - y)(x + 1) A stationery shop sells packages of pens and pencils. Each package contains 2x pens and 6y pencils. What is the total number of pens and pencils contained in one package? Express your answer as a product of its factors Number of pencils = 2x Number of pens = 6y Total number of pens and pencils = 2x + 6y = 2 \times x + 2 \times 3y (H.C.F. is 2) Simplify each of the following (7x + 4y) − (5x − 3y) 3(4y + 2z) + 6(2y − z) 4(m^2 + 5n) − 2(3m − 4n) 5a(3a + 4b) − 3a(2a − 6b) (8x + 3y − 2z) − (5x−4y+z) 2(3y + 5z) + 4 + (2y − z + x) + 5x (m^2 + 4n − 5p) − 2(2m − 3n + p) 4a(2a + 3b − c) − 3a(b − 4c + 2a) a. (7x + 4y) - (5x - 3y) = 2x + 7y b. 3(4y + 2z) + 6(2y - z) = 24y c. 4(m^2 + 5n) - 2(3m - 4n) = 4m^2 - 6m + 28n d. 5a(3a + 4b) - 3a(2a - 6b) = 9a^2 + 38ab e. (8x + 3y - 2z) - (5x - 4y + z) = 3x + 7y - 3z f. 2(3y + 5z) + 4 + (2y - z + x) + 5x = 6x + 8y + 9z + 4 g. (m^2 + 4n - 5p) - 2(2m - 3n + p) = m^2 - 4m + 10n - 7p h. 4a(2a + 3b - c) - 3a(b - 4c + 2a) = 2a^2 + 9ab + 8ac Factor out the following expression 6x + 18y 8b^2 − 16bc -3q^3 − 9q^2 − 6q 7y(x + 5) − 3(x + 5) 5x^2 + 10xy + x + 2y a. 6x + 18y = 6(x + 3y) b. 8b^2 - 16bc = 8b(b - 2c) c. -3q^3 - 9q^2 - 6q = -3q(q + 1)(q + 2) d. 7y(x + 5) - 3(x + 5) = (x + 5)(7y - 3) e. 5x^2 + 10xy + x + 2y = (x + 2y)(5x + 1) Workout each of the following problem A company produces 4x blue t-shirts and 2y red t-shirts. If the company makes 3 times as many green t-shirts as red t-shirts, what is the total number of t-shirts the company produces? Express your answer as a product of its factors. A farmer has 12p oranges. The number of apples he has is 9 fewer to 6y . What is the difference between the number of oranges and apples? Express your answer as a product of its factors. 4x + 2y + 3(2y) = 4x + 8y = 4(x + 2y) 12p - (6y - 9) = 12p - 6y + 9 = 3(4p - 2y + 3)