Inequalities in terms of the gateaux derivatives for convex functions on linear spaces with applications