Types of functions
MAT1510 - Precalculus Mathematics A · Functions and Graphs
Types of Functions
A function is a relation that assigns exactly one output value for each input value. In mathematics, there are several types of functions, each with unique characteristics. Understanding these types is essential for graphing functions and solving equations.
1. Linear Functions
A linear function is a function that can be expressed in the form:
f(x) = mx + b
where:
- m is the slope of the line
- b is the y-intercept (the value of f(x) when x = 0)
The graph of a linear function is a straight line. The slope indicates how steep the line is, and the y-intercept shows where the line crosses the y-axis.
Example: Consider the linear function f(x) = 2x + 3.
- Identify the slope (m) and y-intercept (b): m = 2, b = 3.
- To find the y-intercept, set x = 0: f(0) = 2(0) + 3 = 3. This point is (0, 3).
- To find another point, set x = 1: f(1) = 2(1) + 3 = 5. This point is (1, 5).
The graph passes through the points (0, 3) and (1, 5). Drawing a line through these points gives the graph of the function:
y-axis | ● (1, 5) ● (0, 3) y = 2x + 3 | ●-----------------●------------------ x-axisRemember: The graph of a linear function is always a straight line.
2. Quadratic Functions
A quadratic function is a function that can be expressed in the form:
f(x) = ax^2 + bx + c
where:
- a, b, and c are constants, and a ≠ 0.
The graph of a quadratic function is a parabola. It opens upwards if a > 0 and downwards if a < 0.
Example: Consider the quadratic function f(x) = x^2 - 4x + 3.
- Identify the coefficients: a = 1, b = -4, c = 3.
- To find the vertex, use the formula x = -b/(2a): x = -(-4)/(2*1) = 2.
- Substituting x = 2 into the function gives: f(2) = (2)^2 - 4(2) + 3 = 4 - 8 + 3 = -1. The vertex is (2, -1).
To find the x-intercepts, set f(x) = 0:
x^2 - 4x + 3 = 0
Factoring gives (x - 1)(x - 3) = 0, so x = 1 and x = 3 are the x-intercepts.
The graph passes through the points (1, 0), (2, -1), and (3, 0). The graph of the function is:
y-axis | ● (3, 0) ● (2, -1) ● (1, 0) y = x^2 - 4x + 3 | ●-----------------●------------------ x-axisWatch out: Ensure that a is not equal to zero when identifying a quadratic function.
3. Polynomial Functions
A polynomial function is a function that can be expressed in the form:
f(x) = a_nx^n + a_{n-1}x^{n-1} + ... + a_1x + a_0
where:
- a_n, a_{n-1}, …, a_1, a_0 are constants, and n is a non-negative integer.
- The degree of the polynomial is the highest power of x in the expression.
The graph of a polynomial function can have various shapes depending on its degree.
Example: Consider the polynomial function f(x) = 2x^3 - 3x^2 + x - 5.
- The degree of the polynomial is 3.
- To find the x-intercepts, set f(x) = 0:
2x^3 - 3x^2 + x - 5 = 0
This equation may require numerical methods or graphing to find the approximate roots.
Tip: Use the Rational Root Theorem to test possible rational roots for polynomial equations.
4. Exponential Functions
An exponential function is a function of the form:
f(x) = a * b^x
where:
- a is a constant (the initial value),
- b is the base of the exponential (b > 0 and b ≠ 1).
The graph of an exponential function increases rapidly if b > 1 and decreases if 0 < b < 1.
Example: Consider the exponential function f(x) = 3 * 2^x.
- The initial value is 3, and the base is 2.
- To find the value at x = 0: f(0) = 3 * 2^0 = 3 * 1 = 3.
- To find the value at x = 1: f(1) = 3 * 2^1 = 3 * 2 = 6.
The graph passes through the points (0, 3) and (1, 6). The graph of the function is:
y-axis | ● (1, 6) ● (0, 3) y = 3 * 2^x | ●-----------------●------------------ x-axis5. Logarithmic Functions
A logarithmic function is the inverse of an exponential function and is expressed as:
f(x) = log_b(x)
where:
- b is the base of the logarithm (b > 0 and b ≠ 1).
The graph of a logarithmic function increases slowly and approaches infinity as x approaches infinity.
Example: Consider the logarithmic function f(x) = log_2(x).
- To find f(1): f(1) = log_2(1) = 0, since 2^0 = 1.
- To find f(2): f(2) = log_2(2) = 1, since 2^1 = 2.
The graph passes through the points (1, 0) and (2, 1). The graph of the function is:
y-axis | ● (2, 1) ● (1, 0) y = log_2(x) | ●-----------------●------------------ x-axisWatch out: Logarithmic functions are only defined for x > 0.
6. Trigonometric Functions
Trigonometric functions relate angles to ratios of sides in a triangle. The primary trigonometric functions are sine, cosine, and tangent:
- f(x) = sin(x)
- f(x) = cos(x)
- f(x) = tan(x)
The graphs of these functions are periodic, meaning they repeat values at regular intervals.
Example: Consider the sine function f(x) = sin(x).
- The sine function has a period of 2π.
- To find f(0): f(0) = sin(0) = 0.
- To find f(π/2): f(π/2) = sin(π/2) = 1.
The graph passes through the points (0, 0) and (π/2, 1). The graph of the function is:
y-axis | ● (π/2, 1) ● (0, 0) y = sin(x) | ●-----------------●------------------ x-axisRemember: The sine function oscillates between -1 and 1.
Summary
- Linear functions are straight lines.
- Quadratic functions form parabolas.
- Polynomial functions can have various shapes based on their degree.
- Exponential functions grow rapidly.
- Logarithmic functions are the inverses of exponential functions.
- Trigonometric functions are periodic.
Check your understanding
- What is the general form of a linear function?
- How do you find the vertex of a quadratic function?
- What is the difference between an exponential function and a logarithmic function?
- What is the period of the sine function?