TITLE: Is $\frac{\mathrm d}{\mathrm dx}$ an operation?
QUESTION [5 upvotes]: What exactly is an operation? I understand that multiplication and addition are operations, but what about the derivative ($\frac{\mathrm d}{\mathrm dx}$).
Can an operation be a relation of expressions, or just of numbers?

REPLY [2 votes]: In mathematics, an operation on the set $X$ is a function from a power of $X$ to $X$; that is, a function that takes some number of elements of $X$ and returns an element of $X$.
You can have finitary operations, that take a finite number of arguments. For example, the usual sum, difference, product of real numbers is an operation on the real numbers. The function that takes three $3$-dimensional vectors in $\mathbb{R}^3$, $\mathbf{u}$, $\mathbf{v}$, and $\mathbf{z}$, and returns the vector $(\mathbf{u}\times\mathbf{v})\times\mathbf{z}$ is an operation on $\mathbb{R}^3$. And the function that takes a positive real number $x$ and sends it to $\frac{1}{x}$ is an operation on the positive real numbers.
A finitary operation has an arity, which is the number of arguments it takes. Sum, difference, product, are binary (or $2$-ary) operations. The one I described on $\mathbb{R}^3$ is a ternary (or $3$-ary) operation. The function $x\mapsto \frac{1}{x}$ on the positive reals is a unary (or $1$-ary) operation. (There are even nullary, or $0$-ary operations, but those are tricky, so forget about them for now).
There are also infinitary operations, that take infinitely many arguments, but let’s also ignore those for now.
Now, the first thing to note is that when you look at the differentiation “function”, $\frac{d}{dx}$, this takes as inputs functions and has functions as outputs. That’s a good step. But the next question is: what is our set?
Can’t be the set of all continuous functions, because not every continuous function has a derivative. It can’t be the set of differentiable functions, because the derivative of a differentiable function does not have to be differentiable, etc.
So, in the abstract, your question has no answer until we know what collection of functions you are thinking about.
Here are some collections of functions on which $\frac{d}{dx}$ is, indeed, a unary operation:

The collection of all analytic functions $\mathbb{R}\to\mathbb{R}$; these are functions that have Taylor expansions around any point. The derivative of such a function is again such a function.
The collection of infinitely differentiable functions. (slightly smaller than the collection of analytic functions).
The collection of all polynomial functions (since the derivative of a polynomial function is a polynomial function).
The collection of all functions expressible as polynomials in $\sin(x)$ and $\cos(x)$.

There are other such collections on which $\frac{d}{dx}$ is an operation. In fact, many such collections form a vector space, and $\frac{d}{dx}$ will be a linear operator (a linear transformation from the vector space to itself).
For other sets, such as the collection of all differentiable real valued functions of real variable, you technically don’t have an operation, because the image of such a function may fall “outside” the initial set.