ArticleslgStudy

mathematics

Sum of squares

Sum of squares is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Sum of squares rather than just read about it. In short: In mathematics, statistics and elsewhere, sums of squares occur in a number of contexts: Statistics For partitioning of variance, see Partition of sums of squares For the "sum of squared deviations", see Least squares For the "sum of squared differences", see Mean squared error For the "sum of squared error", see Residual sum of squares For the "sum of squares due to lack of fit", see Lack-of-fit sum of squares For…

Key takeaways

  • Sum of squares belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Sum of squares to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Sum of squares from memory before moving on to harder problems.

Reference excerpt

In mathematics, statistics and elsewhere, sums of squares occur in a number of contexts:

Statistics For partitioning of variance, see Partition of sums of squares For the "sum of squared deviations", see Least squares For the "sum of squared differences", see Mean squared error For the "sum of squared error", see Residual sum of squares For the "sum of squares due to lack of fit", see Lack-of-fit sum of squares For sums of squares relating to model predictions, see Explained sum of squares For sums of squares relating to observations, see Total sum of squares For sums of squared deviations, see Squared deviations from the mean For modelling involving sums of squares, see Analysis of variance For modelling involving the multivariate generalisation of sums of squares, see Multivariate analysis of variance

Number theory Fermat's theorem on sums of two squares says which primes are sums of two squares. The sum of two squares theorem generalizes Fermat's theorem to specify which composite numbers are the sums of two squares. Legendre's three-square theorem states which numbers can be expressed as the sum of three squares For representing an integer as a sum of squares of 4 integers, see Lagrange's four-square theorem Jacobi's four-square theorem gives the number of ways that a number can be represented as the sum of four squares. More generally, the sum of squares function gives the number of representations of a positive integer as a sum of squares of k integers. For the sum of squares of consecutive integers, see Square pyramidal number Pythagorean triples are sets of three integers such that the sum of the squares of the first two equals the square of the third. A Pythagorean prime is a prime that is the sum of two squares; Fermat's theorem on sums of two squares states which primes are Pythagorean primes. Pythagorean triangles with integer altitude from the hypotenuse have the sum of squares of inverses of the integer legs equal to the square of the inverse of the integer altitude from the hypotenuse. Pythagorean quadruples are sets of four integers such that the sum of the squares of the first three equals the square of the fourth. The Basel problem, solved by Euler in terms of π, asked for an exact expression for the sum of the squares of the reciprocals of all positive integers. Rational trigonometry's triple-quad rule and triple-spread rule contain sums of squares, similar to Heron's formula. Squaring the square is a combinatorial problem of dividing a two-dimensional square with integer side length into smaller such squares.

Algebra, algebraic geometry, and optimization Polynomial SOS, polynomials that are sums of squares of other polynomials The Brahmagupta–Fibonacci identity, representing the product of sums of two squares of polynomials as another sum of squares Hilbert's seventeenth problem on characterizing the polynomials with non-negative values as sums of squares Sum-of-squares optimization, nonlinear programming with polynomial SOS constraints The sum of squared dimensions of a finite group's pairwise nonequivalent complex representations is equal to cardinality of that group.

Euclidean geometry and other inner-product spaces The Pythagorean theorem says that the square on the hypotenuse of a right triangle is equal in length to the sum of the squares on the legs. The sum of squares is not factorable. The squared Euclidean distance between two points, equal to the sum of squares of the differences between their coordinates Heron's formula for the area of a triangle can be re-written as using the sums of squares of a triangle's sides (and the sums of the squares of squares) The British flag theorem for rectangles equates two sums of two squares The parallelogram law equates the sum of the squares of the four sides to the sum of the squares of the diagonals Descartes's theorem for four kissing circles involves sums of squares The sum of the squares of the edges of a rectangular cuboid equals the square of any space diagonal

See also Sums of powers Sum of reciprocals Quadratic form (statistics) Reduced chi-squared statistic

Worked examples

Example 1 — a first encounter with Sum of squares

Start with the simplest possible case. Write down what Sum of squares claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Sum of squares before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Sum of squares ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Sum of squares

In research
Sum of squares appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Sum of squares in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Sum of squares is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematics-related lists, Set index articles on mathematics, so understanding it makes those chapters shorter.
In everyday life
Look for Sum of squares outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Sum of squares” →

How to study Sum of squares in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Sum of squares means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Sum of squares out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Sum of squares in simple terms?

In mathematics, statistics and elsewhere, sums of squares occur in a number of contexts: Statistics For partitioning of variance, see Partition of sums of squares For the "sum of squared deviations", see Least squares For the "sum of squared differences", see Mean squared error For the "sum of squa…

Why does Sum of squares matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Sum of squares?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Sum of squares.

Tags

  • Mathematics-related lists
  • Set index articles on mathematics

Keep exploring