Jeremy Bentham: An Introduction to the Principles of Morals and Legislation

[...]

Chapter I
OF THE PRINCIPLE OF UTILITY

I. Nature has placed mankind under the governance of two sovereign masters, pain and pleasure. It is for them alone to point out what we ought to do, as well as to determine what we shall do. On the one hand the standard of right and wrong, on the other the chain of causes and effects, are fastened to their throne. They govern us in all we do, in all we say, in all we think: every effort we can make to throw off our subjection, will serve but to demonstrate and confirm it. [...]

III. By utility is meant that property in any object, whereby it tends to produce benefit, advantage, pleasure, good, or happiness, (all this in the present case comes to the same thing) or (what comes again to the same thing) to prevent the happening of mischief, pain, evil, or unhappiness to the party whose interest is considered: if that party be the community in general, then the happiness of the community: if a particular individual, then the happiness of that individual.

Chapter VII
OF HUMAN ACTIONS IN GENERAL

I. The business of government is to promote the happiness of the society, by punishing and rewarding. That part of its business which consists in punishing, is more particularly the subject of penal law. In proportion as an act tends to disturb that happiness, in proportion as the tendency of it is pernicious, will be the demand it creates for punishment. What happiness consists of we have already seen: enjoyment of pleasures, security from pains.

Source: www.utilitarianism.com/jeremy-bentham/index.html