Mathematics plays a crucial role in the field of geology, serving as a fundamental tool for understanding the Earth’s processes,…