Solved Exercises on Functions as Input/Output Relationships in Grade 8

Master functions as input/output relationships: domain, range, function notation, evaluating functions, and function tables through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Function Evaluation
Exercise 1
Given the function f(x) = 2x + 3, find f(4) and f(-1)
Definition:

Function: A relationship where each input has exactly one output. Notation: f(x) means "the function of x"

Evaluation method:
  1. Replace x with the given input value
  2. Perform the operations as indicated
  3. Simplify to get the output
Function
f(x) = 2x + 3
Evaluate
f(4) = ?
Step 1: Substitute x = 4

f(4) = 2(4) + 3

Step 2: Perform multiplication

2(4) = 8

Step 3: Add the constant

8 + 3 = 11

f(4) = 11
Final answer:

f(4) = 11 and f(-1) = 2(-1) + 3 = -2 + 3 = 1

Applied rules:

• Function notation: f(x) represents the output when x is the input

• Substitution: Replace every occurrence of x with the input value

• Order of operations: Perform multiplication before addition

Tip 1: Think of f(x) as a machine that takes an input and produces an output.
Tip 2: Always use parentheses when substituting negative numbers to avoid sign errors.
2 Function Table
Exercise 2
Complete the table for f(x) = x² - 2x + 1
x: -2, -1, 0, 1, 2
f(x): ?, ?, ?, ?, ?
Definition:

Function table: A table showing input values (domain) and corresponding output values (range)

Function
f(x) = x² - 2x + 1
Table
Complete
Step 1: Evaluate for x = -2

f(-2) = (-2)² - 2(-2) + 1 = 4 + 4 + 1 = 9

Step 2: Evaluate for x = -1

f(-1) = (-1)² - 2(-1) + 1 = 1 + 2 + 1 = 4

Step 3: Evaluate for x = 0

f(0) = (0)² - 2(0) + 1 = 0 - 0 + 1 = 1

Step 4: Evaluate for x = 1

f(1) = (1)² - 2(1) + 1 = 1 - 2 + 1 = 0

Step 5: Evaluate for x = 2

f(2) = (2)² - 2(2) + 1 = 4 - 4 + 1 = 1

x -2 -1 0 1 2
f(x) 9 4 1 0 1
Final answer:

Complete table: (-2,9), (-1,4), (0,1), (1,0), (2,1)

Applied rules:

• Function evaluation: Substitute each input value into the function

• Order of operations: Powers first, then multiplication, then addition/subtraction

• Sign handling: Be careful with negative numbers raised to powers

Tip 1: Always substitute carefully, especially with negative inputs.
Tip 2: Notice that f(x) = x² - 2x + 1 = (x-1)², which explains why f(1) = 0.
3 Input/Output Diagram
Exercise 3
A function machine takes input x and outputs 3x - 5. If the output is 10, what was the input?
Definition:

Input/Output relationship: Input → Function → Output, or f(input) = output

Function
f(x) = 3x - 5
Output
f(x) = 10
Find
x = ?
Step 1: Set up equation

If f(x) = 10, then 3x - 5 = 10

Step 2: Add 5 to both sides

3x - 5 + 5 = 10 + 5 → 3x = 15

Step 3: Divide both sides by 3

3x ÷ 3 = 15 ÷ 3 → x = 5

Step 4: Verify the answer

f(5) = 3(5) - 5 = 15 - 5 = 10 ✓

Input = 5
Final answer:

The input was 5

Applied rules:

• Reverse operations: To find input from output, solve the equation

• Equality preservation: Perform the same operation on both sides

• Verification: Always check your answer by substituting back

Tip 1: To find input from output, set f(x) equal to the output and solve for x.
Tip 2: Always verify by substituting your answer back into the original function.
Key Concepts: Domain, Range, and Function Properties
f: X → Y
Function Notation
Key definitions:

Domain: All possible input values (x-values) for which the function is defined

Range: All possible output values (y-values) that the function can produce

Function: A relation where each input has exactly one output

Function identification:
  1. Vertical Line Test: If any vertical line intersects the graph more than once, it's not a function
  2. One-to-one mapping: Each input maps to exactly one output
  3. Ordered pairs: No repeated x-values with different y-values
Domain examples: For f(x) = √x, domain is x ≥ 0; for f(x) = 1/x, domain is x ≠ 0
Function notation: f(x), g(x), h(x) are common ways to represent functions
Input/Output: Input is independent variable (x), output is dependent variable (y or f(x))
Tip 1: Functions can be represented as equations, tables, graphs, or ordered pairs.
Tip 2: In f(x) = mx + b, m is the rate of change and b is the initial value.
Solution: Exercises 4 to 5
4 Function from Ordered Pairs
Exercise 4
Determine if the following relation is a function: {(1,2), (3,4), (1,5), (2,6)}
Definition:

Function criterion: Each input (x-value) must correspond to exactly one output (y-value)

Relation
{(1,2), (3,4), (1,5), (2,6)}
Analysis
Check inputs
Result
Not a function
Step 1: List all x-values

Inputs: 1, 3, 1, 2 (notice that 1 appears twice)

Step 2: Check for repeated inputs

Input 1 appears with outputs 2 and 5

Step 3: Apply function definition

Since input 1 has two different outputs, this violates the function rule

Step 4: Conclusion

This relation is NOT a function because input 1 maps to both 2 and 5

{(1,2), (3,4), (1,5), (2,6)} is NOT a function
Final answer:

This relation is not a function because input 1 has two different outputs (2 and 5)

Applied rules:

• Function definition: Each input maps to exactly one output

• Repeated inputs: If any x-value appears more than once with different y-values, it's not a function

• Vertical line test: Conceptually, this would fail the vertical line test

Tip 1: Look for repeated x-values in ordered pairs to identify non-functions.
Tip 2: For a relation to be a function, every x-value must have exactly one y-value.
5 Multi-step Function Evaluation
Exercise 5
Given f(x) = 2x - 1 and g(x) = x² + 3, find f(g(2))
Definition:

Composite function: Applying one function to the result of another: f(g(x))

Given
f(x) = 2x - 1, g(x) = x² + 3
Find
f(g(2))
Step 1: Evaluate inner function g(2)

g(2) = (2)² + 3 = 4 + 3 = 7

Step 2: Use result as input for outer function

f(g(2)) = f(7)

Step 3: Evaluate f(7)

f(7) = 2(7) - 1 = 14 - 1 = 13

Step 4: Verify the process

Start with 2 → g(2) = 7 → f(7) = 13

f(g(2)) = 13
Final answer:

f(g(2)) = 13

Applied rules:

• Order of operations: Work from inside out in composite functions

• Function composition: f(g(x)) means "apply g first, then apply f to the result"

• Sequential evaluation: Solve step by step, using previous results as new inputs

Tip 1: For composite functions f(g(x)), evaluate g(x) first, then use that result as input to f.
Tip 2: Think of composite functions as a chain: input → g → output of g → f → final output.
Comprehensive Guide to Functions as Input/Output Relationships
f: x → y
Function Mapping
Key definitions:

Function: A relation where each element of the domain is paired with exactly one element of the range

Domain: Set of all possible input values (x-values)

Range: Set of all possible output values (y-values)

Function notation: f(x) represents the output when x is the input

Complete methodology:
  1. Identify the function: Recognize the relationship between input and output
  2. Determine the domain: Find all possible input values
  3. Evaluate for specific inputs: Substitute values into the function
  4. Analyze the range: Determine possible output values
  5. Verify function property: Ensure each input has exactly one output
Tip 1: Remember that f(x) is just another way of writing y, representing the output.
Tip 2: Functions can be represented in multiple ways: equation, table, graph, or ordered pairs.
Tip 3: The domain tells you what values you CAN use as input, while the range tells you what outputs you CAN get.
Tip 4: Always verify your function evaluations by substituting back into the original equation.
Common errors: Confusing domain and range, forgetting order of operations when evaluating, mistaking relations for functions when they aren't.
Exam preparation: Practice function evaluation, understand domain restrictions, master function notation, and learn to identify functions from various representations.
Essential formulas and rules:

• Function notation: f(x) means "the function of x" or "f of x"

• Domain restrictions: For √x, domain is x ≥ 0; for 1/x, domain is x ≠ 0

• Vertical line test: If any vertical line intersects the graph more than once, it's not a function

• Composite functions: f(g(x)) means apply g first, then apply f to the result

• Function equality: Two functions are equal if they have the same domain and produce the same output for every input

Questions & Answers

Question: I'm confused about the difference between domain and range. Can you explain this clearly with examples?

Answer: Great question! Think of a function as a machine:

  • Domain: What you PUT INTO the machine (input values)
  • Range: What comes OUT of the machine (output values)

Example: For f(x) = x² with domain {-2, -1, 0, 1, 2}:

  • Domain: {-2, -1, 0, 1, 2} (these are the inputs we're allowed to use)
  • Range: {0, 1, 4} because f(-2)=4, f(-1)=1, f(0)=0, f(1)=1, f(2)=4

Notice that although we have 5 inputs, we only get 3 different outputs. The range is the set of all possible outputs.

Think of it like a vending machine: domain = the money you can insert (valid denominations), range = the items you can get (what's available).

Question: How do I know if a graph represents a function? I've heard something about a vertical line test?

Answer: The vertical line test is a visual way to determine if a graph represents a function:

  • Draw vertical lines across the entire graph
  • If any vertical line intersects the graph more than once, it's NOT a function
  • If every vertical line intersects at most once, it IS a function

Why does this work? Because a function must have exactly one output for each input. On a graph, x-values are inputs and y-values are outputs. If a vertical line hits the graph twice, it means one x-value corresponds to two different y-values, violating the function rule.

Examples:

  • A straight line passes the test (function)
  • A parabola opening upward passes the test (function)
  • A circle fails the test (not a function)

The vertical line test ensures the "one output per input" requirement of functions.

Question: What's the difference between f(x) and y? Are they the same thing?

Answer: While f(x) and y often represent the same concept (the output), there are important distinctions:

  • y: A variable that represents the output value
  • f(x): Function notation that explicitly shows the relationship between input (x) and output

Similarities:

  • Both represent the dependent variable (output)
  • Both can be plotted on the vertical axis of a graph
  • y = 2x + 3 is equivalent to f(x) = 2x + 3

Differences:

  • f(x) makes the input explicit: "f of x" means "the function evaluated at x"
  • f(x) allows for multiple functions: f(x), g(x), h(x) for different functions
  • f(x) emphasizes the input-output relationship more clearly

In practice, f(x) = y, but f(x) notation provides more information about the functional relationship and allows for clearer mathematical communication.