Lab 2
Lab 2
Name: ___________________________________
Please show your work in the space provided in order for you to receive credit. Answers with no work will
receive no credit. Box your answers.
1. The function 𝑓𝑓 (𝑥𝑥 ) = √𝑥𝑥 , is reflected over the 𝑥𝑥-axis, vertically stretched by a factor of 3, and shifted right 2
units.
a. Write the equation of the transformed function. 𝑔𝑔(𝑥𝑥 ) = ____________________________
Domain = ______________________
1
MATH 1314 – College Algebra Lab 2
2. Consider the functions below. Describe the transformations in the correct order to the graph of 𝑓𝑓(𝑥𝑥) = 𝑥𝑥 2 .
If the transformation does not apply, put “None.”
1
a. 𝑔𝑔(𝑥𝑥 ) = (𝑥𝑥 − 5)2 + 7
3
1. Horizontal Shift:
2. Stretch/Shrink:
3. Reflection:
4. Vertical Shift:
1. Horizontal Shift:
2. Stretch/Shrink:
3. Reflection:
4. Vertical Shift:
2
MATH 1314 – College Algebra Lab 2
Cryptology is the science of making and breaking codes. This exercise explores how the idea of functions and their
inverses can be used to encode and decode messages.
To encode and decode a message, first replace each letter of the alphabet with a positive integer using the following
scheme, thus rewriting the original message as numbers instead of words:
A–1 F–6 K – 11 P – 16 U – 21 Z – 26
C–3 H–8 M – 13 R – 18 W – 23
D–4 I–9 N – 14 S – 19 X – 24
E–5 J – 10 O – 15 T – 20 Y – 25
For example, suppose you want to send the message MATH to a friend, and you have decided that the
function 𝑓𝑓(𝑥𝑥 ) = 3𝑥𝑥 + 4 will be the encoding function. This function describes the procedure used to create
the encoded message – in this case multiply by 3 and add 4.
𝑓𝑓(13) = 3(13) + 4 = 43
𝑓𝑓(1) = 7
𝑓𝑓(20) = 64
𝑓𝑓(8) = 28
So the encoded message that you send to your friend is: 43 7 64 28
DECODING: Now it is up to your friend to decode the message. Decoding is the process that undoes the
encoding process. If 𝑓𝑓(𝑥𝑥) encodes the message, then the inverse, 𝑓𝑓 −1 (𝑥𝑥), will decode it. So 𝑓𝑓 −1 (𝑥𝑥 ) is the
decoding function.
𝑥𝑥−4
In this example, the inverse of 𝑓𝑓(𝑥𝑥 ) = 3𝑥𝑥 + 4 can be found to be 𝑓𝑓 −1 (𝑥𝑥 ) = .
3
Take the encoded message “43 7 64 28 ” and use these numbers as the input values in 𝑓𝑓 −1 (𝑥𝑥).
The last step is to convert the decoded numbers back to letters using the table given previously.
𝑓𝑓 −1 (43) = 13 = M
𝑓𝑓 −1 (7) = 1 = A
𝑓𝑓 −1 (64) = 20 = T
𝑓𝑓 −1 (28) = 8 = H
Now your friend knows the message that you sent was MATH.
3
MATH 1314 – College Algebra Lab 2
3. Suppose 𝑓𝑓(𝑥𝑥 ) = 7𝑥𝑥 − 3 is the encoding function.
a. Encode “COLLIN COUGARS”. The answer should be numbers. Remember to include the space.
Code:
c. Using the inverse function from part b, decode the following encoded message. First, write down the
decoded numbers, then write the corresponding letters. The answer should be words.
88 172 186 39 4 151 102 123 60 137 32 186 130 32 4 130 102 95 130
Message:
d. Why is it necessary for the encoding function to be one-to-one? Your explanation should be specific to this
problem, as well as clearly written using complete sentences, correct spelling, and proper grammar.