Horndeski's theory can be written in terms of an action as[4]
with the Lagrangian densities
Here is Newton's constant, represents the matter Lagrangian, to are generic functions of and , are the Ricci scalar and Einstein tensor, is the Jordan frame metric, semicolon indicates covariant derivatives, commas indicate partial derivatives, , and repeated indices are summed over following Einstein's convention.