How to calculate the sum of squares?
Last Updated :
06 Jun, 2024
The number system includes different types of numbers for example prime numbers, odd numbers, even numbers, rational numbers, whole numbers, etc. These numbers can be expressed in the form of figures as well as words accordingly. For example, numbers like 40 and 65 expressed in the form of figures can also be written as forty and sixty-five.
A Number system or numeral system is defined as an elementary system to express numbers and figures. It is the unique way of representing of numbers in arithmetic and algebraic structure.
Numbers are used in various arithmetic values applicable to carry out various arithmetic operations like addition, subtraction, multiplication, etc which are applicable in daily lives for calculation. The value of a number is determined by the digit, its place value in the number, and the base of the number system. Numbers generally also known as numerals are the mathematical values used for counting, measurements, labeling, and measuring fundamental quantities.
Numbers are the mathematical values or figures used for the purpose of measuring or calculating quantities. It is represented by numerals as 2, 4, 7, etc. Some examples of numbers are integers, whole numbers, natural numbers, rational and irrational numbers, etc.
What is the Sum of Squares?
The sum of the squares of numbers is referred to as the sum of squared values of the numbers. It's basically the addition of squared numbers.
Here 2 terms, 3 terms, or ‘n’ number of terms, first n odd terms or even terms, set of natural numbers or consecutive numbers, etc. could be squared terms
We used to perform the arithmetic operation of the addition of squared numbers. Here we will come across the formula for the addition of squared terms.
- Sum of Squares Formula
- Sum N Terms of arithmetic series
- Sum Of Geometric progression
- Sum Of Nth Terms
In arithmetic, we come across the formula for the sum of n natural numbers. There are so many formulae and techniques for the calculation of the sum of squares. Let us use some of the formulae with respect to two numbers, three numbers, and n numbers. The square of a number is denoted by n2.
a2 + b2 → Sum of two numbers a and b
a2 + b2 + c2 → Sum of three numbers a, b and c
(a1)2 + (a2)2 + …. + (an)2→Sum of squares of n numbers
In terms of stats, this is equal to the sum of the squares of variation between individual values and the mean, i.e.,
Σ(a_i + \bar{a})^2
Where ai represents individual values and \bar{a}
is the mean.
How to calculate the sum of squares?
Below are the formulas for sum of squares:
Formula 1: For addition of squares of any two numbers a and b is represented by:
a2+ b2 = (a + b)2 – 2ab
where a and b are real numbers
As per algebraic identities, we know;
(a + b)2 = a2 + b2 + 2ab
Therefore, we can write the above equation as;
a2+b2 = (a + b)2 – 2ab
Formula 2: For squares of any three numbers say a, b, and c is represented by:
a2 + b2 + c2 = (a + b + c)2 - 2ab - 2bc - 2ac
where a, b and c are real numbers
From the algebraic identities, we know;
(a+b+c)2 = a2 + b2 + c2 + 2ab + 2bc + 2ac
Therefore, we can write the above equation as;
a2 + b2 + c2 = (a + b + c)2 - 2ab - 2bc - 2ac
Formula 3: For nth Natural Numbers
The natural numbers include all the counting numbers, starting from 1 till infinity. If nth consecutive natural numbers are 1, 2, 3, 4, …, n, then the sum of squared ‘n’ consecutive natural numbers is represented by 12 + 22 + 32 + … + n2.
it is also denoted by the notation Σn2. The formula for the addition of squares of natural numbers is given below:
Σn2 = [n(n + 1)(2n + 1)]/6
Formula 4: Sum of Squares of First n Odd Numbers
The addition of squares of first odd natural numbers is represented by:
Σ(2n - 1)2 = [n(2n + 1)(2n - 1)]/3
Related Articles:
Sample Questions - How to calculate the sum of squares?
Question 1: Evaluate 52 + 52 with the help of formula and directly as well. Verify the answers.
Solution:
As We know;
a2 + b2 = (a + b)2 - 2ab
52 + 52 = (5 + 5)2 – 2×5×5
25 + 25 = 100 – 50
50 = 50
Now, directly, we get;
52 + 52 = 25 + 25 = 50
Both answers are the same. Hence, verified.
Question 2: Find the addition of squares of the first 50 natural numbers.
Solution:
Here The formula : sum of squared natural numbers is given by:
Σn2 = [n(n + 1)(2n + 1)]/6
Here, n = 50
Σ502 = (50/6) (50 + 1)(2 × 50 + 1)
Σ502 = (25/3) (51)(101)
Σ502 = (25)(51)(37)
Σ502 = 47175
Question 3: Evaluate 42 + 42 + 42 with the help of formula and directly as well. Verify the answers.
Solution:
As we know
a2 + b2 + c2 = (a + b + c)2 - 2ab - 2bc - 2ac
42 + 42 + 42 = (4 + 4 + 4)2 - 2×4×4 - 2×4×4 - 2×4×4
16 + 16 + 16 = 144 - 32 - 32 - 32
48 = 48
Now directly we get
= 42 + 42 + 42
= 16 + 16 + 16
= 48
Hence verified
Similar Reads
How to Calculate Residual Sum of Squares in Python
The residual sum of squares (RSS) calculates the degree of variance in a regression model. It estimates the level of error in the model's prediction. The smaller the residual sum of squares, the better your model fits your data; the larger the residual sum of squares, the worse. It is the sum of squ
2 min read
How to find the Sum and Difference of Squares?
The arithmetic value which is used for representing the quantity and used in making calculations are defined as NUMBERS. A symbol like â4, 5, 6â which represents a number is known as numerals. Without numbers, counting things is not possible, date, time, money, etc. these numbers are also used for m
10 min read
How to Calculate Square Footage?
Square footage, or square feet, is a unit that is generally used to express the surface area. To calculate square footage multiply the length by the width. The basic formula for the same is: Length (in feet) Ã width (in feet) = Area in sq. ftThe square footage formula is used to determine the surfac
6 min read
How to calculate Square Footage?
Answer: Square Footage of any figure and shape can easily be calculated using the steps given below,Step 1: Clearly mark the dimensions of the figure or shape for which you have to calculate square footage.Step 2: Make sure all the dimensions are measured in feet if not convert them accordingly.Step
11 min read
How to Find the Sum of an Arithmetic Sequence
Sum of Arithmetic Sequence can be calculated using the formula Sn = n/2 [2a+(nâ1)d], where a is the first term of sequence and d is common difference.Before learning how to find the sum of an arithmetic sequence, let's learn about arithmetic sequences first.What is Arithmetic Sequence?An arithmetic
4 min read
While Loop to Calculate the Square of numbers in R
In R Programming Language, a while loop is used to repeatedly execute a block of code as long as a certain condition remains true. We can utilize a while loop to calculate the squares of numbers by taking an input, squaring it, and displaying the result. This concept is beneficial when you want to p
4 min read
How to Calculate Square Meter| Examples
A square meter is a unit of area measurement. It equals the size of a square with each side measuring one meter. This measurement is crucial in various daily tasks and professions. In this article, we will learn how to calculate square meters, common mistakes to avoid, and some practical examples.Ta
9 min read
How to find the Surface Area of a Square Pyramid?
Area of the square pyramid can be easily calculated using various formulas that are added in the article below. In this article, we have covered Square Pyramid definition, its formulas, examples and others in detail. Table of Content What is Square Pyramid?Surface Area of Square PyramidTotal Surface
6 min read
Calculating Sum Of Squared Deviations In R
Sum of Squared Deviations (SSD) is a way to measure of how spread the data points are from the mean. It is used to determine the variability or spread in a dataset. In this article, we will discuss how to compute SSD both manually and in R.The SSD is found by taking how much each data point varies f
3 min read
How to find the square root of 80?
Number System is a method of representing Numbers on the Number Line with the help of a set of Symbols and rules. These symbols range from 0-9 and are termed digits. Number System is used to perform mathematical computations ranging from great scientific calculations to calculations like counting th
3 min read