How do I use ComputeMipLevel node in material editor?

Thanks Roel for detail answers.

When I select mip level mode= derivative, What should I give as the inputs of DDX and DDY ?

When to use anistropic filtering, When not to use it ?