Sub topic 3
Working Backward to Find an Unknown Input
This chapter assumes you can evaluate expressions with integers and fractions, apply order of operations, solve one-variable linear equations, and read function notation such as f(x). The examples use the made-up operation a★b = 2a + b², where you substitute the first input for a and the second for b.
Solving for an Unknown Input
When a defined operation produces a known result, you can find the missing input. Substitute what you know, set the expression equal to the given value, and solve.
For example, if a★3 = 17, then 2a + 3² = 17, so 2a + 9 = 17 and a = 4. A quick check in code confirms the answer:
def star(a, b):
return 2 * a + b ** 2
print([a for a in range(-10, 11) if star(a, 3) == 17]) # [4]Composing Functions: f(g(x))
In a composition, the inner function runs first, and its output becomes the input to the outer function. Reversing the order usually changes the result.
def g(x):
return x + 3
def h(x):
return 2 * x
print(g(h(4))) # g(8) = 11
print(h(g(4))) # h(7) = 14Conditional and Piecewise Definitions
A piecewise definition gives different rules for different inputs. Check which condition the input satisfies, then apply only that rule. For f(x) = x/2 when x is even and 3x + 1 when x is odd, f(3) = 10, and f(f(3)) = f(10) = 5.
Testing Commutativity and Associativity with Numbers
An operation is commutative if a★b = b★a for all inputs. It is associative if (a★b)★c = a★(b★c). One pair of numbers that breaks the rule is enough to disprove a property. With a★b = 2a + b², 3★4 = 22 but 4★3 = 17, so the operation is not commutative.
GRE Question Formats and a Checking Routine
Substitute carefully, keep parentheses, and check the case for piecewise rules. Then verify the answer by plugging it back into the original definition.
Exercise
If a★b = 2a + b², find x when x★2 = 10.
Show answer
2x + 4 = 10, so x = 3.