In general, a utility patent protects the way an invention is used and works. Utility patents may be granted to anyone who invents a new and useful method, process, machine, device, manufactured item, or chemical compound - or any new and useful improvement to the same.
Utility literally means has purpose or useful function

