4.3 Sequences and Functions
What is an Arithmetic Sequence?
An arithmetic sequence is a sequence where the difference between consecutive terms is constant. This constant is called the common difference ($d$).
An arithmetic sequence is a sequence where the difference between consecutive terms is constant. This constant is called the common difference ($d$).
๐ก Examples:
2, 5, 8, 11, 14, ... (d = +3)
20, 17, 14, 11, 8, ... (d = -3)
1, 1.5, 2, 2.5, 3, ... (d = +0.5)
โก The nth Term Formula:
$$a_n = a + (n-1)d$$
where:
โข $a_n$ = the nth term
โข $a$ = first term
โข $n$ = position in sequence
โข $d$ = common difference
โข $a_n$ = the nth term
โข $a$ = first term
โข $n$ = position in sequence
โข $d$ = common difference
Example 1: Find the nth term of 3, 7, 11, 15, ...
Step 1: Find the common difference
$d = 7 - 3 = 4$
Step 2: Identify the first term
$a = 3$
Step 3: Substitute into the formula
$a_n = 3 + (n-1)(4)$
$a_n = 3 + 4n - 4$
$a_n = 4n - 1$
Check: When $n=1$: $4(1) - 1 = 3$ โ
$d = 7 - 3 = 4$
Step 2: Identify the first term
$a = 3$
Step 3: Substitute into the formula
$a_n = 3 + (n-1)(4)$
$a_n = 3 + 4n - 4$
$a_n = 4n - 1$
Check: When $n=1$: $4(1) - 1 = 3$ โ
Example 2: Find the 50th term of 5, 8, 11, 14, ...
$a = 5$, $d = 3$, $n = 50$
$a_{50} = 5 + (50-1)(3)$
$a_{50} = 5 + 49 \times 3$
$a_{50} = 5 + 147 = 152$
$a_{50} = 5 + (50-1)(3)$
$a_{50} = 5 + 49 \times 3$
$a_{50} = 5 + 147 = 152$
Example 3: Which term of 2, 9, 16, 23, ... equals 142?
Step 1: Find $d$ and write the formula
$d = 7$, so $a_n = 2 + (n-1)(7) = 7n - 5$
Step 2: Set equal to 142 and solve
$7n - 5 = 142$
$7n = 147$
$n = 21$
Answer: 142 is the 21st term
$d = 7$, so $a_n = 2 + (n-1)(7) = 7n - 5$
Step 2: Set equal to 142 and solve
$7n - 5 = 142$
$7n = 147$
$n = 21$
Answer: 142 is the 21st term
๐ฏ Common Difference Practice
๐ฏ Find the nth Term
Write in the form an + b (e.g., 3n + 2)
Write in the form an + b (e.g., 3n + 2)
Real Life Uses:
โข Savings: Adding a fixed amount each month
โข Seating: Rows in a theatre (each row has more seats)
โข Taxi fares: Base fare + rate per mile
โข Savings: Adding a fixed amount each month
โข Seating: Rows in a theatre (each row has more seats)
โข Taxi fares: Base fare + rate per mile
What is a Geometric Sequence?
A geometric sequence is a sequence where each term is multiplied by the same number to get the next term. This multiplier is called the common ratio ($r$).
A geometric sequence is a sequence where each term is multiplied by the same number to get the next term. This multiplier is called the common ratio ($r$).
๐ก Examples:
2, 6, 18, 54, 162, ... (r = 3)
100, 50, 25, 12.5, ... (r = 0.5)
3, -6, 12, -24, 48, ... (r = -2)
โก The nth Term Formula:
$$a_n = a \times r^{n-1}$$
where:
โข $a_n$ = the nth term
โข $a$ = first term
โข $r$ = common ratio
โข $n$ = position in sequence
โข $a_n$ = the nth term
โข $a$ = first term
โข $r$ = common ratio
โข $n$ = position in sequence
Example 1: Find the 6th term of 2, 6, 18, 54, ...
$a = 2$, $r = 3$, $n = 6$
$a_6 = 2 \times 3^{6-1}$
$a_6 = 2 \times 3^5$
$a_6 = 2 \times 243 = 486$
$a_6 = 2 \times 3^{6-1}$
$a_6 = 2 \times 3^5$
$a_6 = 2 \times 243 = 486$
Example 2: Find the common ratio and 5th term of 100, 20, 4, ...
Step 1: Find $r$
$r = \frac{20}{100} = 0.2$ (or $\frac{1}{5}$)
Step 2: Find the 5th term
$a_5 = 100 \times (0.2)^4$
$a_5 = 100 \times 0.0016 = 0.16$
$r = \frac{20}{100} = 0.2$ (or $\frac{1}{5}$)
Step 2: Find the 5th term
$a_5 = 100 \times (0.2)^4$
$a_5 = 100 \times 0.0016 = 0.16$
๐ก Arithmetic vs Geometric:
Arithmetic: +/- the same number each time โ linear growth
Geometric: ร/รท the same number each time โ exponential growth/decay
Geometric: ร/รท the same number each time โ exponential growth/decay
๐ฏ Find the Common Ration
๐ฏ Arithmetic or Geometric?
Real Life Uses:
โข Compound interest: Money growing by a percentage
โข Population growth: Bacteria doubling
โข Radioactive decay: Half-life calculations
โข Compound interest: Money growing by a percentage
โข Population growth: Bacteria doubling
โข Radioactive decay: Half-life calculations
What is a Quadratic Sequence?
A quadratic sequence has an nth term of the form $an^2 + bn + c$. The second differences are constant.
A quadratic sequence has an nth term of the form $an^2 + bn + c$. The second differences are constant.
๐ก How to Identify:
Sequence: 2, 6, 12, 20, 30, ...
1st differences: 4, 6, 8, 10, ...
2nd differences: 2, 2, 2, ... (constant!)
โก Finding the nth Term:
Step 1: Find the second difference โ this equals $2a$
Step 2: Write $an^2$ and subtract from the sequence
Step 3: Find the nth term of what remains (it's arithmetic!)
Step 4: Combine to get $an^2 + bn + c$
Step 2: Write $an^2$ and subtract from the sequence
Step 3: Find the nth term of what remains (it's arithmetic!)
Step 4: Combine to get $an^2 + bn + c$
Example: Find the nth term of 3, 8, 15, 24, 35, ...
Step 1: Find differences
1st diff: 5, 7, 9, 11 (not constant)
2nd diff: 2, 2, 2 (constant!) โ $2a = 2$, so $a = 1$
Step 2: Subtract $n^2$ from the sequence
Step 3: The remaining sequence (2, 4, 6, 8, 10) is $2n$
Answer: $a_n = n^2 + 2n$
Check: $n=3$: $9 + 6 = 15$ โ
1st diff: 5, 7, 9, 11 (not constant)
2nd diff: 2, 2, 2 (constant!) โ $2a = 2$, so $a = 1$
Step 2: Subtract $n^2$ from the sequence
| $n$ | 1 | 2 | 3 | 4 | 5 |
| Sequence | 3 | 8 | 15 | 24 | 35 |
| $n^2$ | 1 | 4 | 9 | 16 | 25 |
| Difference | 2 | 4 | 6 | 8 | 10 |
Answer: $a_n = n^2 + 2n$
Check: $n=3$: $9 + 6 = 15$ โ
Example: Find the nth term of 0, 3, 8, 15, 24, ...
Step 1: 2nd differences = 2, so $a = 1$
Step 2: Subtract $n^2$:
Sequence: 0, 3, 8, 15, 24
$n^2$: 1, 4, 9, 16, 25
Difference: -1, -1, -1, -1, -1
Step 3: Remaining is just $-1$
Answer: $a_n = n^2 - 1$
Notice: This is $(n+1)(n-1)$!
Step 2: Subtract $n^2$:
Sequence: 0, 3, 8, 15, 24
$n^2$: 1, 4, 9, 16, 25
Difference: -1, -1, -1, -1, -1
Step 3: Remaining is just $-1$
Answer: $a_n = n^2 - 1$
Notice: This is $(n+1)(n-1)$!
๐ฏ Find the Second Difference
๐ฏ Find the Next Term
What is a Function?
A function is a rule that takes an input and gives exactly one output. We write functions using notation like $f(x)$.
A function is a rule that takes an input and gives exactly one output. We write functions using notation like $f(x)$.
๐ก Function Notation:
$f(x) = 2x + 3$ means "the function $f$ takes $x$ and returns $2x + 3$"
$f(5)$ means "substitute $x = 5$" โ $f(5) = 2(5) + 3 = 13$
$f(5)$ means "substitute $x = 5$" โ $f(5) = 2(5) + 3 = 13$
Example 1: If $f(x) = x^2 - 4x + 1$, find:
a) $f(3)$:
$f(3) = (3)^2 - 4(3) + 1 = 9 - 12 + 1 = -2$
b) $f(-2)$:
$f(-2) = (-2)^2 - 4(-2) + 1 = 4 + 8 + 1 = 13$
c) $f(0)$:
$f(0) = 0 - 0 + 1 = 1$
$f(3) = (3)^2 - 4(3) + 1 = 9 - 12 + 1 = -2$
b) $f(-2)$:
$f(-2) = (-2)^2 - 4(-2) + 1 = 4 + 8 + 1 = 13$
c) $f(0)$:
$f(0) = 0 - 0 + 1 = 1$
Example 2: If $g(x) = 3x - 1$, solve $g(x) = 14$
$3x - 1 = 14$
$3x = 15$
$x = 5$
$3x = 15$
$x = 5$
๐งฎ Function Calculator:
$f(x) = $
Find $f($ $)$
๐ฏ Evaluate Functions
What is a Composite Function?
A composite function is when you apply one function, then apply another function to the result. Written as $fg(x)$ or $f(g(x))$.
A composite function is when you apply one function, then apply another function to the result. Written as $fg(x)$ or $f(g(x))$.
โ ๏ธ Important:
$fg(x)$ means: do $g$ first, then $f$
Read right to left! $fg(x) = f(g(x))$
Read right to left! $fg(x) = f(g(x))$
Example 1: If $f(x) = 2x + 1$ and $g(x) = x^2$, find $fg(3)$
Step 1: Do $g$ first
$g(3) = 3^2 = 9$
Step 2: Apply $f$ to the result
$f(9) = 2(9) + 1 = 19$
Answer: $fg(3) = 19$
$g(3) = 3^2 = 9$
Step 2: Apply $f$ to the result
$f(9) = 2(9) + 1 = 19$
Answer: $fg(3) = 19$
Example 2: If $f(x) = 2x + 1$ and $g(x) = x^2$, find $gf(3)$
Step 1: Do $f$ first
$f(3) = 2(3) + 1 = 7$
Step 2: Apply $g$ to the result
$g(7) = 7^2 = 49$
Answer: $gf(3) = 49$
Notice: $fg(3) \neq gf(3)$ - order matters!
$f(3) = 2(3) + 1 = 7$
Step 2: Apply $g$ to the result
$g(7) = 7^2 = 49$
Answer: $gf(3) = 49$
Notice: $fg(3) \neq gf(3)$ - order matters!
Example 3: Find $fg(x)$ in terms of $x$
where $f(x) = 3x - 2$ and $g(x) = x + 4$
where $f(x) = 3x - 2$ and $g(x) = x + 4$
Step 1: Replace $x$ in $f$ with $g(x)$
$fg(x) = f(g(x)) = f(x + 4)$
Step 2: Substitute into $f$
$= 3(x + 4) - 2$
$= 3x + 12 - 2$
$= 3x + 10$
$fg(x) = f(g(x)) = f(x + 4)$
Step 2: Substitute into $f$
$= 3(x + 4) - 2$
$= 3x + 12 - 2$
$= 3x + 10$
๐ฏ Composite Functions
What is an Inverse Function?
An inverse function "undoes" what the original function does. Written as $f^{-1}(x)$.
An inverse function "undoes" what the original function does. Written as $f^{-1}(x)$.
๐ก Key Property:
If $f(a) = b$, then $f^{-1}(b) = a$
$f^{-1}(f(x)) = x$ and $f(f^{-1}(x)) = x$
$f^{-1}(f(x)) = x$ and $f(f^{-1}(x)) = x$
โก How to Find the Inverse:
Step 1: Write $y = f(x)$
Step 2: Swap $x$ and $y$
Step 3: Rearrange to make $y$ the subject
Step 4: Replace $y$ with $f^{-1}(x)$
Step 2: Swap $x$ and $y$
Step 3: Rearrange to make $y$ the subject
Step 4: Replace $y$ with $f^{-1}(x)$
Example 1: Find the inverse of $f(x) = 2x + 5$
Step 1: $y = 2x + 5$
Step 2: Swap: $x = 2y + 5$
Step 3: Rearrange for $y$
$x - 5 = 2y$
$y = \frac{x - 5}{2}$
Answer: $f^{-1}(x) = \frac{x - 5}{2}$
Step 2: Swap: $x = 2y + 5$
Step 3: Rearrange for $y$
$x - 5 = 2y$
$y = \frac{x - 5}{2}$
Answer: $f^{-1}(x) = \frac{x - 5}{2}$
Example 2: Find the inverse of $g(x) = \frac{3x - 1}{4}$
Step 1: $y = \frac{3x - 1}{4}$
Step 2: Swap: $x = \frac{3y - 1}{4}$
Step 3: Rearrange
$4x = 3y - 1$
$4x + 1 = 3y$
$y = \frac{4x + 1}{3}$
Answer: $g^{-1}(x) = \frac{4x + 1}{3}$
Step 2: Swap: $x = \frac{3y - 1}{4}$
Step 3: Rearrange
$4x = 3y - 1$
$4x + 1 = 3y$
$y = \frac{4x + 1}{3}$
Answer: $g^{-1}(x) = \frac{4x + 1}{3}$
Example 3: Find the inverse of $h(x) = x^2 + 3$ (for $x \geq 0$)
Step 1: $y = x^2 + 3$
Step 2: Swap: $x = y^2 + 3$
Step 3: Rearrange
$x - 3 = y^2$
$y = \sqrt{x - 3}$ (taking positive root since $x \geq 0$)
Answer: $h^{-1}(x) = \sqrt{x - 3}$
Step 2: Swap: $x = y^2 + 3$
Step 3: Rearrange
$x - 3 = y^2$
$y = \sqrt{x - 3}$ (taking positive root since $x \geq 0$)
Answer: $h^{-1}(x) = \sqrt{x - 3}$
๐ฏ Find the Inverse
Write in the form (x + a)/b or bx + a
Write in the form (x + a)/b or bx + a
What is Algebraic Proof?
Algebraic proof uses algebra to show that a mathematical statement is always true, not just for specific examples.
Algebraic proof uses algebra to show that a mathematical statement is always true, not just for specific examples.
โก Useful Representations:
โข Any integer: $n$
โข Even number: $2n$
โข Odd number: $2n + 1$
โข Consecutive integers: $n, n+1, n+2, ...$
โข Consecutive even: $2n, 2n+2, 2n+4, ...$
โข Consecutive odd: $2n+1, 2n+3, 2n+5, ...$
โข Multiple of 3: $3n$
โข Even number: $2n$
โข Odd number: $2n + 1$
โข Consecutive integers: $n, n+1, n+2, ...$
โข Consecutive even: $2n, 2n+2, 2n+4, ...$
โข Consecutive odd: $2n+1, 2n+3, 2n+5, ...$
โข Multiple of 3: $3n$
Example 1: Prove that the sum of two odd numbers is even
Step 1: Let the two odd numbers be $2a + 1$ and $2b + 1$
Step 2: Add them
$(2a + 1) + (2b + 1) = 2a + 2b + 2$
Step 3: Factorise
$= 2(a + b + 1)$
Step 4: Conclude
This is 2 times an integer, so it's even. โ
Step 2: Add them
$(2a + 1) + (2b + 1) = 2a + 2b + 2$
Step 3: Factorise
$= 2(a + b + 1)$
Step 4: Conclude
This is 2 times an integer, so it's even. โ
Example 2: Prove that the sum of three consecutive integers is divisible by 3
Step 1: Let the integers be $n$, $n+1$, $n+2$
Step 2: Add them
$n + (n+1) + (n+2) = 3n + 3$
Step 3: Factorise
$= 3(n + 1)$
Step 4: Conclude
This is 3 times an integer, so it's divisible by 3. โ
Step 2: Add them
$n + (n+1) + (n+2) = 3n + 3$
Step 3: Factorise
$= 3(n + 1)$
Step 4: Conclude
This is 3 times an integer, so it's divisible by 3. โ
Example 3: Prove that $n^2 + n$ is always even
Method 1: Factorising
$n^2 + n = n(n + 1)$
This is the product of two consecutive integers.
One of them must be even, so the product is even. โ
Method 2: Cases
If $n$ is even ($n = 2k$): $n^2 + n = 4k^2 + 2k = 2(2k^2 + k)$ โ even โ
If $n$ is odd ($n = 2k+1$): $n^2 + n = (2k+1)^2 + (2k+1) = 4k^2 + 4k + 2 = 2(2k^2 + 2k + 1)$ โ even โ
$n^2 + n = n(n + 1)$
This is the product of two consecutive integers.
One of them must be even, so the product is even. โ
Method 2: Cases
If $n$ is even ($n = 2k$): $n^2 + n = 4k^2 + 2k = 2(2k^2 + k)$ โ even โ
If $n$ is odd ($n = 2k+1$): $n^2 + n = (2k+1)^2 + (2k+1) = 4k^2 + 4k + 2 = 2(2k^2 + 2k + 1)$ โ even โ
Example 4: Prove that $(n+1)^2 - (n-1)^2 = 4n$
LHS:
$(n+1)^2 - (n-1)^2$
$= (n^2 + 2n + 1) - (n^2 - 2n + 1)$
$= n^2 + 2n + 1 - n^2 + 2n - 1$
$= 4n$
LHS = RHS, so the statement is proven. โ
Alternative: Use DOTS! $(n+1)^2 - (n-1)^2 = [(n+1)+(n-1)][(n+1)-(n-1)] = 2n \times 2 = 4n$
$(n+1)^2 - (n-1)^2$
$= (n^2 + 2n + 1) - (n^2 - 2n + 1)$
$= n^2 + 2n + 1 - n^2 + 2n - 1$
$= 4n$
LHS = RHS, so the statement is proven. โ
Alternative: Use DOTS! $(n+1)^2 - (n-1)^2 = [(n+1)+(n-1)][(n+1)-(n-1)] = 2n \times 2 = 4n$
๐ฏ How do you represent...
Real Life Uses:
โข Computer Science: Proving algorithms work correctly
โข Engineering: Verifying that formulas are valid
โข Mathematics: Building on proven results
โข Computer Science: Proving algorithms work correctly
โข Engineering: Verifying that formulas are valid
โข Mathematics: Building on proven results