According to astronomical observations, the gravity force at large scales may not behave in standard GR derived from the Hilbert-Einstein action,
where R is the Ricci scalar, G is Newton’s gravitational constant, and is the matter lagrangian density, respectively    . So, a generalized Hilbert-Einstein action may be required to fully understand the gravitational interaction. One of the possible ways to generalize GR is related to the modification of the geometric section of Hilbert-Einstein action. Examples of such modified gravity models are introduced in  , by assuming that the Ricci scalar R in the lagrangian is replaced by an arbitrary function of the Ricci scalar. For discussions of modified gravity theories see  - . The modified theories of gravity can easily explain the recent cosmological observations, and give a solution to the dark matter problem  . The metric and Palatini formalisms are two different ways that GR can be derived and lead to the same field equations . However, in modified gravity, the equations of motion in Palatini approach and metric formalism are generically different . The field equations in metric approach are higher-order while in Palatini approach they are second-order. Both these formalisms in theories allow the formulation of simple extensions of Einstein’s GR. For further discussions of theories of gravity involving geometry and matter coupling see  .
In the cosmological context, different models give rise to the problem of how to constrain from theoretical and observational aspects of these possible models. Recently, by testing the cosmological viability of some specific cases of this possibility has been discussed  - . By imposing the energy conditions, we may have further constrains to theories of gravity  . In different contexts, these conditions (so-called energy conditions) have been used to obtain global solutions for a variety of situations. As an example, the weak energy condition (WEC) and strong energy condition (SEC) were used in the Hawking-Penrose singularity theorems. Also, the null energy condition (NEC) is required to prove the second law of black hole thermodynamics. However, the energy conditions were basically formulated in GR , one can drive these conditions in theories of gravity by introducing new effective pressure and energy density defined in Jordan frame. In the present paper, the energy conditions for theories in Palatini formalism are derived by using the Raychaudhuri’s Equation (along with the attraction of gravity) which is the ultimate origin of the energy conditions.
2. Palatini Formalism for Theories of Gravity
To explain the cosmic speed-up, the model in metric formalism has some problems. By observation that these problems could be avoided by considering its Palatini formalism, this approach to theories of gravity has been boosted. Also, the energy conditions in GR and metric formalism of theories have been discussed in different contexts. So, finding the energy conditions in Palatini version of would be interesting that we will discuss them in the present paper. Therefore, first we review the field equations in Palatini formalism, and then obtain the energy conditions. The action that defines theories has the generic form
where represents the matter action, which depends on the metric and the matter field . In the case of Palatini formalism, the connection and the metric are regarded as dynamical variables to be independently varied. Varying the action respect to the metric does yield dynamical equations
where and is the usual energy-momentum tensor.
is the Ricci tensor corresponding to the connection , which is in general different from the Ricci tensor corresponding to the metric connection . Taking the trace of the Equation (2), we obtain
where is directly related to T and is different from the Ricci scalar in the metric case. Varying the action (1) with respect to the connection yields
Taking into account that under conformal transformations how the Ricci tensor transforms, it has been shown that  
where and are computed in terms of the Levi-Civita connection of the metric , i.e., they represent the usual Ricci tensor and scalar curvature. It follows that and are related by
For simplicity, we take . Now, we can realize that the right hand side of Equation (5) can be considered as an effective energy-momentum tensor . So
Taking the trace of the above equation, one can easily find
By substituting T from (3) into Equation (8), after simplification, we reach
Now, by comparing the above relation and Equation (6), one can easily realize that
So, we can rewrite the Equation (5) as
where and are Equations (7) and (8), respectively.
3. Energy Conditions in Palatini Version of
To find the energy conditions, we shall use the Raychaudhuri’s equation which holds for any geometrical theory of gravity. Therefore, we first briefly review these conditions in GR and then apply them to the modified gravity in Palatini formalism. The Raychaudhuri’s equation implies that for any hypersurface orthogonal congruences, the condition for attractive gravity (convergence of time like geodesics) reduces to , where is a tangent vector field to a congruence of time like geodesics. In GR, using the units such that
, we have or .
So the condition implies that
For a perfect fluid with energy density and pressure p
by using the restriction (12), the SEC can be written as .
The condition for convergence of null geodesics along with Einsteins’s equations leads to
which is the NEC. Here is a tangent vector field to a congruence of null geodesics. Therefore, the NEC for the energy-momentum tensor (13) can be written as .
Since, the Raychaudhuri’s equation is valid for any geometrical gravity theory, so, the conditions and along with field equations in Palatini version of gravity implies that
where we have used instead of . Now, by comparing the above equations with Equations (12) and (14), we can simply figure out that the SEC and NEC can be modified as and , respectively.
By substituting (6) into (7), for the homogeneous and isotropic Friedmann-Lemaitre-Robertson-Walker (FLRW) metric with scale factor , and after some simplifications, we reach the following relations for effective energy density and effective pressure .
Here, is the Hubble parameter. We can easily rewrite the above equations as (by denoting
To simply express the energy conditions, we can write the Ricci scalar and its derivatives for a spatially flat FLRW metric in terms of the deceleration (q), jerk (j) and snap (s) parameters   
Now, we can classify the energy conditions as follow
WEC (week energy condition): beside the inequality (23),
DEC (dominant energy condition): beside the inequalities (23) and (25),
It is useful to discuss the energy conditions for some specific models for the present values of deceleration, jerk, and snap parameters. As we can see from the inequalities (23), (24), (25), and (26), these inequalities depend on the value of the snap parameter except for WEC and SEC. Since a reliable value of this parameter has not been reported, therefore, only the WEC and SEC are discussable with the present observational datas of deceleration and jerk parameters ( ). We shall note that the inequality (25) for WEC is exactly the same inequality found in . The authors of  perfectly explain the WEC for and models of gravity.
In the context of modified gravity, we have reviewed the field equations in Palatini formalism. It is shown that the model in metric approach has some problems to explain the cosmic speed-up. By considering the Palatini version of this model, these problems can be avoided. To discuss the energy conditions, we use the Raychaudhuri’s equation along with the requirement that the gravity is attractive, which is the ultimate origin of the energy conditions and holds for any geometrical theory of gravity. We consider FLRW metric to derive the effective pressure and energy density, which are needed to find the energy conditions. It is seen that these conditions are different from those derived in the context of GR. We have shown that the WEC and SEC are independent of the snap parameter (s). It is worth to mention here that the WEC derived in Palatini formalism of gravity is exactly the same WEC found in its metric approach. We should note that in the context of general relativity all these energy conditions seem to be violated at some points.
 Amanullah, R., et al. (2010) Spectra and Light Curves of Six Type Ia Supernovae at 0.511 < z < 1.12 and the Union2 Compilation. The Astrophysical Journal, 716, 712-738.
 Baer, H., Choi, K.-Y., Kim, J.E. and Roszkowski, L. (2015) Dark Matter Production in the Early Universe: Beyond the Thermal WIMP Paradigm. Physics Reports, 555, 1-60.
 Barrow, J.D. and Ottewill, A.C. (1983) The Stability of General Relativistic Cosmological Theory. Journal of Physics A: Mathematical and General, 16, 2757.
 Carroll, S.M., Duvvuri, V., Trodden, M. and Turner, M.S. (2004) Is Cosmic Speed-Up Due to New Gravitational Physics? Physical Review D, 70, Article ID: 043528.
 Nojiri, S. and Odintsov, S.D. (2007) Introduction to Modified Gravity and Gravitational Alternative for Dark Energy. International Journal of Geometric Methods in Modern Physics, 4, 115-145.
 Nojiri, S., Odintsov, S.D. and Oikonomou, V.K. (2017) Modified Gravity Theories on a Nutshell: Inflation, Bounce and Late-Time Evolution. Physics Reports, 692, 1-104. https://doi.org/10.1016/j.physrep.2017.06.001
 Bahamonde, S., Jamil, M., Pavlovic, P. and Sossich, M. (2016) Cosmological Wormholes in f(R) Theories of Gravity. Physical Review D, 94, Article ID: 044041.
 Saiedi, H. and Nasr Esfahani, B. (2011) Time-Dependent Wormhole Solutions of f(R) Theory of Gravity and Energy Conditions. Modern Physics Letters A, 26, 1211-1219.
 Dutta, J., Mitra, S. and Chetry, B. (2016) Modified Bekenstein-Hawking System in f(R) Gravity. International Journal of Theoretical Physics, 55, 4272-4285.
 Pasqua, A., Chattopadhyay, S. and Myrzakulov, R. (2013) A Dark Energy with Higher order Derivatives of H in the Modified Gravity f(R, T). ISRN High Energy Physics, 2014, Article ID: 535010.
 Saiedi, H. (2017) Modified f(R) Gravity and Thermodynamics of Time-Dependent Wormholes at Event Horizon. Journal of High Energy Physics, Gravitation and Cosmology, 3, 708-714.
 Xu, T., Cao, S., Qi, J., Biesiada, M., Zheng, X. and Zhu, Z.-H. (2018) A New Test of f(R) Gravity with the Cosmological Standard Rulers in Radio Quasars. Journal of Cosmology and Astroparticle Physics, 2018, 1-19.
 Corda, C. (2009) Interferometric Detection of Gravitational Waves: The Definitive Test for General Relativity. International Journal of Modern Physics D, 18, 2275-2282.
 Brookfield, A.W., van de Bruck, C. and Hall, L.M.H. (2006) Viability of f(R) Theories with Additional Powers of Curvature. Physical Review D, 74, 064028.
 Amendola, L., Gannouji, R., Polarski, D. and Tsujikawa, S. (2007) Conditions for the Cosmological Viability of f(R) Dark Energy Models. Physical Review D, 75, 083504. https://doi.org/10.1103/PhysRevD.75.083504
 Capozziello, S., Nojiri, S., Odintsov, S.D. and Troisi, A. (2006) Cosmological Viability of f(R)-Gravity as an Ideal Fluid and Its Compatibility with a Matter Dominated Phase. Physics Letters B, 639, 135-143.
 Zubair, M. and Waheed, S. (2015) Energy Conditions in f(T) Gravity with Non- Minimal Torsion-Matter Coupling. Astrophysics and Space Science, 355, 361-369.
 Capozziello, S., Darabi, F. and Vernieri, D. (2010) Correspondence between Jordan-Einstein Frames and Palatini-Metric Formalisms. Modern Physics Letters A, 25, 3279-3289.