What counts as a "known" function This question arises from a discussion on How to deal with the integral of $e^x e^{x^2}$? where the error function is invoked and there is a comment that this might not be a satisfactory solution (at least for some) because it is more a renaming exercise than a solution. Similarly for the Lambert W, which appears regularly.
Now there are functions we all know and learn, like the trigonometric functions, exponential function and logarithm, which emerge reasonably naturally in various contexts early in our mathematical experience. Hyperbolic functions (sinh/cosh etc) are not so immediately used, but emerge through being the odd and even parts of the exponential function as well as in other ways.
Then there are special functions of various kinds like Bessel Functions, Legendre Polynomials, Hypergeometric functions as well as those in the presenting discussion.
It seems to me that whether we actually like particular functions or not - or consider them as solutions rather than renamings - might depend on the fluency and intuition we have developed in understanding them. It seems to me to be a bit like solving equations by radicals, which is a nice thing to do, because we know what radicals are - but practically we return to numerical estimates very often, so the radical gives an illusion of precision rather than a practical solution.
So my question is approximately "what makes a function familiar enough to be a special function?"
Now this could be too vague, or opinion-based, or more suitable for meta - but on the other hand I thought the discussion was interesting enough to highlight, and maybe others will have some useful insight.
 A: We use the term elementary function for any function that can be expressed in terms of a finite composition of polynomials, exponentials, and inverses of the same (roughly speaking).  So it includes logs, and roots, trig and hyperbolic by combining exponentials (and passing to complex numbers), and inverses of those, etc.  The way I explain it to students is, “If you can evaluate it on a standard scientific calculator, it's an elementary function.”  I second the recommendation of Brian's article.
This is a pretty good place to draw the line if you're teaching an undergrad calculus course.  Other functions can be “admitted” when their need comes up in more advanced courses.
A: Here is my two cents on the topic:
There are three distinct types of "known" functions. I will evaluate each case separately, and show how we build up our "set of functions"

1. Elementary Functions 
The elementary functions are given a special category because they share special properties (*cough* mumbles something about differential field *cough*) Fundamentally, an elementary functions is anything involving addition, multiplication, and exponentiation, along with the inverses (when working in $\mathbb{C}$). We can (finitely) compose these operations to get new elementary functions - for example, $\sin(2x) - 5$ can be broken up into 


*

*$\sin(x)$, which is defined as the imaginary part of a complex exponential involving multiplication

*$2x$, which is a mulitiplication composed into $\sin(x)$

*$-5$, the addition of the additive inverse of $5$ the expression above.  


Once we start messing with compositions or operators outside of this list we encounter issues. A simple is example is $\int \frac{e^x}{x}\mathrm{d}x$, which is not in our list. Finding a way to include this into our list of functions, we get:

2. Special Functions 
The special functions are a way to expand our set of elementary functions to include other commonly needed functions. One simple example is the integration above; we often term this function $\operatorname{Ei}(x)$, known as the Exponential Integral.  We thus clearly see that integration and differentiation operators are not in our set of elementary operations; for most intents and purposes we really want these operations, and so extending our set of function seems natural. 


*

*Addendum: We allow the functions created by the integration to be "Special Functions", but not the integration or differentiation operators themselves. See this page for more details
Another common example is the Gamma Function. We all know that the factorial function $n!$ is elementary; it is defined purely by multiplication (or division if you want to easily justify $0!$). Special Functions are thus inherently tied to the desire for "Analytic Continuation", i.e. extending the domains of the functions inside of our set.  
It now seems like we can just keep expanding our set of functions to be larger and larger, and this is true; however, for there are a number of reasons for having finitely many special functions. 


*

*One largely philosophical reason is simply that humans live for finite time and can accomplish only finitely many tasks, while there are infinitely many functions. 

*A more grounded reason is that many common tasks involve the same functions, and so we study these functions more in depth and know a lot of properties about them. This allows researchers to share knowledge of the functions more easily; for example, it is a lot harder to share information on the set of symbols "$\int \frac{e^x}{x} \mathrm{d}x$" than to share information on "$\operatorname{Ei(x)}$" or "The Exponential Integral". If you don't believe me, you haven't ever tried to find information online, e.g. at Wolfram MathWorld
Nevertheless, there are simply going to be problems we desire to solve that involve functions we haven't included yet in our set. One concrete example is the integral of $x^x$ - What do we do with this? We can expand our list of functions to include (some):

3. Other Functions 
What falls into this list is really subjective. In my book though, I generally include (generalized) power series, differintegrals, and so forth.  
Also included in this category is what you need in the moment. For example, at one point in my research I needed a way to compactly express the integral of $x^x$. After a little research I found this paper that had a bit on the subject, creating a function $\operatorname{Sphd}(x)$ to generalize the notion of the Sophomore's Dream. This helped me a bit, but what I actually did was just invent "Brevan's Function", which I defined to be $\operatorname{B}(x)=\int x^x \mathrm{d}x$.  
Now comes the important distinction here: If I study $\operatorname{B}(x)$ enough it could become a special function. Creating a new special function generally entails having discovered and published a lot of details on the function, as well as having other people use the function.

Note: I feel that this is currently a fairly week analysis, especially the last section. I will update, expand, and correct this post when I have time.
A: Special functions are frequently recurring functions, so they have been given a name. Such functions come from applied mathematics, mathematics, non-mathematical sciences and technology. Often, a special function is solution of an equation of particular interest. Some arbitrary examples are

*

*problems on a circle,

*problems in mechanics,

*problems in astronomy,

*problems in physics,

*problems in electrical engineering,

*problems of growth,

*problems in quantum physics,

*problems in quantum chemistry.

Closed-form solutions can help to discover relationships.
Nikiforov, A. F.; Uvarov, V. B.: Special Functions of Mathematical Physics. A Unified Introduction with Applications. Birkhäuser, 1988
