Metaphysics is sometimes split up into ontology ( the philosophy of real life and living things ) , the philosophy of mind and the philosophy of religion ; but these sub-branches are very close together . Most academic subjects have a philosophy , for example the philosophy of science , the philosophy of mathematics , the philosophy of logic , the philosophy of law , and the philosophy of history .