The Lumenary · Grades 6–8
Function machines in sequence
Name: ______________________
Date: ______________________
You will learn to
- Compute the result of applying one function and then another, using tables, arrow diagrams and formulas
- Decide whether a chain is possible, by checking that every output of the first function is an allowed input of the second
- Recognise the identity function and explain why chaining it before or after any function changes nothing
- Find the inverses of simple bijections such as and on , and undo a chain by undoing its steps in reverse order
- Explain why a function that sends two inputs to the same output, such as on , cannot be undone
- 1.
Let and . Apply , then , to the input . What is the output?
- 2.
Let be given by , , , , and by , , . Which inputs does “, then ” send to ? List them.
- 3.
Which of these chains is defined for every integer input ? (Here accepts only inputs , and only inputs .)
- A.“square, then take the square root”
- B.“subtract , then take the reciprocal ”
- C.“add , then take the square root”
- D.“square and change the sign (), then take the square root”
- 4.
A function is the chain “multiply by , then subtract ”. Which chain undoes it?
- A.add , then divide by
- B.divide by , then add
- C.subtract , then divide by
- D.add , then multiply by
- 5.
From Bhāskara II's Līlāvatī (1150): a number is multiplied by ; then three quarters of the result is added to it; the sum is divided by ; a third of the quotient is subtracted from it; the result is multiplied by itself; is subtracted; the square root is taken; is added; and the result is divided by . The answer is . What was the number?
- 6.
Which of these functions from to can be undone by some function from to ? Choose all that apply.
- A.
- B.
- C.
- D. (the distance from )
- E.
- 7.
For which integer do “add , then multiply by ” and “multiply by , then add ” give the same output for every integer input?
- 8.
Let and be functions from a set to itself with inverse functions and . Undoing “, then ” in the wrong order means applying , then , so each input goes to . When does this give back for every input?
- A.Exactly when for every — that is, when the order of and does not matter
- B.Only when
- C.Only when or is the identity
- D.Never
- 9.
In the Lean section,
Undoes g fmeans for every . Which Lean statement says “squaring on cannot be undone”?- A.
¬ ∃ g : Int → Int, Undoes g (fun x => x * x) - B.
∃ g : Int → Int, ¬ Undoes g (fun x => x * x) - C.
¬ ∃ g : Int → Int, Undoes (fun x => x * x) g - D.
∀ g : Int → Int, Undoes g (fun x => x * x)
- A.
- 10.
A function on a finite set can be stored as a dictionary, such as
{1: 'a', 2: 'b'}. Writeinvert(table)that returns a dictionary undoingtable— sending each output back to its input — orNoneif two inputs share an output (so the function cannot be undone).Computational — Practice