Function Formula

A function is a rule that assigns to each input in the domain exactly one output in the codomain — every input maps to precisely one output, never two.

The Formula

y=f(x)

Ask yourself: Does every allowed input give exactly one output, never two?

Quick example

f(x)=x2 Input 3, output 9. Input −3, output 9. Never two different outputs for one input.

Notation

f(x) denotes the output of function f at input x. Also written f ⁣:X→Y.

What this formula means

A function is a rule that assigns to each input in the domain exactly one output in the codomain — every input maps to precisely one output, never two.

A function works like a car-park ticket machine: enter how long you stayed and it prints one fee. Two different stays can cost the same, but the same stay never prints two different fees. Unlike the machine, a function's rule can be any formula, and its inputs need not be whole hours.

Formal view

f ⁣:X→Y is a function   ⟺   ∀x∈X,  ∃! y∈Y:(x,y)∈f

Worked examples

Example 1

easy
Determine whether the relation {(1,3),(2,5),(3,7),(4,9)} is a function.
Show solution

Answer

Yes, it is a function.

First step

1.
A relation is a function if every input (first element) maps to exactly one output (second element).

Full solution

  1. 2.
    List the inputs: 1,2,3,4. Each input appears exactly once, so each has a unique output.
  2. 3.
    Since no input is repeated with a different output, this relation is a function.
A function assigns exactly one output to each input. The vertical line test for graphs and the uniqueness of first elements in ordered pairs are equivalent ways to check this.

Example 2

medium
Does the equation x2+y2=25 define y as a function of x?

Example 3

medium
Given f(x)=2x2−3x+1, find f(4) and determine if g={(1,2),(3,4),(1,5)} is a function.

Common mistakes

  • Calling any equation in x and y a function - check first that each x gives only one y (vertical line test).
  • Thinking one output can come from only one input - functions allow many inputs to share an output; they forbid one input giving many outputs.
  • Reading f(x) as f times x - it means the output of rule f at input x.

Why this formula matters

Once a relationship is a function you can ask for the output at a given input, graph it, reverse it or chain it with another rule, and each of those moves relies on the output being unambiguous. If one input could produce two outputs, a statement like f(4)=7 would not even make sense, and a calculator could not plot the rule.

Frequently asked questions

What is the Function formula?

A function is a rule that assigns to each input in the domain exactly one output in the codomain — every input maps to precisely one output, never two.

How do you use the Function formula?

Use function language when one quantity determines another: the cost depends on the weight, height is given as a function of time, or a rule is written f(x). Then test it. In a table, look for an input repeated with different outputs; on a graph, use vertical lines; in an equation, solve for y and look for a ±. If an input genuinely has several partners, as with 'people born in a given year', you have a relation. If you only need one unknown number, you have an equation to solve, not a function to study.

What do the symbols mean in the Function formula?

f(x) denotes the output of function f at input x. Also written f ⁣:X→Y.

Why is the Function formula important in Math?

Once a relationship is a function you can ask for the output at a given input, graph it, reverse it or chain it with another rule, and each of those moves relies on the output being unambiguous. If one input could produce two outputs, a statement like f(4)=7 would not even make sense, and a calculator could not plot the rule.

What do students get wrong about Function?

The procedure for function is the easy part; the trap is calling any equation in x and y a function. Asking "Does every allowed input give exactly one output, never two?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

The full guide

This formula is covered in depth in Functions and Graphs: Complete Foundations for Algebra and Calculus.