western philosophy philosophy ( again , from the greek philosophia , love of wisdom ) , is defined as the rational and critical inquiry into basic principles , and is often divided into four main branches : metaphysics , the investigation of ultimate reality ; epistemology , the study of the origins , validity , and limits of knowledge ; ethics , the study of the nature of morality and judgment ; and aesthetics , the study of the nature of beauty in the fine arts .