solve the function n(x)=|-2x|

not sure what you mean by "solve" a function.

If you want to graph it, it's just an upside-down V shape with the vertex at (0,0).