-
Notifications
You must be signed in to change notification settings - Fork 0
/
02-algebraic_expressions.qmd
102 lines (80 loc) · 4.76 KB
/
02-algebraic_expressions.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Algebraic expressions
Algebraic expressions are just statements about numbers. However, letters are used as place holders for some of the numbers. There are many reasons this is useful, it could be because we would like to uncover the structure of something, or, because we don't know the specific numbers to use yet.
## Substitution
```{r, echo=FALSE, eval=(knitr::pandoc_to("html"))}
knitr::include_url("https://player.vimeo.com/video/837883518?h=fa66490d88", height="405px")
```
In order to evaluate an algebraic expression we have to substitute the letters for numbers. After the numbers are written in place of the letters we must take care to evaluate the statement in the correct order. BIDMAS is often used to remember the order:
- **Brackets** Work out anything in brackets first.
- **Indices** Powers are next, something like $3^2$.
- **Division and Multiplication** these two have equal priority. If there is a 'tie' work left to right. However if you see a large division they have implicit brackets in them. For example $\frac{2 + 10}{2 \times 3}$ should be thought of as $\frac{(2 + 10)}{(2 \times 3)}$.
- **Addition and Subtraction** like multiplication and division these are equal priority. If there is a tie work left to right.
One more thing to know before we start making substitutions is that the multiplication symbol $\times$ is often not used in algebraic expressions. Letters and numbers that are next to each other are multiplied together. For example $3a$ means $3 \times a$. You can show two numbers multiplied together like this $2 \times 3 = (2)(3) = 6$.
Here are some examples:
If $a=2$ and $b=-3$ then we can evaluate $5a + 4b$ like this:
$$
5(2) + 4(-3)
$$
When things are written next to each other this means multiplication.
$$
5\times 2 + 4 \times -3
$$
Using BIDMAS to do the multiplication first and remembering that a positive number multiplied by a negative gives a negative number.
$$
10 +- 12 = -2
$$
Substituting $n = 3$ and $x = 2$ into $5x^n$. By replacing the letters with numbers we have:
$$
5(2)^3
$$
Remembering that when things are next to each other it means multiplication, which gives:
$$
5 \times 2^3
$$
Following BIDMAS we must deal with the powers first. Since $2^3 = 2 \times 2 \times 2 = 8$ we have:
$$
5 \times 8 = 40
$$
Finally consider $\frac{2p+q}{r}$ where $p=6$, $q=3$ and $r=5$. Replacing the letters with numbers we have:
$$
\frac{2(6)+3}{5} = \frac{2 \times 6+3}{5}
$$
Remembering that there are implicit brackets in fractions, the numerator needs to be evaluated first.
$$
\frac{(2 \times 6+3)}{5} = \frac{(12+3)}{5}=\frac{15}{5}
$$
Now the fraction can be evaluated.
$$
\frac{15}{5} = 3
$$
You can practice these techniques with the following questions. The numbers change each time to try them as much as you like.
```{r, echo=FALSE}
knitr::include_url("https://numbas.mathcentre.ac.uk/question/126318/algebra-substitution/embed/?token=83a5d483-0d29-43d9-9569-f3b4d04ca26e", height="800px")
```
## Simplification
```{r, echo=FALSE, eval=(knitr::pandoc_to("html"))}
#vimeo
knitr::include_url("https://player.vimeo.com/video/839034834?h=6115cfd847", height="405px")
```
Algebraic expressions are made up of terms. Similar terms can be combined to create a simplified expression, this processes is called *collecting like terms*. For example $2a + 3a$ can be simplified to $5a$ by collecting the $a$ terms. Here's another example with a bit more going on:
$$
5x + 7y - 3x + 3y = \overbrace{5x - 3x}^{x\text{ terms}} + \overbrace{7y + 3y}^{y\text{ terms}} = 2x + 10y
$$
Notice that the like terms were grouped first to make it easier to simplify. Also, each term *owns* the positive or negative symbol ahead of it.
Terms can be more complex too. Although it's tempting to find something to simplify there are no like terms in this expression: $3xy + 6x^2 + 2x - 5y$. Only the exact same multiples can be simplified. For example:
$$
6x^2 + 2x - 5x^2 -8x = \overbrace{6x^2 -5x^2}^{x^2\text{ terms}} + \overbrace{2x-8x}^{x\text{ terms}}=x^2-6x
$$
Notice that the two different types of term are $x$ and $x^2$. Also, I could have written $1x^2$ but we normally don't bother with the $1$. It's also important to note that capitalisation matters; $x$ is different from $X$.
Take care when simplifying multiples of different letters $3xy + 5yx$ can be simplified. This is because the order of multiplication doesn't matter so $3xy + 5yx = 3xy + 5xy = 8xy$. Terms are normally written in alphabetical order with the highest powers first.
:::{.callout-note}
## Key point:
* $x \times x = x^2$
* $x + x = 2x$
* $x$ is different from $X$
* $1x$ is written as $x$
:::
Have a go at simplifying with these questions.
```{r, echo=FALSE}
knitr::include_url("https://numbas.mathcentre.ac.uk/question/104233/collect-like-terms/embed/?token=e5fdc25c-98a0-4df2-9a2f-45cc8a15b5f4", height="800px")
```