The Einstein field equations (EFE; also known as Einstein's equations) comprise the set of 10 equations in Albert Einstein's general theory of relativity that describe the fundamental interaction of gravitation as a result of spacetime being curved by mass and energy.^{[1]} First published by Einstein in 1915^{[2]} as a tensor equation, the EFE relate local spacetime curvature (expressed by the Einstein tensor) with the local energy and momentum within that spacetime (expressed by the stress–energy tensor).^{[3]}
Similar to the way that electromagnetic fields are determined using charges and currents via Maxwell's equations, the EFE are used to determine the spacetime geometry resulting from the presence of mass–energy and linear momentum, that is, they determine the metric tensor of spacetime for a given arrangement of stress–energy in the spacetime. The relationship between the metric tensor and the Einstein tensor allows the EFE to be written as a set of nonlinear partial differential equations when used in this way. The solutions of the EFE are the components of the metric tensor. The inertial trajectories of particles and radiation (geodesics) in the resulting geometry are then calculated using the geodesic equation.
As well as obeying local energy–momentum conservation, the EFE reduce to Newton's law of gravitation where the gravitational field is weak and velocities are much less than the speed of light.^{[4]}
Exact solutions for the EFE can only be found under simplifying assumptions such as symmetry. Special classes of exact solutions are most often studied as they model many gravitational phenomena, such as rotating black holes and the expanding universe. Further simplification is achieved in approximating the actual spacetime as flat spacetime with a small deviation, leading to the linearized EFE. These equations are used to study phenomena such as gravitational waves.
Part of a series on 
Spacetime 

General relativity Special relativity Doubly special relativity 
Spacetime concepts

Classical gravity

The Einstein field equations (EFE) may be written in the form:^{[5]}^{[1]}

where R_{μν} is the Ricci curvature tensor, R is the scalar curvature, g_{μν} is the metric tensor, Λ is the cosmological constant, G is Newton's gravitational constant, c is the speed of light in vacuum, and T_{μν} is the stress–energy tensor.
The EFE is a tensor equation relating a set of symmetric 4 × 4 tensors. Each tensor has 10 independent components. The four Bianchi identities reduce the number of independent equations from 10 to 6, leaving the metric with four gauge fixing degrees of freedom, which correspond to the freedom to choose a coordinate system.
Although the Einstein field equations were initially formulated in the context of a fourdimensional theory, some theorists have explored their consequences in n dimensions.^{[6]} The equations in contexts outside of general relativity are still referred to as the Einstein field equations. The vacuum field equations (obtained when T is identically zero) define Einstein manifolds.
Despite the simple appearance of the equations they are actually quite complicated. Given a specified distribution of matter and energy in the form of a stress–energy tensor, the EFE are understood to be equations for the metric tensor g_{μν}, as both the Ricci tensor and scalar curvature depend on the metric in a complicated nonlinear manner. In fact, when fully written out, the EFE are a system of ten coupled, nonlinear, hyperbolicelliptic partial differential equations.^{[citation needed]}
One can write the EFE in a more compact form by defining the Einstein tensor
which is a symmetric secondrank tensor that is a function of the metric. The EFE can then be written as
In standard units, each term on the left has units of 1/length^{2}. With this choice of Einstein constant as 8πG/c^{4}, then the stressenergy tensor on the right side of the equation must be written with each component in units of energydensity (i.e., energy per volume = pressure).
Using geometrized units where G = c = 1, this can be rewritten as
The expression on the left represents the curvature of spacetime as determined by the metric; the expression on the right represents the matter/energy content of spacetime. The EFE can then be interpreted as a set of equations dictating how matter/energy determines the curvature of spacetime.
These equations, together with the geodesic equation,^{[7]} which dictates how freelyfalling matter moves through spacetime, form the core of the mathematical formulation of general relativity.
The above form of the EFE is the standard established by Misner, Thorne, and Wheeler.^{[8]} The authors analyzed all conventions that exist and classified according to the following three signs (S1, S2, S3):
The third sign above is related to the choice of convention for the Ricci tensor:
With these definitions Misner, Thorne, and Wheeler classify themselves as (+ + +), whereas Weinberg (1972)^{[9]} and Peacock (1994)^{[10]} are (+ − −), Peebles (1980)^{[citation needed]} and Efstathiou (1990)^{[citation needed]} are (− + +), Rindler (1977)^{[citation needed]}, Atwater (1974)^{[citation needed]}, Collins Martin & Squires (1989)^{[citation needed]} are (− + −).
Authors including Einstein have used a different sign in their definition for the Ricci tensor which results in the sign of the constant on the right side being negative
The sign of the (very small) cosmological term would change in both these versions, if the (+ − − −) metric sign convention is used rather than the MTW (− + + +) metric sign convention adopted here.
Taking the trace with respect to the metric of both sides of the EFE one gets
where D is the spacetime dimension. This expression can be rewritten as
If one adds −1/2g_{μν} times this to the EFE, one gets the following equivalent "tracereversed" form
For example, in D = 4 dimensions this reduces to
Reversing the trace again would restore the original EFE. The tracereversed form may be more convenient in some cases (for example, when one is interested in weakfield limit and can replace g_{μν} in the expression on the right with the Minkowski metric without significant loss of accuracy).
Einstein modified his original field equations to include a cosmological constant term Λ proportional to the metric
Since Λ is constant, the energy conservation law is unaffected.
The cosmological constant term was originally introduced by Einstein to allow for a universe that is not expanding or contracting. This effort was unsuccessful because:
So, Einstein abandoned Λ, calling it the "biggest blunder [he] ever made".^{[11]}
Despite Einstein's motivation for introducing the cosmological constant term, there is nothing inconsistent with the presence of such a term in the equations. For many years the cosmological constant was almost universally considered to be 0. However, recent improved astronomical techniques have found that a positive value of Λ is needed to explain the accelerating universe.^{[12]}^{[13]}
Einstein thought of the cosmological constant as an independent parameter, but its term in the field equation can also be moved algebraically to the other side, written as part of the stress–energy tensor:
The resulting vacuum energy density is constant and given by
The existence of a cosmological constant is thus equivalent to the existence of a nonzero vacuum energy. Thus, the terms "cosmological constant" and "vacuum energy" are now used interchangeably in general relativity.
General relativity is consistent with the local conservation of energy and momentum expressed as
Derivation of local energymomentum conservation 

Contracting the differential Bianchi identity with g^{αβ} gives, using the fact that the metric tensor is covariantly constant, i.e. g^{αβ}_{;γ} = 0, The antisymmetry of the Riemann tensor allows the second term in the above expression to be rewritten: which is equivalent to using the definition of the Ricci tensor. Next, contract again with the metric to get The definitions of the Ricci curvature tensor and the scalar curvature then show that which can be rewritten as A final contraction with g^{εδ} gives which by the symmetry of the bracketed term and the definition of the Einstein tensor, gives, after relabelling the indices, Using the EFE, this immediately gives, 
which expresses the local conservation of stress–energy. This conservation law is a physical requirement. With his field equations Einstein ensured that general relativity is consistent with this conservation condition.
The nonlinearity of the EFE distinguishes general relativity from many other fundamental physical theories. For example, Maxwell's equations of electromagnetism are linear in the electric and magnetic fields, and charge and current distributions (i.e. the sum of two solutions is also a solution); another example is Schrödinger's equation of quantum mechanics which is linear in the wavefunction.
The EFE reduce to Newton's law of gravity by using both the weakfield approximation and the slowmotion approximation. In fact, the constant G appearing in the EFE is determined by making these two approximations.
Derivation of Newton's law of gravity 

Newtonian gravitation can be written as the theory of a scalar field, Φ, which is the gravitational potential in joules per kilogram where ρ is the mass density. The orbit of a freefalling particle satisfies In tensor notation, these become In general relativity, these equations are replaced by the Einstein field equations in the tracereversed form for some constant, K, and the geodesic equation To see how the latter reduces to the former, we assume that the test particle's velocity is approximately zero and thus and that the metric and its derivatives are approximately static and that the squares of deviations from the Minkowski metric are negligible. Applying these simplifying assumptions to the spatial components of the geodesic equation gives where two factors of dt/dτ have been divided out. This will reduce to its Newtonian counterpart, provided Our assumptions force α = i and the time (0) derivatives to be zero. So this simplifies to which is satisfied by letting Turning to the Einstein equations, we only need the timetime component the low speed and static field assumptions imply that So and thus From the definition of the Ricci tensor Our simplifying assumptions make the squares of Γ disappear together with the time derivatives Combining the above equations together which reduces to the Newtonian field equation provided which will occur if 
If the energymomentum tensor T_{μν} is zero in the region under consideration, then the field equations are also referred to as the vacuum field equations. By setting T_{μν} = 0 in the tracereversed field equations, the vacuum equations can be written as
In the case of nonzero cosmological constant, the equations are
The solutions to the vacuum field equations are called vacuum solutions. Flat Minkowski space is the simplest example of a vacuum solution. Nontrivial examples include the Schwarzschild solution and the Kerr solution.
Manifolds with a vanishing Ricci tensor, R_{μν} = 0, are referred to as Ricciflat manifolds and manifolds with a Ricci tensor proportional to the metric as Einstein manifolds.
If the energymomentum tensor T_{μν} is that of an electromagnetic field in free space, i.e. if the electromagnetic stress–energy tensor
is used, then the Einstein field equations are called the Einstein–Maxwell equations (with cosmological constant Λ, taken to be zero in conventional relativity theory):
Additionally, the covariant Maxwell equations are also applicable in free space:
where the semicolon represents a covariant derivative, and the brackets denote antisymmetrization. The first equation asserts that the 4divergence of the twoform F is zero, and the second that its exterior derivative is zero. From the latter, it follows by the Poincaré lemma that in a coordinate chart it is possible to introduce an electromagnetic field potential A_{α} such that
in which the comma denotes a partial derivative. This is often taken as equivalent to the covariant Maxwell equation from which it is derived.^{[14]} However, there are global solutions of the equation which may lack a globally defined potential.^{[15]}
The solutions of the Einstein field equations are metrics of spacetime. These metrics describe the structure of the spacetime including the inertial motion of objects in the spacetime. As the field equations are nonlinear, they cannot always be completely solved (i.e. without making approximations). For example, there is no known complete solution for a spacetime with two massive bodies in it (which is a theoretical model of a binary star system, for example). However, approximations are usually made in these cases. These are commonly referred to as postNewtonian approximations. Even so, there are numerous cases where the field equations have been solved completely, and those are called exact solutions.^{[6]}
The study of exact solutions of Einstein's field equations is one of the activities of cosmology. It leads to the prediction of black holes and to different models of evolution of the universe.
One can also discover new solutions of the Einstein field equations via the method of orthonormal frames as pioneered by Ellis and MacCallum.^{[16]} In this approach, the Einstein field equations are reduced to a set of coupled, nonlinear, ordinary differential equations. As discussed by Hsu and Wainwright,^{[17]} selfsimilar solutions to the Einstein field equations are fixed points of the resulting dynamical system. New solutions have been discovered using these methods by LeBlanc ^{[18]} and Kohli and Haslam.^{[19]}
The nonlinearity of the EFE makes finding exact solutions difficult. One way of solving the field equations is to make an approximation, namely, that far from the source(s) of gravitating matter, the gravitational field is very weak and the spacetime approximates that of Minkowski space. The metric is then written as the sum of the Minkowski metric and a term representing the deviation of the true metric from the Minkowski metric, with terms that are quadratic in or higher powers of the deviation being ignored. This linearization procedure can be used to investigate the phenomena of gravitational radiation.
One might think that EFE are nonpolynomial since they contain the inverse of the metric tensor. However, the equations can be arranged so that they contain only the metric tensor and not its inverse. First, the determinant of the metric in 4 dimensions can be written:
using the LeviCivita symbol; and the inverse of the metric in 4 dimensions can be written as:
Substituting this definition of the inverse of the metric into the equations then multiplying both sides by det(g) until there are none left in the denominator results in polynomial equations in the metric tensor and its first and second derivatives. The action from which the equations are derived can also be written in polynomial form by suitable redefinitions of the fields.^{[20]}
See General relativity resources.
Wikibooks has a book on the topic of: General Relativity 
Wikiversity has learning resources about General Relativity 