This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
Math
Appears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3
2×3
2^{34}
234
a_{i-1}
ai−1
\frac{2}{3}
32
\sqrt{2}
2
\sum_{i=1}^3
∑i=13
\sin \theta
sinθ
\boxed{123}
123
Comments
Since you raised this general question and I wanted to get a general procedure for this, I spent almost all of my evening thinking about this. This is what I came up with. Maybe this might help you.
Consider the polynomial p(x) of degree dp and the divisor polynomial d(x) of degree dq such that dq≤dp (obviously) where we have dp,dq∈Z0+. Denote by q(x) the quotient polynomial you get while performing division algorithm and denote by r(x) the remainder you get when p(x) is divided by d(x).
Note: If dp=0, then the polynomial is a constant function which is divisible by any divisor polynomial of degree 0. Also, if we have dq=0, we simply have that the divisor is a constant function which obviously divides polynomials p(x) of any degree. If dp=dq=0, the result is the same which follows from the already discussed two cases. So, these trivial cases can be dismissed from our examination since they always give the remainder as 0.
We proceed to get a systematic procedure to deal with the non-trivial cases, i.e., when dp,dq∈Z+.
Consider the set {ri}i=1i=qd of all roots of d(x). By division algorithm, we have,
Obviously, r(x) is a polynomial of degree qd−1 and hence is of the form k=0∑qd−1akxk where the sequence {ak}k=0k=qd−1 is a sequence of constants depending upon d(x). We then obtain,
p(rk)=r(rk)=j=0∑qd−1aj(rk)j∀k∈Z≤qd+
So, from the above result, you get qd equations for a system with qd unknowns. Hence, you can bash it out using methods of solving large system of equations, mostly methods from Linear Algebra (matrices, etc).
There's yet another way to finish it off elegantly if the roots of d(x) form an arithmetic progression. The above result also can be said to give us qd different polynomial values for r(x) which has degree qd−1. You can use method of differences now to get the final difference column value easily and then use the "reconstruction formula" in method of differences to get the polynomial r(x), which is your answer. And, we are done. □
Note that the form we took for d(x) accounts for all cases since any other kind of structure of d(x) can easily be obtained by multiplying a scalar to q(x) in the division algorithm which doesn't affect r(x).
Since I already wrote so long for this, let's take the time to state an explicit example.
Example: Find the remainder when p(x)=x10 is divided by the cubic polynomial d(x)=(x−1)(x−2)(x−3).
Solution: We have, through our procedure as shown above that,
As you can infer, this becomes more and more tedious as the degrees of p(x) and d(x) increase, even using method of differences or other interpolation methods.
Note: This method works only for those d(x) which has no repeated roots. As of now, this is not much of a generalization since it doesn't account for cases when d(x) has a repeated root.
@Calvin Lin, would you mind verifying this explanation? I don't get why would someone downvote it? Is there any flaw in the explanation? If so, would you kindly point it out?
@Nihar Mahajan
–
Seems like there are a few shortcomings as Calvin pointed out. Let's see if I can salvage this tomorrow after I get some sleep tonight. :P
You can use method of differences now to get the final difference column value easily and then use the "reconstruction formula" in method of differences to get the polynomial , which is your answer. And, we are done.
It is true only if the roots form an arithmetic progression.
Secondly, you have only dealt with the case where the dividend has no repeated roots, so it's not quite the "generalized polynomial".
@Calvin Lin
–
Fair enough. I'll try to fix some parts tomorrow and try to account for the other possible cases. For now, I have edited my comment a bit to reflect the incompleteness.
@Calvin Lin
–
Just asking, would Lagrange Interpolation be a better idea instead of using Method of differences for finishing it off (in case of no repeated roots in d(x))? I think that'd help overcome the restriction of "the roots being in arithmetic progression", wouldn't it?
. Let me try : Let the divisor be ax2+bx+c whose roots are u,v. So its as if , P(x) is divided by (x−u)(x−v).Since the divisor has a degree of 2 , the remainder must have degree of 1 and thus it has the form : kx+m.By division algorithm we can write :
P(x)=Q(x).(x−u)(x−v)+kx+m
When P(x) is divided by x−u , the remainder is P(u) and When P(x) is divided by x−v , the remainder is P(v). So , to find the required remainder we must solve the following system of equations:
The divisor is a quadratic polynomial, not a quadratic equation. The divisor cannot be an equation. The =0 part is invalid. You should remove that. The rest of your comment seems okay to me.
EDIT: @Nihar Mahajan, I just noticed that if you're going to keep the divisor as ax2+bx+c, then the format (x−u)(x−v) doesn't suite well since that forces a=1. This isn't that much of a problem actually since it is corrected simply by multiplication of quotient polynomial by a constant, but for the sake of clarity, you might want to reflect this in your comment and edit it accordingly.
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Since you raised this general question and I wanted to get a general procedure for this, I spent almost all of my evening thinking about this. This is what I came up with. Maybe this might help you.
Consider the polynomial p(x) of degree dp and the divisor polynomial d(x) of degree dq such that dq≤dp (obviously) where we have dp,dq∈Z0+. Denote by q(x) the quotient polynomial you get while performing division algorithm and denote by r(x) the remainder you get when p(x) is divided by d(x).
Note: If dp=0, then the polynomial is a constant function which is divisible by any divisor polynomial of degree 0. Also, if we have dq=0, we simply have that the divisor is a constant function which obviously divides polynomials p(x) of any degree. If dp=dq=0, the result is the same which follows from the already discussed two cases. So, these trivial cases can be dismissed from our examination since they always give the remainder as 0.
We proceed to get a systematic procedure to deal with the non-trivial cases, i.e., when dp,dq∈Z+.
Consider the set {ri}i=1i=qd of all roots of d(x). By division algorithm, we have,
p(x)=q(x)d(x)+r(x)⟹p(x)=⎝⎛q(x)⋅k=1∏qd(x−rk)⎠⎞+r(x)
Obviously, r(x) is a polynomial of degree qd−1 and hence is of the form k=0∑qd−1akxk where the sequence {ak}k=0k=qd−1 is a sequence of constants depending upon d(x). We then obtain,
p(rk)=r(rk)=j=0∑qd−1aj(rk)j ∀ k∈Z≤qd+
So, from the above result, you get qd equations for a system with qd unknowns. Hence, you can bash it out using methods of solving large system of equations, mostly methods from Linear Algebra (matrices, etc).
There's yet another way to finish it off elegantly if the roots of d(x) form an arithmetic progression. The above result also can be said to give us qd different polynomial values for r(x) which has degree qd−1. You can use method of differences now to get the final difference column value easily and then use the "reconstruction formula" in method of differences to get the polynomial r(x), which is your answer. And, we are done. □
Note that the form we took for d(x) accounts for all cases since any other kind of structure of d(x) can easily be obtained by multiplying a scalar to q(x) in the division algorithm which doesn't affect r(x).
Since I already wrote so long for this, let's take the time to state an explicit example.
Example: Find the remainder when p(x)=x10 is divided by the cubic polynomial d(x)=(x−1)(x−2)(x−3).
Solution: We have, through our procedure as shown above that,
p(1)=r(1)=110=1andp(2)=r(2)=210=1024andp(3)=r(3)=310=59049
Now, construct the difference table for r(x) as follows:
x123r(x)1102459049D1(x)102358025D2(x)57002
Now, we do the reconstruction using the following formula:
r(x)=r(1)+i=1∑2(i!Di(1)⋅j=1∏i(x−j))=28501x2−84480x+55980
As you can infer, this becomes more and more tedious as the degrees of p(x) and d(x) increase, even using method of differences or other interpolation methods.
Note: This method works only for those d(x) which has no repeated roots. As of now, this is not much of a generalization since it doesn't account for cases when d(x) has a repeated root.
Log in to reply
@Calvin Lin, would you mind verifying this explanation? I don't get why would someone downvote it? Is there any flaw in the explanation? If so, would you kindly point it out?
Log in to reply
I don't know how one can downvote such magnificent work of generalization.I have upvoted it :)
Log in to reply
Log in to reply
Firstly, the following statement is false
It is true only if the roots form an arithmetic progression.
Secondly, you have only dealt with the case where the dividend has no repeated roots, so it's not quite the "generalized polynomial".
Otherwise, it looks mostly good.
Log in to reply
d(x))? I think that'd help overcome the restriction of "the roots being in arithmetic progression", wouldn't it?
Just asking, would Lagrange Interpolation be a better idea instead of using Method of differences for finishing it off (in case of no repeated roots inLog in to reply
. Let me try : Let the divisor be ax2+bx+c whose roots are u,v. So its as if , P(x) is divided by (x−u)(x−v).Since the divisor has a degree of 2 , the remainder must have degree of 1 and thus it has the form : kx+m.By division algorithm we can write :
P(x)=Q(x).(x−u)(x−v)+kx+m
When P(x) is divided by x−u , the remainder is P(u) and When P(x) is divided by x−v , the remainder is P(v). So , to find the required remainder we must solve the following system of equations:
P(u)=ku+mP(v)=kv+m
Cheers!
Log in to reply
Thanks so much!
But, If we have to find a single remainder, What should we do?
For example, What will be the remainder if x2015 is divided by x2−4x+3 ?
Log in to reply
Solve system:
32015=3a+b1=a+b
And the remainder will be ax+b
Log in to reply
x2015=(x−1)(x−3)×q(x)+mx+b⟹12015=1=m+b32015=3m+b⟹2m=32015−1(by subtracting′3m+b′ ′m+b′)⟹m=232015−1⟹b=1−232015−1⟹remainder when x2015 is divided by x2−4x+3 is232015−1×x+1−232015−1. Cheers!
Log in to reply
Don't ask our questions on B'lliant. This is wrong. We already have mentioned what to do. So Please.
Log in to reply
P.S. Kindly improve your language a tad bit ;)
Log in to reply
Log in to reply
And sorry .
The divisor is a quadratic polynomial, not a quadratic equation. The divisor cannot be an equation. The
=0
part is invalid. You should remove that. The rest of your comment seems okay to me.EDIT: @Nihar Mahajan, I just noticed that if you're going to keep the divisor as ax2+bx+c, then the format (x−u)(x−v) doesn't suite well since that forces a=1. This isn't that much of a problem actually since it is corrected simply by multiplication of quotient polynomial by a constant, but for the sake of clarity, you might want to reflect this in your comment and edit it accordingly.
Log in to reply
Sorry , it has become an habit to write ax2+bx+c=0. :P
@Nihar Mahajan @Manish Dash @Rajdeep Dhingra @Prasun Biswas
How did this question come to your mind! It was my doubt! Thanks for raising this question, mehul!
Log in to reply
Welcome bro.
For an explicit example, see Remainder Factor Theorem - Intermediate.
After you understood what to do, could you add in a paragraph of explanation?
Log in to reply
Sure sir! I will do so :)