Let us go in steps here. xCoba is indeed the xAct package to handle computations by components. It now has several different notations to do anything, and I understand it can get confusing. Let me recommend the following:
In[1]:= Needs["xAct`xCoba`"]
In[2]:= DefManifold[S2, 2, {a, b, c, d, e, f, g, h}]
In[3]:= DefChart[RS, S2, {0, 1}, {u[], v[]}]
Then define the metric as a CTensor:
In[4]:= met = CTensor[4/(1 + u[]^2 + v[]^2)^2 {{1, 0}, {0, 1}}, {-RS, -RS}];
and set it as the main metric:
In[5]:= SetCMetric[met, RS]
You can see the components using
In[6]:= met[-a, -b]
Now compute everything about this metric:
In[7]:= MetricCompute[met, RS, All, CVSimplify -> Simplify]
The covariant derivative associated to that metric is now
In[8]:= cd = CovDOfMetric[met]
and the Christoffel of that connection is
In[9]:= chr = Christoffel[cd, PDRS]
Again, you can see its components using
In[10]:= chr[a, -b, -c]
To access an individual component use for example. (NOTE: If the following does not work add the definition xAct`xCoba`Private`moveto[n_, n_] := {1} somewhere):
In[11]:= chr[{0, RS}, {1, -RS}, {0, -RS}]
Note that you can do operations like
In[12]:= chr[a, -b, -c] chr[b, -a, -d] // Simplify
For example, now define two scalar functions:
In[13]:= DefScalarFunction[{x0, x1}]
and construct x:
In[14]:= x = CTensor[{x0[u[], v[]], x1[u[], v[]]}, {RS}];
Now you can compute for instance:
In[15]:= cd[a]@cd[-a]@x[b] // Simplify
In[16]:= % // InputForm
Hope that helps.
Cheers,
Jose.