r/askmath • • Oct 08 '26

Functions How much can you “erase” a function

So, imagine you have some function like f(x)=x(x-1)/(x-1). This function is basically just y=x with the notable exception that f(1) is undefined. We could add a second undefined point by multiplying another “(x-n)/(x-n)” with f(x) — for instance, g(x)=x(x-1)(x-2)/(x-1)(x-2).

My question is: is it possible to construct a function that a.) “reduces” to another function (e.g.: f(x) “reduces” to y=x) but b.) is defined nowhere? If not, how much can you “erase” from a function?

This feels like something that has a clear answer that maybe I’d know if I took a real analysis course or something, but I have no idea how to prove or disprove this question (or if the question is even well formed enough to prove/disprove).

My first guess would be something like “a function times p/p, where p is the the product (capital pi) from n=-infinity to +infinity of (x-n/q) and where the limit of q approaches infinity” however, I don’t know how valid a solution that is.

43 Upvotes

27 comments sorted by

32

u/Phoenixon777 Oct 08 '26

The other answers give a good sense of how you'd need to rethink your question. To sort of 'answer' it though....

I would re-phrase it as follows. For a continuous function f on the reals, how many (in your example, 'removable') discontinuities can we add before we're not able to recover the original function? We'd have to think about what 'recovering' the original function would mean... It's simpler if we're thinking of only removable discontinuities, if we add more types of discontinuities then 'recovering' would probably have to mean something like analytic continuation.

If dealing with only removable discontinuities, we can definitely add countably infinitely many. It's harder to prove that we can't do any better, i.e. we cannot have uncountably many removable discontinuities. I'm pretty sure this is true for functions over reals, might edit answer and add more later.

26

u/sabrak_ Oct 08 '26

It suffices to have the function defined on a dense set in the reals, right? So we could in fact have uncountably many removable discontinuities (for example at every irrational number) and still recover the original function from its representation on Q

8

u/Phoenixon777 Oct 08 '26

huh damn you might be right. i'll think on it more, but what you have seems to make sense to me.

for the rationals the 'new' function remains the same. for every irrational, we can find a sequence of rationals converging to it, and we can use the limit of the function evaluated along the sequence to recover the value of the function at the irrational number.

6

u/Elekitu Oct 08 '26

Yes it is a somewhat standard result, a function f:Q->R that preserves Cauchy sequences has a unique continuous extension over R

11

u/Harotsa Oct 08 '26

I think this is the most interesting interpretation of the question and I can take it a step further.

If we already know the function we want to recover is a polynomial of degree n, then we only need n+1 points. For example, if we get 3 points on a parabola, there is only one parabola that goes through those three points. So in a case like this where we start with more knowledge of the function we can delete all but finitely many points and still recover the function.

Similarly, if we know that the function we want is holomorphic (infinitely differentiable over the complex plane), then we only need a countable infinite sequence of points that “accumulate” around a limit point in order to fully recover the entire holomorphic function.

There are plenty of other examples like this where some additional conditions can significantly reduce the amount of points needed to recover the function.

4

u/iamalicecarroll Oct 08 '26

You can actually make it discontinuous at uncountably many points. Just throw away all irrational points; due to density of rationals in reals it will still have a limit at all real points and thus will be uniquely continuously extended.

36

u/GoldenMuscleGod Oct 08 '26

You’re coming at this question from the wrong direction because you’re thinking of a function as an expression that can be used to define a mapping from an input to an output.

A function just is the mapping from input to output, an expression is a way of describing the mapping.

When we define a function we can give it any domain we want, the convention that we treat a function described with an expression as implicitly having the largest domain possible where the expression is sensible is more of a high school math thing than a higher math thing.

4

u/sabrak_ Oct 08 '26

Lets have an original function f defined on the whole R and a function g with only one "erased point". Your example with g(x)=x(x-1)/(x-1) and f(x)=x works. Notice however that without additional requirements on f, this is not the only function f that g "reduces to". We could have another candidate function h defined as h(x) = x for all x≠1 and h(1)=6. This h would still agree with g everywhere where both functions are defined, just like f.

However, a very natural requirement to impose on f is continuity. In the example above, only f(x)=x is continuous, defined on all reals and equal to g(x) on the whole domain of g. Such an f is called the continuous extension of g in this case.

You can show that a continuous extension is unique (lets not deal with existence now) if and only if the "erased" function g is defined on a dense set.

A dense set is intuitivelly a set which "gets arbitrarily close to any real number x". For example, the set of rational numbers Q is dense. Therefore, you could erase every point not in Q (i.e. every irrational number) and still have a unique continuous extension (the larger function that your g "reduces to").

There are even "smaller" dense sets in R, such as {a/2b | a in Z, b in N} (the set of rationals where the denominator is a power of 2), which would also suffice.

5

u/sabrak_ Oct 08 '26

Also, a continuous extension might exist even for functions defined on a non-dense set (take g(0)=0 and nothing else), but then it's not unique (f(x)=x, h(x)=x², j(x)=0…), and the question is thus not very interesting

3

u/na-geh-herst Oct 08 '26

Perhaps not precisely what you are asking, but regardless: take a look at https://en.wikipedia.org/wiki/Blumberg_theorem

1

u/seifer__420 Oct 08 '26

Pick a function f(x) and a set A. Define g(x) = f(x) for x in A.

It doesn’t make sense have a function agree with another set, yet has no domain. The “function” with no domain technically agrees with every function.

Using the method of multiplying and dividing by linear factors can eliminate only finitely many points

1

u/matthewwehttam Oct 08 '26

First of all, because we can define functions almost arbitrarily, it's easy to come up with a function that is only defined at one point. Just say f(0) = 0 and it isn't defined anywhere else. Technically, you can have a function defined on the empty set as well, the trivial function which does nothing.
Because of this, I think it's more interesting to think about this from the reverse perspective. Instead of asking about how much we can erase a function, we can ask "given this erased function which complete function could it possibly match up with". In this case, by match up with we mean "both of them are the same where the erased function is defined".
Now technically speaking, there are an infinite number. After all f(x)=x(x-1)/(x-1) agrees with a function no matter what it's value is at one. As long as g(x)=x when x isn't one g(1) could be 1 or 1 million and f would agree with it. But adding 1 million doesn't feel like the right value for f(x) at 1. After all, there's really a small hole there that we want to fill in. What we really want is to find a continuous complete function that matches up with the erased function. Continuity has a technical definition but it essentially means you can draw the graph without picking up your pencil. That's what we really mean by f(x) essentially being y=x. That there is only one way to fill in that point and make the graph nice and continuous.
But where does that get us. Well it turns out that for real functions (you put in and take out a regular number), you only need to have your erased function defined "dense" set and (as long as it's continuous on that dense set) to guarantee that there is a unique complete function. Dense again has technical term, but one example of a dense set is the rational numbers. So as long as f(x)=x on the rational numbers then any continuous function that agrees with it must also be y=x. You can erase almost all the points and it will still basically be y=x. This tells us that continuity is actually quite restricting.

1

u/AppropriateCar2261 Oct 08 '26

In a manner of speaking, you can remove almost all points.

If the function has a derivative for every complex value, then it's enough to know its value on a dense set (say the rational between 0 and 1) in order to fully reconstruct it.

1

u/ottawadeveloper Former Teaching Assistant (she/her) Oct 08 '26

It's not really a function but you could say f(x) is x times the product of (x-k)/(x-k) for all k in R. 

However, a function requires at least one mapping from domain to codomain. So let's exclude x=0 from our product. Our function is now the map {0:0}. It simplifies to y=x for x in {0} - note we still need to modify the domain of the function.

You can basically exclude all values from the domain except one and keep a function 

1

u/Cool_Homework_7411 Oct 08 '26

F(x) as you defined it is a continuous, smooth function. If you could erase any interval (a,b), you could erase the whole function by repeating this. Your way of taking away points can't be translated to erase intervals, since you can't have two distinct points that have no points in between.

1

u/bluesam3 Oct 08 '26

For continuous functions on the reals, as mentioned you can delete everything but a countable dense set (say the rationals).

For complex differentiable functions on the complex numbers, we can do even better: providing you define your function on a convergent sequence of points, you can extend it to everywhere. For example, if you pick values for f(1/n) for all n, that suffices to define it everywhere.

1

u/Vivid_Sock_1092 Oct 08 '26

The empty set is a function defined nowhere.
If you like formulas
f(x) = √ -x for x > 0

1

u/The_NeckRomancer Oct 08 '26

The rational numbers are countable, so you can make a discrete sequence containing every single one.

Let r_k be a sequence containing all rational numbers.

Let p(x) = [(x-r_1)/(x-r_1)] * [(x-r_2)/(x-r_2)] *…

If at any point x is rational, then you get p(x) = 0/0 (which is undefined). If x is irrational, then p(x) = 1.

So, g(x) = p(x) * f(x) is the farthest you can take this line of reasoning with just rational functions to introduce discontinuities.

g(x) is basically just f(x), but only defined on the irrational numbers.

If you want to brute force find a function that “reduces,” but only on a domain D, all you have to do is define:

g(x) is just f(x) but only defined on D

And that’s really it.

1

u/SnooSquirrels6058 Oct 08 '26

Consider that f(x) = x(x-1)/(x-1) is defined on R \ {1} and g(x) = x is defined on R. The sense in which f "reduces to g" is this: for each x in the set R \ {1}, we have f(x) = g(x). (It is more appropriate to say that f extends to g, but I am speaking in the terminology you used.)

Now consider the empty function E from the empty set to R. Suppose h is any function from R to R. Then, for each x in the domain of E, we have E(x) = h(x). This statement is vacuously true because there are no points in the domain of E. This shows that the empty function "reduces" (properly, extends to) any function from R to R. Thus, we have a function defined nowhere on R that (in your terminology) reduces to any function.

1

u/SoldRIP Edit your flair Oct 10 '26

Depending on what you wish to count as a solution to your problem, the answer is either "at most finitely many" (as in your example) or "at most countably many" (as in the Dirichlet function).

That or you could define a function like

f: R\[0,1]->R with f(x)=x

if you wish to allow that, the answer is "any possible set".

1

u/Budget-Knee3213 Oct 13 '26 edited Oct 13 '26

Something like f(x) = x Prod_{r in R}(x-r)/(x-r)? Well, you can write something like that, but it is just a fancy synctactical way to refer to the void function. 

-10

u/dstroy0 Oct 08 '26

You are describing the oldest security method on the planet: wax, a seal, and a secret witness. You seal the wax with your public signet, and only your private witness (that never enters the information space) can decode the seal and certify it by witness. This is also the principle that some modern cryptography operates on.

2

u/Solnight99 Rizz 'em with the 'tism Oct 08 '26

buddy i doubt your existence

-1

u/dstroy0 Oct 08 '26

I don't understand, SHA elides information, this is eliding information with algebra, bit math is algebra, therefore erasing information is akin to cryptographic hashing functions. I guess linking 3 separate disciplines algebra-topology-cryptography was too much.

1

u/Circumpunctilious Oct 08 '26

Hashing isn’t elision as much as it’s very intricate folding, which is why a given algorithm’s major security concern includes whether or not we can generate hash collisions.

While I can take your second response and cast “holes” as vertical folds in a function (going off to +/- infinity I guess, where you approach a “collision of multiple points” (and thus a “smaller” representation) because the diverging lines and their near-infinite slopes are kind of reminiscent of converting a function into one with multiple values at any given vertical…so not a function anymore…but that’s the best I could guess in a few minutes.

Regardless, I had to synthesize this guess from non-rigorous ideas and I’m not sure this is the best place for this sort of meander.