I'm trying to solve a differential equation which has two coupled algebraic equations and two independent variables.

, is the differential equation.

is the phase and varies from 0 to 1. The initial condition for the phase is

n and t* are defined as,

My knowledge of solving differential equations in matlab is limited and I'm unable to couple the equations with the differential equation.

Also, what would be the best way to solve this problem, should I use the standard ode45 or use DAE solver?

## Best Answer