I'm having a bit of trouble with a STEP question (1997 STEP II, Question 4 part ii). The question reads something like this:
Find a polynomial of degree , where is a positive integer, such that when is divided by , the remainder is , for . As I understand it, this means that (with a different for different ). Is this right? If so, then let So we know that , , ..., . If we then let , we find that , and get the following simultaneous equations: ... or ... Do these equations have asolution besides , and ? This gives , which isn'tterribly helpful.Hi Olof,
In general if you ever find yourself tackling n horrible
simultaneous equations in STEP, or indeed anything which is very
algebraically messy, it probably means a different approach is
required. I won't tell you how to do it, but I'll give a clue.
Consider the function P(x) - x. What value does this function
take for x = 0,1,...,a?
I suppose a is integral? Consider P(x)-x...
Thanks Michael and Anon - I'll have a look.
Olof
I think I must be doing something wrong - I'm getting strange
answers. I keep ending up with P(x) = x, which is obviously not
right - any further hints?
Cheers,
Olof
I think this is something you just have
to see - once you know the trick you'll kick yourself.
If we divide P by a linear factor x-m then we have:
P(x) = (x-m)qm (x) + rm (x)
for quotient and remainder polynomials q and r
respectively.
We want r(m)=m for each integral m between 0 and n, that is for
each such m there exists qm (x) with:
P(x) = (x-m)qm (x) + m
whence for each such m:
(x-m) | P(x)-m
Can you do the rest?
Can't you just do it with a Lagrange interpolation polynomial?
That's pretty much the same isn't
it?
All you need to know is that the polynomial (x - a1
)(x - a2 )...(x - an ) is 0 at x =
a1 ,a2 ,...,an .
Apply to P(x) - x...
Yes, but it doesn't require me to have an original thought. :)
What's a Lagrange interpolation polynomial? I'm still being pretty braindead at the moment, I'll have another think tomorrow. I think the problem lies with what the question actually means - I'm not quite sure I understand it fully.
I can see that a polynomial such as gives for (integral ), which was one of my first approaches, but I can't quite figure out to work it into the problem. It's probably very simple, so I'll return to that approach in the morning.But if you can see that, you have done
the problem, because that's the answer :-)
It satisfies P(m) = r(m) + m for each m between 0 and n.
I think they're expecting you to assume a is an integer (or in William's notation, m is an integer).
Is that the answer? [Runs off, kicking himself repeatedly,
screaming D'oh!]
You have no idea how long this problem has been bugging me...
:)
I think the problem laid with the fact that I wasn't quite sure
what conditions the answer had to satisfy, and I'm afraid I'm
still not sure. With the P(x) above, won't the remainder when
P(x) is divided by (x-m) be x, whereas we want it to be m
regardless of the value of x?
Also, if you wouldn't mind, what's a Lagrange interpolation
polynomial? Sounds interesting.
Thanks,
Olof
Yeah sorry Michael - I just found the question, and it specifies that a is an integer.
On the subject of the original question;
the remainder when the polynomial P(x) is divided by the
polynomial Q(x) is defined as S(x) where S(x) is a polynomial of
degree less than that of P(x) satisfying:
Write P(x) = Q(x)R(x) + S(x)
where R(x) is a polynomial.
(Exercise: show that there is a unique S(x) satisfying this
condition.)
So for example, if we want to divide
P(x) = x(x - 1)(x - 2)...(x - n) + x
by (x - 2) (say) what this means is that we write:
P(x) = (x - 2)[x(x-1)(x-3)...(x-n)] + (x - 2) + 2
P(x) = (x - 2)[x(x-1)(x-3)...(x-n) + 1] + 2
Note that 2 is now of degree less than (x - 2) so 2 is the
remainder. Likewise, the remainder when P(x) is divided by (x -
i) is i for any integral i in [0,n], if P(x) is chosen as x(x -
1)(x - 2)...(x - n) + x.
Another useful fact (easy to prove) is that the remainder when
P(x) is divided by a linear factor (x - a) is simply P(a).
That clears it all up, thanks a lot Michael. It must have
taken you a while to type all that out - I really appreciate it.
I think the remainder thing you mention at the end is actually
the first part of the question!
Regards,
Olof