In mathematics, the notion of a germ of an object in/on a topological space captures the local properties of the object. In particular, the objects in question are mostly functions (or maps) and subsets. In specific implementations of this idea, the sets or maps in question will have specific properties, such as being analytic or smooth, but in general this is not needed (the maps or functions in question need not even be continuous); it is however necessary that the space on/in which the object is defined is a topological space, in order that the word local have some sense.
Formal definition 
Basic definition 
Given a point x of a topological space X, and two maps f, g : X → Y (where Y is any set), then f and g define the same germ at x if there is a neighbourhood U of x such that restricted to U, f and g are equal; meaning that f(u) = g(u) for all u in U. Similarly, if S and T are any two subsets of X, then they define the same germ at x if there is again a neighbourhood U of x such that
It is straightforward to see that defining the same germ at x is an equivalence relation (be it on maps or sets), and the equivalence classes are called germs (map-germs, or set-germs accordingly). The equivalence relation is usually written
Given a map f on X, then its germ at x is usually denoted [f ]x. Similarly, the germ at x of a set S is written [S]x. Thus,
A map germ at x in X which maps the point x in X to the point y in Y is denoted as
When using this notation, f is then intended as an entire equivalence class of maps, using the same letter f for any representative map.
Notice that two sets are germ-equivalent at x if and only if their characteristic functions are germ-equivalent at x:
More generally 
Maps need not be defined on all of X, and in particular they don't need to have the same domain. However, if f has domain S and g has domain T, both subsets of X, then f and g are germ equivalent at x in X if first S and T are germ equivalent at x, say , and then moreover , for some smaller neighbourhood V with . This is particularly relevant in two settings:
- f is defined on a subvariety V of X, and
- f has a pole of some sort at x, so is not even defined at x, as for example a rational function, which would be defined off a subvariety.
Basic properties 
If f and g are germ equivalent at x, then they share all local properties, such as continuity, differentiability etc., so it makes sense to talk about a differentiable or analytic germ, etc. Similarly for subsets: if one representative of a germ is an analytic set then so are all representatives, at least on some neighbourhood of x.
Moreover, if the target Y is a vector space, then it makes sense to add germs: to define [f]x + [g]x, first take representatives f and g, defined on neighbourhoods U and V respectively, then [f]x + [g]x is the germ at x of the map f + g (where f + g is defined on ). (In the same way one can define more general linear combinations.)
The set of germs at x of maps from X to Y does not have a useful topology, except for the discrete one. It therefore makes little or no sense to talk of a convergent sequence of germs. However, if X and Y are manifolds, then the spaces of jets (finite order Taylor series at x of map(-germs)) do have topologies as they can be identified with finite-dimensional vector spaces.
Relation with sheaves 
The idea of germ is behind the definition of sheaves and presheaves. A presheaf on a topological space X is an assignment of an Abelian group to each open set U in X. Typical examples of Abelian groups here are: real valued functions on U, differential forms on U, vector fields on U, holomorphic functions on U (when X is a complex space), constant functions on U and differential operators on U.
If then there is a restriction map , satisfying certain compatibility conditions. For a fixed x, one says that elements and are equivalent at x if there is a neighbourhood of x with resWU(f) = resWV(g) (both elements of ). The equivalence classes form the stalk at x of the presheaf . This equivalence relation is an abstraction of the germ equivalence described above.
If and have additional structure, it is possible to define subsets of the set of all maps from X to Y or more generally sub-presheaves of a given presheaf and corresponding germs: some notable examples follow.
- If are both topological spaces, the subset
- of continuous functions defines germs of continuous functions.
- of -times continuously differentiable functions, the subset
- of smooth functions and the subset
- of analytic functions can be defined ( here is the ordinal for infinity; this is an abuse of notation, by analogy with and ∞), and then spaces of germs of (finitely) differentiable, smooth, analytic functions can be constructed.
- If have a complex structure (for instance, are subsets of complex vector spaces), holomorphic functions between them can be defined, and therefore spaces of germs of holomorphic functions can be constructed.
- If have an algebraic structure, then regular (and rational) functions between them can be defined, and germs of regular functions (and likewise rational) can be defined.
The stalk of a sheaf on a topological space at a point of is commonly denoted by . As a consequence germs, being stalks of sheaves of various kind of functions, borrow this scheme of notation:
- is the space of germs of continuous functions at .
- for each natural number is the space of germs of -times-differentiable functions at .
- is the space of germs of infinitely differentiable ("smooth") functions at .
- is the space of germs of analytic functions at .
- is the space of germs of holomorphic functions (in complex geometry), or space of germs of regular functions (in algebraic geometry) at .
For germs of sets and varieties, the notation is not so well established: some notations found in literature include:
- is the space of germs of analytic varieties at .
When the point is fixed and known (e.g. when is a topological vector space and ), it can be dropped in each of the above symbols: also, when dim, a subscript before the symbol can be added. As example
- are the spaces of germs shown above when is a -dimensional vector space and .
The key word in the applications of germs is locality: all local properties of a function at a point can be studied analyzing its germ. They are a generalization of Taylor series, and indeed the Taylor series of a germ (of a differentiable function) is defined: you only need local information to compute derivatives.
When the topological spaces considered are Riemann surfaces or more generally analytic varieties, germs of holomorphic functions on them can be viewed as power series, and thus the set of germs can be considered to be the analytic continuation of an analytic function.
See also 
- Nicolas Bourbaki (1989). General Topology. Chapters 1-4 (paperback ed.). Springer-Verlag. ISBN 3-540-64241-2., chapter I, paragraph 6, subparagraph 10 "Germs at a point".
- Raghavan Narasimhan (1973). Analysis on Real and Complex Manifolds (2nd ed. ed.). North-Holland Elsevier. ISBN 0-7204-2501-8., chapter 2, paragraph 2.1, "Basic Definitions".
- Robert C. Gunning and Hugo Rossi (1965). Analytic Functions of Several Complex Variables. Prentice-Hall., chapter 2 "Local Rings of Holomorphic Functions", especially paragraph A "The Elementary Properties of the Local Rings" and paragraph E "Germs of Varieties".
- Ian R. Porteous (2001) Geometric Differentiation, page 71, Cambridge University Press ISBN 0-521-00264-8 .
- Giuseppe Tallini (1973). Varietà differenziabili e coomologia di De Rham (Differentiable manifolds and De Rham cohomology). Edizioni Cremonese. ISBN 88-7083-413-1., paragraph 31, "Germi di funzioni differenziabili in un punto di (Germs of differentiable functions at a point of )" (in Italian).
- Chirka, Evgeniǐ Mikhaǐlovich (2001), "Germ", in Hazewinkel, Michiel, Encyclopedia of Mathematics, Springer, ISBN 978-1-55608-010-4
- Germ of smooth functions at PlanetMath
- Dorota Mozyrska, Zbigniew Bartosiewicz"Systems of germs and theorems of zeros in infinite-dimensional spaces", arxiv.org e-Prints server (Primary site at Cornell University). A research preprint dealing with germs of analytic varieties in an infinite dimensional setting.