Open in TheBrain

Change of Variable and Integration by Substitution

Wild Egg mathematics courses

3.01K subscribers

SUBSCRIBED

We use the Chain rule to derive the Integration by Substitution formula, and then investigate the remarkable Change of Variable formula that shows that the notion of signed area, even if defined originally in terms of a parametrized curve, is actually independent of that parametrization, in the sense that if we compose with a change of variable, the signed area stays unchanged. Through some examples we will see that this leads us to have a more flexible idea of what a "curve segment" actually means. And we provide a purely algebraic proof, based on Faulhaber's algebraic Derivative D and Integral S, that completely avoids the usual physical or geometric arguments involving limits, and transformations of small or infinitesimal quantities.

00:01

[Music]

00:13

hello everyone I'm Norval burger and

00:16

welcome to the algebraic calculus in

00:18

today's lecture we're going to be

00:19

talking about change of variables and

00:22

integration by substitution so this is a

00:24

standard and important technique for

00:26

helping us to augment our ability to

00:29

integrate and also the actual change of

00:32

variables formula is a really a

00:35

remarkable aspect of the theory of

00:38

integration that we've developed going

00:40

back has to think essentially to live

00:42

notes so recall that for the file hopper

00:45

derivative capital D we have our

00:47

familiar product rule now there's a sort

00:51

of special consequence of this called

00:52

the product power rule that the

00:54

derivative of P to the N is n times P to

00:58

the N minus 1 times D of P for a general

01:01

Pauline umber P and I also remind you of

01:06

the chain rule that if we define the

01:10

composition of two polymers say P circle

01:13

Q of alpha is P of Q of alpha then the

01:18

derivative of the composition P circle Q

01:21

is the composition of the derivative of

01:25

P with Q times the derivative of Q and I

01:31

remind you that this one here follows

01:33

from this one here by induction okay

01:36

once you know how the derivative of the

01:39

product of two things works then you can

01:41

figure out what the derivative of a

01:43

product of n things works by it sort of

01:45

applying it over and over again and then

01:47

to go from here to here it's a question

01:49

of looking at P and sort of separating

01:52

it out P is a polynomial of terms each

01:56

of a certain power and basically

01:57

applying this formula to each one of

02:00

those things okay so that's sort of

02:03

logical structure of these things and

02:04

today we're going to be looking at this

02:05

chain rule and what happens we're sort

02:08

of when we integrate it well we can

02:10

extract from that

02:12

I remind you that when we derive the

02:14

integration by parts formula we combine

02:16

the product rule with the derivative

02:19

integral composition theorem we're gonna

02:21

do the same kind of thing today but

02:23

we're going to combine this thing now

02:25

with a chain rule so this derivative

02:27

integral composition theorem tells us

02:28

what happens if we first integrate and

02:30

then differentiate first of all we get

02:33

back exactly what we started that's the

02:35

identity operation however if we do the

02:38

derivative first and then we integrate

02:41

then we almost get back what we started

02:43

it's the identity minus I 0 that means

02:46

we have to peel off the constant term of

02:50

the polynomial that we're starting with

02:52

that's the actual top element just is

02:55

replacement 0 ok so if we combine this

02:58

with the chain rule we get the algebraic

03:01

integration by substitution formula here

03:04

it is they file harbor integral capital

03:08

S from T to U of this expression the

03:12

derivative of P composed with Q times

03:16

the derivative of Q that equals the

03:21

composition P circle Q evaluated from T

03:24

to you and why is that well because the

03:27

chain rule tells us that the derivative

03:29

of this is exactly what's inside here so

03:33

if we take the integral of this we're

03:37

essentially getting this thing back

03:39

minus the identity minus the zero of

03:43

part of it and we get rid of that zeroth

03:46

part by evaluating the integral between

03:48

two different values T and u the value

03:52

at u minus the value of T then the the

03:55

constant term is disappearing so that's

03:58

why we're just getting this P circle Q

04:00

from T to you that's the integral of

04:02

this composition okay so for an example

04:06

let's calculate the integral from 1 to 3

04:09

of alpha times 1 plus alpha squared to

04:13

the fifth now the tricky is to kind of

04:17

arrange this in your mind so it looks

04:19

like the composition of something with a

04:22

derivative of the thing that we're

04:25

composing

04:26

with so what we can do here in our minds

04:29

is to set P equals alpha to the six over

04:31

six and Q equals one plus alpha squared

04:36

so now the derivative of Q is 2 alpha

04:41

that's more or less that term there and

04:44

the derivative of P will be alpha to the

04:48

fifth and what's appearing here is that

04:51

derivative composed with Q so it's 1

04:55

plus alpha squared to the fifth okay

04:58

so except for a constant term here we're

05:01

almost exactly in the situation of

05:03

having identified how the terms here

05:05

correspond to the terms here by a

05:07

suitable choice of P and Q so this thing

05:12

is in fact we're just sort of

05:15

rearranging it now to make it closer to

05:17

2 what we want so we'll rewrite it as

05:19

integral from 1 to 3 1 plus alpha

05:22

squared to the fifth times 2 alpha now

05:24

and we'll multiply by 1/2 here to

05:26

compensate that to that we've introduced

05:28

there so now we really have this thing

05:31

here is the derivative of P composed

05:35

with Q that's exactly what that is and

05:37

this term here is the derivative of Q so

05:42

the algebraic integration by

05:44

substitution formula tells us that this

05:46

is going to be or the half there and

05:48

then this whole thing will be P Circle Q

05:52

so the P composed with Q so that's that

05:58

inside there that's P Circle Q we're

06:01

taking Q to the sixth power and dividing

06:03

by 6 okay so that's relatively easy we

06:07

just plug in 3 we get 1 plus 9 that's 10

06:11

to the 6th minus 1 plus 1 that's 2 to

06:16

the sixth the 6 comes out front with a

06:18

112 there that's an example of an

06:23

integration by substitution and again

06:25

this is a purely algebraic thing it's

06:27

just at the level of foul Harbor

06:30

integration Feilhaber derivatives just

06:32

purely in terms of polynomials

06:38

right now we come to a really remarkable

06:39

formula closely related to the

06:42

integration by substitution formula this

06:44

is the change of variable formula that

06:47

allows us to re parameterize a curve and

06:53

we still get the same signed area so

06:56

it's telling us that somehow the signed

06:58

area really is associated to the

07:01

geometrical curve whatever that is

07:04

rather than dependent on the particular

07:06

parameter ization that we've chosen but

07:09

we'll see in the examples that it's a

07:11

little bit more subtle than that

07:13

anyway here is the formula for poly

07:15

numbers P Q and R if we take the signed

07:20

area from T to U of the curve defined by

07:24

P circle R and Q circle R that's equal

07:28

to the signed area from R of T to R of U

07:32

of P Q so the original curve may be this

07:37

one here

07:39

defined by P and Q and we're going from

07:42

R of T to R of U that's the same as this

07:45

more complicated composition but

07:49

evaluated at the more simple bounds of T

07:51

and u so this remarkable formula

07:53

suggests that the repr amat rising a

07:55

curve does not actually change signed

07:58

areas and it's essentially an

08:00

observation a key observation of live

08:03

notes okay so now I want to illustrate

08:08

the change of variable formula with a

08:10

series of examples starting with some

08:13

simple ones and then working our way up

08:14

and as we go we're gonna see that what

08:18

exactly a curve is is going to be called

08:21

into question a little bit okay so we're

08:23

gonna have to be flexible or about our

08:24

understanding of the geometry that goes

08:27

with the algebra so let's start with a

08:30

simple case essentially parabola where P

08:34

is alpha and Q is alpha squared okay so

08:37

that's the curve usually called y equals

08:40

x squared and we're going to compose

08:42

these with 1 plus 3 alpha call that R so

08:47

now we have 1 plus 3 alpha 1 plus 3

08:49

alpha squared and we're going to agree

08:51

that we're going

08:52

from zero to one when alpha 0 we have

08:57

0.11 when alphas 1 we have the point 4 4

09:01

squared up there for 16 so we're talking

09:04

about this portion of the curve so let's

09:10

calculate its signed area signed area

09:14

from TD U of P circle our Q circle R so

09:17

the compositions are 1 plus 3 alpha and

09:20

1 plus 3 alpha squared

09:22

okay we're composing 1 plus 3 alpha with

09:26

both of these okay so this is a signed

09:30

area we know how to compute that we can

09:33

use the fundamental theorem of algebra

09:36

calculus saying that we can calculate by

09:39

1/2 of the foul harbor integral from 0

09:42

to 1 of the first term times the

09:45

derivative of the second minus the

09:48

second times the derivative of the first

09:51

ok the derivative of 1 plus 3 alpha

09:53

squared is well there'll be 2 times 1

10:00

plus 3 alpha with another 3 so there

10:03

will be then 1 plus 3 alpha squared with

10:07

a 2 and also a factor of 3 appearing and

10:10

over here the derivative of this is the

10:11

is just 3 so we get 3 times 1 plus 3

10:14

alpha squared and these combine to give

10:16

us 3 times 1 plus 3 alpha squared okay

10:21

this is easy to integrate the integral

10:23

is 1 plus 3 alpha all cubed over 3 you

10:27

can check that the derivative of this is

10:29

what's inside here and we're going from

10:31

a 0 to 1 so we substitute 1 at which

10:35

point we get 4 cubed substitute 0 we get

10:38

1 cubed this thing comes out denominator

10:40

6 there so all together we get 63 over 6

10:45

for the signed area of this thing

10:48

computed from this point of view when

10:51

we're thinking about it as being

10:53

expressed this way with the

10:55

parameterization 1 plus 3 alpha 1 plus 3

10:58

alpha squared from 0 to 1 now on the

11:03

other hand if we just sort of stick with

11:05

the curve peak

11:06

you alpha alpha squared now we have to

11:09

go from R of T to R of you R of T R zero

11:15

is one R of U is four so it's the signed

11:20

area from one to four of alpha alpha

11:23

squared so it's the same curve sort of

11:27

segment geometrically but it's

11:29

parametrized in a different way and this

11:32

integral is very easy to do it's just

11:35

one six because the fundamental formula

11:38

to minus 1 over 2 times 2 plus 1 that's

11:42

1 6 and then there's a power of 3 so

11:46

it's 4 cubed minus 1 cubed and we get

11:48

the same answer so the long and short of

11:52

it is that from going from here to here

11:55

we've Reaper amortized the curve the

11:58

calculation of the integral is then

12:00

different but you end up with the same

12:03

answer

12:04

so the signed area is at least in this

12:07

case independent of the parameterization

12:10

at least we've been able to change from

12:14

this parameterization to this one and

12:16

this signed area has not changed now

12:20

let's have a look at a little bit more

12:21

sophisticated example of this change of

12:23

variables formula so we've got a curve

12:26

that looks like this now given by p

12:29

equals alpha cubed and Q equals 4 plus

12:32

alpha squared and the change of variable

12:35

is given by R equals 1 minus 2 alpha

12:37

plus alpha cubed we're gonna go from T

12:39

equals -2 to u equals 2 so here the two

12:43

expressions that we want to prove equal

12:45

s from R of T to R a view of PQ and s

12:51

from TD U of P circle are Q circle R so

12:55

let's have a look at the first one so P

12:57

and Q are in here and R of T if you plug

13:01

R minus 2 inside there you're going to

13:05

get minus 3 and when you is to plugged

13:11

in here you get value 5 so going from

13:14

minus 3 to 5 integrating alpha cubed 4

13:17

plus alpha squared so by

13:19

linearity this is really two different

13:21

ones it's alpha cubed together with four

13:23

and also alpha cube together with alpha

13:26

squared so we just use the fundamental

13:27

formula quite simply the first of them

13:30

there's a factor of four coming out and

13:32

then the exponents zero and three so we

13:37

get zero minus three and 2 times zero

13:41

plus three and we have to multiply that

13:44

by five cubed minus minus three cubed

13:48

and then the other term involving alpha

13:51

cubed and alpha squared

13:53

well now the constant term will be 2

13:56

minus 3 over 2 times 5 and we have to

14:01

multiply by five to the fifth now

14:03

because the sum of the powers is five so

14:06

five to the fifth minus minus three to

14:08

the fifth and all of this evaluates to

14:11

minus 3,200 4/5 so with the original

14:16

parameterization of alpha cubed and four

14:18

plus alpha squared we're going from here

14:21

all the way up to actually an endpoint

14:24

of 125 that's five cubed so we're

14:30

talking about the signed area determined

14:32

by these two lines here and the curve

14:36

right now the other side of the change

14:39

of variables signed area from T to U of

14:42

the composition P circle R and Q circle

14:45

R okay R is this expression there it is

14:49

cubed that's the P function and here is

14:52

four plus that quantity squared that's

14:57

inside more complicated but the bounds

14:59

are a little bit simpler okay so we can

15:02

apply the fundamental theorem it's this

15:06

quantity here times the derivative of

15:08

this one minus this quantity times the

15:13

derivative of this one and then well

15:16

it's a bit of algebra to work this thing

15:18

out and then you evaluate it from minus

15:21

2 to 2 and you have to integrate it from

15:23

minus 2 to 2 and there's a 1/2 in front

15:25

and turns out that you also get minus

15:28

3204 over 5 now what makes this a little

15:32

bit interesting

15:33

that if we follow this second

15:35

parameterization it's no longer a by

15:38

action okay so what happens to the

15:41

actual point if we actually substituted

15:43

alpha in here and ran from minus 2 to 2

15:46

what would happen is that it would go up

15:49

like this but because of this this is

15:52

this cubic is kind of doing something

15:53

like this so what happens is that the

15:55

point actually moves along certain ways

15:58

and then doubles back before it proceeds

16:01

to the end point so we are no longer

16:06

talking about a by jek ship no longer

16:07

talking about Reaper amat rising just

16:10

the curve itself we're actually

16:11

traversing it and then looping back and

16:13

so on so it's actually a situation

16:15

that's outside their realm of

16:18

application of a lot of traditional

16:20

change of variables formulas this would

16:23

not be covered but it is covered here

16:26

and it is in fact working out very

16:29

beautifully and now with our last

16:32

example I want to show you a phenomena

16:34

that goes beyond the bounds of the

16:37

previous ones and suggests to us that

16:40

maybe we need to think more flexibly

16:42

about what curve actually is so here the

16:47

example is P equals alpha cubed and Q

16:49

equals alpha that's relatively simple

16:51

just this cubic curve alpha cubed alpha

16:56

and we're going to compose it with 1

17:00

plus T alpha minus alpha squared for the

17:03

bounds T equals minus 1/2 u equals 2

17:07

okay so the one side of the equation is

17:11

s from R of T to R of U of P Q so we're

17:15

going from R of T when T is a minus 1

17:18

plug that in there we're going to get

17:20

minus 2 and when plug in 2 we get 1 so

17:25

we're going from minus 2 to 1 just

17:27

integrating alpha cubed + alpha that's

17:30

signed area well that's just a simple

17:33

application of the fundamental formula

17:34

so the difference is minus 2 divided by

17:38

2 times the sum 2 times 4 and then we're

17:42

going 1 to the fourth minus -2 to the

17:45

fourth for B

17:46

hence the three plus one is four and we

17:49

get fifteen over four

17:51

maybe well circle might okay so that's

18:00

relatively easy we're imagining point

18:03

moving along so when we're at minus two

18:08

we're over here at minus 8 and minus two

18:11

and then as alpha increases up to one

18:15

we're just increasing steadily until we

18:17

get to the point 1 1 so this thing here

18:20

is talking about the projectile going

18:23

from here along the curve nicely to the

18:25

end point there ok now we make this

18:28

change a variable we compose these two

18:33

functions with this quadratic function R

18:36

which is 1 plus T alpha minus alpha

18:39

squared it's graph is like an inverted

18:42

parabola okay so what happens there now

18:45

so now we're just going from T to youth

18:47

so signed area from tdu from minus 1 to

18:50

2 of okay here's R cubed because

18:56

composing with P and here is R to the 1

19:00

okay okay so we calculate this this is

19:04

going to be 1/2 of the Feilhaber

19:06

integral from minus 1 to 2 of this

19:10

quantity times the derivative of the

19:11

second one - the second one times the

19:15

derivative of the first one and when we

19:17

calculate that not surprisingly we get

19:20

15 over 4 as the formula tells us we

19:23

should but what's interesting now is

19:26

that here's this graph of y equals 1

19:30

plus 2x - x squared from minus 1 to 2

19:34

and what you can see is that it doesn't

19:38

just proceed between the values of minus

19:42

2 and 1 it actually exceeds the value it

19:45

goes up to the point 2 when x equals 1

19:48

so when x equals 1 we have 2 minus 1

19:52

plus 1 we're actually at the point 2

19:53

there so what's happening there is that

19:59

if we look at this parameterization here

20:03

okay as the parameter is going from

20:08

minus one to two yes we go from here to

20:11

here but we do so in a rather roundabout

20:13

way when we are at the point alpha

20:16

equals one then inside here we're going

20:19

to get two cubed that means that the

20:22

x-coordinate is actually eight so we're

20:24

going here a lot of the parameters

20:26

ticking along and by the time we're at

20:28

the parameter one the point is actually

20:31

out here and then it comes back to here

20:36

so we're actually traversing a path

20:39

which goes beyond the original curve

20:42

that we are considering and this is part

20:46

of the integration that's being done

20:48

here this thing is integrating their

20:51

curve that goes like this

20:53

out to there and comes back so it's not

20:59

just that we're reaper amat rising that

21:01

actual geometrical segment there we are

21:04

somehow able to access other parts of

21:09

this curve so the idea of a segment

21:12

becomes a little bit more ambiguous here

21:14

but in any case the formula is purely

21:19

algebraic okay so what statement is it

21:22

works no matter which way things are

21:24

oriented no matter what the parameters

21:26

are doing it's just an algebraic formula

21:29

and it's really remarkable all the thing

21:31

so now the question is why is it

21:34

actually true so I think the proof that

21:36

I'm presenting to you now is a novel one

21:39

it's different from the ones that you

21:40

usually find so often arguments in this

21:43

direction involves or geometrical

21:45

thinking in terms of little comparisons

21:48

of small intestinal pieces here and here

21:51

under a transformation

21:52

sometimes Leibniz is you know DX over a

21:56

Y times dy or DZ equals DX over DS that

21:59

kind of argument is used the argument

22:02

here is entirely algebraic okay we're

22:06

only dealing with polynomials and

22:07

everything is really algebraic so it's a

22:09

it's a different kind of argument so we

22:11

want to prove this for

22:12

we'll start with this side signed area

22:15

from tdu of P circle our Q circle R so

22:19

the fundamental theorem tells us that we

22:22

can evaluate this in terms of one-half

22:24

Feilhaber integral from t to you of what

22:28

of this first thing which is P circle R

22:32

times the derivative of the second minus

22:35

the second times the derivative of the

22:37

first fair enough

22:39

and now we're going to rewrite this

22:41

because involved here are derivatives of

22:44

compositions and the chain rule tells us

22:47

how to evaluate those derivatives so

22:50

instead of DQ circle R we now have right

22:54

here D of Q circle R times D R that's

22:59

what the chain rule tells us this is

23:01

equal to and over here the D P circle R

23:05

is replaced with D of P circle R times D

23:10

our ok now next line we're still taking

23:16

1/2 final our integral from T to you and

23:18

now we look at this thing here and

23:20

there's a common factor of D R in both

23:22

terms so I'm gonna pull that outside and

23:24

what do we have left

23:25

the other terms are involving all have a

23:29

composition with respect to R so we can

23:33

write this as P times D Q minus Q times

23:38

DP all of that composed with r so each

23:46

one of these individual things is going

23:47

to have an R so I've inserted where the

23:52

variable is and now we recognize well

23:57

here's p DQ minus q DP that's looking

24:00

like kind of an integral and so we're

24:04

going to introduce a new polynomial

24:09

called n it's going to be the foul

24:11

harbor integral of this thing here s of

24:15

p DQ minus q DP so this is a polynomial

24:18

or a poly number and so we can take its

24:21

Feilhaber integral

24:25

and so what we know then is that if we

24:29

take the derivative of this thing so D

24:31

of n if we integrate and then

24:34

differentiate we get right back to where

24:36

we started so then we just get PDQ minus

24:39

QD P so that means in this expression

24:42

here we can replace what's inside this

24:45

little bracket here with D of n that's

24:51

now D of n circle R so it's 1/2

24:54

Feilhaber integral from TD u of D of n

24:57

circle R times D R but now we recognize

25:03

that this is itself a derivative of and

25:06

the circle R that's just the chain rule

25:09

applied to this so we've reduced it to

25:13

something that's an integral of a

25:15

derivative integral from T to you so

25:18

that's quite convenient all right so

25:21

here's where we are so far we have the

25:23

signed area from TD U of P circle our Q

25:27

circle R equals 1/2 Feilhaber integral

25:29

from TD u of D of n circle R ok but take

25:36

the derivative then an integral like

25:38

this it's just basically giving you the

25:41

original thing evaluated from the top

25:44

number minus the value at the bottom

25:46

number so we get 1/2 of n circle R at u

25:51

minus n circle R at T okay but n circle

25:58

R IU is and of our of you because that's

26:00

what the composition means and here

26:02

we're subtracting n of R of T now we're

26:10

going to rewrite this in this way as 1/2

26:17

of capital s from R of T to R of U of P

26:22

DQ minus q DP because what is n well n

26:26

was the integral of P DQ minus q DP ok

26:32

that's what n is so we're taking this

26:34

thing and evaluating it at R of U and

26:37

what

26:38

subtracting the value this at R of T so

26:42

that's exactly what we mean by the this

26:44

notation of integral from R of T to R a

26:47

view of the same quantity okay but now

26:52

we're in a position where we say hey

26:54

that looks familiar that's just the

26:56

fundamental theorem form for the signed

27:01

area from R of T to R of U of P comma Q

27:08

and so this quantity equals this

27:13

quantity and that's the change of

27:16

variables formula with a purely

27:19

algebraic proof so there's much to learn

27:23

I'm knowing wahlburger thanks for

27:26

listening

27:28

[Music]

Attachments