math of inve