College Algebra: Relations and Functions

What is a Relation?

A relation in algebra is a set of ordered pairs, where each element in the domain is related to an element in the range based on the a certain rule or condition. Relations are foundational to understanding functions that is, relations help us understand how elements from two sets interact with each other, and they serve as the foundation for studying functions.

Example 1: Simple Ordered Pairs

Consider two sets:

A relation could be:

R = {(1, 4), (2, 5), (3, 6)}

This relation pairs each element in Set A with an element in Set B could be a set of ordered pairs as folloes: R={(1,4),(2,5),(3,6)}

Example 2: A Non-Function Relation

R = {(1, 4), (1, 5), (2, 6)}

This is a relation, but not a function. Because, the element 1 from the domain is paired with both 4 and 5, which means one element from the domain is related to multiple elements in the range. This is a relation but not a function since a function requires that each element in the domain map to exactly one element in the range.

Graphical Representation of a Relation

A relation can be represented as a graph of points (π‘₯ , 𝑦) in a coordinate plane. For instance, the ordered pairs (1,4),(2,5),(3,6) from the earlier example can be plotted as points.

Conclusion

A relation is a broader concept that simply shows how two sets are connected, while a function is a special type of relation with stricter rules. Studying relations provides a foundation for understanding functions, which are pivotal in algebra.

What is a Function?

A function is a special type of relation where each input from the domain is related to exactly one output in the range. Functions are essential in algebra because they describe consistent relationships. The key distinction between a function and a general relation is that a function assigns only one output to each input.

Definition of Function

A function 𝑓 from set 𝐴 to set 𝐡 is a relation that associates each element π‘₯ in set 𝐴 (the domain) with exactly one element 𝑦 in set 𝐡 (the range). This can be written as 𝑓: 𝐴 β†’ 𝐡, meaning that the function 𝑓 takes inputs from 𝐴 and assigns them to values in 𝐡.

n simpler terms:

Function Notation

Example 1: Simple Linear Function

Let f(x) = 2x + 3. This is a linear function where each input is associated with exactly one output.

Here,

For example:

This is a function because for each input π‘₯, there is only one corresponding output.

Example 2: Function in Real Life (Temperature Conversion)

Consider the function that converts Celsius to Fahrenheit: $$ f(c) = \frac{9}{5} C + 32 $$

In this case:

This function has one unique Fahrenheit value for every Celsius input, so it satisfies the definition of a function.

Example 3: Non-Function Example (Failing the Function Test)

Let’s revisit the relation: $$ R = {(1,4),(1,5), (2,6)}, $$

In this relation, 1 is related to both 4 and 5. This is not a function because the input 1 does not have a unique output. A function requires each input to map to exactly one output.

Vertical Line Test

One way to visually determine whether a relation is a function is to use the vertical line test on its graph. If a vertical line drawn through any point on the graph intersects the graph at more than one point, the relation is not a function. If it only intersects once for any vertical line, then it is a function.

Example 4: Graphical Representation

Consider the graph of: $$ f(x) = x^2 $$

Now consider the graph of a circle, say $$ x^2 + y^2 = 1 $$

Domain and Range of Functions

For example, the function 𝑓(π‘₯) = 1/π‘₯ has a domain of all real numbers except π‘₯ = 0 (since division by zero is undefined). Its range is all real numbers except 𝑦 = 0.

Conclusion:

A function is a specific type of relation where each input is associated with exactly one output. Functions are fundamental in algebra because they describe predictable, consistent relationships between variables. Whether through equations, tables, or graphs, understanding functions allows us to model and solve real-world problems, making them an essential concept in algebra.

Function Notation

Function notation is a way to express the relationship between the input and the output in a concise format.

Value of the Function

The value of a function is the output obtained when a specific input is substituted into the function.

For the function \( f(x) = x^2 - 4x + 1 \), to find \( f(3) \):

Thus, the value of the function at \( x = 3 \) is \( -2 \).

The Difference Quotient of a Function

The difference quotient is a formula used to compute the average rate of change of a function over an interval. It is fundamental in calculus and is used to approximate the derivative of a function, which represents the instantaneous rate of change. The formula for the difference quotient of a function 𝑓(π‘₯) is:

$$ \frac{f(x+h) - f(x)}{h} $$

The difference quotient measures the change in the function's output (the "rise") relative to the change in the input (the "run").

The Formula

$$ \frac{f(x+h) - f(x)}{h} $$

This gives the average rate of change of the function over the interval from π‘₯ to π‘₯ + β„Ž.

Explanation

This formula calculates the average rate of change of the function \( f(x) \) between two points \( x \) and \( x+h \), where \( h \) represents the difference between the two points.

Example 1: Linear Function

Let's take a simple linear function:

$$ f(x) = 3x + 2 $$

To find the difference quotient, we apply the formula:

1. Find \( f(x+h) \):

$$ f(x+h) = 3(x+h) + 2 = 3x + 3h + 2 $$

2. Substitute into the difference quotient:

$$ \frac{f(x+h) - f(x)}{h} = \frac{(3x + 3h + 2) - (3x + 2)}{h} $$

3. Simplify:

$$ \frac{3h}{h} = 3 $$

So, the difference quotient for the linear function \( f(x) = 3x + 2 \) is 3, which is the constant rate of change of the function, which makes sense because the slope of a linear function is constant.

Example 2: Quadratic Function

Now, let's try a quadratic function:

$$ f(x) = x^2 $$

To find the difference quotient, we proceed as follows:

1. Find \( f(x+h) \):

$$ f(x+h) = (x+h)^2 = x^2 + 2xh + h^2 $$

2. Substitute into the difference quotient:

$$ \frac{f(x+h) - f(x)}{h} = \frac{(x^2 + 2xh + h^2) - x^2}{h} $$

3. Simplify:

$$ \frac{2xh + h^2}{h} = 2x + h $$

So, the difference quotient for the quadratic function \( f(x) = x^2 \) is \( 2x + h \).

Key Takeaways

The Difference Quotient as a Foundation for Derivatives:

The difference quotient is the starting point for understanding derivatives in calculus. The derivative is essentially the limit of the difference quotient as β„Ž approaches 0:

$$ f ′(x)= h→0lim \frac{f(x+h) - f(x)}{h} $$

This concept will lead students to explore the idea of instantaneous rates of change, which is central to calculus.