r/MathHelp • • Jan 18 '21

What is a mathematical function? (in a philosophical sense)

I'm working through a chapter on limits in my math book, and am finding myself dumbfounded at this problem.

So if I have a function f(x) = (x^2-4 x+4)/(x-2) If I where to set x=2 the there would be no answer, or in other words it would be undefined. However if I factorize(sorry if this is the wrong English term) the function I would get f(x) = x-2 If I now put x = 2 I would get 0 as an answer.

I've always though that a factorized function is exactly the same as the non factorized function, in other words I though they where the exact same thing. And at the same time I've always assumed that if a function returns undefined, ie. I though f(2) = undefined meant that f(2) simply didn't exist. But with this example both those assumptions obviously can't be true.

So what would be the right way to reason around these two functions supposedly being equal, but at the same time returning different results?

And I guess this questions boils down to what a function really is in a philosophical sense? Any suggested reading on this topic would also be appreciated!

8 Upvotes

6 comments sorted by

4

u/edderiofer Jan 18 '21

However if I factorize(sorry if this is the wrong English term) the function

The right term is "simplify", and dividing top and bottom by (x-2) here is only valid if (x-2) is nonzero.

I've always though that a simplified function is exactly the same as the non simplified function

That's only the case if the simplification is valid, which in this case, it isn't.

Note that when x is not equal to 2, the simplification is valid, so the two functions are otherwise the same.

1

u/sfgartland Jan 18 '21

Oh I see, so f(2) really does not exist then?

So would it be right to say that the simplification is invalid because x = 2 is not in the dominion of the function?

And thanks for the quick reply :)

3

u/edderiofer Jan 18 '21

Oh I see, so f(2) really does not exist then?

Yes, it really really doesn't exist. We can create a new function that "plugs the hole", so to speak, but then we're talking about a different function.

So would it be right to say that the simplification is invalid because x = 2 is not in the dominion of the function?

Not quite, I misspoke earlier. The function comes with the implicit condition that x ≠ 2, so the simplification is valid. HOWEVER, after doing the simplification, you still have this condition that x ≠ 2, and you can't get rid of it.

2

u/nm420 Jan 18 '21

A function has three rather important components:

  1. A domain, which is a set of of objects allowed to be "input" to the function

  2. A codomain, which is a set of objects in which the "output" of the function resides

  3. A rule, which is some algorithm that can assign a unique output (in the codomain) to every object in the domain

Many people forget about these first two rather crucial components to a function, which can lead to confusion. For two functions to be equal, they must have the same domain, the same codomain, and the same rule.

For your example, consider the two functions

f(x) = (x2-4x+4) / (x-2)

and

g(x) = x-2

The domains and codomains aren't explicitly stated here, but in this context convention dictates that the domain is the set of all real numbers for which the rule is defined, and the codomain will be the real numbers.

Note that g would then have the entire real line as its domain (since x-2 is uniquely defined for all real x), whereas the domain of f would be (-∞,2)∪(2,∞), i.e. the real line with the number 2 removed; this is because (x2-4x+4)/(x-2) is uniquely defined for all real numbers x, except 2.

Note that the rule for both f and g is precisely the same. Input x, subtract 2, and output the result. This is evident from the simplification you made to the expression for f(x) (the output of f). However, f and g are not the same functions as they have different domains. The rule for g can be applied to any real number, whereas the rule for f should only be applied to all non-2 real numbers.

To get really pedantic, you could also define a function h such that h(x)=x-2, with domain equal to the real line but codomain being the set of complex numbers. Technically g and h would be considered distinct functions, as they have different codomains. However, I think most mathematicians would brush aside such technicalities and say that g and h are the same function (with the understanding that an equivalence relation can be made between real-valued functions with real codomain and real-valued functions with complex codomain).

1

u/AutoModerator Jan 18 '21

Reminder:

  • What have you tried so far? (See Rule #2)

  • Please don't delete your post. (See Rule #7)

We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.

(Note that this is an automatic message posted on every submission by default.)

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/imalexorange Jan 18 '21

Generally speaking whenever you divide an equation by the variable you're solving for you tend to lose solutions. Take x2 = 4x as an example. We could divide by x and get that x=4. This works but it's not all solutions, is it? We can instead subtract 4 and use the zero product property to get that x=0 and x=4. When you simplified the factors in your equation, you canceled out variables in your function, meaning that the domain may have been altered (which it has and you pointed out).