Code

Binomial Theorem: A Simple Explanation, Formulas, and Examples

Binomial Theorem: A Simple Explanation, Formulas, and Examples

Introductory course on Python: from basics to advanced projects Unique opportunity: 4 exciting projects for your Portfolio Live interaction with the speaker: ask questions and get answers

Learn more

Newton's binomial theorem is often called such a complex concept that all other topics seem insignificant in comparison. However, the real beauty of the binomial theorem lies in its simplicity and speed. For example, it significantly simplifies calculations in areas such as developing neural networks, creating network protocols and encryption algorithms.

Therefore, if you envision your future in data science or cryptography, then studying Newton's binomial theorem will be very useful. Even if your plans do not relate to these areas, you can confidently keep up a conversation with friends by saying, "I've seen this binomial theorem; it's all elementary." In any case, it will bring certain benefits. Now let's get to the heart of the matter.

The Concept of Newton's Binomial Theorem: The Foundation of Algebra

Newton's binomial formula allows you to raise the sum of two numbers to a power. It is especially relevant and convenient when working with large exponents.

We know the following formula from our school mathematics course: (a + b)² = a² + 2ab + b². This is a special case of Newton's binomial theorem, which concerns the factorization of the square of a sum.

At first glance, the problem seems simple enough. However, consider the number of multiplications that would need to be performed to raise the same sum, say, to the power of seven. The final equation will have as many as eight terms:

Image: Skillbox Media

In order to facilitate this process and reduce the time spent on performing elementary arithmetic calculations, the binomial theorem was developed Newton.

Analyzing Newton's binomial theorem

Let's get straight to the point - here it is, the famous Newton binomial formula:

Image: Skillbox Media

A lot of questions immediately arise: what is this unusual capital E? What does C stand for? And, actually, what is going on here? Let's take everything in order.

a and b represent two numbers that we add, after which we plan to raise the result to the nth power. The numbers in parentheses can take any value—positive, negative, or fractional. However, the power must be a natural number, that is, a positive integer not equal to zero.

The sign resembling a capital E is actually "sigma," denoting an algebraic sum. This symbol is used to simplify long addition processes. For example, these:

Image: Skillbox Media

A similar expression can be represented as a sigma:

Image: Skillbox Media

In this case, we introduce the variable n, which covers a sequence of numbers from 1 to 101. Under the sum symbol, we indicate the initial value from which we begin the count, and above it, we indicate the final value. Thus, this expression will add up all the numbers in the range from 1 to 101, and the final result will be 5151.

Newton's binomial theorem formula is presented as a product without a summation sign.

Image: Skillbox Media

We are faced with a huge number of symbols and numbers that can easily become confusing. However, it's important to remember that this is a general formula, which is why it can seem complicated.

Now let's look at more advanced concepts—binomial coefficients, denoted by the letter C. These coefficients indicate which numbers should be multiplied by each term in the polynomial. For example, in the expression a² + 2ab + b², the terms are a², ab, and b², and the corresponding coefficients for these terms are 1, 2, and 1.

The binomial coefficients can be calculated using the following formula:

Image: Skillbox Media

In this context, n represents the power to which the sum of two numbers is raised. k denotes the index of the term in the polynomial, starting with zero. The symbol «!» is used to denote the factorial. A factorial is the product of all natural numbers from 1 to the specified number. For example, calculating 4! is equal to 1 × 2 × 3 × 4, which gives 24.

Read also:

The factorial is a mathematical function, denoted by the symbol "!", which is calculated for non-negative integers. The factorial of a number n, written as n!, is defined as the product of all natural numbers from 1 to n. For example, the factorial of 5 is 5 × 4 × 3 × 2 × 1, which is 120.

The factorial can be calculated using a recursive or iterative approach. In the recursive method, the factorial of n is defined using the factorial of n-1, which allows for a sequence of calculations. The iterative method, in turn, involves the use of loops to sequentially multiply numbers.

For the number 0, 0! is defined to be equal to 1, which is the base case in factorial calculations. Factorials find wide application in various fields of mathematics, including combinatorics, probability theory, and statistics, where they are used to calculate various combinations and permutations.

How to Perform Calculations Correctly

We've completed our discussion of definitions, and now it's time to move on to practical applications. If anything remains unclear, I recommend first looking at the examples and then returning to the formula for a better understanding.

Let's look at applying Newton's binomial theorem to an expression representing the sum of a and b squared. Let's start by substituting the values:

Image: Skillbox Media

Now let's reverse the summation sign and list all the terms, but at this stage we will not calculate the binomial coefficients.

Image: Skillbox Media

Now let's simplify this expression a little. According to the rules for working with powers, any number raised to the zero power is equal to one. Thus, we can replace b0 and a0 with ones:

Image: Skillbox Media

Now that we've mastered powers, let's move on to calculating binomial coefficients using the appropriate formula:

Image: Skillbox Media

It is necessary to calculate the values ​​of factorials and simplify fractions. Don't forget that the zero factorial is equal to one, and you can also cancel out identical factorials.

Image: Skillbox Media

We insert the coefficient values ​​into our formula:

Image: Skillbox Media

We have arrived at an expression for the square of the sum. Everything is correct.

The terms for higher powers can be determined in a similar way. Let's look, for example, at how to calculate the sum of two numbers raised to the fourth power using Newton's binomial theorem:

Image: Skillbox Media

Let's define the coefficients right away:

Image: Skillbox Media

? Please note

Binomial coefficients tend to repeat. Thus, the first coefficient coincides with the last, and the second - with the fourth. This allows you to focus on calculating only half of the coefficients, while adding one additional coefficient if the degree of the polynomial is even.

First, we substitute the values ​​of the coefficients into the sum expression and calculate the degrees of each of the terms.

Image: Skillbox Media

We arrive at the desired expression. You can verify its correctness by multiplying all the components together. If, of course, you have the persistence to do so.

Simplifying the calculation of coefficients using Pascal's triangle

Pascal's triangle is a unique numerical structure that plays an important role in calculating binomial coefficients. Each element within the triangle is formed as the sum of the two numbers located immediately above it. The vertex and edges of this triangle are filled with ones.

The initial five rows of Pascal's triangle are represented as follows:

Image: Skillbox Media

The peculiarity of this triangle is that for calculating the binomial We don't need to calculate factorials multiple times to find the coefficients. All we need to do is simply add up a few numbers.

Let's look at how to determine the coefficients in an expression that represents the sum of numbers raised to the fifth power.

Image: Skillbox Media

Now let's substitute them into our equation, which implies raising the sum (a + b) to the fifth power. To do this, we will use the binomial theorem formula:

Image: Skillbox Media

We break it down into components, ignoring the coefficients for now:

Image: Skillbox Media

We gradually replace the binomial coefficients with the values ​​​​represented in Pascal's triangle:

Image: Skillbox Media

We can derive the necessary formula. You can also confirm and recalculate the coefficients using the traditional method using factorials.

Application of the Binomial Theorem in Various Areas of Mathematics

It should be noted that the Binomial Theorem finds its application primarily in mathematics, and especially in the following areas, where it is an indispensable tool:

  • Probability theory is designed to calculate the odds of several independent events. For example, this could be the probability of landing on heads in five consecutive coin tosses.
  • Combinatorics is concerned with counting different ways of combining and rearranging objects.
  • Statistics allows us to analyze the chances of success or failure in random experiments. For example, it can be used to estimate in advance how many goods produced in a factory will be defective.

However, the application of Newton's binomial theorems is not limited exclusively to mathematical problems. There are many areas of science and technology where this principle finds application:

  • Physics and mechanics are necessary for calculating the probabilities of the outcomes of experiments involving particles, as well as for analyzing their behavior during collisions.
  • Engineering disciplines are designed to analyze the probability of failure of elements in systems.
  • Programming is used to develop algorithms that allow data compression, ensure security through cryptography, and also to solve problems related to combinatorics and probabilistic calculations.
  • Biology and genetics serve as important tools for studying the prevalence of various genotypes and phenotypes in populations. In addition, the binomial theorem formula is essential when creating models concerning the results of genetic crosses and the transmission of hereditary traits.

In general, the essence of the principle is that the binomial theorem is applied in situations where it is necessary to calculate the probabilities and various combinations of objects or events.

What's Next

We will continue to delve into the mathematical concepts that are used in combinatorial algorithms and programming. We previously discussed factorials, and now we are preparing extensive material on probability theory. Stay tuned! 🙂

Read also:

  • Difficult questions about logarithms: basic knowledge for a programmer.
  • The story of defective iMacs.
  • How to master Python on your own and without spending money: step-by-step instructions.