How To Write a Function Rule | Make Patterns Turn Algebraic

A function rule turns an input-output pattern into one equation that matches every allowed input with one output.

A function rule is just a sentence in math form. It tells you what happens to an input to get an output. Once that clicks, the work gets less foggy. You stop guessing and start reading the pattern like a set of instructions.

Most students meet function rules in tables, word problems, or graphs. The task stays the same: find the relationship, write it with variables, then test it. If your rule works for every row you were given, you’re on solid ground.

This article walks through that process in plain language. You’ll see how to spot the pattern, how to choose the right variables, and how to tell when a rule is linear, squared, or something else.

What A Function Rule Means

A function rule tells how one value depends on another. You start with an input, often called x, and the rule produces an output, often called y or f(x). A rule might be as simple as y = x + 4. That means every input gets 4 added to it.

The idea behind functions is steady: one input gets one output. That’s why tables matter. They let you see whether the pattern stays consistent from row to row. OpenStax explains function notation in the same input-to-output way, which helps when you move from words to symbols. OpenStax’s section on function notation is a solid reference for that shift.

Input Comes First, Output Comes Second

It sounds obvious, but this is where many mistakes start. The input is the value you begin with. The output is what you get after the rule acts on it. If a table shows 2 becoming 7, then 2 is the input and 7 is the output. Flip them, and you build the wrong rule.

When you label a table, write the input column on the left and the output column on the right. That small habit saves a lot of rework later.

Rules Describe A Pattern, Not One Row

One row can hint at a rule. It can’t prove it. A good function rule has to match all the data you were given. If one row fits and the next row breaks, the rule needs work.

That’s why the best move is to check how the output changes as the input changes. Are you adding the same amount each time? Are you multiplying? Are you squaring the input? Those clues point you toward the right kind of rule.

How To Write A Function Rule From Any Pattern

Here’s the clean method that works for most school problems:

  • Step 1: Mark which column is input and which is output.
  • Step 2: Look for a steady pattern in the outputs.
  • Step 3: Try a simple operation first: add, subtract, multiply, or divide.
  • Step 4: Write the rule with variables, such as y = 2x + 3.
  • Step 5: Test the rule on every row, not just the first one.

Say your table shows 1 → 5, 2 → 7, 3 → 9, 4 → 11. The output rises by 2 each time. That suggests a linear rule with slope 2. Then test a form like y = 2x + b. Put in 1 for x. You get 5 = 2(1) + b, so b = 3. The rule is y = 2x + 3.

That same habit works in reverse, too. If the outputs don’t rise by the same amount, don’t force a linear rule. Try squares, cubes, fractions, or a rule with more than one step.

Start With The Simplest Operation

Students often jump to fancy rules too soon. Start plain. Ask: what happens to the input first? Then ask whether anything is added or taken away after that.

Take 3 → 10, 4 → 13, 5 → 16. You might notice the output is a little more than triple the input. Test y = 3x + 1. It works for all three rows. Done.

Khan Academy’s practice on functions leans on that same habit: match each input to one output, then write the relationship in a form you can test. Their function materials are handy when you want extra drills after learning the process. Khan Academy’s functions lessons give more practice with tables, notation, and patterns.

Pattern Clues That Point To The Right Rule

If you’re not sure what kind of rule to try, use the clues below. They narrow the search fast and stop you from trying random equations.

What You Notice Likely Rule Type Sample Rule
Output rises by the same amount each row Linear y = 2x + 3
Output drops by the same amount each row Linear with negative slope y = -4x + 9
Output is always double, triple, or half the input Direct multiplication y = 3x
Output matches the square of the input Quadratic pattern y = x²
Output matches the square, then shifts up or down Shifted quadratic y = x² + 2
Output is the reciprocal of the input Rational y = 1/x
Output grows by multiplying, not adding Exponential y = 2x
Different input ranges follow different rules Piecewise y = x + 1 or y = 2x

Writing The Rule Without Guesswork

If the pattern is linear, there’s a clean route. Find how much the output changes when the input goes up by 1. That gives the slope. Then plug one input-output pair into y = mx + b to find the starting value.

That approach lines up with the algebra standards from the National Council of Teachers of Mathematics, which place strong weight on spotting patterns, using symbols well, and moving between tables, graphs, and equations. NCTM’s algebra standards page frames that link clearly.

Use Ordered Pairs To Check Your Work

Every row in a table is an ordered pair, like (2, 7). Once you write a rule, substitute the input into the equation and see if it gives the listed output. If it fails on one pair, the rule isn’t ready.

This step matters most when the pattern looks almost linear. A table can fool you if you only test one row. Two or three checks are better. Testing every row is best.

Watch For A Shift

Many rules are not just “times something.” They include a shift. In y = 4x – 1, the input gets multiplied by 4, then 1 is taken away. That last shift changes the whole table.

If your multiplication idea gets close but misses every row by the same amount, you probably need that extra add-or-subtract step.

Worked Examples You Can Model

These examples show how different patterns turn into different rules. Read the input-output change first, then read the equation.

Input → Output Rule Why It Fits
1 → 4, 2 → 6, 3 → 8 y = 2x + 2 Output rises by 2 and starts 2 above double the input
1 → 1, 2 → 4, 3 → 9 y = x² Each output is the input multiplied by itself
0 → 5, 1 → 10, 2 → 20 y = 5(2x) Output doubles each step, starting at 5
2 → 1/2, 4 → 1/4, 8 → 1/8 y = 1/x Each output is the reciprocal of the input

Common Mistakes That Break A Function Rule

Most wrong answers come from a handful of habits. If you know them, you can catch them early.

  • Mixing up input and output: This flips the relationship and leads to a backward rule.
  • Testing only one row: A weak rule can still fit the first pair.
  • Forcing a linear rule: Not every pattern rises by equal steps.
  • Ignoring the starting shift: Multiplication alone often isn’t enough.
  • Dropping parentheses: Writing y = 2x + 3 is not the same as y = 2(x + 3).

If your answer feels off, slow down and test it row by row. Math gets cleaner when you check each move instead of trying to spot the whole pattern in one flash.

When The Pattern Is Not Linear

Linear rules are common, but they’re not the whole story. If the output changes by 1, then 3, then 5, that points to a squared pattern. If the output doubles each time the input rises by 1, that points to exponential growth. If the output is built from two different rules on two different intervals, you may be dealing with a piecewise function.

One simple test helps: find the differences between outputs. If those differences stay the same, the rule is linear. If the differences change in a regular way, try a non-linear model.

What To Do When You’re Stuck

Write out what happens to one input in plain words. “Multiply by 3, then add 2.” That sentence often turns straight into the equation y = 3x + 2. If that sentence doesn’t work for the next row, change the model, not the arithmetic.

Another smart move is to graph the ordered pairs. A straight line points to a linear rule. A curve tells you to try something else.

One Simple Habit That Makes This Easier

Say the rule out loud before you write it. “Take the input, multiply by 2, then add 5.” When the words make sense, the symbols usually follow. That habit helps you catch odd choices before they harden into mistakes.

So if you’re asked how to write a function rule, don’t hunt for a trick. Read the pattern, write the operation in plain language, turn it into variables, and test every row. That’s the whole job. Once you do it a few times, function rules start to feel less like puzzles and more like translation.

References & Sources