9
$\begingroup$

What is the precise difference between function and equation ? In which case will it be wrong if used( common mistakes )? Also will the Venn diagram overlap if I were to draw one ? Any help and discussions will be appreciated .

$\endgroup$
11
$\begingroup$

A function is a transformation or mapping of one thing into another thing. It might be written as a rule (e.g. "Take the input and square it"), as a formula ("e.g. $f(x) = x^2$ or $x \mapsto x^2$), as a set of ordered pairs (e.g. $\left\{(1, 1), (2, 4), (3, 9), \ldots\right\}$, or any other way of showing how the output relates to the input. The function doesn't have to use numbers, either - a function could take two words and return their letters interlaced (so f(cat, dog) = cdaotg) or it could tell you what day of the week a given date falls on, or the post code/zip code of a given geographical location.

[In very formal terms, a function is a set of input-output pairs that follows a few particular rules.]

An equation is a declaration that two things are equal to each other. For example, $2^2 = 4$ is an equation stating that the square of 2 is 4. An equation may include variables of unknown value, and it may be true for all, some or none of the possible values of those variables. For example, $x^2 = 4$ is an equation that is true when $x = \pm 2$, and false for other values of $x$, while $x^2 = -4$ is an equation that is false for all real values of $x$.

What may be confusing you is that we often use equations to declare a relationship between two variables, often in the form of a function or formula. For example, $y = x^2$ is an equation stating that the value of $y$ is determined by the value of $x$ via the function $x^2$.

| cite | improve this answer | |
$\endgroup$
  • $\begingroup$ Very well explained. Thanks . $\endgroup$ – Abu Bardewa Jan 8 '16 at 7:45
  • $\begingroup$ A function means that every point in the domain for which the function is defined only has 1 image. $\endgroup$ – Algebear Apr 30 '18 at 23:44
  • $\begingroup$ @ConMan Even though we still use an equation to determine the output value of the function we don't mean to solve the equation right? If we have for example the function $f(x)=4$ no one will think to "solve" it. They will just map every $x$ to $4$ whereas if it was just an expression of equality ($y=4$) then the solution would be $4$. $\endgroup$ – user599310 Sep 7 at 21:50
  • $\begingroup$ Correct.$f(x) = 4$ doesn't even really have a "solution" as such, since there's nothing to solve for (and if you're solving for "for which $x$ does $f(x) = 4$?" then the answer is "all of them"). $\endgroup$ – ConMan Sep 7 at 22:50
1
$\begingroup$

I think we also tend to muddy the semantic waters when we insist on referring to $f(x) = x^2$ (for instance) as a function. It's not: It's an equation. The function in this case is given by the expression $x^2$, so in that way we can say that expressions are functions. In this example, $f$ is the name of the function, $x$ is the input of the function,and $x^2$ is the expression which is the output, i.e., the function $f(x)$ itself.

| cite | improve this answer | |
$\endgroup$
  • $\begingroup$ This is not how it works. Do you know the strict definition of a function? $\endgroup$ – Algebear Apr 30 '18 at 23:42
  • $\begingroup$ You gave an example that "sin(x) is a function". sin(x) is an expression. It seems to me that you're interested in flexing technical muscles instead of having a constructive conversation. I'm not interested in that. $\endgroup$ – Paul Hartzer May 2 '18 at 1:48
  • $\begingroup$ No, it was not my intention to be understood as someone who likes to "flex technical muscles". I just like to point out to people how things are formally defined. If you're new here you should understand eventually that critic on others' work is the best way to learn from each other. $\endgroup$ – Algebear May 2 '18 at 12:25
0
$\begingroup$

A function $f(x):D\to C$ must satisfy $\forall x\in C \ \text{where f is defined in this point $x$},\ \exists!\ f(x)\in D$; i.e. every point in the domain of $f$ for which $f$ is still defined may have only one image, which is a point on the line (a point in the codomain). Not to confuse with surjectivity. For example, $f:\mathbb{R}\to\mathbb{R}$ with $f(x)=\sin(x)$ is non-surjective for there is no $x\in \mathbb{R}$ such that $f(x)=2$. But the $\sin(x)$ is a function because there's no $x$-value with a multiple $f(x)$-value.
An equation can be every equalty: a function is an equality, a differential equation is an equality.
E.g. $x=y^2$ is an equation, but not a function if we view it with x in the domain and y in the codomain. For instance, $x=1$ has $y=1$ and $y=-1$ as solution (point in domain with two different images). Hence, not a function in the $(x,y)$-plane.

| cite | improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.