Lunar month

In lunar calendars, a lunar month is the time between two successive syzygies of the same type: new moons or full moons. The precise definition varies, especially for the beginning of the month.
Variations.
In Shona, Middle-Eastern, and European traditions, the month starts when the young crescent moon first becomes visible, at evening, after conjunction with the Sun one or two days before that evening (e.g., in the Islamic calendar). In ancient Egypt, the lunar month began on the day when the waning moon could no longer be seen just before sunrise. Others run from full moon to full moon.
Yet others use calculation, of varying degrees of sophistication, for example, the Hebrew calendar or the ecclesiastical lunar calendar. Calendars count integer days, so months may be 29 or 30 days in length, in some regular or irregular sequence. Lunar cycles are prominent, and calculated with great precision, in the ancient Hindu 'Panchang' calendar, widely used in the Indian subcontinent. In India, the month from conjunction to conjunction is divided into thirty parts known as "tithis". A tithi is between 19 and 26 hours long. The date is named after the tithi ruling at sunrise. When the tithi is shorter than the day, the tithi may jump. This case is called "kṣaya" or "lopa". Conversely a tithi may 'stall' as well, that is – the same tithi is associated with two consecutive days. This is known as "vriddhi". 
In English common law, a "lunar month" traditionally meant exactly 28 days or four weeks, thus a contract for 12 months ran for exactly 48 weeks. In the United Kingdom, the lunar month was formally replaced by the calendar month for deeds and other written contracts by the Law of Property Act 1925 and for all other legal purposes by the Interpretation Act 1978.
Types.
There are several types of lunar month. The term "lunar month" usually refers to the synodic month because it is the cycle of the visible phases of the Moon.
Most of the following types of lunar month, except the distinction between the sidereal and tropical months, were first recognized in Babylonian lunar astronomy.
Sidereal month.
The period of the Moon's orbit as defined with respect to the celestial sphere of apparently fixed stars (the International Celestial Reference Frame; ICRF) is known as a sidereal month because it is the time it takes the Moon to return to a similar position among the stars ():  days (27 d 7 h 43 min 11.6 s). This type of month has been observed among cultures in the Middle East, India, and China in the following way: they divided the sky into 27 or 28 lunar mansions, one for each day of the month, identified by the prominent star(s) in them.
Synodic month.
The synodic month (, meaning "pertaining to a synod, i.e., a meeting"; in this case, of the Sun and the Moon), also lunation, is the average period of the Moon's orbit with respect to the line joining the Sun and Earth: 29 d 12 h 44 min and 2.9 s. This is the period of the lunar phases, because the Moon's appearance depends on the position of the Moon with respect to the Sun as seen from the Earth.
While the Moon is orbiting the Earth, the Earth is progressing in its orbit around the Sun. After completing a sidereal month, the Moon must move a little further to reach the new position having the same angular distance from the Sun, appearing to move with respect to the stars since the previous month. Therefore, the synodic month takes 2.2 days longer than the sidereal month. Thus, about 13.37 sidereal months, but about 12.37 synodic months, occur in a Gregorian year.
Since Earth's orbit around the Sun is elliptical and not circular, the speed of Earth's progression around the Sun varies during the year. Thus, the angular rate is faster nearer periapsis and slower near apoapsis. The same is so for the Moon's orbit around the Earth. Because of these variations in angular rate, the actual time between lunations may vary from about 29.18 to about 29.93 days. The average duration in modern times is 29.53059 days with up to seven hours variation about the mean in any given year. A more precise figure may be derived for a specific synodic month using the lunar theory of Chapront-Touzé and Chapront (1988): where and is the Julian day number. The duration of synodic months in ancient and medieval history is itself a topic of scholarly study.
Tropical month.
It is customary to specify positions of celestial bodies with respect to the vernal equinox. Because of Earth's precession of the equinoxes, this point moves back slowly along the ecliptic. Therefore, it takes the Moon less time to return to an ecliptic longitude of 0° than to the same point amid the fixed stars:  days (27 d 7 h 43 min 4.7 s). This slightly shorter period is known as the tropical month; compare the analogous tropical year.
Anomalistic month.
The Moon's orbit approximates an ellipse rather than a circle. However, the orientation (as well as the shape) of this orbit is not fixed. In particular, the position of the extreme points (the line of the apsides: perigee and apogee), rotates once (apsidal precession) in about 3,233 days (8.85 years). It takes the Moon longer to return to the same apsis because it has moved ahead during one revolution. This longer period is called the anomalistic month and has an average length of  days (27 d 13 h 18 min 33.2 s). The apparent diameter of the Moon varies with this period, so this type has some relevance for the prediction of eclipses (see Saros), whose extent, duration, and appearance (whether total or annular) depend on the exact apparent diameter of the Moon. The apparent diameter of the full moon varies with the full moon cycle, which is the beat period of the synodic and anomalistic month, as well as the period after which the apsides point to the Sun again.
An anomalistic month is longer than a sidereal month because the perigee moves in the same direction as the Moon is orbiting the Earth, one revolution in nine years. Therefore, the Moon takes a little longer to return to perigee than to return to the same star.
Draconic month.
A draconic month or draconitic month is also known as a nodal month or nodical month. The name "draconic" refers to a mythical dragon, said to live in the lunar nodes and eat the Sun or Moon during an eclipse. A solar or lunar eclipse is possible only when the Moon is at or near either of the two points where its orbit crosses the ecliptic plane; i.e., the satellite is at or near either of its orbital nodes.
The orbit of the Moon lies in a plane that is inclined about 5.14° with respect to the ecliptic plane. The line of intersection of these planes passes through the two points at which the Moon's orbit crosses the ecliptic plane: the "ascending node", where the Moon enters the Northern Celestial Hemisphere, and the "descending node", where the Moon moves into the Southern.
The draconic or nodical month is the average interval between two successive transits of the Moon through the same node. Because of the torque exerted by the Sun's gravity on the angular momentum of the Earth–Moon system, the plane of the Moon's orbit gradually rotates westward, which means the nodes gradually rotate around Earth. As a result, the time it takes the Moon to return to the same node is shorter than a sidereal month, lasting  days (27 d 5 h 5 min 35.8 s). The line of nodes of the Moon's orbit precesses 360° in about 6,798 days (18.6 years).
A draconic month is shorter than a sidereal month because the nodes precess in the opposite direction to that in which the Moon is orbiting Earth, one rotation every 18.6 years. Therefore, the Moon returns to the same node slightly earlier than it returns to meet the same reference star.
Cycle lengths.
Regardless of the culture, all lunar calendar months approximate the mean length of the synodic month, the average period the Moon takes to cycle through its phases (new, first quarter, full, last quarter) and back again: 29–30 days. The Moon completes one orbit around Earth every 27.3 days (a sidereal month), but due to Earth's orbital motion around the Sun, the Moon does not yet finish a synodic cycle until it has reached the point in its orbit where the Sun is in the same relative position.
This table lists the average lengths of five types of astronomical lunar month, derived from Chapront, Chapront-Touzé & Francou (2002). These are not constant, so a first-order (linear) approximation of the secular change is provided.
Valid for the epoch J2000.0 (1 January 2000 12:00 TT):
"Note:" In this table, time is expressed in Ephemeris Time (more precisely Terrestrial Time) with days of 86,400 SI seconds. "T" is centuries since the epoch (2000), expressed in Julian centuries of 36,525 days. For calendrical calculations, one would probably use days measured in the time scale of Universal Time, which follows the somewhat unpredictable rotation of the Earth, and progressively accumulates a difference with ephemeris time called ΔT ("delta-T").
Apart from the long term (millennial) drift in these values, all these periods vary continually around their mean values because of the complex orbital effects of the Sun and planets affecting its motion.
Derivation.
The periods are derived from polynomial expressions for Delaunay's arguments used in lunar theory, as listed in Table 4 of Chapront, Chapront-Touzé & Francou (2002): 
W1 is the ecliptic longitude of the Moon w.r.t. the fixed ICRS equinox: its period is the sidereal month. 
If we add the rate of precession to the sidereal angular velocity, we get the angular velocity w.r.t. the equinox of the date: its period is the tropical month, which is rarely used. 
"l" is the mean anomaly, its period is the anomalistic month. 
"F" is the argument of latitude, its period is the draconic month. 
"D" is the elongation of the Moon from the Sun, its period is the synodic month. 
Derivation of a period from a polynomial for an argument "A" (angle): 
formula_1; 
"T" in centuries (cy) is 36,525 days from epoch J2000.0. 
The angular velocity is the first derivative: 
formula_2. 
The period ("Q") is the inverse of the angular velocity: 
formula_3, 
ignoring higher-order terms. 
A1 in "/cy ; 
A2 in "/cy2; 
so the result "Q" is expressed in cy/" which is a very inconvenient unit. 
1 revolution (rev) is 360 × 60 × 60" = 1296000" ; 
to convert the unit of the velocity to revolutions/day, divide A1 by B1 = 1296000 × 36525 = 47336400000; 
C1 = B1 ÷ A1 
is then the period (in days/revolution) at the epoch J2000.0. 
For rev/day2 divide A2 by B2 = 1296000 × 365252 = 1728962010000000. 
For formula_4 the numerical conversion factor then becomes 2 × B1 × B1 ÷ B2 = 2 × 1296000. 
This would give a linear term in days change (of the period) per day, which is also an inconvenient unit: 
for change per year multiply by a factor 365.25, and for change per century multiply by a factor 36525. 
C2 = 2 × 1296000 × 36525 × A2 ÷ (A1 × A1). 
Then period "P" in days: 
formula_5. 
Example for synodic month, from Delaunay's argument "D": 
D′ = 1602961601.0312 − 2 × 6.8498 × T "/cy; 
A1 = 1602961601.0312 "/cy; 
A2 = −6.8498"/cy2; 
C1 = 47336400000 ÷ 1602961601.0312 = 29.530588860986 days; 
C2 = 94672800000 × −6.8498 ÷ (1602961601.0312 × 1602961601.0312) = −0.00000025238 days/cy.