An identity due to Montgomery is utilised to obtain other identities from which a number of novel inequalities are developed. The work also recaptures some of the existing results as special cases, such as the Mahajani inequality. Bounds are obtained for expressions involving moments, within a general framework.