Open in TheBrain

Solving Polynomial Equations 8: Does the cubic polyseries yield approximate solns?

Wild Egg Maths

4.25K subscribers

We have a tentative power series of a general cubic equation. Could this actually be put to use to find solutions - necessarily approximate! of real life cubic equations? We will see that some algebraic techniques allow us to extend the usefulness of our proposed solution.

00:01

hello everyone i'm norman wahlberger and

00:03

thank you for joining me on this

00:04

adventure

00:05

in exploring research level mathematics

00:08

we are looking at

00:09

trying to solve a general polynomial

00:12

equation

00:12

and we've got some interesting formula

00:15

and now we're

00:16

checking out whether it actually kind of

00:17

works in the cubic case

00:20

so here's the polynomial that we're

00:23

interested in c 0 plus c 1 x plus c

00:25

2 x squared plus c 3 x cubed equals 0.

00:28

and we saw we could generate some kind

00:31

of solution

00:31

kind of a power series we might call

00:33

them poly series

00:36

where we have a a sum of terms of form c

00:39

m 2 m 3 and m 2 and m 3 are just some

00:42

variables that

00:43

are ranging through natural numbers

00:46

starting with

00:46

  1. and what is this cm2 m3 well it's

00:50

this

00:50

expression here involving a sine

00:52

involving a quotient of

00:54

factorials and involving

00:58

this particular kind of expression which

01:00

has powers of

01:01

c0 c2 and c3 in the numerator

01:05

and power of c1 in the denominator

01:09

and these exponents depend on m2 and m3

01:13

now to make this more explicit we can

01:15

actually look at all these terms we can

01:16

arrange them at least the initial ones

01:19

in a kind of a matrix so here is a small

01:21

initial matrix

01:23

that captures some of the first terms

01:26

i'm calling it m okay so this would be

01:28

uh you go

01:29

m going from uh 0 1 2 3

01:32

4 5 6 i guess m goes from 0 to

01:36

5 i suppose and n goes also from 0

01:40

to 5. now we can actually

01:43

write out this expression

01:47

x at least up to the terms that we're

01:50

looking at

01:50

by multiplying this matrix m on the left

01:53

by

01:54

a row vector ones and on the right

01:57

by a column vector also once and then we

02:00

get this

02:00

expression here so we just um basically

02:03

expand this out basically just

02:05

summing all these terms putting them

02:07

together to form a

02:08

a polynomial actually not really a

02:11

polynomial because it has these

02:14

terms also in the denominator but it's

02:16

some kind of rational function

02:17

expression

02:18

in c0 c1 c2 and c3 and this is just

02:22

the starting point of you know a series

02:25

which

02:25

which carries on we could we could keep

02:26

going and and to take bigger and bigger

02:30

snapshots of this thing okay

02:33

now we want to ask the question today

02:36

you know whether

02:36

we can actually use this i mean

02:39

practically speaking to actually

02:41

solve some cubic equations okay so

02:44

that's a very good question we've

02:46

we've been doing abstract algebra

02:49

now can we actually you know utilize

02:51

this

02:52

um go down to earth and solve some some

02:55

cubic equations

02:56

so let's have a look you know here is a

02:59

rather complicated series i've kind of

03:00

arranged things

03:01

so that the the powers of c3 are

03:04

increasing so here things don't involve

03:06

c3

03:07

corresponds to that first column the

03:10

catalan column we might

03:11

say and then these next terms involve c3

03:14

they're all the terms coming from this

03:16

second column

03:17

and then the next one coming from the

03:19

third column and so on

03:21

to the last one that we have showing

03:23

here all the things involving c3 to the

03:26

fifth

03:26

corresponding to this last column

03:30

okay and if we look at the terms we see

03:32

that you know there are these

03:33

powers of c one in the in the

03:37

denominators

03:38

and the coefficients are generally

03:39

getting big so if we're

03:41

thinking about this generating some kind

03:44

of approximate

03:45

solution we want these terms to

03:50

start getting small right that's the

03:52

general kind of principle that analysts

03:54

use when they're trying to get a

03:55

convergent

03:57

series that the terms themselves had

03:59

better get small so that we're

04:01

we're always adding some small amount

04:03

and hopefully heading towards

04:05

something or at least an approximate

04:07

sort of

04:08

area so this is going to

04:11

have a best chance of working when this

04:14

denominator here is

04:16

you know bigger than the the numerators

04:20

so that we have a chance of these

04:22

coefficients getting small

04:24

so let's start with that in mind trying

04:27

a

04:28

cubic equation that that

04:32

maybe has a hope of getting somewhere so

04:35

let's

04:35

try to solve a cubic equation

04:40

i've just i've already made this x so i

04:43

won't use x i'll use maybe say z so

04:44

maybe 1

04:47

plus say 5 z minus z

04:50

squared plus 3 z

04:54

cubed equals zero

04:57

okay so let's first of all have a go at

05:00

just

05:01

solving this numerically okay

05:04

we get three solutions and uh

05:08

two of them are complex involving eyes

05:10

and this one here this

05:11

w goes minus uh five

05:15

what do we just what is w

05:19

oh i've got lots of things i better i

05:20

better

05:23

uh kill my definitions definitions

05:27

uh clear definitions because

05:30

probably i had some previous definition

05:32

involving w so we'll get rid of that

05:34

now i have to re-um put this thing in

05:38

here

05:38

in order for me to do that i have to put

05:40

this all on one line just bear with me

05:42

one

05:42

second i'm going to

05:45

put this all on one line

05:49

so that i can then

05:55

make a scientific workplace understand

05:58

that i want this entire thing to be a

05:59

definition

06:03

okay there's x and let's def make that

06:06

definition and let's just check that we

06:07

actually have

06:08

something sensible so x is this big

06:10

expression

06:18

all the way up to 273 which is that last

06:21

column okay that looks

06:22

kind of reasonable i'll put some spaces

06:25

in again so we can just

06:26

admire it

06:31

okay we've defined this function x which

06:33

depends on c0 c1 c2 and c3

06:36

okay here is our cubic that we're trying

06:38

to solve

06:39

let us ask our computer to

06:43

solve it numerically now we get okay we

06:45

get solutions in z which is good

06:48

two complex solutions and one z which is

06:51

um

06:52

minus 0.188 and that carries on

06:55

all right so now let's see what happens

06:57

if we

06:58

try this i mean after all this is

07:01

something like a formula right

07:03

so if we put in x and then we stick in

07:05

the coefficients that we have

07:07

so c0 is in this case 1 c1 is

07:11

in this case 5 c2 is -1 and

07:15

c 3 is 3 then we can ask

07:20

the computer to plug these values in and

07:22

see what we

07:23

what we get so evaluate numerically

07:27

we get minus one eight eight eight two

07:30

eight eight nine three

07:32

that compares quite nicely with this

07:34

thing here we're correct

07:36

up to uh six up to six decimal places

07:44

cool uh let's try a variant of that so

07:47

let's try to conf

07:50

let's try to confirm our guess that it's

07:53

really important for that

07:55

coefficient of z to be bigger than the

07:58

other ones

07:58

let's make that 5 a 15 and

08:03

solve this now okay we get

08:08

two solutions again that are complex and

08:10

one which is a

08:12

small number minus 6.631 times 10 to the

08:15

minus 2.

08:16

okay now we're going to look at our

08:19

formula see what our formula tells us

08:22

but we have to change this 5 to a 15 and

08:25

we're going to

08:26

evaluate numerically we get minus

08:31

6.63151598 times 10 minus 2.

08:33

we get exact correspondence between the

08:36

actual solution to the eight decimal

08:40

places that i have my computer sort of

08:42

giving me a resolution

08:44

and we're getting agreement to that

08:45

level so you

08:47

it is sort of the case that you know if

08:49

this

08:50

coefficient of of uh zed

08:54

is a lot bigger than the others then we

08:56

have a good chance for

08:57

there's some kind of convergence

08:59

happening here and we can see this

09:00

demonstrated right here so we are happy

09:03

because

09:04

this is demonstrating that we actually

09:05

have a viable technology here

09:08

okay maybe not in all cases but at least

09:10

in these two cases we see that we can

09:12

solve a cubic equation essentially with

09:16

a formula that only involves high school

09:19

algebra okay that's the only ingredients

09:22

here are addition subtraction

09:24

multiplication and some division

09:27

otherwise so

09:27

you could calculate this by hand if you

09:29

had a lot of patience

09:31

in particular you don't need some extra

09:34

technology for computing

09:35

cubed roots which you can only do

09:37

approximately

09:38

or square roots which you can only do

09:40

approximately okay

09:42

so admittedly we're not getting a final

09:45

exact solution and that's because in

09:46

general

09:47

these equations don't have final exact

09:49

solutions all right they don't

09:51

they only you can only aspire to getting

09:54

approximate solutions that's just

09:56

the nature of the mathematical world

09:58

okay we don't have to try to deny that

10:00

we're working with it just like applied

10:02

mathematicians do

10:05

okay so let's try some variance to this

10:07

you know

10:08

what happens if we try something

10:10

different so let's grab this thing again

10:12

maybe the first one where was it

10:15

and let's change it up a little bit okay

10:18

so let's say um we'll

10:21

drop this down maybe to three and maybe

10:23

we'll bump this one up two to five

10:26

see what effect that has let's just

10:30

put a four in here just for fun okay so

10:31

that was something different

10:33

all right let's compute solve this

10:36

numeric okay so there's a

10:40

a real kind of solution when i say real

10:42

i just mean non-complex

10:43

the same way descartes started it's

10:46

minus 0.23610

10:49

etc okay now let's take our x

10:53

function we should plug in one sorry one

10:56

three minus four and five

11:00

and see what it gives us compute

11:04

evaluate numerically minus 33.980

11:10

that is nowhere close to this thing here

11:14

nowhere close and why is that happening

11:18

well if we look at the terms here right

11:23

c one is about three that's the the

11:25

denominator this is the 3 in the

11:27

denominator

11:28

but the c 3

11:31

is a is

11:34

is 5. okay and the

11:38

c 0 okay that's 1 and the c 2 is three

11:42

so um let's have a look

11:45

at a term which is likely um sort of

11:47

problematic

11:49

um you see if you have if you have

11:51

something like like this

11:53

um okay that's the that's a big

11:57

c one uh

12:00

the point is that some of these terms

12:03

the the

12:04

the fact that the denominator is

12:07

is has a big power but it's only three

12:10

to that big power

12:12

so if we have um you know

12:15

some terms that sort of compensate for

12:17

that like a c2 to the fifth for example

12:20

and c3 squared again with this fact this

12:23

big

12:26

constant in front that thing can end up

12:28

bumping things up

12:29

okay so we can kind of understand that

12:31

if

12:32

the c one is not a lot bigger than the

12:34

other ones we

12:35

can expect that things are not going to

12:37

work out very well

12:41

however i want to point out something

12:45

that might be interesting like let's say

12:47

you

12:48

let's say let's try another variant okay

12:53

and i suppose i could also change that

12:54

first one doesn't have to be one so

12:56

let's change that that's two

12:57

um that's maybe three i'm gonna put a

13:01

seven here and uh and since

13:05

cubed okay so 2 plus 3 z minus

13:08

7 z squared plus z cubed equals 0.

13:10

there's a cubic

13:12

compute solve numeric

13:17

okay here we're getting three solutions

13:19

which

13:20

are visible so three real solutions by

13:23

which i mean that they are not

13:24

complex and

13:28

okay so what what does our method give

13:30

us if we take

13:31

x of 2 3

13:35

minus 7 and 1 what do we get

13:39

okay that's the exact thing that we get

13:41

and we evaluate numerically

13:43

okay we're getting 12 000 which is

13:45

nowhere near

13:46

any of these okay so this is not even

13:49

close

13:51

all right but let's not despair let's

13:53

let's think about it for a second okay

13:55

so our method

13:58

works well when the coefficient of z is

14:01

is bigger now that opens up the

14:05

possibility that we might be able to

14:07

transform our

14:08

equation okay but maybe

14:11

we can transform our equation

14:16

to get it in a better

14:19

form i.e one more likely

14:24

to produce

14:27

a solution so i want to show you

14:31

what that might look like so suppose

14:33

that we take this

14:35

this expression here and let's say let's

14:37

let

14:42

let's say u equal or might be z

14:46

okay let's let z equal 1 over

14:49

u we'll introduce the reciprocal of z as

14:54

a um

14:57

a new object and then this

15:00

original equation here then this

15:04

becomes that and if we factor that

15:10

and we set it equal to zero this is

15:12

equivalent

15:16

to the new equation where we just take

15:18

this

15:21

numerator and set it equal to zero

15:27

so solving the original equation is the

15:29

same as solving this

15:30

altered equation and maybe i'll put the

15:32

one at the front so it's more in

15:34

standard form

15:36

solving this modified equation for u

15:39

which happens to be 1 over z

15:42

but now this is better

15:47

why is it better well because the

15:49

coefficient of the linear term u

15:51

is now bigger than the other ones it's

15:53

  1. so let's try x

15:55

of x of

15:58

1 minus 7

16:02

3 and 2 and we'll evaluate that

16:07

numerically let's see how that compares

16:11

with solving this thing

16:20

numerically

16:22

one of the solutions is 1.54076

16:26

we are getting 0.154074

16:30

that means the the solution we are

16:33

getting is actually very close to one of

16:35

the solutions

16:36

to this equation namely this one right

16:38

here

16:39

and that's telling us therefore so

16:43

z which is one over u

16:46

which is say one over what we just found

16:53

let's evaluate that that should be a

16:56

solution to the original one

16:59

and or at least close and here is the

17:01

original one it has an approximate

17:02

solution 6.4902922

17:06

and now we get 6.4903585

17:11

so the lesson is that

17:14

yes our current solution does not

17:17

necessarily

17:18

cover all equations but it might be

17:21

that if we're a little bit flexible

17:23

about transforming the equation

17:25

that we can move it into a position

17:28

where our formula will give us a

17:31

solution

17:32

just as we have here now there's a lot

17:35

of questions that are raised here

17:37

okay there's a lot of questions namely

17:40

you know

17:40

what are the conditions um on the

17:44

coefficients that will ensure that we're

17:46

getting

17:47

close to a solution with our um

17:50

with our poly series there's also the

17:54

question of

17:54

how many terms in the poly series do we

17:57

have to go

17:58

in order to try to you know get a

18:00

certain kind of

18:01

a rather small window of approximation

18:05

so that we've

18:05

we've squeezed our solution into a

18:08

rather small interval

18:10

so there's a lot of questions to be

18:11

asked here um but

18:13

the the main thing is that we are we are

18:15

confident that we are

18:17

in possession of a technology which

18:19

actually solves

18:20

cubic equations okay and that's

18:24

really what we're after right that's

18:26

what we're after

18:27

we have found a methodology for solving

18:30

cubic equations which is very different

18:32

from the radical procedure which

18:35

ultimately comes down

18:36

to working with an expression like

18:40

like this one here which ultimately

18:42

comes down to

18:43

computing a matrix of

18:47

values coefficients and uh

18:50

and terms and then creating this poly

18:53

series from it

18:55

so we understand the terms that are

18:57

involved here

18:58

and it's rather predictable but what's

19:01

not so clear for us at this stage are

19:04

these uh

19:05

coefficients so now we really want to

19:07

bear down

19:08

and and start studying these

19:10

coefficients we have something

19:11

interesting

19:12

and we know that it works so now it's a

19:15

deserving of considerable study

Attachments