Definition :- An equation which involves the derivatives of dependent variables with respect to independent variables is called a differential equation. The …