The Difference Between Functions And Equations?

In summary, a function is a rule or instruction that maps each possible input to a single output, while an equation is a statement of equality between two expressions. A function can be defined by an equation, but not all equations represent functions. Functions are a subset of all equations and are more abstract mathematical objects, while equations are logical statements. Equations can also be used to define functions, but this is not always possible or necessary.
  • #1
ScienceNerd36
79
0
Hello there my fellow complex number comrades,

I was just wondering, what are the key differences between a function and an equation?
 
Mathematics news on Phys.org
  • #2
Depends on how technical you want to be. What you're probably looking for is something like this:

A function is usually described by an equation f(x)=...*insert what f(x) actually is* or through a similar method. The formal definition of a function is a set of pairs {(x,y)|x is in A and y is in B} where f maps A to B, but that's fairly tedious to work with so we use shortcuts like the above equation. The requirements to be a function are that it must map every point in the domain to a point in the range, and can only map each point in the domain to one point in the range. Using the formal definition above, that means for each a in A, there exists b in B such that (a,b) is in the set and for each a in A, there is only one b such that (a,b) is in the set.

An equation is simply something of the form X=Y where x and y are strings of characters that have to make sense, and the statement X=Y implies that X and Y evaluate to the same thing
 
  • #3
So an equation expresses the relationship between two things while a function allows you to deduce information about a domain?
 
  • #4
Actually you can form equation of functions :smile:

Ex. f(a)-f(b)=0
 
  • #5
And that's displaying the relationship between two functions.
 
  • #6
ScienceNerd36 said:
And that's displaying the relationship between two functions.
Yep, and every function is equation since,

''An equation is a mathematical statement, in symbols, that two things are exactly the same (or equivalent)''

So f(x) is equal to x+5, or f(x)=x+5 or f(x)-x-5=0.

Regards.
 
  • #7
Functions are a subset of all equations. A function is an equation with the restrictions mentioned earlier.
 
  • #8
An equation is simply a statement: "1 = 1" is an equation that is true. Equality itself is a relation on a set. In fact, equality is an example of an equivalence relation--a relation that satisfies certain properties.A function is a much more abstract mathematical object that acts as a map from one set to another by mapping each element in the domain set to an element in the codomain set. A function is a special case of a relation.

(x^2 + y^2 = 1 | x, y real numbers) is a relation on the R x R, but not a function.
 
  • #9
An equation is a special type of relation called a comparison and is also a logical statement. It also needs a context (oftimes called a "domain" but not in the same sense as the domain of a function) which is usually some sort of Cartesian product of the sets from whence the unbound variables are selected.

The equation

[itex]z^2=x^2+y^2-2xy\cos{\theta}[/itex]

is defined for all values x, y, z, and [itex]\theta[/itex] for which it makes sense.

The equation

[itex]P(E) = P(E|F)\cdotP(F)+P(E|F^\prime)\cdotP(F^\prime)[/itex]

is defined for all events in a sample space.

A function is an ordered triple [itex]\langle A, B, \Gamma_f\rangle[/itex] where f is a function from the domain A to the codomain B and has graph [itex]\Gamma_f[/itex] that is the set [itex]\{(a,f(a))|a\in A\}[/itex]. As mentioned before each argument a in A must have exactly one value b in B.

The major difference is that an equation is logical object, while a function is an ordered triple (a set theoretic object).

Many functions are defined via equations, but that is not necessary, and in fact it has been proven that equations cannot detail all functions (there are only a countable number of equations while there are uncountable functions).

--Elucidus
 
  • #10
A function is a rule. It associates with each possible input a single output.

A function's definition often comes in the form of an equation, but it need not. For a polynomial, we use the equation definition: f(x) = x^2 - 1. For piecewise functions, we break the definition up over several equations. For example:

f(x) = sin(x) / x, when x /= 0
f(x) = 1, when x = 0

Other times, the function's rule might just be given orally. For example, the function which maps vectors to their length.

Equations do not always lead to a good function definition. The easiest example is [tex]x = y^2[/tex]. Because there are two possible y's for each x (a positive one and a negative one). Luckily in this case, we have a notation we use for a very closely related function: [tex]f(x) = \sqrt{x}[/tex].
 
  • #11
So taking analytical geometry as an example:

What would be the key difference in the result between using a function to graph a line, such as "f(x)=3x-2", and using the equation of that line, which would be "3x-y-2"?
 
  • #12
3x-y-2 doesn't mean anything (In a geometry sense) unless you have an equivalence relation (In this case, an equals sign). So if you had

[tex]
3x-y-2 = 0
[/tex]
then naturally you would have
[tex]
y=3x-2
[/tex]
and, therefore, the same as before.

But, if you mean plotting
[tex]
f(x,y) = z = 3x-y-2
[/tex]
then you will get a 3-D graph (with axis (x,y,z)).

However, back to your original question; I think everyone's answers are a little too complicated. And, from the way you worded your question, it doesn't sound like you need a textbook answer; it sound like you just need a brief description so that you can get your head around it. So here goes:

A function is an instruction to do something to an object. I think of functions as machines. So input is a load of fruit, output is a smoothie. You put something in, you get something (usually different) out.

Equations are a type of function. Put number(s) in, get number(s) out.

So,
[tex]
Set \ of \ Functions \supset Set \ of \ Equations
[/tex]


Matt

p.s. If this post makes you want to drink smoothies, I take no responsibility for the havoc it'll cause your insides.
 
  • #13
ScienceNerd36 said:
So taking analytical geometry as an example:

What would be the key difference in the result between using a function to graph a line, such as "f(x)=3x-2", and using the equation of that line, which would be "3x-y-2"?

I'm assuming you mean 3x - y - 2 = 0. By itself, 3x - y - 2 is just an expression. You need a verb (usually an equals sign) to make it an equation.

If you graph the function f in the standard way, you do get a line in the plane which is uniquely defined by the equation 3x - y - 2 = 0. The two are very intimately related.

But the graph isn't the function. And an equation isn't a function. And an equation isn't a graph. These are all distinct concepts.

The equation is a statement with two free variables.

A graph is a set of points. In this case, the set of points is given by the set { (x, y) for all x, y where 3x - y - 2 = 0 }.

The function, f, is the rule. Keep in mind that f and y are two completely, totally different things! In the equation, y is a real number, and f is a function! However, when you apply an argument to f, you get a real number out. And so, f(x) is a real number.

In this case (and many others in algebra and calculus), the three are practically identical. But there are examples of each that don't meet the requirements of the other:

A graph of a square represents no function.
A specially defined function such as f(x) = 1, if x is rational and 0 otherwise has no algebraic equation behind it.
You can also have functions between things that aren't the real numbers. For example, the derivative operator. The derivative is a function which acts on real functions. It has no graph. It has no algebraic equation behind it.
 
  • #14
MattC72 said:
So,
[tex]
Set \ of \ Functions \supset Set \ of \ Equations
[/tex]


Matt

Unfotunately the relationship between them is the reverse.

[itex]x^2+y^2=1[/itex] is an equation but does not describe either variable as a function of the other.

--Elucidus
 
  • #15
MattC72 said:
3x-y-2 doesn't mean anything (In a geometry sense) unless you have an equivalence relation (In this case, an equals sign).

Also, equivalence relation means something different than what you've used the word for here.

An equivalence relation is any relation (or you can think of it as a binary predicate, LIKE an equals sign) which exhibits the most important properties of equality: reflexivity, symmetry, and transitivity.
 
  • #16
MattC72 said:
However, back to your original question; I think everyone's answers are a little too complicated. And, from the way you worded your question, it doesn't sound like you need a textbook answer; it sound like you just need a brief description so that you can get your head around it. So here goes:

A function is an instruction to do something to an object. I think of functions as machines. So input is a load of fruit, output is a smoothie. You put something in, you get something (usually different) out.

Equations are a type of function. Put number(s) in, get number(s) out.

Thank You! I understand now. And I'm going to make a smoothie.
 
  • #17
Elucidus said:
Unfotunately the relationship between them is the reverse.

[itex]x^2+y^2=1[/itex] is an equation but does not describe either variable as a function of the other.

--Elucidus

Is this true?

You are right that [itex]x^2+y^2=1[/itex] is not a bijective function, but the 2 variables are functions of each other.
 
  • #18
ScienceNerd36 said:
MattC72 said:
Equations are a type of function. Put number(s) in, get number(s) out.


Thank You! I understand now. And I'm going to make a smoothie.

No smoothie, because this is plain false. Some equations lend themselves to functions. Some don't. People keep throwing [tex]x^2 = y^2[/tex] as a simple example.
 
  • #19
Tac-Tics said:
Also, equivalence relation means something different than what you've used the word for here.

An equivalence relation is any relation (or you can think of it as a binary predicate, LIKE an equals sign) which exhibits the most important properties of equality: reflexivity, symmetry, and transitivity.

Yes, you are right in your definition of an equivalence relation, as a special type of binary operation. But commonplace notation holds that equivalence relations are characterized by their individual "equals signs". For example;

[tex]
\cong \ and [/tex]~
 
  • #20
Tac-Tics said:
No smoothie, because this is plain false. Some equations lend themselves to functions. Some don't. People keep throwing [tex]x^2 = y^2[/tex] as a simple example.
In this example:
[tex]
x^2 = y^2
[/tex]
is this not a function:
[tex]
f: A \to A
[/tex]
defined by
[tex]
f:x\to \pm x
[/tex]
?
 
  • #21
Just so you know, I'm not trying to be awkward or argumentative. I'm genuinely curious.
 
  • #22
MattC72 said:
is this not a function:
[tex]
f:x\to \pm x
[/tex]?

It is indeed not. Functions, by their definition, are single-valued. You put one thing in, you get one thing out. The closest you can get with [tex]x^2 = y^2[/tex] is to use TWO functions: f(x) = x and g(x) = -x. If you graph BOTH f and g, the result is the graph of this equation.

(Now, you might hear about multi-valued functions from time to time, but this is a bastardization, reflecting older terminology before the idea of a function was fully developed.)

MattC72 said:
Just so you know, I'm not trying to be awkward or argumentative. I'm genuinely curious.

You're asking the right questions. If you want to do anything beyond high school calculus, it's very helpful to understand these kinds of things. Some of it boils down to terminology, but the stuff that doesn't, you should always be skeptical about until you see it for yourself ;-)
 
  • #23
Tac-Tics said:
It is indeed not. Functions, by their definition, are single-valued. You put one thing in, you get one thing out. The closest you can get with [tex]x^2 = y^2[/tex] is to use TWO functions: f(x) = x and g(x) = -x. If you graph BOTH f and g, the result is the graph of this equation.

(Now, you might hear about multi-valued functions from time to time, but this is a bastardization, reflecting older terminology before the idea of a function was fully developed.)



You're asking the right questions. If you want to do anything beyond high school calculus, it's very helpful to understand these kinds of things. Some of it boils down to terminology, but the stuff that doesn't, you should always be skeptical about until you see it for yourself ;-)

Goodness me, that's quite an assumption. I've just graduated with a master's degree in mathematics Thank you very much. You should only assume your axioms! ;)

Now, I admit I did little more than group theory for the last 2 years but talking multivalued functions seem to be pretty standard practice in the current mathematical world.
 
Last edited:
  • #24
MattC72 said:
You should only assume your axioms! ;)

My apologies. We do see questions like this coming from high school graduates pretty often. They come across the square root function. Their teachers lie to them and tell them the square root of x^2 is this stupid thing called "plus or minus ecks". They get all confused and start losing credit on assignments.

All they need is a healthy dose of set theory.

talking multivalued functions seem to be pretty standard practice in the current mathematical world.

Multi-valued functions are convenient for some handwaving arguments. When you can call multi-valued things functions, every functions becomes "invertible" which is nice. The only catch is that thinking in those kinds of terms, you can mess up when reasoning about unfamiliar problems. You end up finding a solution instead of all solutions.

(But when you're working with physics or applied mathematics, a solution is sometimes good enough).
 
  • #25
Tac-Tics said:
My apologies. We do see questions like this coming from high school graduates pretty often. They come across the square root function. Their teachers lie to them and tell them the square root of x^2 is this stupid thing called "plus or minus ecks".[/itex]
I have never heard a teach say such a thing, even when I was myself in elementary or high school. I have many times heard teachers say that the solutions to the equation [itex]x^2= a[/itex] are [itex]x= \pm \sqrt{a}[/itex] which is the exact opposite of the "lie" you say they tell. If [itex]\sqrt{a}[/itex] were both positive and negative you would not need the "[itex]\pm[/itex].

[/itex] They get all confused and start losing credit on assignments.

All they need is a healthy dose of set theory.



Multi-valued functions are convenient for some handwaving arguments. When you can call multi-valued things functions, every functions becomes "invertible" which is nice. The only catch is that thinking in those kinds of terms, you can mess up when reasoning about unfamiliar problems. You end up finding a solution instead of all solutions.

(But when you're working with physics or applied mathematics, a solution is sometimes good enough).
 
  • #26
HallsofIvy said:
I have never heard a teach say such a thing, even when I was myself in elementary or high school.

Hah. They don't really "lie". But you know that it's one of the most common questions here.
 
  • #27
Hmmm. I seem to have made a hash of things by stating two contradictory statements - that there are more functions than equations and that functions are a subset of equations (these cannot both be true). I reflected on the original question since I left work and felt the need to clarify my original comments and to also re-adress the issue.

My first remark was intended to comment on the idea of a "rule of assignment." Many textbooks define a function like "A function from a domain A to a codomain B is a rule that assigns a single value from B to each argument from A," or some such. The problem is with the whole "rule" concept. It has been shown that there are only a countable number of rules (since they must be determinate). Unfortunately it is easy to construct a function space that is demonstrably uncountable. This means that there are functions that cannot be represented by rules.

Consider for simplicity real-valued functions of a real variable. The function can be defined on any subset of the real line and for any argument in the domain it can have its choice of real value. If [itex]\mathfrak{c}[/itex] is the cardinality of the reals then there are [itex]\mathfrak{c}^\mathfrak{c}[/itex] real-valued functions of a real variable (which is definitely uncountable).

A function's rule of assignment is often given in equation form (i.e. f(x) = x2 + 1). But this is really shorthand for:

[tex]f=(x\mapsto x^2+1):\mathbb{R}\rightarrow\mathbb{R}[/tex]

(Note: Even this notation cannot capture all function representations.)

The graph of a function (in the set theoretic sense, not the diagramatic sense) is a certain type of set of ordered pairs and is a subset of [itex]A \times B[/itex] where the function is from A to B.

Equations are also certain subsets of a Cartesian product. They are equivalence relations and are frequently not function-like (and vice-versa).

Multi-valued functions are technically functions from a set A to the power set of another set B. The image is still a single object, but that object has potentially more than one member.

The natural logarithm of a complex number is an example. Since [itex]e^{i\theta}=e^{i(\theta+2\pi)}[/itex] then the logarithm must have an infinite number of values. The image of any complex number would then be the set of all such values. So the complex logarithm is

[tex]log=(z\mapsto \{ln|z|+i(arg(z)+2n\pi):n\in \mathbb{N}\}):\mathbb{C}\rightarrow 2^{\mathbb{C}}[/tex]

Statements like "let f(x) = 2x - 3..." is an abuse of notation since it omits the domain, codomain and isn't actually a mapping. This abuse has been perpetrated for so long that it is tradition and getting people to stop is counterproductive.

Getting back to the original question:

This is an example of an equation:

sin(x)cos(x) + cos2(x)=0

This is a function:

[itex]f=(x\mapstox^3-x):\mathbb{R}\rightarrow\mathbb{R}[/itex]

One is a logical comparison of two things and is either true or false for a particular list of values for its variables, while the other is a mapping that takes an input and produces an output. The function may be represented or defined using an equation or it might not.

Hopefully I haven't muddled the issue farther.

--Elucidus
 
  • #28
Elucidus said:
Unfortunately it is easy to construct a function space that is demonstrably uncountable. This means that there are functions that cannot be represented by rules.

I think this is way beyond the scope of the OP's question. Also, using the standard set theoretical definition of a function, there's nothing wrong with rules of infinite complexity. (Think piece-wise functions with an infinite number of cases). It's no different from allowing infinite decimal representations for real number. At the very least, you have to accept that for every real number c, there is a constant function f(x) = c, so there are at least as many functions (cardinalitywise) as there are reals.
 
  • #29
I've never felt so belittled by mathematics. I think I'll just stick to physics. See you on another thread.

And thanks for your help:)
 

1. What is the difference between a function and an equation?

A function is a mathematical rule that relates an input to an output, while an equation is a mathematical statement that shows the equality of two expressions. In other words, a function is a relationship between variables, while an equation is a statement about the equality of two expressions.

2. How do you represent a function and an equation?

Functions are typically represented using function notation, such as f(x) or g(y), while equations are represented using an equal sign, such as x + 2 = 5.

3. Can an equation also be a function?

Yes, an equation can also be a function if it meets the criteria of a function, which includes having a unique output for every input and having one input cannot result in multiple outputs.

4. What are the similarities between functions and equations?

Both functions and equations involve mathematical relationships between variables and can be used to solve problems in mathematics. They also both have inputs and outputs.

5. How are functions and equations used in real life?

Functions and equations are used in various fields of science, such as physics, chemistry, and economics, to model and solve real-world problems. For example, functions can be used to model the growth of a population, while equations can be used to calculate the trajectory of a projectile.

Similar threads

  • General Math
Replies
13
Views
2K
Replies
20
Views
2K
  • General Math
Replies
5
Views
936
Replies
6
Views
2K
  • General Math
Replies
9
Views
1K
Replies
7
Views
811
Replies
3
Views
407
Back
Top