I would like to understand definition and also meaning of cotangent space. Let's first of all define tangent space: generally we know that equation of tangent line of function $f(x)$ at point $x_0$ is equal to
$$y=f(x_0)+f'(x_0)*(x-x_0)$$
Is tangent space somehow related to tangent lines? For example, family of tangent lines? According to Wikipedia, cotangent space is a dual of tangent space; as I know duality for example in vectors means that take a vector and produce scalar, general definition of tangent space is given on the following mathematics site
http://mathworld.wolfram.com/TangentSpace.html
According to this, I understood that if we have point $x$ in compact manifold $M$, and if we attach at $x$ a copy of $n$-dimensional real space as a tangent to $M$, then resulting space is tangent space, so does it means that at given point $x$, we are attaching $\mathbb{R}^n$ space as a tangent to $M$? If so, then what does cotangent do? Does it take vector from tangent space and produce scalar?
I
should be capitalized, and that (most) punctuation should be followed by a space. It's much easier to read a question when it follows standard rules of grammar. $\endgroup$