Writing a function from an equation.
Key difference: In mathematics, an equation is used to denote the equality between two expressions. A function, on the other hand, is in much more complex than an equation. A function is used to denote a relation between a set of inputs and a set of corresponding outputs.
![]()
An equation and a function are two of the basic foundations of algebra, a subject matter under mathematics. Both can be quite complex in nature, however, in their basic form they may be confused as each other. The main difference between an equation and a function is the fact that an equation usually deals with a single input, whereas, a function can have numerous inputs.
In mathematics, an equation is used to denote the equality between two expressions. Essentially, an equation is written as an expression equals to another expression. For example:
Equations can be more complex than that and can include more than one variables, such as
Hence,
becomes
which is
essentially
A function, on the other hand, is in much more complex than an equation. A function is used to denote a relation between a set of inputs and a set of corresponding outputs. Essentially, an input should give a single output. A function is a relationship between two variables. For example:


For a given input value
Write a formula for
Rewrite the equation by solving for
Add
Add
Divide each side by
Rewrite in function notation by replacing
For a given input value
Write a formula for
Rewrite the equation by solving for a. (in terms of b means we are solving for a)
Distribute
Add
Rewrite in function notation by replacing
