You are here:

Advanced Math/problem with Horner method

Advertisement


Question
QUESTION: hi

i have a problem with horner method,and want you to just give me a short description about it,and tell me what does it do
i search it through internet i found this addres"http://en.wikipedia.org/wiki/Horner_scheme#Examples"
can you plZ describe for me the example(in this that i gave you)?
(i don't know how it write the second rows "6 0 6" in the synthetic diagram )

thanx
Bita

ANSWER: Hormer's method is for dividing one polynomial by another.

3 |   2    -6     2    -1
  |         6     0     6    
  |----------------------
      2     0     2     5
Note that you are dividing by  x+3, so the put a three in the upper left hand corner.  Multiply the first two on the bottom by 3, and that's where the first 6 comes from.  -6+6 = 0, which is at the bottom below the -6 and 6.  3*0 = 0, and that is added two 2, which gives the 2nd to last column, 2 0 2.  Take the 2 at the bottom times 3 and you get 6.  Add this to the last column, so you get -1, 6, 5 in the last column since -1+6=5.  Since a zero was not gotten (a 5 was), it is not divisible by x-3.

Let's try another.
x^4 + 4x^3 + 6x^2 + 4x + 1 divided by x+1.  Again, since we are trying to use x+1, we put a -1 in the upper left hand side.

-1 | 1  4  6  4 1
  | 0 -1 -3 -3 1
  |--------------
    1  3  3  1 0

Since a 0 was gotten on the bottom, it is divisible by x-1 (0 is the remainder.  I'm not sure if the numbers look like they're in columns, but they really go a -1 in the first column, 1 0 1 in the next, 4 -1 3 in the next, 6 -3 3 in the next, 4 -3 1 in the next, and 1 1 0 in the last column.

Be sure you put a 0 in if the problem is missing a power of x.  For example, if the polynomial we were trying to divide into was
x^4 + 3x^3 + 5x + 7, the top row would have a 1 3 0 5 7 in it.
The 0 is for the x².


---------- FOLLOW-UP ----------

QUESTION: thanx for your answer

but could you plz tell me in dividing one polynomial by another for example in your first example we ourself should find x+3 for dividing or the question tells us this polynomial?

thanx
Bita

Answer
I hope a better way would be to put the variable that is
being divided above the problem, like
3
|   2    -6     2    -1
|         6     0     6    
|----------------------
    2     0     2     5
Now do these line up?  I notice that this language that does
this reduces the size of spaces to be less than a character
width.  It's almost like we type in courier but is translated
in Arial or something like that.  I have found that if I type
a tab in a word processing language and then highlight the
space with that tab in it that I can paste it into here.
To cut it is control-X and to paste it is control-V.  I'm
from those good old days when we didn't have menus at the top.
In fact, in high school, all we had for a computer was a TTY
(that's teletype) hooked to a main frame around 100 miles away.
The paper was a continuous roll with little pockets on the side
to guide it through the printer.  The printers weren't able to
handle standard paper.  The computers use to take up an entired
room.  Calculators were first introduced when I was in junior
high.  They were $50 for a simple one that could add, subtract,
multilpy, divide, take squareroots, and had one memory.  There
weren't any more advanced than that.  By the way, minimum wage
was a little over a buck and hour, so of course they weren't
required yet.  In college, my first computer had no hard drive
and was almost $2,000.  It came with a dot matrix printer.  Back
then, they didn't think you could make a computer print anywhere
near as good as a typewriter worked.  Yes, they used to use
typewriters, and they even had what was known as white-out to
correct the errors.  Just like a few centuries ago, it took
several months to get a message from here to europe, but now
it can be done in seconds if you have an e-mail address.  Back
when my dad was in WWII (before he was even married), he told
me that letters would arrive from the front in packs of a
month at a time.  But enough about those good old days.  They
weren't that good.

Not that what this problem is doing is saying the
2x^3 - 6x^2 + 2x - 1 is (x-3)(2x²+2), remainder 5.

Multiplying the fuction out gives
2x^3 - 6x^2 + 2x - 6, which if we add in the 5 remainder,
is the function back again.


There were a couple of errors in your letter that I noticed.
First of all, the problem just done was dividing by (x-3),
not (x+3); you always put up there what the value of x to be
tested is.  In this case, we're dividing by x-3, or testing
to see if x=3 is a choice that makes it 0.

If you were dividing by x+3, the following would be done
-3
|   2    -6     2    -1
|        -6    36   102    
|----------------------
    2   -12   -34   101

On the second problem, the 1 becomes a -1, the 3 becomes a -3,
the next 3 also becomes a -3, but the last 1 should become a -1.  
Right now it is down as 1, but apparently a -1 was added anyway
since a 0 was gotten at the bottom.  I think that was a typo.  

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott A Wilson

Expertise

I can answer any question in general math, arithetic, discret math, algebra, box problems, geometry, filling a tank with water, trigonometry, pre-calculus, linear algebra, complex mathematics, probability, statistics, and most of anything else that relates to math. I can even tell you it takes me over 2,000 steps to go a mile, but is that relevant?

Experience

Experience in the area; I have tutored people in the above areas of mathematics for almost two years in AllExperts.com. I have tutored people here and there in mathematics since before I received a BS degree almost 25 years ago. In just two more years, I received an MS degree as well, but more on that later. I tutored at OSU in the math center for all six years I was there. Most students offering assistance were juniors, seniors, or graduate students. I was allowed to tutor as a freshman. I tutored at Mathnasium for well over a year. I worked at The Boeing Company for over 5 years. I received an MS degreee in Mathematics from Oregon State Univeristy. The classes I took were over 100 hours of upper division credits in mathematical courses such as calculus, statistics, probabilty, linear algrebra, powers, linear regression, matrices, and more. I graduated with honors in both my BS and MS degrees. Past/Present Clients: College Students at Oregon State University, various math people since college, over 7,500 people on the PC from the US and rest the world.

Publications
My master's paper was published in the OSU journal. The subject of it was Numerical Analysis used in shock waves and rarefaction fans. It dealt with discontinuities that arose over time. They were solved using the Leap Frog method. That method was used and improvements of it were shown. The improvements were by Enquist-Osher, Godunov, and Lax-Wendroff.

Education/Credentials
Master of Science at OSU with high honors in mathematics. Bachelor of Science at OSU with high honors in mathematical sciences. This degree involved mathematics, statistics, and computer science. I also took sophmore level physics and chemistry while I was attending college. On the side I took raquetball, but that's still not relevant.

Awards and Honors
I earned high honors in both my BS degree and MS degree from Oregon State. I was in near the top in most of my classes. In several classes in mathematics, I was first. In a class of over 100 students, I was always one of the first ones to complete the test. I graduated with well over 50 credits in upper division mathematics.

Past/Present Clients
My clients have been students at OSU, people nearby, friends with math questions, and several people every day on the PC, and you're probably make one more.

©2012 About.com, a part of The New York Times Company. All rights reserved.