Math Assignment Unit 2
Math Assignment Unit 2
Function:
Injectivity:
To determine if the function is injective, we need to check if distinct elements in the domain
map to distinct elements in the codomain. Let's consider two arbitrary odd integers, a and b,
such that f(a) = f(b).
If a and b are odd, then f(a) = a + 3 and f(b) = b + 3. Setting these equal, we get a + 3 = b +
3, which implies a = b. So, the function is injective for odd integers.
Now, if a and b are even, then f(a)=a−5 and f(b)=b−5. Setting these equal, we get a – 5 = b −
5, which implies a = b. So, the function is injective for even integers as well.
Therefore, the function is injective.
Surjectivity:
For surjectivity, we need to check if every element in the codomain has a pre-image in the
domain. Let's consider an arbitrary integer y in the codomain (Z).
If y is an odd integer, then f (y − 3) = (y − 3) + 3 = y, so there exists an odd integer n = y − 3
such that f(n) = y.
If y is an even integer, then f (y + 5) = (y + 5) – 5 = y, so there exists an even integer n = y + 5
such that f(n) = y.
Therefore, the function is surjective.
Inverse Function:
To find the inverse function, we need to swap the roles of the input and output. Let g :Z → Z
be the inverse function of f.
For odd integers g(y) = y − 3 because f (y − 3) = y.
For even integers g(y) = y + 5 because f (y + 5) = y.
{ y−3 if y is odd
Thus, the inverse function g is g( y )={ .
{ y +5 if y is even
( fog ) ( a2 )=f ( g ( a2 ) ) =f ( c 3) =b 3
(fog)(a3)=f (g (a3 ))=f (c 1)=b 1
So, the mapping for fog is:
fog={(a1 , b2 ),(a2 , b3) ,(a3 ,b 1)}
Composition gof :
( gof ) ( b1 ) =g ( f ( b 1 ) )=g ( a1 )=c 2
Mappings:
Composite Function:
Commutativity:
No, the composition of functions g and f is not commutative. This means that g ◦ f
(Student to Grade through Score) is not the same as f ◦ g (Score to Student through
Grade).
o Reason: The ranges of both f and g are not equal to their domains. In other
words, not every possible grade maps back to a unique student or every
possible score maps back to a unique grade. For example, the grade "C"
corresponds to both Leon and Abdul, and the score "60" corresponds to both
Leon and Abdul. This ambiguity creates the non-commutativity.
Q4: Unveiling Sequence: Unraveling the Domino Line-Up!
Remember that line of dominoes you loved to knock down as a kid? Well, imagine those
dominoes lined up perfectly, one after the other, each holding a secret number. That's what a
sequence is – an ordered list of numbers waiting to be explored. Let's be sequence detectives
and crack the code!
Imagine a game where each domino tells you how to find the next one. That's a recursive
function! It's like a secret code where each clue leads to the next domino in the line. Like a
detective, you use the formula and the earlier dominoes to uncover the number on the next
one.
Case Study: The Fibonacci sequence, inspired by those multiplying rabbits, starts with 1, 1.
Its secret code is:
Domino 1: 1
Domino n (after 1): Domino n = Domino (n-1) + Domino (n-2)
Wouldn't it be cool to have a master key that unlocks any domino in the line, instead of
chasing clues each time? That's what a closed formula does! It's like a magic equation that
tells you exactly what number is on any domino, no matter its position.
Now you can find any domino's number in a flash! Want to know what's on Domino 10? Plug
n = 10, and boom, you have the answer!
Now, imagine each domino is multiplied by a specific number to reach the next one. That's a
geometric sequence! It's like comparing the sizes of different gears – the ratio between their
teeth stays the same.
Example: The sequence 2, 6, 18, 54... is geometric, with a constant ratio of 3. Each domino
is 3 times bigger than the one before it.
Q5:
i)
In order to generate a closed formula for the given sequence (5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 12,
12 ….), I observed a pattern in which the sequence alternates between increasing by 1 and
repeating the previous term every three terms.
2n
2. The second term is a linear term , indicating an increase by 1 every three terms.
3
2 2 πn
3. The third term is a periodic term sin ( ) which has value
3 √3 3
1 1
,− , 0 forn=1 , 2 ,3
3 3
Applying this formula, the next four terms of the sequence are:
f ( 13 )=13
f ( 14 )=14
f ( 15 )=14
f (16)=15
ii)
The sequence is like, 6, 36, 216, ... and so on. To find the next three terms, we just keep
multiplying by 6. So, the next terms are 1296, 7776, and 46656.
As for a formula, it looks like each term is just 6 raised to the power of one less than its
position. So, the formula is 6^(n-1).
And for the sum of the first n terms, there's a formula for geometric series which is (a * (1 -
r^n)) / (1 - r), where 'a' is the first term and 'r' is the common ratio. In our case, it simplifies to
(6 * (1 - 6^n)) / -5.
So, in summary: Next three terms: 1296, 7776, 46656 Formula for nth term: 6^(n-1) Sum of
first n terms: (6 * (1 - 6^n)) / -5
(4−1) 3
a 4=6 × 6 =6 × 6 =6 ×216=1296
(5−1) 4
a 5=6 ×6 =6 × 6 =6 ×1296=7776
(6−1) 5
a 6=6 ×6 =6 ×6 =6 ×7776=46656
iii)
Next three terms: To find the next three terms, we observe that each term is obtained by
adding 3 to the previous term. So, the next three terms are 30, 33, and 36.
Closed formula: Since each term is increasing by 3, the closed formula would be
Sum to the first n terms: The sum of the first n terms of an arithmetic series is given by
n
Sn= × [ 2 a1 + ( n−1 ) d ] is the first term and (d) is the common difference. In this case,
2
a 1=21∧d =3.
n
Sn= ×[2 ×21+(n−1)×3]
2
n
Sum to the first n terms: Sn= ×[42+ 3 n−3]
2
References:
under CC 4.0
bijections.html