Mathematics is vital in all of the sciences, but math is a branch of Logic, which is part of philosophy.