This subpage of theManual of Style contains guidelines for writing and editing clear, encyclopedic, attractive, and interesting articles onmathematics and for the use of mathematical notation in Wikipedia articles on other subjects. For matters of style not treated on this subpage, follow the main Manual of Style and its other subpages to achieve consistency of style throughout Wikipedia.
The article should be pitched at its intended audience.[a]. Featured article criteria demand that the article is well-written, well-referenced, complete, neutral and complies with the Manual of Style.
Articles within the focus of theWikipedia:Wikiproject Mathematics , and consequently addressed by the MOS extension, will discuss:
§46.200.74.178 (talk)02:23, 21 May 2025 (UTC)===Article lead paragraph===[reply]
The article should start with a short introductory section (often referred to as thelead). The purpose of this section is to describe, define, and give context to the subject of the article, to establish why it is interesting or useful, and to summarize the most important points. The lead should as far as possible be accessible to a general reader, so specialized terminology and symbols should be avoided as much as possible.
In general, the lead sentence should include thearticle title in bold along with alternative names, establish context by linking to a more general subject, and informally define or describe the subject.
The lead section should include, where appropriate:
There is no right way to order the body text, when appropriate you may wish to include the following:
LetS andT be topological spaces, and letf be afunction fromS toT. Thenf is calledcontinuousif,for every open setO inT, thepreimagef −1(O) is an open set inS.
| Featured articles | |||
| A theory:Group theory | A number:Pi | Biography:Euler | A principle:General relativity |
| A theory:Group theory Group theory 1 Definition and illustration 1.1 First example: integers 1.2 Definition 1.3 Second example: a symmetry group2 History3 Elementary consequences of the group axioms 3.1 Uniqueness of identity element and inverses 3.2 Division4 Basic concepts 4.1 Group homomorphisms 4.2 Subgroups 4.3 Cosets 4.4 Quotient groups5 Examples and applications 5.1 Numbers 5.2 Modular arithmetic 5.3 Cyclic groups 5.4 Symmetry groups 5.5 General linear group and representation theory 5.6 Galois groups6 Finite groups 6.1 Classification of finite simple groups7 Groups with additional structure 7.1 Topological groups 7.2 Lie groups8 Generalizations | A number:Pi1 Fundamentals 1.1 Name 1.2 Definition 1.3 Properties 1.4 Continued fractions 1.5 Approximate value2 History 2.1 Antiquity 2.2 Polygon approximation era 2.3 Infinite series 2.4 Irrationality and transcendence 2.5 Adoption of the symbol π3 Modern quest for more digits 3.1 Computer era and iterative algorithms 3.2 Motivations for computing π 3.3 Rapidly convergent series 3.4 Spigot algorithms4 Use 4.1 Geometry and trigonometry 4.2 Complex numbers and analysis 4.3 Number theory and Riemann zeta function 4.4 Probability and statistics5 Outside mathematics 5.1 Describing physical phenomena 5.2 Memorizing digits 5.3 In popular culture | A Biography:Euler1 Life 1.1 Early years 1.2 St. Petersburg 1.3 Berlin 1.4 Eyesight deterioration 1.5 Return to Russia2 Contributions to mathematics and physics 2.1 Mathematical notation 2.2 Analysis 2.3 Number theory 2.4 Graph theory 2.5 Applied mathematics 2.6 Physics and astronomy 2.7 Logic3 Personal philosophy and religious beliefs4 Commemorations | A principle:General relativity1 History2 From classical mechanics to general relativity 2.1 Geometry of Newtonian gravity 2.2 Relativistic generalization 2.3 Einstein's equations3 Definition and basic applications 3.1 Definition and basic properties 3.2 Model-building4 Consequences of Einstein's theory 4.1 Gravitational time dilation and frequency shift 4.2 Light deflection and gravitational time delay 4.3 Gravitational waves 4.4 Orbital effects and the relativity of direction5 Astrophysical applications 5.1 Gravitational lensing 5.2 Gravitational wave astronomy 5.3 Black holes and other compact objects 5.4 Cosmology 5.5 Time travel6 Advanced concepts 6.1 Causal structure and global geometry 6.2 Horizons 6.3 Singularities 6.4 Evolution equations 6.5 Global and quasi-local quantities7 Relationship with quantum theory 7.1 Quantum field theory in curved spacetime 7.2 Quantum gravity8 Current status |
| Discussion 17 September 2008 | Discussion 4 June 2012 | Discussion 8 October 2006 | Discussion 27 June 2008 |
Beneath this will be- Categories, and navigation templates and links to other Wikimedia projects.
It is mandatory for an article to have references. It is advised that they should have inline references, The is no concensus on the style to be used but two methods are advised.TheWikipedia:cite sources article has more information on this and also several examples for how the cited literature should look.
There are several issues of writing style that are particularly relevant in mathematical writing.
A person editing a mathematics article should not fall into the temptation that "this formula says it all". A non-mathematical reader will skip the formulae in most cases, and often a mathematician reading outside her or his research area will do the same. Careful thought should be given to each formula included, and words should be used instead if possible. In particular, the English words"for all", "exists", and"in" should be preferred to the∀, ∃, and∈ symbols. Similarly, highlight definitions with words such as"is defined by" in the text.
If not included in the introductory paragraph, a section about thehistory of the concept is often useful and can provide additional insight and motivation.
A number of conventions have been developed to make Wikipedia's mathematics articles more consistent with each other. These conventions cover choices of terminology, such as the definitions ofcompact andring, as well as notation, such as the correct symbols to use for a subset.
These conventions are suggested in order to bring some uniformity between different articles, to aid a reader who moves from one article to another. However, each article may establish its own conventions. For example, an article on a specialized subject might be more clear if written using the conventions common in that area. Thus the act of changing an article from one set of conventions to another should not be undertaken lightly.
Theset ofnatural numbers has two common meanings:{0, 1, 2, 3, ...}, which may also be callednon-negative integers, and{1, 2, 3, ...}, which may also be calledpositive integers. Use the sense appropriate to the field to which the subject of the article belongs if the field has a preferred convention. If the sense is unclear, and if it is important whether or not zero is included, consider using one of the alternative phrases rather thannatural numbers if the context permits.
One may set formulae using LaTeX (the<math> tag, described in the next subsection) or, in certain cases, using other means of formatting that render in HTML; both are acceptable and widely used, though there are issues, as discussed below. However, forsection headings, use HTML only, as LaTeX markup does not appear in the table of contents.
Large scale formatting changes to an article or group of articles are likely to be controversial. One should not change formattingboldly from LaTeX to HTML, nor from non-LaTeX to LaTeX without a clear improvement. Proposed changes should generally be discussed on thetalk page of the article before implementation. If there will be no positive response, or if planned changes affect more than one article, consider notifying an appropriate Wikiproject, such asWP:WikiProject Mathematics for mathematical articles.
For in-line formulae, such asa2 −b2, the community of mathematical editors of English Wikipedia currently has no consensus about preferred formatting; seeWP:«math» for details.
Though, for a formulaon its own line the preferred formatting is the LaTeX markup, with a possible exception for simplestrings of Latin letters, digits,common punctuation marks, and arithmetical operators. Even for simple formulae the LaTeX markup might be preferred if required for the uniformity through an article.
Wikipedia allows editors to typesetmathematical formulae in (a subset of)LaTeX markup (see alsoTeX); the formulae are, for a default reader, translated intoPNG images. They may also be rendered asMathML, which is part ofHTML5, depending on user preferences and the nature of the browser being used. Care must be taken to avoid markup that is known to render differently under the different systems.The LaTeX formulae can be displayed in-line (like this:), as well as on their own line:
When displaying formulae on their own line, one should indent the line with one or more colons (:); the above was typeset from
:<math>\int_0^\infty e^{-x^2}\,dx.</math>If you find an article which indents lines with spaces in order to achieve some formula layout effect, you should convert the formula to LaTeX markup.
Having LaTeX-based formulae in-line has the following drawbacks, if they are displayed using the default PNG images:
If an in-line formula needs to be typeset in LaTeX, often better formatting can be achieved by setting the display attribute to inline.By default, LaTeX code is rendered as if it were a displayed equation (not in-line), and this can frequently be too big.For example, the formula<math>\sum_{n=1}^\infty 1/n^2 = \pi^2/6 </math>, which displays as, is too large to be used in-line.display=inline generates a smaller summation sign and moves the limits on the sum to the right side of the summation sign. The code for this is<math display = inline>\sum_{n=1}^\infty 1/n^2 = \pi^2/6</math>, and it renders as the much more aesthetic.However, the default font for inline formula is different from the normal text font. Consequently the formula might appear larger or smaller than the surrounding text on many browsers.
HTML-generating formatting, asdescribed above, is adequate for most simple in-line formulae and better for text-only browsers.
Older versions of the MediaWiki software supported displaying simple LaTeX formulae as HTML rather than as an image. Although this is no longer an option, some formulae have formatting in them intended to force them to display as an image, such as an invisible quarter space (\,) added at the end of the formula, or\displaystyle at the beginning. Such formatting can be removed if a formula is edited and need not be added to new formulae.
Images generated from LaTeX markup havealt text, which is displayed to visually impaired readers and other readers who cannot see the images. The default alt text is the LaTeX markup that produced the image. You can override this by explicitly specifying analt attribute for themath element. For example,<math alt="Square root of pi">\sqrt{\pi}</math> generates an image whose alt text is "Square root of pi". Small and easily explained formulas used in less technical articles can benefit from explicitly specified alt text. More complicated formulas, or formulas used in more technical articles, are often better off with the default alt text.
The following sections cover the way of presenting simple in-line formulae in HTML, instead of using LaTeX.
Templates supporting HTML formatting are listed inCategory:Mathematical formatting templates. Not all however are recommended for use, in particular use of the{{frac}} template to format fractions is discouraged in mathematics articles.
''x'' = (''y''<sup>2</sup> + 2).will result in:
As TeX uses aserif font to display a formula (both as PNG and HTML), you may use the{{math}} template to display your HTML formula in serif as well. Doing so will also ensure that the text within a formula will not line-wrap, and that the font size will closely match the surrounding text in anyskin.
{{math|''x'' {{=}} (''y''<sup>2</sup> + 2)}}.will result in:
To start with, we generally use italic text for variables, but never for numbers or symbols. You can use''x'' in the edit box to refer to the variablex. Some prefer using the HTML "variable" tag,<var>, since it provides semantic meaning to the text contained within. Others use the{{mvar}} template to show single variables is a serif typeface, to help distinguish certain characters such asI andl. Which method you choose is entirely up to you, but in order to keep with convention, we recommend the wiki markup method of enclosing the variable name between repeated apostrophe marks. Thus we write:
''x'' = (''y''<sup>2</sup> + 2) ,which results in:
While italicizing variables, things like parentheses, digits, equal and plus signs should be kept outside of the double-apostrophed sections. In particular, do not use double apostrophes as if they are<math> tags; they merely denote italics. Descriptive subscripts should not be in italics, because they are not variables. For example,mfoo is the mass of a foo.SI units are never italicized:x = 5 cm.
Names forstandard functions, such as sin and cos, are not in italic font, but we use italic names such asf for functions in other cases; for example when we define the function as inf(x) = sin(x) cos(x).
Sets are usually written in upper case italics; for example:
would be written:
''A'' = {''x'' : ''x'' > 0} .Italicize lower-case Greek letters when they are variables (in line with the general advice to italicize variables): the example expressionλ +y =πr2 would then be typeset as''λ'' + ''y'' = ''πr''<sup>2</sup>. However consistency with TeX or LaTeX style would not italicize capital Greek letters.
Commonly used sets of numbers are typeset in boldface, as in the set of real numbersR; coded as ( '''R'''). Seeblackboard bold for the types in use. Again, typically we use wiki markup: three apostrophes (''') rather than the HTML<b> tag for making text bold.
Subscripts and superscripts should be wrapped in<sub></<\sub> and<sup><\sup> tags, respectively, with no other formatting info. Font sizes and such should be entrusted to be handled with stylesheets. For example, to writec3+5, use
''c''<sub>3+5</sub>.Do not use special characters like ² (²) for squares. This does not combine well with other powers, as the following comparison shows:
²) versus<sup>2</sup>).Moreover, the TeX engine used on Wikipedia may format simple superscripts using<sup>...</sup> depending on user preferences. Thus, instead of the image, many users seex2. Formulae formatted without using TeX should use the same syntax to maintain the same appearance.
There arelist of mathematical symbols,list of mathematical symbols by subject and a list atWikipedia:Mathematical symbols that may be useful when editing mathematics articles.Almost all mathematical operator symbols have their specificcode points inUnicode outside bothASCII andGeneral Punctuation (with notable exception of "+", "=", "|", as well as ",", ":", and three sorts ofbrackets). As a rule of thumb, specific mathematical symbols shall be used, not similarly looking ASCII or punctuation symbols, even if correspondingglyphs are indistinguishable. Thelist of mathematical symbols by subject includes markup for LaTeX and HTML, and Unicode code points.
There are two caveats to keep in mind, however.
Although the MediaWiki markup engine is fairly smart about differentiating between unescaped "<" characters that are used to denote the start of an embedded HTML or HTML-like tag and those that are just being used as literal less-than symbols, it is ideal to use< when writing the less-than sign, just like in HTML and XML. For example, to writex < 3, use
''x'' < 3,not
''x'' < 3.Standard algebraic notation is best for formulae, so two variablesq andd being multiplied are best written asqd when presented in a formula. That is, whenciting a formula, don't use×.
However, whenexplaining the formula for a general audience (not just mathematicians), or giving examples of its application, it is prudent to use themultiplication sign: "×", coded as× in HTML. Do not use the letter "x" to indicate multiplication. For example:
An alternative to the× markup is thedot operator⋅ (also encoded<math>\cdot</math> and reachable in the "Math and logic" drop-down list below the edit box), which produces a properly spaced centered dot: "a ⋅ b".
Do not use the ASCIIasterisk (*) as a multiplication sign outside ofsource code. It is not used for this purpose in professionally published mathematics, and most fonts render it in an inappropriate vertical position (above the midline of the text rather than centered on it). For the dot operator, do not use punctuation symbols, such as a simple interpunct· (the choice offered in the "Wiki markup" drop-down list below the edit box), as in many fonts it does not kern properly.
N The use ofU+2022•BULLET as an operator symbol is also discouraged except in abstract contexts (e.g. to denote an unspecified operator).
The correct encoding of the minus sign "−" is different from all varieties ofhyphen "-‐‑",[d] as well as from en-dash "–". To really get a minus sign, use the "minus" character "−" (reachable via selecting "Math and logic" in the drop-down list below the edit box), or use the "−" entity.
Square brackets have two problems; they can occasionally cause problems with wiki markup, and editors sometimes 'fix' the brackets in asymmetricalintervals to make them symmetrical. A general solution to problems like this is to use the nowiki tag as in for example<nowiki>]</nowiki> to show ] is special.
The use of intervals for the range or domain of a function is very common. A solution which makes the reason for the different brackets around an interval more plain is to use one of the templates{{open-closed}},{{closed-open}},{{open-open}},{{closed-closed}}. For instance:
{{open-closed|−π, π}},produces
These templates use the{{math}} template to avoid line breaks and use the TeX font.
There is a special Unicode function symbol for functions, U+0192, "LATIN SMALL LETTER F WITH HOOK = script f =Florin currency symbol (Netherlands) = function symbol"[1], which looks likeƒ. As of December 2010, this character is not interpreted correctly by screen readers such asJAWS andNonVisual Desktop Access[2]. An italicized letterf should be used instead.
Short lists of coefficients and variables should be written in prose,[why?] while, for more complex situations list format should be used.For example:
The force is given by
whereb is Force,m is the mass, anda is the acceleration.
Y
The following is deprecated:
The force is given by
where
- F is the force,
- m´ is the mass,
- a is the acceleration.
N
Longer definitions (such as inHeat equation), can be in list format. However each definition should end with a comma or semicolon, and the last one should end with a period if it terminates a sentence.
Just as in mathematics publications, a sentence which ends with a formula must have a period at the end of the formula.[e] This equally applies to displayed formulae (that is, formulae that take up a line by themselves). Similarly, if the conventional punctuation rules would require a question mark, comma, semicolon, or other punctuation at that place, the formula must have that punctuation at the end.
If the formula is written in LaTeX, that is, surrounded by the<math> and</math> tags, then the punctuation needs to also be inside the tags to stop it being wrapped to a newline.[f] This method can be unaesthetic in formulas wherethe baseline does not line up with that of the running text. In this case the formula can be enclosed using the{{nowrap}} template, as inThis shows that {{nowrap|<math>\tfrac{1}{2} = 0.5</math>.}}.
In mathematics notation, functions that have multi-letter names should always be in an upright font. The most well-known functions—trigonometric functions, logarithms, etc.—are often written without parentheses. For example:
| Markup | Renders as |
|---|---|
<math>2\sin x</math> <math>2\sin(x+1)</math> but not<math>2sin x</math> | (correct—parenthesis may be omitted) ) (correct—(parentheses are required to clarify the intended argument) but not X (incorrect) |
When operator (function) names do not have a pre-defined abbreviation, we may use\operatorname to give correct spacing. The alternative methodusing other means of markup such as\rm is not recommended:
| Markup | Renders as |
|---|---|
<math>2\operatorname{csch}x</math> <math>a\operatorname{tr}(A)</math> but not<math>2{\rm sin} x</math> | (optional) (optional) but not (incorrect) |
Special care is needed with subscripted labels to distinguish the purpose of the subscript (as this is a common error): variables and constants in subscripts should be italic, while textual labels should be in normal text font (Roman, upright). For example:
| Markup | Renders as |
|---|---|
<math> x_\text{this one} = y_\text{that one}</math> <math>\sum_{i=1}^n { y_i^2 }</math> but not<math>r = x_{predicted} - x_{observed}</math> | (correct) (correct) but not (incorrect) |
On the other hand, for thedifferential,imaginary unit, andEuler's number, Wikipedia articles usually use an italic font, so one writes
| Markup | Renders as |
|---|---|
<math>\int_0^\pi \sin x \, dx ,</math> <math>x+iy,</math> <math>e^{i\theta} .</math> | (correct— parenthesis may be omitted; —note the thin space (\,)before dx) |
Some authors prefer to use an upright (Roman) font for dx, and Roman boldface fori. Both forms are correct; what is most important is consistency within an article. It is considered inappropriate for an editor to go through articles doing mass changes from one style to another. This is much the same principle as the guidelines in theManual of Style for the colour/color spelling choice, etc.
Certain objects, such as the real numbersR, are traditionally printed in boldface, or a double-struck font such asBlackboard Bold. Though both are acceptable, bolding is preferred as some browsers do not support theUnicode symbols, which lie outside theBasic Multilingual Plane. As with all such choices, the article should be consistent. Editors should not change articles from one choice of typeface to another.
In mathematics articles, fractions should always be written either with a horizontal fraction bar (as in<math>\textstyle\frac{1}{2}</math>), or with a forwardslash and with the baseline of the numbers aligned with the baseline of the surrounding text (as in 1/2).
Y The use of{{frac}} (such as1⁄2{{frac|1|2}}) is discouraged.
N The use ofUnicode symbols(such as ½) is discouraged entirely
N, foraccessibility reasons among others. Metric dimensions are given in decimal notation (e.g., 5.2 cm); non-metric units can be either type of fraction, but the fraction style should be consistent throughout the article.
This is an encyclopedia, not a collection of mathematical texts; but we often want to include proofs, as a way of really exposing the meaning of some theorem, definition, etc. A downside of including proofs is that they may interrupt the flow of the article, whose goal is usually expository. Use your judgement; as a rule of thumb, include proofs when they expose or illuminate the concept or idea; don't include them when they serve only to establish the correctness of a result.
Since many readers will want to skip proofs, it is a good idea to set them apart in some way, for instance by giving them a separate section. Additional discussion and guidelines can be found atWikipedia:WikiProject Mathematics/Proofs.
An article about analgorithm may includepseudocode or in some casessource code in someprogramming language. Wikipedia does not have a standard programming language or languages, and not all readers will understand any particular language even if the language is well-known and easy to read, so consider whether the algorithm could be expressed in some other way. If source code is used always choose a programming language that expresses the algorithm as clearly as possible.
Articles should not include multiple implementations of the same algorithm in different programming languages unless there is encyclopedic interest in each implementation.
Source code should always usesyntax highlighting. For example this markup:[g]
<syntaxhighlight lang="Haskell"> primes = sieve [2..] sieve (p : xs) = p : sieve [x | x <- xs, x `mod` p > 0]</syntaxhighlight>
generates the following:
primes=sieve[2..]sieve(p:xs)=p:sieve[x|x<-xs,x`mod`p>0]

There is no general agreement on what fonts to use in graphs and diagrams. In geometrical diagrams points are normally labelled using upper case letters, sides with lower case and angles with lower case Greek letters. Use of a italic serif font is recommendeded but not mandated.
For ease of reference diagrams and graphs should use the same conventions as the text that the illustrate. When there is a better illustration using a different convention, though, the better illustration is preferred.
A style guide specifically written for mathematics:
More style guidance:
Some finer points of typography are discussed in:
General style manuals often include advice on mathematics, including