奇怪的函数

Before this, know图像不是函数

Interactive · 1 question

It's important to realize that a function represents any map between two sets. Some examples of functions (let's say from reals to reals) include f(x)={q−1if x=pq is rational, and gcd⁡(p,q)=10otherwise.f(x) = \begin{cases} q^{-1} & \text{if $x=\frac pq$ is rational, and $\gcd(p,q) = 1$} \\ 0 & \text{otherwise}. \end{cases} This particular function has some interesting properties (for example, it is continuous at xx if and only if xx is irrational). Another example of a pathological function with interesting properties is the Weierstrass function. Note that functions don't even need to have closed forms!

In other words, unless otherwise specified you should assume nothing about a function other than it gives one output for every input. In particular, you should not assume it is continuous, differentiable, that it has a "closed form", or even that it can be plotted. (See the first paragraph of this section to see how bad the situation can get.)

Here's a fun exercise with a stunning answer. Find the "strangest" function f:R→Rf : \mathbb R \to \mathbb R you can such that f(x2+y2+2f(xy))=f(x+y)2.f(x^2+y^2+2f(xy)) = f(x+y)^2. Of course f(x)=xf(x) = x, f(x)=0f(x) = 0, and f(x)=1f(x) = 1 are three such functions. However, much stranger functions exist!

Can you think of one?

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems