Back to Course

Functions Basics

What Is a Function?

A function is a rule that assigns exactly one output to every valid input. Think of it as a machine: you feed in a number, it applies a fixed process, and spits out a result.
Unique Output: Each input can only produce one output. If inputting 3 gives both 7 and 9, that rule is not a function.
Multiple Inputs, Same Output: Different inputs can share the same output. and is perfectly valid.
Process-Oriented: A function describes how to transform inputs, not just a static set of pairs.
Function notation uses (read 'f of x') to name the rule and show where the input goes. The letter is the name of the rule, is the input, and is the output value.
The notation packages the rule name, the input variable, and the output into one compact symbol.
=Name of the function (can be any letter: $g$, $h$, $P$, $C$, etc.)(—)
=The input variable (placeholder for the value you plug in)(—)
=The output value — the result after the rule is applied to $x$(depends on context)
→
Evaluate the rule with
→
Evaluate the rule with — substitute the entire expression
Naming Flexibility: Different letters signal meaning in context — for cost as a function of quantity, for profit as a function of time.
Not Multiplication: does NOT mean . It means 'the value of function at input '.
Example Function:

Domain and Range

The domain of a function is the set of all valid input values — the numbers you're allowed to plug in without breaking the rule.
Real-World Restrictions: If represents the cost of producing items, the domain might be (you can't produce negative items) or (whole items only).
Mathematical Restrictions: Denominators cannot be zero, and square roots (of real numbers) cannot have negative radicands.
Stating the Domain: Write as an inequality (), an interval (), or in set notation ().
The range of a function is the set of all possible output values — every result the function can actually produce when you feed it valid inputs from the domain.
Dependent on Domain: The range depends on which inputs you allow. Restrict the domain and the range changes too.
Finding the Range: Plug in domain values and collect all outputs. For continuous functions, look for minimum/maximum values.
Not Every Real Number: Even if the codomain is 'all real numbers', the range might be smaller — e.g., never produces negative outputs.

Domain Restriction Quick Reference

•
Denominator: expression under fraction ≠ 0
•
Square root: expression under root ≥ 0
•
Logarithm: expression inside log > 0
•
Real-world context: non-negative values, whole numbers, or specific intervals

Evaluating Functions

Evaluating a function means substituting a specific number (or expression) for the input variable and simplifying to get the output.
Evaluation is mechanical: swap out the variable, then compute.
=The function evaluated at the specific input $a$(depends on context)
=Any number or expression substituted for $x$(—)
→
Substitute for every — useful for checking even/odd symmetry
→
Substitute for every — needed for difference quotients
Substitute Everything: Every occurrence of gets replaced — including inside exponents, fractions, and parentheses.
Simplify Fully: After substitution, carry out all arithmetic. .
Expression Inputs: You can evaluate at expressions, not just numbers. means substitute everywhere appears.

Linear Functions

A linear function produces a constant rate of change — the output changes by the same amount for every unit increase in input. Its graph is always a straight line.
The output equals the slope times the input plus a starting value (y-intercept).
=Slope — the rate of change (rise over run)(units of output per unit of input)
=Y-intercept — the output when $x = 0$(same as output)
=The input variable(depends on context)
=The output value(depends on context)
→
Constant function — , a horizontal line
→
Direct proportionality — , the line passes through the origin
→
Increasing function — output rises as input grows
→
Decreasing function — output falls as input grows
Slope as Rate: If models savings over months, you save 100 (intercept).
Finding Slope from Two Points: Given and , the slope is .
Domain and Range: For a linear function, both are typically all real numbers unless real-world constraints apply.

Quadratic Functions

A quadratic function has a squared term, giving it a parabolic (U-shaped or inverted U-shaped) graph. The output changes at an accelerating (or decelerating) rate.
A polynomial of degree 2 that produces a parabola when graphed.
=Leading coefficient — controls whether the parabola opens up or down and how wide/narrow it is(—)
=Linear coefficient — affects the horizontal position of the vertex(—)
=Constant term — the y-intercept ($f(0) = c$)(same as output)
→
Parabola opens upward — vertex is the minimum point
→
Parabola opens downward — vertex is the maximum point
→
Degenerates to a linear function
Direction: The sign of tells you which way the parabola opens — positive means a smile (minimum), negative means a frown (maximum).
Width: Larger makes a narrower parabola (steeper curve); smaller makes a wider, flatter one.
Y-Intercept: Always at — plug in to find where the graph crosses the y-axis.
The vertex of a parabola is its highest or lowest point. Its x-coordinate is found using a simple formula derived from the coefficients.
The vertex sits at the axis of symmetry — a vertical line that divides the parabola into two mirror halves.
=X-coordinate of the vertex (input value at the turning point)(same as input)
=Y-coordinate of the vertex (maximum or minimum output)(same as output)
→
Vertex is on the y-axis at , so the vertex is
Maximum vs Minimum: If , the vertex is the minimum. If , the vertex is the maximum.
Axis of Symmetry: The vertical line is the mirror line — points equally distant from it have the same y-value.
Vertex Form: Rewriting as directly reveals the vertex at .

Piecewise Functions

A piecewise function uses different rules for different parts of its domain. Each rule applies only to inputs that satisfy a specific condition.
Different formulas govern different intervals or conditions of the input.
=The expression used for inputs satisfying condition $i$(—)
=The domain restriction for which rule $i$ applies(—)
Check Conditions First: To evaluate , check which condition satisfies, then use the matching rule.
Non-Overlapping Conditions: The conditions should cover the entire domain without overlapping — each input belongs to exactly one rule.
Real-World Use: Tax brackets, shipping costs, and bulk pricing are all piecewise — the rule changes at thresholds.

Composition of Functions

Function composition chains two functions together: the output of one becomes the input of the next. It represents applying one process after another.
First apply to , then feed that result into .
='f composed with g' — apply $g$ first, then $f$(depends on context)
=The inner function — evaluated first(—)
=The outer function — applied to the result of $g(x)$(—)
→
Composition is generally NOT commutative — order matters
Right to Left: means work from the inside out — compute first, then plug that into .
Order Matters: If and , then but — different results.
Domain of Composition: The domain of is all in the domain of such that is in the domain of .