updated differential equation