In mathematics, when a mathematical phenomenon runs counter to some intuition, then the phenomenon is sometimes called pathological. On the other hand, if a phenomenon does not run counter to intuition, it is sometimes called well-behaved or nice. These terms are sometimes useful in mathematical research and teaching, but there is no strict mathematical definition of pathological or well-behaved.
In analysis A classic example of a pathology is the Weierstrass function, a function that is continuous everywhere but differentiable nowhere. The sum of a differentiable function and the Weierstrass function is again continuous but nowhere differentiable; so there are at least as many such functions as differentiable functions. In fact, using the Baire category theorem, one can show that continuous functions are generically nowhere differentiable. Such examples were deemed pathological when they were first discovered. To quote Henri Poincaré:
Logic sometimes breeds monsters. For half a century there has been springing up a host of weird functions, which seem to strive to have as little resemblance as possible to honest functions that are of some use. No more continuity, or else continuity but no derivatives, etc. More than this, from the point of view of logic, it is these strange functions that are the most general; those that are met without being looked for no longer appear as more than a particular case, and they have only quite a little corner left them. Formerly, when a new function was invented, it was in view of some practical end. To-day they are invented on purpose to show our ancestors' reasonings at fault, and we shall never get anything more than that out of them.
If logic were the teacher's only guide, he would have to begin with the most general, that is to say, with the most weird, functions. He would have to set the beginner to wrestle with this collection of monstrosities. If you don't do so, the logicians might say, you will only reach exactness by stages. Since Poincaré, nowhere differentiable functions have been shown to appear in basic physical and biological processes such as Brownian motion and in applications such as the Black-Scholes model in finance. Counterexamples in Analysis is a whole book of such counterexamples. Another example of pathological function is Du-Bois Reymond continuous function, that can't be represented as a Fourier series.
In topology One famous counterexample in topology is the Alexander horned sphere, showing that topologically embedding the sphere S2 in R3 may fail to separate the space cleanly. As a counterexample, it motivated mathematicians to define the tameness property, which suppresses the kind of wild behavior exhibited by the horned sphere, wild knot, and other similar examples. Like many other pathologies, the horned sphere in a sense plays on infinitely fine, recursively generated structure, which in the limit violates ordinary intuition. In this case, the topology of an ever-descending chain of interlocking loops of continuous pieces of the sphere in the limit fully reflects that of the common sphere, and one would expect the outside of it, after an embedding, to work the same. Yet it does not: it fails to be simply connected. For the underlying theory, see Jordan–Schönflies theorem. Counterexamples in Topology is a whole book of such counterexamples.
In algebraic geometry In a sequence of four papers published in the American Journal of Mathematics between 1961 and 1975, David Mumford explored "pathological" behavior in algebraic geometry. His examples fall into two types: (a) bad behavior in characteristic p and (b) bad behavior in moduli spaces. Mumford wrote in the 1962 paper Further Pathologies in Algebraic Geometry:
A non-singular characteristic p variety is analogous to a general non-Kähler complex manifold; in particular, a projective embedding of such a variety is not as strong as a Kähler metric on a complex manifold, and the Hodge–Lefschetz–Dolbeault theorems on sheaf cohomology break down in every possible way. In Pathologies I (Pathologies of Modular Algebraic Surfaces), Mumford (a) finds an everywhere regular differential form on a smooth projective surface that is not closed, and shows that Hodge symmetry fails for classical Enriques surfaces in characteristic two. This example is developed further in Mumford's third paper on classification of surfaces in characteristic p (written with Enrico Bombieri). It can be explained in terms of the Picard scheme of the surface, and in particular, its failure to be a reduced scheme, a theme developed in Mumford's book Lectures on Curves on an Algebraic Surface. Pathologies related to p-torsion in crystalline cohomology were later explored by Luc Illusie. In Pathologies II (Further Pathologies in Algebraic Geometry), Mumford (a) gives a simple example of a surface in characteristic p where the geometric genus is non-zero, but the second Betti number is equal to the rank of the Néron–Severi group. Further such examples arise in Zariski surface theory. He also conjectured that the Kodaira vanishing theorem is false for surfaces in characteristic p. Mumford also (b) finds that the Hilbert scheme parametrizing space curves of degree 14 and genus 24 has a multiple component. In 2006 Ravi Vakil in his paper "Murphy's law in algebraic geometry" showed that Hilbert schemes can be arbitrarily "bad", with unlimited numbers of components and with arbitrarily large multiplicities. In Pathologies III, he (a) gives an example of a normal surface for which Kodaira vanishing fails. The first example of a smooth surface for which Kodaira vanishing fails was given by Michel Raynaud in 1978. In Pathologies IV, he (b) finds reduced and irreducible complete curves which are not specializations of non-singular curves.
… excerpt ends here. Continue reading the full article.

