# Math Help - gradient/divergence

1. ## gradient/divergence

Hi,

I have a problem with implementation of level set algorithm (MATLAB).

Could you please help me simplify those two equations:

$div(dp(\left | grad(\phi ) \right |)grad(\phi))$

$div(g\frac{grad(\phi)}{\left | grad(\phi) \right |})$

where dp is a function, g, and phi are n x m matrices and || is a norm.

Thanks