to solve physics problem