Monday, February 12, 2018

Week of February 12, 2018

Algebra 2

Composition of Functions

"Function Composition" is applying one function to the results of another:
Function Composition
The result of f() is sent through g()
It is written: (g º f)(x)
Which means: g(f(x))

Example: f(x) = 2x+3 and g(x) = x2

"x" is just a placeholder. To avoid confusion let's just call it "input":
f(input) = 2(input)+3
g(input) = (input)2
Let's start:
(g º f)(x) = g(f(x))
First we apply f, then apply g to that result:
Function Composition
(g º f)(x) = (2x+3)2

What if we reverse the order of f and g?
(f º g)(x) = f(g(x))
First we apply g, then apply f to that result:
Function Composition
(f º g)(x) = 2x2+3

We get a different result!
So be careful which function comes first.

Symbol

The symbol for composition is a small circle:
(g º f)(x)
It is not a filled in dot: (g · f)(x), as that means multiply.

Composed With Itself

We can even compose a function with itself!

Example: f(x) = 2x+3


(f º f)(x) = f(f(x))
First we apply f, then apply f to that result:
Function Composition
(f º f)(x) = 2(2x+3)+3 = 4x + 9
We should be able to do it without the pretty diagram:
(f º f)(x)f(f(x))
 f(2x+3)
 2(2x+3)+3
 = 4x + 9

Domains

It has been easy so far, but now we must consider the Domains of the functions.
domain and range graph
The domain is the set of all the values that go into a function.
The function must work for all values we give it, so it is up to us to make sure we get the domain correct!

Example: the domain for √x (the square root of x)

We can't have the square root of a negative number (unless we use imaginary numbers, but we aren't), so we must exclude negative numbers:
The Domain of √x is all non-negative Real Numbers
On the Number Line it looks like:
zero onwards
Using set-builder notation it is written:
{ xmember ofreals | x ≥ 0}
Or using interval notation it is:
[0,+∞)
It is important to get the Domain right, or we will get bad results!

Domain of Composite Function

We must get both Domains right (the composed function and the first function used).
When doing, for example, (g º f)(x) = g(f(x)):
  • Make sure we get the Domain for f(x) right,
  • Then also make sure that g(x) gets the correct Domain

Example: f(x) = √x and g(x) = x2

The Domain of f(x) = √x is all non-negative Real Numbers
The Domain of g(x) = x2 is all the Real Numbers
The composed function is:
(g º f)(x)= g(f(x))
 = (√x)2
 = x
Now, "x" normally has the Domain of all Real Numbers ...
... but because it is a composed function we must also consider f(x),
So the Domain is all non-negative Real Numbers

Why Both Domains?

Well, imagine the functions are machines ... the first one melts a hole with a flame (only for metal), the second one drills the hole a little bigger (works on wood or metal):
Function Composition
FireWhat we see at the end is a drilled hole, and we may think "that should work for wood or metal".
But if we put wood into º f then the first function f will make a fire and burn everything down!
So what happens "inside the machine" is important.

De-Composing Function

We can go the other way and break up a function into a composition of other functions.

Example: (x+1/x)2

That function can be made from these two functions:
f(x) = x + 1/x
g(x) = x2
And we get:
(g º f)(x)= g(f(x))
 = g(x + 1/x)
 = (x + 1/x)2
This can be useful if the original function is too complicated to work on.

Summary

  • "Function Composition" is applying one function to the results of another.
  • (g º f)(x) = g(f(x)), first apply f(), then apply g()
  • We must also respect the domain of the first function
  • Some functions can be de-composed into two (or more) simpler functions.
 https://www.mathsisfun.com/sets/functions-composition.html

Algebra 1

Elimination Method

The elimination method of solving systems of equations is also called the addition method. To solve a system of equations by elimination we transform the system such that one variable "cancels out".
Example 1: Solve the system of equations by elimination
Elimination Method Example
Solution:
In this example we will "cancel out" the y term. To do so, we can add the equations together.
Elimination Method Solution
Now we can find: x = 2
In order to solve for y, take the value for x and substitute it back into either one of the original equations.
Elimination Method Solution
The solution is (x, y) = (2, 1).

Example 2: Solve the system using elimination
Elimination Method step 1
Solution:
Look at the x - coefficients. Multiply the first equation by -4, to set up the x-coefficients to cancel.
Elimination Method step 2
Now we can find: y = -2
Take the value for y and substitute it back into either one of the original equations.
Elimination Method step 3
The solution is (x, y) = (1, -2).

Example 3: Solve the system using elimination method
Elimination Method example
Solution:
In this example, we will multiply the first row by -3 and the second row by 2; then we will add down as before.
Elimination Method solution
Now we can find: y = -1
Substitute y = -1 back into first equation:
Elimination Method step 3
The solution is (x, y) = (3, -1).
https://www.mathportal.org/algebra/solving-system-of-linear-equations/elimination-method.php

Monday, February 5, 2018

Week of February 5, 2018

Algebra 2

Operations with Polynomials

Learning Objective(s)
·         Add polynomials with more than one variable.
·         Subtract polynomials with more than one variable.
·         Multiply polynomials with more than one variable.
·         Divide polynomials with more than one variable.

Introduction

Just as you can perform the four operations on polynomials with one variable, you can add, subtract, multiply, and divide polynomials with more than one variable. The process is exactly the same, but you have more variables to keep track of. When you are adding and subtracting polynomials with more than one variable, you have to pay particular care to combining like terms only. When you multiply and divide, you also need to pay particular attention to the multiple variables and terms. You can multiply and divide terms that aren’t like, but to add and subtract terms they must be like terms.

Adding Polynomials with More Than One Variable

To add polynomials, you first need to identify the like terms in the polynomials and then combine them according to the correct integer operations. Since like terms must have the same exact variables raised to the same exact power, identifying them in polynomials with more than one variable takes a careful eye. Sometimes parentheses are used to distinguish between the addition of two polynomials and the addition of a collection of monomials. With addition, you can simply remove the parentheses and perform the addition.


Example
Problem
Add. (4x– 12xy + 9y2) + (25x+ 4xy – 32y2)


4x+(12xy) + 9y2 + 25x+ 4xy + (32y2)
Remove the parentheses grouping the polynomial and rewrite any subtraction as addition of the opposite.

(4x+25x2) +[(12xy)+ 4xy] + [9y2+ (32y2)] 

Group like terms using commutative and associative properties.

29x2 + (8xy) +(23y2)
Combine like terms.
Answer
The sum is 29x2  8xy – 23y2.
Rewrite as subtraction.


Some people find that writing the polynomial addition in a vertical form makes it easy to combine like terms. The process of adding the polynomials is the same, but the arrangement of the terms is different. The example below shows this “vertical” method of adding polynomials:


Example
Problem
Add. (3x + 2y – 4z ) + (45x – y + 75z)




  3x
+
2y
  4z

+
45x
  y
+
75z

Write one polynomial below the other, making sure to line up like terms.


  48x
+
y
+
71z

Combine like terms, paying close attention to the signs.
Answer
The sum is 48x + 71z.



When there isn't a matching like term for every term in each polynomial, there will be empty places in the vertical arrangement of the polynomials. This layout makes it easy to check that you are combining like terms only.


Example
Problem
Add. (10ab + 15ac – 25bc + 5) + (4ab – 8bc – 12)




10ab
+
15ac
25bc
+
  5

+
  4ab


  8bc
12

Write one polynomial below the other, making sure to line up like terms.


14ab
+
15ac
33bc
7
Combine like terms, paying close attention to the signs.
Answer
The sum is 14ab + 15ac – 33bc – 7.



Add.
(8a3b2 + 6a2 4b2 + 5) + (10a2 4a3b+ 6a2 – 7)

A) 18a3b2 + 2a2+ 2b2 – 2

B) 4a3b2 + 16a2+ 6a2  4b2 – 2

C) 18a3b2 + 2a2+ 6a2  4b2 – 2

D) 4a6b4 + 16a4b2 + 6a2  4b2 – 2





Subtracting Polynomials with More Than One Variable

You can apply the same process used to subtract polynomials with one variable to subtract polynomials with more than one variable. In order to remove the parentheses following a subtraction sign, you must multiply each term by 1.


Example
Problem
Subtract. (14x3y2 – 5xy + 14y) – (7x3y2 – 8xy + 10y)
14x3y2 – 5xy + 14y – 7x3y2 + 8xy  – 10y
Remove the parentheses. Notice the signs!
14x3y2  – 7x3y2 – 5xy  + 8xy + 14– 10y
Regroup to put like terms together. When you regroup or rearrange terms involving subtraction, think of the subtraction as “adding the opposite” and move the negative sign along with the term.

7x3y2 + 3xy  + 4y
Combine like terms.
Answer
The difference is 7x3y2 + 3xy + 4y.



An alternative to the approach shown above is the vertical method for arranging the subtraction problem. This method is shown below for a different problem. Both methods are effective for subtracting polynomials—the idea is to identify and organize like terms in order to compute with them accurately.

Example
Problem
Subtract. (10a3  + 5b – 5+ 10) – (15 + 5c  – 15b2 + 10a3)


10a3
+
5b2
5c
+
10

  – (10a3
15b2
+
5c
+
15)

Organize the like terms using the vertical approach.


0
+
20b2
10c
5

Combine like terms. Pay attention to the signs when subtracting.
Answer
The difference is 20b– 10c – 5.



The examples that follow illustrate the left-to-right and vertical methods for the same polynomial subtraction problem. Think about which method you find easier.


Example
Problem
Subtract. (3x4y+ 5x3y2  –  2x2y2  (2x4y+ 4x3y2 – 2x2y3 – 1)
3x4y+ 5x3y2  –  2x2y2 2x4y3 – 4x3y2 + 2x2y3 1
Remove the parentheses. The first polynomial stays the same. The signs change in the second polynomial.
3x4y2x4y3 + 5x3y2  4x3y2  –  2x2y2 + 2x2y3 + 1

Regroup using commutative and associative properties.

5x4y3 x3y2 –  2x2y2 + 2x2y3 + 1


Combine like terms.
Answer
The difference is 5x4y3 x3y2 – 2x2y2 + 2x2y+ 1.


Example

Problem
Subtract. (3x4y+ 5x3y2 – 2x2y2  (2x4y+ 4x3y2 – 2x2y3 – 1)




 3x4y3
+
5x3y2
2x2y2




(2x4y3
+
4x3y2


2x2y3
1)
Write one polynomial below the other, making sure to line up like terms.



5x4y3
+
 x3y2
2x2y2
+
2x2y3
+
1

Combine like terms, paying close attention to the signs.
Answer
The difference is 5x4y3 + x3y2  2x2y2+ 2x2y3 + 1.



Multiplying Polynomials with More Than One Variable

Polynomials with more than one variable can also be multiplied by one another. You use the same techniques you used when you multiplied polynomials with only one variable. Consider the following example.

(4x2y3)(5x4y2)

This is an example of multiplication of two polynomials, specifically monomials, with two variables. To do this multiplication, you multiply the coefficients and use the rules of exponents to find the exponent for each variable in order to find the product. Let’s look.

(4x2y3)(5x4y2) = (4 • 5)(x2+4)(y3+2) = 20x6y5

To multiply a monomial by a binomial, you use the distributive property in the same way as multiplying polynomials with one variable.


Example

Problem
Multiply. 



Multiply, using the
distributive property.
Answer
The product is.



To multiply two binomials containing more than one variable, you can still use the FOIL (First, Outer, Inner, Last) method that works for binomials with one variable. After all, FOIL is simply a shortcut for using the distributive property to multiply each term in one binomial by each term in the other binomial. This process works for multiplying any two binomials. Two examples follow.


Example
Problem
Multiply. (4– 7xy)(2+ 3x)


4x • 2y = 8xy
First
4x • 3x = 12x2
Outer
7xy • 2y = 14xy2
Inner
7xy • 3x = 21x2y
Last

Be careful about including the negative sign with 7xy, since this term is being subtracted.

8xy + 12x2 – 14xy2 – 21x2y
Combine terms into one expression.
Answer
The product is 8xy + 12x2 – 14xy2 – 21x2y.


The next example shows the product of a binomial and a trinomial, each with two variables. Since FOIL can only be used with the product of two binomials, you need to systematically multiply each term in the binomial by each term in the trinomial.


Example
Problem
Multiply. (9b  ab)(5a2b + 7ab  b)


9b(5a2b + 7ab  b)
45a2b2 + 63ab2  9b2




 ab(5a2b + 7ab  b)
5a3b2  7a2b2 + ab2

Multiply 9b by each term in the trinomial, paying attention to the signs.

Multiply ab by each term in the trinomial, paying attention to the signs.

45a2b2 + 63ab2  9b2  5a3b2  7a2b2 + ab2
Combine the products.
45a2b2 + 63ab2  9b2 - 5a3b2  7a2b2 + ab2
38a2b2 + 64ab2  9b2  5a3b2
Combine like terms.
Answer
The product is 38a2b2 + 64ab2  9b2  5a3b2.


When multiplying multivariable polynomials like this, some people prefer to set up the multiplication in a vertical fashion—as you would do if you were multiplying 45 • 189. The example below shows (9b  ab)(5a2b + 7ab  bset up in vertical fashion.


Example
Problem
(9b  ab)(5a2b + 7ab  b)



9b
ab
x
5a2b
+ 7ab
b


9b2
ab2


Set up the problem in a vertical form, and begin by multiplying
9 ab by b. Make sure to pay attention to the signs! Place the products underneath, as shown.



9b
ab
x
5a2b
+ 7ab
b


- 9b2
ab2

7a2b2

+ 63ab2
Now multiply 9 ab by +7ab. Notice that (9b)(7ab) = 63ab2; since this term is like ab2, place it directly beneath it.



9b
ab
x
5a2b
+ 7ab
b


9b2
ab2

7a2b2

+ 63ab2
5a3b2
+ 45a2b2


Finally, multiply 9 ab by 5a2b.



9b
ab


5a2b
+ 7ab
b


- 9b2
ab2

7a2b2

+ 63ab2
- 5a3b2
+ 45a2b2


- 5a3b2
+ 38a2b2
- 9b2
+ 64ab2
Now add like terms.
Answer
5a3b2 + 38a2b– 9b+ 64ab2



Notice that the products of the two examples are the same, although the order of the individual terms is different due to the different solution methods.


Find the product.
4pt2(5pt3 3pt2 – t)

A) 20p2t5 – 12p2t4 + 4pt3

B) 20t5 + 12p2t4 – 4pt3

C) 20pt6 – 12pt4 + 4pt2

D) 20p2t5 + 3pt2 – t





Dividing Polynomials with More Than One Variable

The fourth arithmetic operation is division. Polynomials with more than one variable can also be divided. When dividing monomials with more than one variable, you divide the coefficients and then divide variables. When there are exponents with the same base, the law of exponents says you divide by subtracting the exponents. Consider this example.

Example
Problem
Divide


 
To make it easier, you can break up the coefficients and variables into numeric and variable factors.

Divide the coefficients, and divide the variables by subtracting the exponents with like bases.


Rewrite with positive exponents.
Answer
The quotient is.


Now let’s look at an example of dividing a trinomial with more than one variable by a monomial with more than one variable. This follows the same procedure as when you have one variable, but you need to pay attention to distinguishing between the variables.


Example
Problem
Divide. 

 
To make it easier, you can break the division out by the terms in the polynomial since each term is being divided by 2x2y.

Perform the division of each term by dividing the coefficients and dividing the variables by subtracting the exponents of variables with like bases.
Answer
The quotient is .



Divide.

A) 5st2 – 2s2t + 1

B) 5st2 – 10s3t3 + 5st2

C) 20st2 – 5s2t

D) 





Summary

Performing addition, subtraction, multiplication, and division of polynomials with more than one variable follows the same steps as operating on polynomials in one variable. The key things to pay attention to are combining only like terms and applying the laws of exponents, integer operations, and the order of operations accurately.

http://www.montereyinstitute.org/courses/DevelopmentalMath/COURSE_TEXT2_RESOURCE/U11_L3_T2_text_final.html


Algebra1

The slope of a linear function

The steepness of a hill is called a slope. The same goes for the steepness of a line. The slope is defined as the ratio of the vertical change between two points, the rise, to the horizontal change between the same two points, the run.
slope=riserun=changeinychangeinx

figure25
The slope of a line is usually represented by the letter m. (x1, y1) represents the first point whereas (x2, y2) represents the second point.
m=y2y1x2x1

It is important to keep the x-and y-coordinates in the same order in both the numerator and the denominator otherwise you will get the wrong slope.

Example
Find the slope of the line
figure26
(x1, y1) = (-3, -2) and (x2, y2) = (2, 2)
m=y2y1x2x1=2(2)2(3)=2+22+3=45

A line with a positive slope (m > 0), as the line above, rises from left to right whereas a line with a negative slope (m < 0) falls from left to right.
figure27
m=y2y1x2x1=(1)32(2)=132+2=44=1

If two lines have the same slope the lines are said to be parallel.

You can express a linear function using the slope intercept form.
y=mx+b

m=slope