How To Find The Equation Of A Function

5 min read

How to Find the Equation of a Function

Finding the equation that describes a function is a core skill in algebra, calculus, and data analysis. Also, whether you are given a graph, a table of values, or a verbal description, the process involves identifying patterns, choosing an appropriate function family, and solving for the unknown parameters. Below is a step‑by‑step guide that works for the most common types of functions—linear, quadratic, exponential, and polynomial—along with tips for tackling more complex cases.

The official docs gloss over this. That's a mistake.


1. Identify the Type of Function

Before you can write an equation, you must decide which family of functions best fits the information you have. Look for these clues:

Clue in the Data / Graph Likely Function Family
Constant first differences (Δy) Linear ( f(x) = mx + b )
Constant second differences (Δ²y) Quadratic ( f(x) = ax² + bx + c )
Constant ratio of successive y‑values (when x increases by 1) Exponential ( f(x) = a·bˣ )
More than two levels of constant differences Higher‑degree polynomial (degree = number of constant‑difference levels)
Symmetry about a vertical line, vertex visible Quadratic in vertex form ( f(x) = a(x‑h)² + k )
Horizontal asymptote, rapid growth/decay Exponential or logarithmic
Periodic repeating pattern Trigonometric (sine/cosine)

Tip: Plot the points if you only have a table; the visual shape often reveals the family instantly.


2. Gather Enough Information

Each unknown parameter in the chosen form needs an independent piece of data.
On top of that, - Linear (2 parameters: m, b) → need 2 points. - Quadratic (3 parameters: a, b, c) → need 3 points (or vertex + one point).
But - Exponential (2 parameters: a, b) → need 2 points (provided x‑values differ). - Cubic (4 parameters) → need 4 points, etc.

If you have more points than required, you can use them to check consistency or apply a regression method (least‑squares) to find the best‑fit equation Less friction, more output..


3. Set Up Equations Using the Chosen Form

Insert the coordinates (x, y) into the generic formula and solve for the unknowns.

Example A – Linear Function

Suppose the points (2, 5) and (4, 9) lie on the line.

  1. Write the generic form: y = mx + b.
  2. Plug each point:
    • 5 = m·2 + b
    • 9 = m·4 + b
  3. Subtract the first equation from the second to eliminate b:
    (9‑5) = m(4‑2) → 4 = 2m → m = 2.
  4. Substitute m back: 5 = 2·2 + b → b = 1.
  5. Final equation: y = 2x + 1.

Example B – Quadratic Function (Standard Form)

Given points (‑1, 2), (0, 3), and (2, 15).

  1. Generic form: y = ax² + bx + c.
  2. Build the system:
    • 2 = a(‑1)² + b(‑1) + c → a – b + c = 2
    • 3 = a·0 + b·0 + c → c = 3
    • 15 = a·4 + b·2 + c → 4a + 2b + c = 15
  3. Substitute c = 3 into the other two equations:
    • a – b + 3 = 2 → a – b = –1
    • 4a + 2b + 3 = 15 → 4a + 2b = 12 → divide by 2 → 2a + b = 6
  4. Solve the two‑equation system:
    From a – b = –1 → b = a + 1.
    Plug into 2a + (a + 1) = 6 → 3a + 1 = 6 → a = 5/3.
    Then b = 5/3 + 1 = 8/3.
  5. Equation: y = (5/3)x² + (8/3)x + 3.

Example C – Exponential Function

Points (1, 6) and (3, 54).

  1. Generic form: y = a·bˣ.
  2. Plug points:
    • 6 = a·b¹ → a·b = 6
    • 54 = a·b³ → a·b³ = 54
  3. Divide the second by the first to eliminate a:
    (a·b³)/(a·b) = 54/6 → b² = 9 → b = 3 (positive base for growth).
  4. Find a: a·3 = 6 → a = 2.
  5. Equation: y = 2·3ˣ.

4. Use Special Forms When Convenient

Sometimes a particular form reduces algebra:

  • Point‑Slope (linear): y – y₁ = m(x – x₁). Useful when you know the slope and one point.
  • Vertex Form (quadratic): y = a(x – h)² + k. Ideal if the vertex (h, k) is visible on the graph.
  • Factored Form (polynomial): y = a(x – r₁)(x – r₂)… where rᵢ are x‑intercepts.
  • Logarithmic Form: y = a·log_b(x – h) + k, used when the graph shows a vertical asymptote.

Select the form that matches the given features; then substitute known values and solve for the remaining constants Turns out it matters..


5. Verify the Equation

After deriving the equation, test it against all original data points:

  1. Plug each x‑value into your formula.
  2. Compute the resulting y.
  3. Compare with the given y (allow tiny rounding errors if data are approximate).

If any point fails, re‑examine your assumptions: perhaps the function is of a higher degree, or the data

If any point fails, re‑examine your assumptions: perhaps the function is of a higher degree, or the data contain measurement error. The next sections outline systematic ways to diagnose and resolve these situations That alone is useful..

6. Handling Higher‑Degree Polynomials

When a linear or quadratic model does not fit the points, the next natural step is to consider a polynomial of degree 3, 4, etc. The generic form for a cubic, for example, is

[ y = ax^{3}+bx^{2}+cx+d . ]

If you have four distinct points ((x_i,y_i)), you obtain a system of four equations:

[ \begin{cases} ax_1^{3}+bx_1^{2}+cx_1+d = y_1\ ax_2^{3}+bx_2^{2}+cx_2+d = y_2\ ax_3^{3}+bx_3^{2}+cx_3+d = y_3\ ax_4^{3}+bx_4^{2}+cx_4+d = y_4 \end{cases} ]

Solving this linear system (by substitution, elimination, or matrix methods such as Gaussian elimination) yields the coefficients. For higher degrees, the same principle applies: the number of unknown coefficients equals the degree + 1, so you need at least that many points to determine a unique polynomial. If more points are provided than needed, the system becomes over‑determined and you may resort to least‑squares regression to obtain the best‑fit curve Which is the point..

7. Leveraging Technology for Complex Systems

Manual elimination can become cumbersome when the degree rises or when many points are involved. Modern tools simplify the process:

  • Graphing calculators and computer algebra systems (CAS) can solve linear systems symbolically.
  • Spreadsheet programs (e.g., Excel, Google Sheets) allow you to set up the matrix and use built‑in functions like MINVERSE/MMULT to compute coefficients.
  • Programming languages such as Python (with NumPy) or R provide functions for polynomial fitting (numpy.polyfit, lm.fit).

These tools also help you test the derived equation against the original data quickly, reducing the chance of arithmetic slips The details matter here. Turns out it matters..

8. Dealing with Approximate or Noisy Data

Fresh from the Desk

Fresh Off the Press

Worth Exploring Next

You Might Want to Read

Thank you for reading about How To Find The Equation Of A Function. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home