Mathematical analytic techniques and the complete squares method for solving an inventory modelling problem with a mixture of backorders and lost sales