In this video, we will start with polynomials and we will try to do some algebra with polynomials or in other words you can say we will try to understand some operations on polynomials like addition and subtraction . So, let us move on. In order to simplify our calculations, we will only focus on polynomials in one variable whereas, all the operations that we are discussing can be done on polynomials with multiple variables.
In order to pinpoint the thing, we will recollect how polynomials in in one variable look like. So, a polynomial of degree n in one variable can be represented in this form a n x raised to n a n minus 1 x raised to n minus 1 plus up to a 1 x plus a naught. So, you can actually correlate this with let us say this is a polynomial this is a monomial with 0 degree, this is a monomial with 1 degree and so on. If you go on this way this is a monomial with nth degree.
In order that this polynomial to qualify as a polynomial with nth degree we need something that we need one condition that condition is actually I need this to be a polynomial of the term of degree n to be non-zero. So, that forces me to write a n not equal to 0. There is a condition that required that is required for writing a polynomial of nth degree. Remember here the argument is only 1 that is the variable is only 1 x.
So, I can also assign this as something called p x and now you can as well treat this p x as a function of one variable which is interesting. So, if you assign this as a function of one variable the next question is how is this function, what is a domain and codomain? and range of this function.
So, the function runs from r to r. So, real line it is a function from real line to real line whereas, the range typically depends on function. For example, if I take a function like let us say p 1 x is one function which is a 1 x plus a naught and if I take this function then it is a linear function. We have already seen this function.
This is an equation of a real line, equation of a line and if a 1 is not equal to 0, then this function actually represents a real line. If a 1 is equal to 0, it also represents a real line, but it is some constant. So, it is a horizontal real line.
So, now, the range of this function for a1 not equal to 0. is entire real line. Whereas, if you look at some other function let us say p 2 x which is equal to a 2 x plus a 1 x plus a naught and this is squared term a 2 x square plus a 1 x plus a naught. Now, this particular function represents a parabola which we have seen in our in our topic on quadratic functions and you know depending on the sign of a2 the parabola can open upward or downward.
If it opens upwards the range is the minimum value and any point beyond that. If it opens downwards the range is the maximum value and any point below it. So, depending on the choice of the function the ranges may differ.
We will deal with polynomials as function when we will study the graphing of polynomials. Right now we are interested in algebraic properties of this polynomial. So, we will focus ourselves on the algebra of the polynomials that is addition, subtraction, multiplication, division. So, let us move ahead and try to understand addition of polynomials.
We have done this in some sense. For example, Currently, the polynomial that we have written that a n x raise to n plus a n minus 1 x raise to n minus 1 and so on is also addition of some kind, but it is addition of monomials. So, let us try to see if I have been given two polynomials, how will I add them?
To help us in understanding and developing general theory for addition of polynomials, We will consider these three examples. Remember the first example is actually one polynomial added with another monomial. Second one both are two polynomials, but there are no clashing terms like there the exponents are different for both the polynomials you can check and the third one has few clashing terms.
So, we will demonstrate the addition of polynomials through these three things and we will formalize this into a theory. So, let us start with the first expression px is x square plus 4x plus 4. So, we are starting with this this particular expression. So, px is x square.
So, if I am writing x square then it essentially means I am multiplying this with 1, the coefficient is 1. If I am starting with 4x, then I do not have to do anything and this is 4. So, in this case in our standard form for a quadratic polynomial, what is the standard form for a quadratic polynomial? a 2 x square plus a 1 x plus a naught, this is our standard form ok. So, in this particular thing you can identify a 2 to be equal to 1, a 1 to be equal to 4 and a naught to be equal to 4. In a similar manner, I will look at this particular expression which is q x. Now, you notice the fact that q x is just a constant polynomial, q x do not have any terms which are related to square or related to a linear term and I want to add this polynomial to a given expression. So how will I add?
So, let us bring in the terms related to square term and related to linear term. If I bring in those terms, the associated coefficients will be 0 right, the associated coefficients will be 0. So, I can write this term as 0 x 0 x square plus 0 x plus 10. Now, because of this let us write it in a general. generalize setting b 2 x square plus b 1 x plus b naught is equal to right.
So, now, I am trying to add these two polynomial. So, what is our recipe? We will consider the terms with like powers that is like exponents. So, let me try to add the things.
So, if I consider this this particular expression that is given here. So, I have 1 x square 1 minute. So, let me bring in my mouse pointer here. So, I have 1 x square plus 0 x square. So, 1 plus 0 I will get again singleton x square then 4 plus 0 that will give me 4. x 4 plus 10 will give me 14. So, essentially I can see that this expression should have a formulation which is of the form x square plus 4x plus 14. So, if I now try to do it in a more general settings, then how will Icompare with this general setting?
Let us see it here. So, I want to add these two. So, just add. So, in a similar manner if I add these two, what I am getting is a 2 plus b 2 times x square plus a 1 plus b 1 times x plus a naught plus b naught. just remember this format.
So, what I am writing here is essentially Another point that to note with this example is the first one was a polynomial of degree 2, the second expression q x was a polynomial of degree 0. Now, the resultant expression that is p x plus q x what is the degree of this polynomial? It is a polynomial of degree 2. So, it is the maximum of degree of the first polynomial and degree of the second polynomial So, we have roughly understood the settings that we need maximum of 1 and 2. Let me write the findings in a different way. So, if I have a polynomial of degree m and let us say if I have a polynomial of degree m and degree n, these are the two polynomials and if they satisfy a relation that m is less than n. then the resultant polynomial will have a degree n.
If I have a polynomial where degree m is equal to n ok, then the resultant polynomial will still have degree n and if I have a case where m is greater than n then the resultant what will be the. So, if we switch this qx to px and px to qx the this case will happen and the resultant polynomial will have degree m. So, just remember this in mind that means it is always maximum of m and n if the resultant polynomial is having polynomials underlying polynomials with different degrees.
So, with this understanding let us attack the second problem. So, the second problem has p x which is x which is a polynomial of degree 4. So, I have written all other terms which were not there in the polynomial by multiplying with 0. In a similar manner, I have written the second polynomial q x which is a polynomial of degree 3, but we want the maximum degree to survive right or essentially in this expression the maximum degree will survive. Therefore, I have this kind of expression. So, the the resultant polynomial we know from our discussion will be a polynomial of degree 4 and therefore, I need to consider all the terms that correspond to each of the degrees. So, what is the term corresponding to degree 4?
In the first expression that is p x is 1, the coefficient is 1 and the term corresponding to degree 4 in the second polynomial that is qx So, I will get 1 plus 0 which is 1, 1 times x raised to 4. In a similar manner you can see for x cube it is 1 times x cube, x square there is no survivor both are 0. So, 0 times x square, 4 plus 0 times x and 0 plus 1 times 1. So, it is 1. So, the resultant that you are interested in is x raise to 4. plus x cube plus 4x plus 1. Again I will reiterate this time it will be if you consider a generalized polynomial it will be a4 x raise to 4 plus a3 x cube plus a2 x square plus a1 x plus a naught. And in a similar manner qx will be b4 x raise to 4 b3 x cube b2 x square b1 x plus b naught. And if you sum over them what we have written in yellow is essentially sum of a 4 plus b 4 is 1, sum of a 3 plus b 3 is 1, sum of a 2 a 1 plus b 1 is 4 and sum of a naught plus b naught is 1, a 2 and b 2 will sum to 0 because it does not have any non-zero coefficient.
So, this is how we will handle the third. This is how we have handled the second problem and the higher the term containing the highest degree survived therefore, the degree of polynomial is 4 ok. So, let us go back to the third problem.
Let us come ahead and solve the third problem P x and Q x. Again similar setting highest degree is degree 3. So, the term corresponding to degree 3 will survive. So, that polynomial with lower degree I will bring it to degree 3. So, essentially I will multiply with coefficient 0 for degree 3 term.
Again by same logic I will add the two terms and therefore, I will get the corresponding answer. So, here there were cross terms like the term corresponding to x square was crossing. For example, both polynomials had terms corresponding to x square. So, you can see the difference here we are just adding 2 plus 1, 1 plus 2. So, all these things are happening and together we are writing the result x cube plus 2 plus 1 that is 3x square 1 plus 2 that is 3x plus 2. So, from this we can deriveif you are clear with these three examples then we can derive a general formula otherwise pause and look at each of the terms we will be you will be able to understand the general formula in a bit better manner if you pause and review these.
So, let us come to the general formula you must have paused and understood the additions. So, if I have a polynomials of the form a k x raise to k these are actually a k x raise to k are monomials for each k and k is equal to 0 to n. So, k runs from 0 to n.
And if you assume that a n is not equal to 0, then this is a polynomial of degree n. In a similar manner, you have taken a second polynomial qx b j x raise to j, j is equal to 0 to m. Now, it does not matter whether m is greater than n or m is less than n, this particular thing will give you the answer, ok.
What is the resultant? So, if I want to add these two polynomial functions px and qx, then px plus qx will essentially show this kind of representation. So, what we are actually saying is choose which one is the maximum m or n whichever is the maximum take that maximum. So, it is maximum of m and n, sum will run from k is equal to 0 to n. Let us say for argument purposes this is the highest degree that is n is the highest degree then match the degree of the highest degree for other coefficients.
For example, for j equal to m plus 1 to n put all b j's to be equal to 0. If you do so, this is what we have done here. So, in this case the first degree was 2 and the second degree of was 0. So, in this case we match the degree and substituted all the coefficients here to be equal to 0. So, do a similar thing over here in general and then just add the coefficients a k plus b k x raise to k and this should give you the final answer. So, this is in fact an algorithm for adding the polynomials, this is algorithm for adding the polynomials.
What is the step, what are the steps in the algorithm? First, Identify degrees of both polynomials, choose the polynomial with highest degree that will be the degree of the resultant polynomial, take the polynomial of least degree that is step 2, take the polynomial of least degree, add all the coefficients which are of the degree higher than the polynomial and multiply them with coefficients 0. Once you do that you are ready to do the addition, add the 2 using this formulation. So, this is how you can program you can actually program into a computer for addition of polynomials.
Now, let us try to understand this with subtraction. What is the difference between subtraction and addition? Both are essentially same but in subtraction you are multiplying the second polynomial by minus 1. We have already seen how subtraction will happen. So, here is a quick overview of these examples. So, the this is these are the polynomials same polynomials now we are subtracting and what we are doing by subtracting I mean we have multiplied with minus 1 just look at here all these terms.
The procedure is exactly the same it is just that first you have to multiply by minus 1 and put the polynomial appropriately. So, let us start with first example, but it will be a quick run because p x is this. So, there is no change, but I want to subtract p x from I want to subtract qx from px. So, this polynomial will be multiplied with minus 1 that is what is done here, ok.
So, minus qx. So, correspondingly all coefficients are negated. Just look at these terms.
All coefficients are negated and therefore, because there were no cross terms. So, you will not find any difference in the first two terms, but the significant difference is there in the third term which is actually minus 6. In a similar manner take the second question and you are multiplying qx with minus 1. So, minus x raise to power minus x cube minus x square minus x and minus 1 right. Again because there were no cross terms there were there were no additions. So, this this also will have a minimal effect where the second term these terms will be with a negative sign. this minus 1 was there, so this will have a negative sign.
So, there is a minimal impact. The third example that we have taken will face a major impact. For example, px minus qx, now you take this minus qx here, if you take that minus qx here, then px minus qx, the first term will be as it is x cube because it is coming from this point. Here, there was a clash of x squares.
So, 2 in when we added it was 2 plus 1. So, everything became 3. Here it is 2 minus 1 times x square. In a similar manner 1 minus 2 times x and then the final term was minus 2. So, essentially you got the expression in this form which is x cube minus x square minus x minus 2, but the key principles remained the same. except for multiplying with minus 1. Multiplying with minus 1 because that was a polynomial of degree 0 will not change the degree of the polynomial.
So, once it is not changing the degree of the polynomial all the rules which were possible for addition remain intact. For example, you have to choose the degree which is maximum of the polynomial there there is no change in the degree except for the multiplication of a minus sign. So, that multiplication of minus sign is absorbed here. So, now, in the new rule it will be p x into q p x minus q x will be k is equal to 0 to maximum of m and n, it is remained intact and earlier when we were adding it was a k plus b k, now it is a k minus b k. So, I hope you have understood addition and subtraction of the polynomials, both are essentially same and the resultant what we are getting is again a polynomial.
In the next video, we will take a closer look at multiplication of polynomials. Thank you.