Introduction to Functions - Complete Guide

Master functions: definitions, representations, domain and range, and applications through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Function Definition & Notation
Exercise 1
Given the function \(f(x) = 3x - 2\), evaluate \(f(4)\) and explain what this means. Then determine if the relation \(\{(1, 2), (2, 3), (3, 2), (4, 5)\}\) is a function.
Definition:

Function: A relation where each input (domain element) is paired with exactly one output (range element).

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

Function evaluation:
  1. Replace x with the given value
  2. Perform the indicated operations
  3. Simplify to find the output
Evaluate
\(f(4) = 3(4) - 2\)
Simplify
\(f(4) = 10\)
Check relation
Each input has one output
Step 1: Evaluate \(f(4)\)

Substitute \(x = 4\) into the function: \(f(4) = 3(4) - 2\)

\(f(4) = 12 - 2 = 10\)

This means when the input is 4, the output is 10.

Step 2: Interpret function notation

\(f(x) = 3x - 2\) means "f of x equals 3x minus 2"

\(f(4) = 10\) means the ordered pair (4, 10) is on the graph of the function

Step 3: Check if the relation is a function

Relation: \(\{(1, 2), (2, 3), (3, 2), (4, 5)\}\)

Domain elements: {1, 2, 3, 4}

Range elements: {2, 3, 5}

Step 4: Apply the function definition

For a relation to be a function, each domain element must map to exactly one range element

• Input 1 → Output 2 (unique)

• Input 2 → Output 3 (unique)

• Input 3 → Output 2 (unique)

• Input 4 → Output 5 (unique)

Step 5: Verify the function property

Notice that the output 2 appears twice, but for different inputs (1 and 3)

This is allowed in functions - different inputs can have the same output

What's not allowed is one input having multiple outputs

Step 6: Apply vertical line test conceptually

If we graphed these points, no vertical line would pass through more than one point

This confirms it's a function

\(f(4) = 10\); The relation is a function
Final answer:

\(f(4) = 10\), meaning when the input is 4, the output is 10. The given relation is a function because each input maps to exactly one output.

Applied rules:

• Function definition: Each input has exactly one output

• Function evaluation: Substitute and simplify

• Vertical line test: No vertical line intersects graph at more than one point

2 Function from Table
Exercise 2
Determine if the following table represents a function. If it is a function, state the domain and range. If not, explain why.
xy
-24
01
13
0-1
Definition:

Function from table: A table represents a function if no x-value appears more than once with different y-values.

Input
\(x = 0\)
Outputs
\(y = 1, y = -1\)
Result
Not a function
Step 1: List the ordered pairs

From the table: \(\{(-2, 4), (0, 1), (1, 3), (0, -1)\}\)

Step 2: Identify the domain

Domain = \{-2, 0, 1\} (all x-values)

Note: Even though 0 appears twice in the table, it's only listed once in the domain

Step 3: Identify the range

Range = \{4, 1, 3, -1\} (all y-values)

Step 4: Check function property

Examine if any x-value maps to multiple y-values

• x = -2 → y = 4 (OK)

• x = 0 → y = 1 AND y = -1 (PROBLEM!)

• x = 1 → y = 3 (OK)

Step 5: Apply the function definition

A function requires each input to have exactly one output

Since x = 0 maps to both y = 1 and y = -1, this violates the function definition

Step 6: Conclusion

This table does NOT represent a function because the input 0 has two different outputs

Not a function (input 0 maps to multiple outputs)
Final answer:

This table does not represent a function because the input value 0 corresponds to two different output values (1 and -1).

Applied rules:

• Function property: Each domain element maps to exactly one range element

• Domain: Set of all input values

• Range: Set of all output values

3 Function from Graph
Exercise 3
Use the vertical line test to determine if the following graph represents a function. [Graph description: A parabola opening upward with vertex at (0, -2)]
Definition:

Vertical line test: A graph represents a function if and only if no vertical line intersects the graph at more than one point.

Apply VLT
Draw vertical lines
Check intersections
At most one point
Conclusion
Function
Step 1: Understand the vertical line test

Imagine drawing vertical lines anywhere on the graph

If any vertical line touches the graph at more than one point, it's not a function

Step 2: Examine the given graph

Description: Parabola opening upward with vertex at (0, -2)

This is the graph of \(y = x^2 - 2\)

Step 3: Apply the test systematically

• Left of the y-axis: Vertical lines intersect the parabola once

• On the y-axis: Vertical line at x = 0 intersects at (0, -2) once

• Right of the y-axis: Vertical lines intersect the parabola once

Step 4: Check critical areas

Focus on where the graph changes direction (vertex at (0, -2))

Even at the vertex, the vertical line x = 0 intersects the graph at only one point

Step 5: Consider the entire domain

For any value of x, there is exactly one corresponding y-value

For example: If x = 3, then y = 3² - 2 = 7 (only one y-value)

Step 6: Conclusion

Since no vertical line intersects the graph at more than one point, this graph represents a function

Yes, the graph represents a function
Final answer:

Yes, the graph represents a function because it passes the vertical line test - no vertical line intersects the graph at more than one point.

Applied rules:

• Vertical line test: Primary method for graphical functions

• Parabolas: Opening upward or downward pass the test

• One-to-one correspondence: Each x-value has exactly one y-value

Function Fundamentals & Properties
\( f: X \to Y \text{ where } \forall x \in X, \exists ! y \in Y : f(x) = y \)
Function Definition in Set Notation
Domain
Set of inputs
All possible x-values
Range
Set of outputs
All possible y-values
Function
One output per input
Each x maps to unique y
Key definitions:

Function: A relation where each element in the domain corresponds to exactly one element in the range.

Domain: The set of all possible input values (x-values).

Range: The set of all possible output values (y-values).

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

Function identification methods:
  1. Ordered pairs: Check if any x-value appears with different y-values
  2. Table: Verify each input has only one output
  3. Graph: Apply the vertical line test
  4. Equation: Solve for y and check if each x yields one y
Solution: Exercises 4 to 5
4 Real-World Function
Exercise 4
The cost of attending a concert is $50 per ticket. Write a function to represent the total cost as a function of the number of tickets purchased. Identify the domain and range in the context of the problem.
Definition:

Real-world function: A function that models a practical situation with meaningful inputs and outputs.

Define variables
\(n = \text{tickets}, C(n) = \text{cost}\)
Set up function
\(C(n) = 50n\)
Domain & Range
\(n \in \mathbb{Z}^+, C(n) \in \mathbb{Z}^+\)
Step 1: Identify variables

Let n = number of tickets purchased (input)

Let C(n) = total cost in dollars (output)

Step 2: Establish the relationship

Cost per ticket = $50

Total cost = (Cost per ticket) × (Number of tickets)

\(C(n) = 50n\)

Step 3: Verify this is a function

For any number of tickets n, there is exactly one total cost C(n)

For example: If n = 3, then C(3) = 50(3) = $150 (only one possible cost)

Step 4: Determine the domain

Mathematically: n could be any real number ≥ 0

Contextually: Must be a non-negative integer (can't buy negative or fractional tickets)

Domain: \(\{0, 1, 2, 3, ...\}\) or \(\{n \in \mathbb{Z} | n \geq 0\}\)

Step 5: Determine the range

Since C(n) = 50n and n is a non-negative integer

Range: \(\{0, 50, 100, 150, 200, ...\}\)

Or in set notation: \(\{C(n) \in \mathbb{Z} | C(n) \geq 0 \text{ and } C(n) \text{ is a multiple of 50}\}\)

Step 6: Interpret the function

This function shows that cost increases linearly with the number of tickets

Each additional ticket adds $50 to the total cost

Step 7: Verify with examples

n = 0: C(0) = 50(0) = $0 (no tickets, no cost)

n = 1: C(1) = 50(1) = $50 (one ticket costs $50)

n = 4: C(4) = 50(4) = $200 (four tickets cost $200)

Function: \(C(n) = 50n\), Domain: \(\{n \in \mathbb{Z} | n \geq 0\}\), Range: \(\{50n | n \in \mathbb{Z}, n \geq 0\}\)
Final answer:

The function \(C(n) = 50n\) represents the total cost, where n is the number of tickets. The domain is all non-negative integers, and the range is all non-negative multiples of 50.

Applied rules:

• Variable definition: Clearly define what each variable represents

• Context matters: Consider practical constraints when determining domain/range

• Verification: Check that sample inputs produce expected outputs

5 Function Composition Application
Exercise 5
A store offers a 20% discount on all items. If an item originally costs \(x\) dollars, write a function \(f(x)\) to represent the sale price. Then write a function \(g(x)\) to represent the final price after a 10% sales tax is added to the sale price. Find \(g(f(x))\) and interpret its meaning.
Definition:

Function composition: Applying one function to the result of another function, denoted as \((g \circ f)(x) = g(f(x))\).

Discount function
\(f(x) = 0.8x\)
Tax function
\(g(x) = 1.1x\)
Composition
\(g(f(x)) = 0.88x\)
Step 1: Find the discount function \(f(x)\)

A 20% discount means the customer pays 80% of the original price

\(f(x) = x - 0.20x = 0.80x\) or \(f(x) = 0.8x\)

Step 2: Find the tax function \(g(x)\)

A 10% sales tax means paying the price plus 10% of that price

\(g(x) = x + 0.10x = 1.10x\) or \(g(x) = 1.1x\)

Step 3: Compute the composition \(g(f(x))\)

\(g(f(x)) = g(0.8x)\)

Apply g to the input 0.8x: \(g(0.8x) = 1.1(0.8x) = 0.88x\)

Step 4: Interpret \(g(f(x))\)

\(g(f(x))\) represents the final price after applying the discount and then adding tax

It's the composite function that takes the original price and returns the final cost

Step 5: Verify the function is valid

For any positive input x, \(g(f(x)) = 0.88x\) produces exactly one output

This confirms it's a function

Step 6: Test with a specific example

Let x = $100 (original price)

Step 1: Apply discount: \(f(100) = 0.8(100) = $80\)

Step 2: Apply tax: \(g(80) = 1.1(80) = $88\)

Direct calculation: \(g(f(100)) = 0.88(100) = $88\) ✓

Step 7: Analyze the result

The final price is 88% of the original price

This means the net effect is equivalent to a 12% discount

(100% - 88% = 12%)

\(g(f(x)) = 0.88x\); Final price after discount and tax
Final answer:

\(g(f(x)) = 0.88x\), which represents the final price of an item after a 20% discount followed by a 10% sales tax.

Applied rules:

• Function composition: Apply functions in order from inside out

• Percent calculations: Convert percentages to decimals for computation

• Verification: Check with specific values to confirm correctness

Comprehensive Function Theory Summary
\( f(x) = y \Leftrightarrow (x,y) \in f \)
Function as Ordered Pairs
Key definitions:

Function: A special type of relation where each input value (x) is associated with exactly one output value (y).

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

Range: The set of all possible output values that result from using the function.

Function notation: A concise way to represent functions using symbols like \(f(x)\), \(g(x)\), etc.

Function identification approaches:
  1. Algebraic: Solve equation for y and check if each x yields one y
  2. Tabular: Examine tables for repeated x-values with different y-values
  3. Graphical: Apply vertical line test to check for multiple intersections
  4. Set of pairs: Verify each first element appears only once
Tip 1: Remember: different inputs can have the same output, but one input cannot have multiple outputs.
Tip 2: Domain restrictions often come from practical constraints in word problems.
Tip 3: Function notation f(x) does NOT mean f times x.
Tip 4: The range depends on the domain and the function rule.
Common errors: Confusing domain and range, misapplying function notation, overlooking domain restrictions in applications.
Exam preparation: Practice all representation forms, master the vertical line test, focus on domain/range determination.
Essential properties:

• Uniqueness: Each domain element maps to exactly one range element

• Notation: f(x) represents the output for input x

• Representation: Functions can be shown as equations, tables, graphs, or sets of ordered pairs

• Operations: Functions can be combined through arithmetic operations and composition

Function Representation Visualization

Function Representation Forms:

  • Algebraic: Using equations like f(x) = 2x + 3
  • Tabular: Using input-output tables
  • Graphical: Using plots with the vertical line test
  • Verbal: Describing relationships in words
  • Set of Pairs: Listing ordered pairs like {(1,2), (3,4)}

Questions & Answers

Question: What's the difference between a relation and a function? Can you give an example?

Answer: A relation is any set of ordered pairs, while a function is a special type of relation with a specific property:

  • Relation: Any pairing of inputs and outputs
  • Function: Every input has exactly one output

Example of a relation that is NOT a function:

\(R = \{(1, 2), (1, 3), (2, 4)\}\)

This is not a function because input 1 maps to both 2 and 3 (one input, multiple outputs).

Example of a function:

\(F = \{(1, 2), (2, 4), (3, 6)\}\)

This is a function because each input (1, 2, 3) maps to exactly one output (2, 4, 6).

All functions are relations, but not all relations are functions.

Question: How do I find the domain and range from a graph?

Answer: To find domain and range from a graph:

Domain: Look at the horizontal extent of the graph

  • Project the graph onto the x-axis
  • The domain is all x-values where the function is defined
  • Look for the leftmost and rightmost points

Range: Look at the vertical extent of the graph

  • Project the graph onto the y-axis
  • The range is all y-values that appear on the graph
  • Look for the lowest and highest points

For example, if a graph extends from x = -3 to x = 5 horizontally, the domain is \([-3, 5]\).

If the graph extends from y = 1 to y = 8 vertically, the range is \([1, 8]\).

Pay attention to open/closed circles which indicate inclusion/exclusion of endpoints.

Question: How are functions used in real-world modeling?

Answer: Functions are fundamental to modeling real-world phenomena:

Business:

  • Cost functions: C(x) = fixed costs + variable costs per unit
  • Revenue functions: R(x) = price × quantity sold
  • Profit functions: P(x) = R(x) - C(x)

Science & Engineering:

  • Physics: Position as a function of time: s(t) = s₀ + v₀t + ½at²
  • Biology: Population growth: P(t) = P₀e^(rt)
  • Chemistry: Reaction rates, concentration changes

Everyday life: Temperature as a function of time, distance as a function of speed, grade as a function of study time.

The function property (one input → one output) ensures predictability and consistency in models.