Linked math library in makefile, x3 deriv calculated