0

Related to: Question about $x\mapsto f(x)$ notation.

Is there a way to write $f = \text{some expression}$, and thus define a function without a domain or a variable? A function is too often defined as a relation between $f(x)$ and some expression, but I'm curious if there's a way to talk about a function without having to write

$$\begin{align}f: &\quad\cdot\to\cdot\\&x\mapsto x^2\end{align}$$

which is overly complicated. I've seen $f = (x\mapsto x^2)$, but I'm not sure if this is standard or if there are other, more common, alternatives.

Frank Vel
  • 5,339
  • Except that a function is explicitly a subset of the cartesian product $X\times Y$ that satisfies some properties (well-definedness and everywhere definedness). If you change the domain, then you change the function. The function $f~:~\Bbb R\to \Bbb R$ given by $f(x)=x^2$ is not the same function as $f~:~\Bbb C\to \Bbb C$ given by $f(z)=z^2$. – JMoravitz Jul 07 '16 at 15:45
  • 1
    Some would use $f = \lambda x.x^2$ for the squaring function. I actually do think that lambda notation could resolve a lot of confusion that students have about this sort of thing (especially in multivariable differential calculus) – Steven Gubkin Jul 07 '16 at 15:47
  • If it is understood from context what the domain and codomain are, you will see people write things like "let $f(x):= x^2$" (here := is shorthand for "be defined as"), but if there is potential for ambiguity (in particular where the ambiguity might change the result), one should exercise caution. – JMoravitz Jul 07 '16 at 15:52

1 Answers1

1

The answer is no. A function as commonly understood always come with a domain and co-domain. This is why the problem of finding the domain of a given function is a bit silly.

That said, one can consider for example polynomials (as a ring). Here the elements in the ring aren't defined as functions, but they can of course be viewed as functions (with domain the ring that the coefficients live in). Likewise it is possible that in other cases "functions" can be viewed as elements in their own right. I don't think this is what you are looking for, I just wanted to bring it to your attention.

Edit: Answering the comment below: Functions always have domains. When we, for example, talk about the function $f(x) = x^2$ in calculus the domain is implied. And the domain is the subset of real numbers where the expression is defined. Now, you ask whether the "squaring" should be able to be a function without domain, but the problem is that to square something you need an operation. In the real numbers $x^2$ concretely means the product of $x$ with itself. Now imagine that you had a function $f$ defined on vectors, what does squaring mean? The point is that saying "squaring" only makes sense when you have an operation. And you can't have an operation without a set. So there will always be a domain.

Thomas
  • 43,555
  • While technically correct, functions are too often defined by an equation $f(x) = x^2$, with no mention of a domain. A "function" is still useful without a domain, so I don't see why a generalized squaring "function" for all domains shouldn't have some notation. – Frank Vel Jul 07 '16 at 20:36
  • @FrankVel: I added a bit to address your comment. – Thomas Jul 07 '16 at 23:14
  • I don't fully agree. Squaring ($x^2$) is defined the same way for both natural, and real numbers. There's not always a need to define a specific domain, and it's certainly not necessary to derive certain rules twice, once for the squaring function for the naturals, and one for the reals. For instance, the derivative of $x^2$ is still $2x$ in both domains. Perhaps it's possible to describe such a function with a "universal" domain? – Frank Vel Jul 14 '16 at 13:30