formula

(a) Informal use In most mathematical writing, a formula is an expression that allows some function to be calculated. This is analogous to the use of the word in other contexts; for example the formula for water is $H_{2}O$.

One might say,

“The formula for the area of a circle with radius $r$ is $\pi r^{2}$.”

or

“The formula for the area of a circle with radius $r$ is $A = \pi r^{2}$.”

It is not always clear whether the equation is regarded as the formula or the expression on the right side of the equation. Citations: (160), (57), (239).

(b) In mathematical logic In mathematical logic, a formula is symbolic expression in some formal language whose meaning is that of an assertion. It must be distinguished from term; for example “$x +2y$” is not a formula (it is a term), but “$x > y$” and $x + y = z$ are formulas. Various formalisms are described for example in [van Dalen, 1989], [Ebbinghaus, Flum and Thomas, 1984], [Mendelson, 1987] and [Hartley Rogers, 1963].

Example 1 The assertion $\forall x (x^{2} \geq 0)$ could be a formula in an appropriately designed logical language.

Page 101 of the book (PDF).