Question: Variation in cosmology

Hello guys

I have a simple but crucial question about variation, especially in cosmology and gravity. suppose we have the action such as

S=int(sqrt(-g)*F(R,RµναβRµναβ),d^4x) where g is determinant metric gµν and d^4x is space in 4D and F is an arbitrary function of R (Ricci scalar) and scalar which created by Riemann tensor. How we can define this action in the maple 18 and take variation with respect to the metric.

thanks

Please Wait...