Functions: Introduction to Functions

Understand what a function is, explore real-world analogies, master function notation f(x), and learn to identify points and y-intercepts.

✔️Solved: null

Learning Guide: The Coordinate System

Learning Guide: Introduction to Functions

A function is a mathematical rule or relationship that connects inputs to outputs. For every input, a function assigns exactly one output.

Real-World Analogies

  • Vending Machine: You input a code (like A1A1), and the machine outputs exactly one specific snack (like potato chips). If one code could output different items at random, it wouldn't work like a function!
  • Temperature Over Time: For any specific hour of the day (input), there is exactly one specific temperature (output).
  • Buying Apples: If apples cost 33 dollars per kilogram, the total price (output) depends on the weight (input). We can write this rule as: Price=3WeightPrice = 3 \cdot Weight.

Function Notation f(x)f(x)

We write functions using the notation:
f(x)=expressionf(x) = \text{expression}
  • ff is the name of the function.
  • xx is the input variable.
  • f(x)f(x) represents the output value (the result of the rule applied to xx).

    For example, if f(x)=2x+1f(x) = 2x + 1:
  • If we input 33, we substitute xx with 33: f(3)=2(3)+1=7f(3) = 2(3) + 1 = 7. The input 33 gives the output 77.
  • If we input 00, we substitute xx with 00: f(0)=2(0)+1=1f(0) = 2(0) + 1 = 1.

Equations That Are Not Functions

It is important to understand that there are valid mathematical equations that are not functions. One of the simplest examples is x=1x = 1 (or x=cx = c for any constant cc). While x=1x = 1 is a perfectly valid and meaningful mathematical equation (describing a vertical line), it is not a function because the input x=1x = 1 corresponds to infinitely many output values yy. The validity of a mathematical equation should not be confused with whether it defines a function.
−4−4−2−222440xyx = 1(1, 2)(1, −2)
Figure 1b: The vertical line x=1x = 1 is a valid mathematical equation but not a function, because the input x=1x = 1 corresponds to multiple different output values (like y=2y = 2 and y=2y = -2).

Functions and Graphs

When we draw a function on a coordinate system, the input (xx) corresponds to the horizontal position, and the output (f(x)f(x) or yy) corresponds to the vertical position. Each input-output pair gives us a point on the graph:
  • If f(3)=5f(3) = 5, it corresponds to the point (3,5)(3, 5) on the graph.
  • If f(0)=2f(0) = 2, it corresponds to the point (0,2)(0, 2) on the graph.
-4-4-2-222440xyf(x) = x + 2(3, 5) : f(3) = 5(0, 2) : f(0) = 2

Distinguishing Functions & the yy-axis Crossing

We can often distinguish functions by looking at where they cross the vertical yy-axis. The point where a function crosses the yy-axis is called the y-intercept. It is always found by setting the input to 00, which gives the point (0,f(0))(0, f(0)).

For example, look at the two lines in the graph below:
  • The blue line representing f(x)=x+1f(x) = x + 1 crosses the yy-axis at (0,1)(0, 1), because f(0)=1f(0) = 1.
  • The red line representing g(x)=x+3g(x) = -x + 3 crosses the yy-axis at (0,3)(0, 3), because g(0)=3g(0) = 3.
    Since f(0)g(0)f(0) \neq g(0), they cross the vertical axis at different heights, helping us tell them apart!
-4-4-2-222440xyf(x) = x + 1g(x) = -x + 3f(0) = 1g(0) = 3
Figure 1: Two functions f(x) = x + 1 (blue) and g(x) = -x + 3 (red), crossing the y-axis at f(0) = 1 and g(0) = 3 respectively.
Learning Topics
Introduction to Functions | SealMath