Remainder of the polynomial: What is wrong with this approach?
$begingroup$
Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.
$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$
When $x^2=-1$,
$$
P(x)=-5+x+2x+1+1 = 3x-3
$$
Exactly, why the method above, does not work for the following question?
Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.
$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$
$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$
However, if I factor $P(x)$ by $x$,
$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$
and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)
Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)
polynomials
$endgroup$
add a comment |
$begingroup$
Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.
$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$
When $x^2=-1$,
$$
P(x)=-5+x+2x+1+1 = 3x-3
$$
Exactly, why the method above, does not work for the following question?
Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.
$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$
$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$
However, if I factor $P(x)$ by $x$,
$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$
and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)
Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)
polynomials
$endgroup$
1
$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00
add a comment |
$begingroup$
Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.
$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$
When $x^2=-1$,
$$
P(x)=-5+x+2x+1+1 = 3x-3
$$
Exactly, why the method above, does not work for the following question?
Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.
$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$
$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$
However, if I factor $P(x)$ by $x$,
$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$
and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)
Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)
polynomials
$endgroup$
Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.
$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$
When $x^2=-1$,
$$
P(x)=-5+x+2x+1+1 = 3x-3
$$
Exactly, why the method above, does not work for the following question?
Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.
$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$
$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$
However, if I factor $P(x)$ by $x$,
$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$
and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)
Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)
polynomials
polynomials
edited Dec 30 '18 at 9:40
blackened
asked Dec 30 '18 at 9:21
blackenedblackened
475413
475413
1
$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00
add a comment |
1
$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00
1
1
$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00
$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).
r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x
$endgroup$
add a comment |
$begingroup$
The first method does work:
When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.
When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056641%2fremainder-of-the-polynomial-what-is-wrong-with-this-approach%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).
r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x
$endgroup$
add a comment |
$begingroup$
I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).
r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x
$endgroup$
add a comment |
$begingroup$
I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).
r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x
$endgroup$
I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).
r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x
answered Dec 30 '18 at 9:38
Mengqi ChenMengqi Chen
165
165
add a comment |
add a comment |
$begingroup$
The first method does work:
When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.
When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.
$endgroup$
add a comment |
$begingroup$
The first method does work:
When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.
When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.
$endgroup$
add a comment |
$begingroup$
The first method does work:
When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.
When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.
$endgroup$
The first method does work:
When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.
When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.
answered Dec 30 '18 at 9:53
lhflhf
166k11172402
166k11172402
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056641%2fremainder-of-the-polynomial-what-is-wrong-with-this-approach%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00