Areas Reasoning and proof Heuristics of discovery Example
Minimizing a sum of squares term by term
Example
We look for the minimum of over all real . A naive decomposition splits into its two terms and minimizes each term alone. We follow it and see why the recombination fails.
- The term has its minimum at .
- The term has its minimum at .
- The two partial answers ask for two different values of the same variable , so no single gives both minima.
- Adding the minima gives , but would need and at once, so the value is never reached.
The correct solution treats as a whole.
- Expand: .
- Complete the square: .
- So for all , with equality exactly at .
The minimum is , at , and neither partial answer is the minimizer.
Remarks
The decomposition fails because the pieces are coupled: both terms depend on the same variable. When the variables are separate, the same idea works. The function has its minimum at , found term by term.
The sum of the partial minima is still useful as a lower bound, since in general . Here the bound is , below the true minimum .
The midpoint of the partial answers is the minimizer only because the two terms have equal weight. For unequal weights the guess fails: has its minimum at , with value . In general with positive weights has its minimum at the weighted mean .
Going deeper
For a student
Before you split an objective into pieces, test whether the pieces are independent. Write the objective as a sum and list the variables of each piece. If depends only on and only on , then the minimum of is , reached at the pair of minimizers. If the pieces share a variable, as here, the partial minimizers may disagree, and the split fails. Then solve the coupled problem as a whole, here by completing the square, and use only as a lower bound.
The partial answers and suggest the answer , which is right here only because of the equal weights. With the weights and the same guess gives again, but the minimizer is .
Reading path
To understand this page from the ground up, read these 55 pages in order. The foundations come first. The path takes the proof Proof of unique readability by counting brackets.
- Alphabet concept
- Arity concept
- Boolean function concept
- Completing the square concept
- Countermodel concept
- Divide-and-conquer algorithm concept
- Effectively decidable set concept
- Formal language concept
- Function concept
- Induction on well-formed formulas concept
- Mathematical statement definition
- Proposition concept
- Propositional letter concept
- Set concept
- String concept
- Tuple concept
- Signature concept
- Logical connective definition
- Connectives in mathematical language concept
- Conjunction definition
- Disjunction definition
- Material implication definition
- Principle of bivalence concept
- Predicate concept
- Conditional statements concept
- Biconditional definition
- Term concept
- Negation concept
- Negation definition
- Atomic formula concept
- Truth table concept
- Material implication concept
- Conjunction concept
- Disjunction concept
- Biconditional concept
- Universal quantifier concept
- Logical connective concept
- Existential quantifier concept
- Well-formed formula concept
- Propositional formula definition
- Propositional formula concept
- Proof of unique readability by counting brackets proof
- Formal system concept
- Unique readability theorem statement
- Truth valuation concept
- Logical consequence concept
- Rule of inference concept
- Modus ponens concept
- Mathematical proof concept
- Deductive, inductive and abductive reasoning concept
- Direct proof concept
- Heuristics in mathematics concept
- Proof by cases concept
- Decomposing and recombining concept
- Minimizing a sum of squares term by term example
Further reading
- Web https://en.wikipedia.org/wiki/Completing_the_square, lead section
About this page
| Tag | M347T41A7J |
|---|---|
| URI | m2://M347T41A7J |
| Kind | example |
| Writing | W0 stub |
| MSC | 00A35, 26A06 |
| Not an instance of | Decomposing and recombining (note: the two terms share the variable x, so the partial results (minimizers x = 1 and x = 3) cannot be recombined into a minimizer of the sum.) |
| Part of | Heuristics of discovery |
| Uses | Decomposing and recombining, Completing the square |
| Changed | 23 November 2026, first written 17 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
History
Each change to this page, from its provenance log. A change by an agent names its run.
| Date | Change | Field | By |
|---|---|---|---|
| 2026-11-17 | add | the whole node | tamnd |
| 2026-11-23 | change | the section Example | tamnd |
| 2026-11-23 | change | the explanation L1 | tamnd |
| 2026-11-23 | change | the explanation L2 | tamnd |
| 2026-11-23 | change | the section Remarks | tamnd |
| 2026-11-23 | change | the field name | tamnd |
| 2026-11-23 | change | the field not_instance_of | tamnd |
What links here
No page links to this page yet.