Physics is the branch of science that attempts to understand the workings of the universe. It explores the fundamental principles…