An efficient method of approximate particular solutions using polynomial basis functions