Petrology (from the Greek , pétros, "rock" and , lógos, "subject matter", see -logy) is the branch of geology that studies rocks and the conditions under which they form. Petrology has three subdivisions, igneous, metamorphic, and sedimentary petrology. Igneous and metamorphic petrology are commonly taught together because they both contain heavy use of chemistry, chemical methods, and phase diagrams. Sedimentary petrology is, on the other hand, commonly taught together with stratigraphy because it deals with the processes that form sedimentary rock.
Lithology was once approximately synonymous with petrography, but in current usage, lithology focuses on macroscopic hand-sample or outcrop-scale description of rocks while petrography is the speciality that deals with microscopic details.
In the petroleum industry, lithology, or more specifically mud logging, is the graphic representation of geological formations being drilled through, and drawn on a log called a mud log. As the cuttings are circulated out of the borehole they are sampled, examined (typically under a 10× microscope) and tested chemically when needed.
Petrology utilizes the fields of mineralogy, petrography, optical mineralogy, and chemical analysis to describe the composition and texture of rocks. Petrologists also include the principles of geochemistry and geophysics through the study of geochemical trends and cycles and the use of thermodynamic data and experiments in order to better understand the origins of rocks.
There are three branches of petrology, corresponding to the three types of rocks: igneous, metamorphic, and sedimentary, and another dealing with experimental techniques: