Solved Exercises on Introduction to Functions in Grade 8

Master functions and function notation: identifying functions, evaluating functions, interpreting function notation, and solving real-world applications through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Identifying functions
Exercise 1
Determine if the following relations represent functions. Explain your reasoning for each: a) {(1, 2), (2, 3), (3, 4), (4, 5)}, b) {(1, 2), (1, 3), (2, 4), (3, 5)}, c) y = 2x + 1.
Definition:

Function: A relation where each input (x-value) has exactly one output (y-value). No input can map to more than one output. A function passes the vertical line test: any vertical line intersects the graph at most once.

Function identification method:
  1. Check if each input (x-value) appears only once in the relation
  2. For sets of ordered pairs, verify no x-value is repeated with different y-values
  3. For equations, check if each x-value produces exactly one y-value
  4. For graphs, apply the vertical line test
Relation a)
Function ✓
Relation b)
Not a function ✗
Relation c)
Function ✓
Step 1: Analyze relation a) {(1, 2), (2, 3), (3, 4), (4, 5)}

Inputs: 1, 2, 3, 4

Each input appears only once with a unique output

This is a function.

Step 2: Analyze relation b) {(1, 2), (1, 3), (2, 4), (3, 5)}

Input 1 maps to both 2 and 3

This violates the definition of a function (one input cannot have multiple outputs)

This is not a function.

Step 3: Analyze relation c) y = 2x + 1

For any value of x, substituting into the equation yields exactly one value of y

For example: if x = 5, then y = 2(5) + 1 = 11

This is a function.

Step 4: Explain the function concept

A function is like a machine: for each input, there is exactly one output

Functions ensure predictability and consistency

Step 5: Identify function notation

We can write relation c) as f(x) = 2x + 1

This means "f of x equals 2x + 1"

a) Function, b) Not a function, c) Function
Final answer:

Relation a) is a function because each input has exactly one output. Relation b) is not a function because input 1 maps to both 2 and 3. Relation c) is a function because for any x-value, there is exactly one corresponding y-value.

Applied rules:

• Function definition: Each input must have exactly one output

• One-to-one mapping: No x-value can appear more than once with different y-values

• Equation verification: For any x-value, substitution must yield exactly one y-value

Tip 1: A function ensures that each input produces exactly one output.
Tip 2: If an x-value repeats with different y-values, it's not a function.
Tip 3: Linear equations in the form y = mx + b always represent functions.
2 Evaluating functions
Exercise 2
Given the function f(x) = 3x - 4, evaluate: a) f(2), b) f(-1), c) f(0), d) f(a + 1).
Definition:

Evaluating a function: The process of finding the output value of a function for a given input value. To evaluate f(x) at x = a, substitute a for every instance of x in the function expression.

f(2)
2
f(-1)
-7
f(0)
-4
Step 1: Understand function notation

f(x) = 3x - 4 means "f of x equals 3x - 4"

To evaluate f at any value, substitute that value for x

Step 2: Evaluate f(2)

Substitute x = 2 into f(x) = 3x - 4

f(2) = 3(2) - 4 = 6 - 4 = 2

Step 3: Evaluate f(-1)

Substitute x = -1 into f(x) = 3x - 4

f(-1) = 3(-1) - 4 = -3 - 4 = -7

Step 4: Evaluate f(0)

Substitute x = 0 into f(x) = 3x - 4

f(0) = 3(0) - 4 = 0 - 4 = -4

Step 5: Evaluate f(a + 1)

Substitute x = (a + 1) into f(x) = 3x - 4

f(a + 1) = 3(a + 1) - 4 = 3a + 3 - 4 = 3a - 1

Step 6: Verify results

Check each result by substituting back into the original function

For example: f(2) = 3(2) - 4 = 6 - 4 = 2 ✓

f(2) = 2, f(-1) = -7, f(0) = -4, f(a+1) = 3a - 1
Final answer:

For the function f(x) = 3x - 4: a) f(2) = 2, b) f(-1) = -7, c) f(0) = -4, d) f(a + 1) = 3a - 1.

Applied rules:

• Function evaluation: Replace every occurrence of x with the input value

• Substitution: Maintain the order of operations when substituting expressions

• Distribution: When substituting expressions, distribute coefficients to all terms

Tip 1: Always substitute the entire input value for x, including signs.
Tip 2: When substituting expressions, use parentheses to avoid sign errors.
Tip 3: Check your arithmetic carefully when evaluating functions.
3 Function from graph
Exercise 3
Using the graph of function g(x), find: a) g(1), b) g(-2), c) the value(s) of x for which g(x) = 0, d) the y-intercept of g(x).
Definition:

Function from graph: A function represented visually on a coordinate plane. To evaluate the function at a specific x-value, locate that x-value on the x-axis, move vertically to the graph, then read the corresponding y-value. To find x-values for a specific y-value, locate that y-value on the y-axis, move horizontally to the graph, then read the corresponding x-value(s).

g(1)
2
g(-2)
-1
g(x) = 0
x = -3, x = 2
Step 1: Find g(1)

Locate x = 1 on the x-axis

Move vertically up to the graph

Read the y-value at that point: y = 2

Therefore, g(1) = 2

Step 2: Find g(-2)

Locate x = -2 on the x-axis

Move vertically to the graph

Read the y-value at that point: y = -1

Therefore, g(-2) = -1

Step 3: Find x-values where g(x) = 0

Locate y = 0 on the y-axis (the x-axis)

Find all points where the graph intersects the x-axis

The graph crosses the x-axis at x = -3 and x = 2

Therefore, g(x) = 0 when x = -3 and x = 2

Step 4: Find the y-intercept

The y-intercept occurs when x = 0

Locate x = 0 on the x-axis

Move vertically to the graph

Read the y-value: y = -2

Therefore, the y-intercept is (0, -2)

Step 5: Verify the function property

Check that any vertical line intersects the graph at most once

This confirms that g(x) represents a function

g(1) = 2, g(-2) = -1, g(x) = 0 at x = -3,2, y-int = (0, -2)
Final answer:

From the graph of g(x): a) g(1) = 2, b) g(-2) = -1, c) g(x) = 0 when x = -3 and x = 2, d) The y-intercept is (0, -2).

Applied rules:

• Vertical line test: A graph represents a function if no vertical line intersects it more than once

• Evaluation from graph: For f(a), find the y-value at x = a

• Zeroes of function: The x-values where the graph crosses the x-axis (where y = 0)

Tip 1: Use a ruler or straight edge to ensure accurate readings from the graph.
Tip 2: Function inputs (x-values) are found on the horizontal axis.
Tip 3: Function outputs (y-values) are found on the vertical axis.
Rules and methods, laws,...
\(f(x) = mx + b\)
Linear Function Form
Function Definition
Each input has exactly one output
One-to-one mapping
Function Evaluation
f(a) means substitute a for x
Replace x with input
Vertical Line Test
At most one intersection
Validates function
Key definitions:

Function: A relation where each input (x-value) has exactly one output (y-value). Written as f(x), g(x), h(x), etc.

Domain: The set of all possible input values (x-values) for which the function is defined.

Range: The set of all possible output values (y-values) that the function can produce.

Function notation: A way to write functions using f(x), g(x), h(x), etc., instead of y.

Input: The value substituted into a function (x-value).

Output: The value produced by a function (y-value).

Complete methodology:
  1. Identifying functions: Check that each input maps to exactly one output
  2. Evaluating functions: Substitute the input value for x in the function expression
  3. Reading from graphs: Use the vertical line test and trace coordinates
  4. Creating functions: Write equations that pass the function test
  5. Verifying solutions: Check that evaluations satisfy the original function
Tip 1: Functions ensure predictable outputs for given inputs.
Tip 2: The notation f(x) is read as "f of x" not "f times x".
Tip 3: Always verify your function evaluations by substituting back.
Tip 4: Linear functions always pass the vertical line test.
Common errors: Confusing function notation with multiplication, thinking a function can have multiple outputs for one input, misreading coordinates from graphs.
Exam preparation: Practice identifying functions from different representations, focus on function evaluation, and work on graph reading skills.
Formulas to know by heart:

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

• Linear function: f(x) = mx + b where m is slope and b is y-intercept

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

Solution: Exercises 4 to 5
4 Real-world function application
Exercise 4
A store charges a $5 entrance fee plus $3 per item purchased. Write a function C(n) that represents the total cost C for purchasing n items. Then evaluate C(4) and determine how many items can be purchased for $20.
Definition:

Real-world function: A function that models a practical situation. The function's input represents an independent variable (like number of items), and the output represents a dependent variable (like total cost).

Function
C(n) = 3n + 5
C(4)
$17
Items for $20
5 items
Step 1: Identify the variables

Input (independent variable): n = number of items purchased

Output (dependent variable): C = total cost in dollars

Step 2: Identify the components of the cost

Fixed cost: $5 entrance fee (doesn't depend on number of items)

Variable cost: $3 per item × n items = $3n

Step 3: Write the function

Total cost = Fixed cost + Variable cost

C(n) = 5 + 3n

Or equivalently: C(n) = 3n + 5

Step 4: Evaluate C(4)

Substitute n = 4 into the function:

C(4) = 3(4) + 5 = 12 + 5 = 17

So C(4) = $17

Step 5: Find number of items for $20

Set C(n) = 20 and solve for n:

3n + 5 = 20

3n = 20 - 5

3n = 15

n = 5

Step 6: Verify the solution

Check: C(5) = 3(5) + 5 = 15 + 5 = 20 ✓

C(n) = 3n + 5, C(4) = $17, $20 = 5 items
Final answer:

The function representing the total cost is C(n) = 3n + 5. The cost for purchasing 4 items is $17. For $20, a customer can purchase 5 items.

Applied rules:

• Modeling real-world situations: Identify fixed and variable components

• Function evaluation: Substitute the input value into the function expression

• Function inversion: Solve for input when output is known

Tip 1: In real-world problems, the y-intercept often represents a fixed cost or starting value.
Tip 2: The slope often represents a rate of change (cost per item, distance per hour, etc.).
Tip 3: Always check that your answer makes sense in the context of the problem.
5 Function composition
Exercise 5
Given f(x) = 2x - 3 and g(x) = x + 5, find: a) f(g(2)), b) g(f(2)), c) f(g(x)), d) g(f(x)). Explain the differences between these compositions.
Definition:

Function composition: The process of applying one function to the result of another function. The notation f(g(x)) means "apply g first, then apply f to the result." Order matters in function composition.

f(g(2))
3
g(f(2))
6
f(g(x))
2x + 7
Step 1: Understand function composition notation

f(g(x)) means "f of g of x" - apply g first, then apply f to the result

g(f(x)) means "g of f of x" - apply f first, then apply g to the result

Step 2: Find f(g(2))

First, find g(2): g(2) = 2 + 5 = 7

Then, find f(7): f(7) = 2(7) - 3 = 14 - 3 = 11

So f(g(2)) = 11

Step 3: Find g(f(2))

First, find f(2): f(2) = 2(2) - 3 = 4 - 3 = 1

Then, find g(1): g(1) = 1 + 5 = 6

So g(f(2)) = 6

Step 4: Find f(g(x))

g(x) = x + 5

f(g(x)) = f(x + 5) = 2(x + 5) - 3 = 2x + 10 - 3 = 2x + 7

Step 5: Find g(f(x))

f(x) = 2x - 3

g(f(x)) = g(2x - 3) = (2x - 3) + 5 = 2x + 2

Step 6: Explain the differences

f(g(x)) = 2x + 7 and g(f(x)) = 2x + 2 are different functions

Function composition is not commutative: f(g(x)) ≠ g(f(x)) in general

f(g(2)) = 11, g(f(2)) = 6, f(g(x)) = 2x + 7, g(f(x)) = 2x + 2
Final answer:

For f(x) = 2x - 3 and g(x) = x + 5: a) f(g(2)) = 11, b) g(f(2)) = 6, c) f(g(x)) = 2x + 7, d) g(f(x)) = 2x + 2. Function composition is not commutative, meaning f(g(x)) ≠ g(f(x)).

Applied rules:

• Order of operations: In f(g(x)), evaluate g(x) first, then apply f

• Non-commutativity: Function composition generally does not commute: f(g(x)) ≠ g(f(x))

• Substitution: Replace the variable in the outer function with the entire inner function

Tip 1: Always work from the inside out when composing functions.
Tip 2: Use parentheses to keep track of substitutions when composing functions.
Tip 3: Function composition is not commutative - order matters!
Detailed Summary of Understanding Functions and Function Notation
Comprehensive Concepts:

What is a Function? A function is a special type of relation where each input (x-value) has exactly one output (y-value). Think of a function as a machine: you put in an input, and you get exactly one output. Functions ensure predictability and consistency.

Function Notation: Instead of writing y = 2x + 1, we write f(x) = 2x + 1. This notation allows us to clearly identify the function (f) and its input variable (x).

Key Properties of Functions:

  • One-to-one mapping: Each input maps to exactly one output
  • Vertical line test: A graph represents a function if no vertical line intersects it more than once
  • Domain: The set of all possible input values
  • Range: The set of all possible output values
Core Methods:

Identifying Functions:

  1. For sets of ordered pairs: Check that no x-value appears more than once
  2. For equations: Verify that each x-value produces exactly one y-value
  3. For graphs: Apply the vertical line test
  4. For tables: Ensure each input has exactly one output

Evaluating Functions:

  1. Substitute the given input value for x in the function expression
  2. Simplify the expression following order of operations
  3. When substituting expressions, use parentheses to avoid errors
  4. Verify by checking that the result makes sense

Working with Function Notation:

  1. Understand that f(x) means "the output of function f when the input is x"
  2. Recognize that f(x) is not multiplication of f and x
  3. Practice substituting different values and expressions for x
  4. Learn to work with multiple functions (f(x), g(x), h(x), etc.)
Examples:

Simple: f(x) = x + 2, so f(3) = 5

Linear: g(x) = 2x - 1, so g(0) = -1

Quadratic: h(x) = x² + 1, so h(-2) = 5

Composition: f(g(x)) where f(x) = x + 1 and g(x) = 2x → f(g(x)) = 2x + 1

Common Pitfalls:

• Confusing function notation with multiplication

• Thinking a function can have multiple outputs for one input

• Forgetting to use parentheses when substituting expressions

• Misreading coordinates from function graphs

Memory Tip: "f of x" means "what the function f outputs when x is the input"
Visual Tip: Functions pass the vertical line test - any vertical line intersects the graph at most once
Checking Work: Always verify function evaluations by substituting back into the original function

Questions & Answers

Question: I don't understand why we use f(x) instead of just y. What's the advantage of function notation?

Answer: Function notation offers several advantages over just using y:

Clarity: f(x) explicitly shows that the expression depends on x, making the relationship clear.

Multiple functions: You can have f(x), g(x), h(x), etc., to distinguish between different functions.

Operations: Function notation allows for operations like composition: f(g(x)) or arithmetic: f(x) + g(x).

Evaluation: It's clearer to write f(3) = 7 than "when x = 3, y = 7".

For example, if f(x) = x² and g(x) = 2x + 1, you can easily compute f(g(3)) = f(7) = 49. Without function notation, this would be more cumbersome to express.

Question: How do I know if a graph represents a function?

Answer: Use the vertical line test:

Procedure:

  • Imagine or 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 the graph at most once, it is a function

Why this works: A function must have exactly one output (y-value) for each input (x-value). If a vertical line intersects the graph twice, it means one x-value corresponds to two different y-values, violating the function definition.

For example:

  • A parabola opening upward passes the test (it's a function)
  • A circle fails the test (not a function) because vertical lines can intersect it twice
  • A straight line (not vertical) passes the test (it's a function)

Question: What does it mean when a function has f(a + h)? How do I evaluate that?

Answer: f(a + h) means to substitute (a + h) for every instance of x in the function f(x). This is commonly used in calculus but appears in algebra as well.

Process:

  • Take the function expression
  • Replace every x with (a + h)
  • Simplify the resulting expression

For example, if f(x) = x² + 3x + 2:

  • f(a + h) = (a + h)² + 3(a + h) + 2
  • = a² + 2ah + h² + 3a + 3h + 2

Always use parentheses when substituting expressions to avoid sign errors and ensure proper distribution.