# Compute curvature tensor constructed by a shifted connection

**URL:** <https://community.wolfram.com/t/compute-curvature-tensor-constructed-by-a-shifted-connection/23899>\
**Category:** Questions\
**Tags:** physics, packages-and-paclets\
**Created:** [April 22, 2024, 1:32am UTC](https://community.wolfram.com/t/compute-curvature-tensor-constructed-by-a-shifted-connection/23899 "2024-04-22T01:32:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayberkcakmak](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@ayberkcakmak](https://community.wolfram.com/u/ayberkcakmak)\
**Post date:** [April 22, 2024, 1:32am UTC](https://community.wolfram.com/t/compute-curvature-tensor-constructed-by-a-shifted-connection/23899/1 "2024-04-22T01:32:25Z")

</div>

I’m using xAct package to compute the curvature tensor from a specific connection, of the form \Gamma^a\_{bc}=\left\{^{\:a}\_{bc}\right\} + S^a\_{\;bc}, where the first term is the Levi Civita connection constructed from the metric of the manifold, and the second term is the shift tensor which depends on a vector field f\_k : S^a\_{\;bc}=(\delta^a\_bf\_c+\delta^a\_cf\_b-g\_{bc}f^a). I would like to find the curvature tensor, Ricci tensor, and eventually the Ricci scalar related to this connection. However, i’m having a hard time trying to apply Simplification to the curvature tensor, and RicciScalar[] does not give me the desired result.

You can check the [same post on StackExchange](https://mathematica.stackexchange.com/questions/302241/compute-curvature-tensor-constructed-by-a-shifted-connection).

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/78a9d553-4499-448d-a3ac-e523e80712c4)

---

<div class="post-metadata">

**Author:** ![jose](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jose/32/26765_2.png) [@jose](https://community.wolfram.com/u/jose)\
**Post date:** [April 23, 2024, 2:03am UTC](https://community.wolfram.com/t/compute-curvature-tensor-constructed-by-a-shifted-connection/23899/2 "2024-04-23T02:03:18Z")

</div>

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/1fd80921-2829-45ca-8cac-76fee682c64b)

---

<div class="post-metadata">

**Author:** ![ayberkcakmak](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@ayberkcakmak](https://community.wolfram.com/u/ayberkcakmak)\
**Post date:** [April 23, 2024, 2:44am UTC](https://community.wolfram.com/t/compute-curvature-tensor-constructed-by-a-shifted-connection/23899/3 "2024-04-23T02:44:11Z")

</div>

Thanks a lot, seems to be working. But I still don’t understand why Riccicd[] is not automatically computed.

---

<div class="post-metadata">

**Author:** ![jose](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jose/32/26765_2.png) [@jose](https://community.wolfram.com/u/jose)\
**Post date:** [April 23, 2024, 2:54am UTC](https://community.wolfram.com/t/compute-curvature-tensor-constructed-by-a-shifted-connection/23899/4 "2024-04-23T02:54:47Z")

</div>

Riccicd[-a, -b] is a symbolic object, like Riccilc[-a, -b]. You have a rule that relates two tensors, the Christoffels, but xTensor will not attempt to compute relations for other tensors. This would be difficult, and depend on assumptions about whether there are metrics, torsions, etc. You need to guide the computations.
