The following is from Vakil’s notes page 99.
we can understand a geometric space (such as a manifold) well by understanding the functions on this space. More precisely, we will understand it through the sheaf of functions on the space. If we are interested in differentiable manifolds, we will consider differentiable functions; if we are interested in smooth manifolds, we will consider smooth functions; and so on.
I know some basic notions of diffrential manifolds and know nothing about scheme, and I couldn’t come up with an good example illustrating the above slogan, which says we could understand a space by understanding the functions on the space.
Actually this seems too general for me. What do we mean by understanding a space? What kind of properties of the space do we want to study? It seems necessary to figure out these questions in order to have a good understanding about how the slogan works as well as why understanding the space in that way is a natural consideration.
Could you give some examples to illustrate this? Thanks in advance.
You should take Vakil's statement with a grain of salt: He is preparing you for standard (post-Grothendieck) definitions of algebraic varieties and schemes. These definitions are the result of a long and winding road of development of algebraic geometry since 19th century. They proved to be optimal (as far as we know) for the purposes of algebraic geometry. There are similar viewpoints on topological spaces, metric spaces and differentiable manifolds, but they are relatively uncommon and unpopular among topologists and geometers. A good example of such a viewpoint comes from a theorem that a differentiable manifold is uniquely determined by the ring of differentiable functions on this manifold (regarded as an abstract ring: two manifolds are diffeomorphic iff the corresponding rings are isomorphic). However, most differential geometers and topologists will never approach studying differentiable manifolds this way (there are exceptions to this rule, see below). As an example you are surely familiar with, most textbooks discuss a classification of surfaces using cutting-and-pasting of "fundamental polygons," instead of teaching you about the algebra of functions on a surface.
Some exceptions:
Defining tangent vectors to differentiable manifolds is most frequently done using the language of derivations of germs of functions. From this viewpoint, a tangent vector is identified with the corresponding "directional derivative." This viewpoint (unheard of before the middle of the 20th century) is definitely influenced by the algebro-geometric way of thinking.
In Riemannian geometry, one frequently studies geometric properties of manifolds by analyzing harmonic (and subharmonic) functions on manifolds, as well as eigenfunctions/eigenvalues of the Laplacian. Nevertheless, here one works analytically rather than algebraically as an algebraic geometer would do.
In differential topology, one frequently analyses a manifold by choosing a Morse function on such a manifold (equivalent to a "handle decomposition"- think in terms of a fundamental polygon in the surface case) and making suitable modification of a Morse function (equivalent to "handle slides"- think about cutting and pasting fundamental polygons in the surface case).
Many topological invariants of differentiable manifolds are defined by looking at spaces of differential forms, sections of bundles etc., satisfying certain differential equations, on the manifold. Such objects can be regarded as generalizations functions on a manifold. Examples include harmonic forms, self-dual connections, etc.