[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

2020.0. "Solve for all values of x" by SUBSYS::FAIRBANKS () Wed Dec 13 1995 17:09

How would you go about finding the roots to the following equation:

     4    3
0 = x - 4x + 16x - 16


Thanks;

Dave
T.RTitleUserPersonal
Name
DateLines
2020.1HANNAH::OSMANsee HANNAH::IGLOO$:[OSMAN]ERIC.VT240Wed Dec 13 1995 19:204
I would try 2.

/Eric
2020.2CSC32::D_DERAMODan D'Eramo, Customer Support CenterWed Dec 13 1995 22:5315
        Try as potential roots the values of the form +/- n/d where n
        divides the (absolute value of the) constant term and d
        divides the (absolute value of the) coefficient of the highest
        degree term.
        
        Here, that means d is 1 and n is in {1,2,4,8,16} so the trial
        roots are {-16,-8,-4,-2,-1,1,2,4,8,16}.
        
        Both -2 and 2 will turn out to be roots, so divide by (x - -2)(x - 2)
        = (x+2)(x-2) and try to factor what is left, which is x^2 - 4x + 4,
        which factors easily to (x-2)^2. So x^4 - 4x^3 + 16x - 16 is
        (x+2)(x-2)^3 with a single root at -2 and a triple root at 2.
        
        Dan
        
2020.3what if it were harder?RATH::TATHAMThu Dec 14 1995 06:476
    OK, but if it *hadn't* been that easy, how *do* you solve a general
    quartic? I've grubbed together an algorithm to do cubics, from various
    assorted sources, but haven't been able to find any information on
    quartics. It's possible though, isn't it? Anyone?
    
    Simon
2020.4solving quarticsFLOYD::YODERMFYThu Dec 14 1995 13:2313
This has probably been given elsewhere in the conference, but it won't hurt to
repeat it.  I have been told that this method (the classic one) isn't very good
numerically, which claim I haven't checked.

Starting with x^4 + ax^3 + bx^2 + cx + d = 0, let z = x + a/4, so x = z - a/4;
you will get f(z) = z^4 + uz^2 + vz + w = 0 (you have eliminated the cubic term).

Write f(z) = (z^2 + px + q)(z^2 - px + w/q) and solve for p and q.  You will
find that you end up with a cubic in p, or p^2, or something.  So solving
quartics is reducible to solving cubics (and quadratics).

Of course I've omitted some details.  :-)  If you get stuck, I'm willing to plow
through the details myself and post them.
2020.5typo in .4FLOYD::YODERMFYThu Dec 14 1995 14:221
I meant (z^2 + pz + q)(z^2 - pz + w/q); that is, z, not x, in the factorization.
2020.6CSC32::D_DERAMODan D'Eramo, Customer Support CenterThu Dec 14 1995 14:433
        See topic 901.
        
        Dan