Evaluating a polynomial directly means raising the argument to successive powers, and every one of those multiplications is a chance to slip. The nested form rearranges the computation so that only multiplications by x and additions are left - it is faster and safer, on a calculator and in a program alike. The second half of the lesson shows what it is good for: since the remainder on dividing f(x) by x − a equals f(a), a single evaluation replaces a whole long division.
Nested form of a polynomial
We rewrite the polynomial so that each step is a multiplication by x followed by adding the next coefficient. It is built up starting from the highest power.
f(x)=5x3+2x2−3x+6 1∘5x+2 4∘[(5x+2)x−3]x 2∘(5x+2)x 5∘[(5x+2)x−3]x+6 3∘(5x+2)x−3 f(x)=[(5x+2)x−3]x+6 f(4)=[(5⋅4+2)⋅4−3]⋅4+6=[22⋅4−3]⋅4+6=85⋅4+6=340+6=346 f(2)=[(5⋅2+2)⋅2−3]⋅2+6=[12⋅2−3]⋅2+6=21⋅2+6=42+6=48 f(−1)=[(5⋅(−1)+2)⋅(−1)−3]⋅(−1)+6=[3−3]⋅(−1)+6=6 When a power is missing, write it in with a zero coefficient - otherwise the nesting comes out wrong.
f(x)=3x4+2x2−4x+5=3x4+0x3+2x2−4x+5 1∘3x+0 5∘[(3x+0)x+2]x−4 2∘(3x+0)x 6∘{[(3x+0)x+2]x−4}x 3∘(3x+0)x+2 7∘{[(3x+0)x+2]x−4}x+5 4∘[(3x+0)x+2]x f(x)={[(3x+0)x+2]x−4}x+5 f(2)={[(3⋅2+0)⋅2+2]⋅2−4}⋅2+5={14⋅2−4}⋅2+5=24⋅2+5=53 Write the polynomial in nested form and evaluate it for the given value of x.
a)f(x)=4x3+3x2+2x−4 f(x)=[(4x+3)x+2]x−4 f(2)=[(4⋅2+3)⋅2+2]⋅2−4=[22+2]⋅2−4=48−4=44 4⋅23+3⋅22+2⋅2−4=44 b)f(x)=2x4+x3−3x2+5x−6 f(x)={[(2x+1)x−3]x+5}x−6 f(3)={[(2⋅3+1)⋅3−3]⋅3+5}⋅3−6={[21−3]⋅3+5}⋅3−6=={54+5}⋅3−6=177−6=171 2⋅34+33−3⋅32+5⋅3−6=171 c)f(x)=x4−3x3+2x−3 f(x)=x4−3x3+0x2+2x−3={[(x−3)x+0]x+2}x−3 f(5)={[(5−3)⋅5+0]⋅5+2}⋅5−3=52⋅5−3=260−3=257 54−3⋅53+2⋅5−3=257 d)f(x)=2x4−5x3−3x2+4 f(x)=2x4−5x3−3x2+0x+4={[(2x−5)x−3]x+0}x+4 f(4)={[(2⋅4−5)⋅4−3]⋅4+0}⋅4+4=36⋅4+4=148 2⋅44−5⋅43−3⋅42+4=148 The remainder theorem
x−af(x)f(x)=q(x)+x−aR/⋅(x−a)=(x−a)⋅q(x)+R f(a)=0⋅q(a)+R⇒f(a)=R If the polynomial f(x) is divided by x − a, the remainder is f(a).
Determine the remainder.
(x3+3x2−13x−10):(x−3) [(x+3)x−13]x−10 f(3)=[(3+3)⋅3−13]⋅3−10=15−10=5 Long division gives the same result, only the long way round.
(x3+3x2−13x−10):(x−3)=x2+6x+5 r. 5 (x3+3x2−13x−10)=(x−3)(x2+6x+5)+5 Determine the remainder in each of the following cases.
a)(5x3−4x2−3x+6):(x−2) [(5x−4)x−3]x+6 f(2)=[(5⋅2−4)⋅2−3]⋅2+6=18+6=24 b)(4x3−3x2+5x−3):(x−4) [(4x−3)x+5]x−3 f(4)=[(4⋅4−3)⋅4+5]⋅4−3=57⋅4−3=228−3=225 c)(x3−2x2−3x+5):(x−5) [(x−2)x−3]x+5 f(5)=[(5−2)⋅5−3]⋅5+5=60+5=65 d)(2x3+3x2−x+4):(x+2) [(2x+3)x−1]x+4 f(−2)=[(2⋅(−2)+3)⋅(−2)−1]⋅(−2)+4=−2+4=2 e)(3x3−11x2+10x−12):(x−3) [(3x−11)x+10]x−12 f(3)=[(3⋅3−11)⋅3+10]⋅3−12=12−12=0 A remainder of zero means that x − 3 divides this polynomial exactly.