1 00:00:02,200 --> 00:00:06,736 The composition of two functions G&F is the function we get from 2 00:00:06,736 --> 00:00:11,650 doing at 1st and then G. So if we let F of X. 3 00:00:13,470 --> 00:00:16,575 Be given by F of X equals X squared. 4 00:00:17,620 --> 00:00:19,120 And we let G of X. 5 00:00:20,780 --> 00:00:22,670 BX +3. 6 00:00:24,320 --> 00:00:30,365 Then GF of X is given by. Well, we do F of X first and 7 00:00:30,365 --> 00:00:31,574 that's X squared. 8 00:00:32,940 --> 00:00:34,965 Then we apply G to the whole of that. 9 00:00:38,230 --> 00:00:40,678 Now, since G just adds 3 onto a 10 00:00:40,678 --> 00:00:45,194 number. G of X squared is X squared +3. 11 00:00:46,430 --> 00:00:49,174 So GF of X is X squared +3. 12 00:00:50,890 --> 00:00:52,090 Here's another example. 13 00:00:54,610 --> 00:00:56,444 This time will let F of X. 14 00:00:57,050 --> 00:00:59,914 Be given by F of X equals 2X. 15 00:01:01,310 --> 00:01:02,660 And we'll have G of X. 16 00:01:04,120 --> 00:01:05,528 Being East The X. 17 00:01:07,710 --> 00:01:12,936 Now to get GFX again, we write down what F of X is. 18 00:01:13,870 --> 00:01:15,070 That was 2X. 19 00:01:17,100 --> 00:01:19,310 And then we apply G to the whole of that. 20 00:01:22,300 --> 00:01:24,595 Now G of X is E to the X. 21 00:01:25,160 --> 00:01:28,500 So G of two X is E to the 2X. 22 00:01:29,690 --> 00:01:33,590 So again we have here GF of X is E to the 2X. 23 00:01:35,060 --> 00:01:38,120 Sometimes the composition of two functions is called the function 24 00:01:38,120 --> 00:01:41,486 of a function, and here's another way of writing it down. 25 00:01:42,770 --> 00:01:49,634 We sometimes writes GF of X as G Little Circle F 26 00:01:49,634 --> 00:01:50,882 of X. 27 00:01:52,750 --> 00:01:55,764 Now you don't have to use this notation yourself, but you 28 00:01:55,764 --> 00:01:58,504 might see it in classes or workbooks, so it's important 29 00:01:58,504 --> 00:01:59,874 to know what it means. 30 00:02:03,920 --> 00:02:06,890 The order in which we compose functions can make a big 31 00:02:06,890 --> 00:02:12,392 difference. If you remember our first example, we had F of X 32 00:02:12,392 --> 00:02:13,628 being X squared. 33 00:02:15,080 --> 00:02:16,148 And G of X. 34 00:02:17,530 --> 00:02:18,919 Being X +3. 35 00:02:21,040 --> 00:02:26,890 We'll see what happens when we do G 1st and then F, so this is 36 00:02:26,890 --> 00:02:28,060 FG of X. 37 00:02:29,410 --> 00:02:33,186 So this time we write down what G of X is first, which is X +3. 38 00:02:36,020 --> 00:02:38,864 Then we apply F to the whole of that. 39 00:02:40,410 --> 00:02:45,772 Now applying the F to something just makes it square, so F of X 40 00:02:45,772 --> 00:02:48,453 +3 is X plus three all squared. 41 00:02:49,860 --> 00:02:54,068 And that X squared plus 6X plus 9. 42 00:02:55,450 --> 00:03:00,550 And if you remember, GF of X was just X squared +3. 43 00:03:02,440 --> 00:03:05,135 So you can see here that changing the order in which 44 00:03:05,135 --> 00:03:07,095 we compose these functions makes a big difference. 45 00:03:14,800 --> 00:03:18,056 Now we've looked at how to compose functions. We look at 46 00:03:18,056 --> 00:03:19,240 how to decompose functions. 47 00:03:20,740 --> 00:03:26,466 If I have a function like each of X equals E to the 2X. 48 00:03:27,360 --> 00:03:30,649 We've already seen that we can write H as a composition 49 00:03:30,649 --> 00:03:31,546 of two functions. 50 00:03:33,130 --> 00:03:40,984 H of X was equal to GF of X, where F of X was 51 00:03:40,984 --> 00:03:46,594 2X and G of X was E to the X. 52 00:03:53,610 --> 00:03:57,346 Let's decompose another function. This time will have 53 00:03:57,346 --> 00:03:59,214 function each of X. 54 00:04:00,480 --> 00:04:01,860 Equals the cube roots. 55 00:04:02,890 --> 00:04:04,938 Of 2X plus one. 56 00:04:07,330 --> 00:04:14,830 The first here we send X to 2X Plus One and then we cube root 57 00:04:14,830 --> 00:04:22,830 the whole thing. So if we let F of XB2X plus one then H of X. 58 00:04:24,380 --> 00:04:25,400 Is the cube root? 59 00:04:26,440 --> 00:04:27,508 Oh, this is X. 60 00:04:29,360 --> 00:04:31,488 So then if we sat G of X. 61 00:04:32,660 --> 00:04:34,150 To be cube root X. 62 00:04:35,770 --> 00:04:37,498 We get that HX. 63 00:04:38,910 --> 00:04:40,470 Is G. 64 00:04:42,000 --> 00:04:47,229 Of F of X. So that's GF of X. 65 00:04:48,420 --> 00:04:50,988 Being able to decompose functions will be very 66 00:04:50,988 --> 00:04:54,198 important when you come to do things like integration and 67 00:04:54,198 --> 00:04:54,519 Differentiation. 68 00:05:02,900 --> 00:05:05,810 Now there is some pairs of functions that can't be 69 00:05:05,810 --> 00:05:13,149 composed. Let's have F of X being minus X squared. 70 00:05:14,000 --> 00:05:15,548 And we'll have G of X. 71 00:05:16,930 --> 00:05:20,500 Being natural log of X. 72 00:05:22,650 --> 00:05:24,358 Now F of X. 73 00:05:25,660 --> 00:05:27,550 Is less than or equal to 0? 74 00:05:28,270 --> 00:05:29,938 Whichever X you pick. 75 00:05:31,190 --> 00:05:36,299 But G of X is only defined if X is greater than 0. 76 00:05:37,410 --> 00:05:40,356 So G of F of X. 77 00:05:41,550 --> 00:05:42,820 Doesn't exist. 78 00:05:53,750 --> 00:05:56,320 There are also some pairs of functions that can be 79 00:05:56,320 --> 00:05:58,633 composed with some ex, but not for other ex. 80 00:05:59,720 --> 00:06:06,463 This time will have F of X equals 4X minus 6. 81 00:06:07,450 --> 00:06:08,810 And we'll have geovax. 82 00:06:11,160 --> 00:06:13,650 Bing square root of X. 83 00:06:15,290 --> 00:06:20,538 Now G of X is only defined if X is greater than or equal to 0. 84 00:06:21,510 --> 00:06:25,570 So GF of X can only be defined if F of X is greater 85 00:06:25,570 --> 00:06:27,020 than or equal to 0. 86 00:06:28,660 --> 00:06:33,632 And F of X is greater than or equal to 0. 87 00:06:34,350 --> 00:06:38,394 Only if X is greater than or equal to three over 2. 88 00:06:42,140 --> 00:06:46,606 So GF of X is only defined. 89 00:06:50,320 --> 00:06:54,739 4X greater than or equal to three over 2. 90 00:06:57,500 --> 00:07:01,364 The values of X for which GF is defined is called the 91 00:07:01,364 --> 00:07:02,330 domain of GF. 92 00:07:08,950 --> 00:07:12,343 The range of a function is the set of all the values of 93 00:07:12,343 --> 00:07:16,660 function can take. So for example, if F 94 00:07:16,660 --> 00:07:19,972 of X was each the X. 95 00:07:21,630 --> 00:07:22,590 The range. 96 00:07:24,330 --> 00:07:29,818 Is given by F of X is greater than zero because E to the X can 97 00:07:29,818 --> 00:07:31,533 only be greater than 0. 98 00:07:32,590 --> 00:07:37,551 Similarly, if we have F of X being say, Sign X. 99 00:07:40,720 --> 00:07:41,740 Then the range. 100 00:07:45,800 --> 00:07:47,420 Is FX. 101 00:07:48,880 --> 00:07:52,926 Is between plus one and minus one. 102 00:08:00,460 --> 00:08:03,310 The range of a composite function must lie within the 103 00:08:03,310 --> 00:08:05,020 range of the second function we 104 00:08:05,020 --> 00:08:07,040 apply. Here's an example to show 105 00:08:07,040 --> 00:08:12,528 you this. Will put down F of X equals X 106 00:08:12,528 --> 00:08:15,624 minus 8 and G of X? 107 00:08:16,990 --> 00:08:18,268 Equals X squared. 108 00:08:19,920 --> 00:08:21,260 Now for F of X. 109 00:08:21,860 --> 00:08:22,780 The range. 110 00:08:25,730 --> 00:08:27,935 Is well F of X can take any value. 111 00:08:35,350 --> 00:08:37,180 But for G of X. 112 00:08:38,470 --> 00:08:42,837 Ranges G of X is greater than or equal to 0. 113 00:08:44,420 --> 00:08:47,511 Now let's look at the range of the composed function GF. 114 00:08:49,190 --> 00:08:55,140 GFX is well F of X is X minus 8. 115 00:08:57,670 --> 00:09:05,006 And G of X squares it, so GF of X is X minus 8 116 00:09:05,006 --> 00:09:12,255 squared. Which is X squared minus 16X plus 117 00:09:12,255 --> 00:09:13,120 64. 118 00:09:15,360 --> 00:09:19,480 But since GF of X is something squared. 119 00:09:20,620 --> 00:09:23,205 And all square numbers are greater than or equal to 0. 120 00:09:24,050 --> 00:09:27,180 GF of X is greater than or equal to 0. 121 00:09:28,450 --> 00:09:29,590 So the range here. 122 00:09:32,320 --> 00:09:36,687 Is GF of X is greater than or equal to 0? 123 00:09:38,260 --> 00:09:43,150 So you can see here that the range of GF is the range of G. 124 00:09:44,510 --> 00:09:46,373 Now let's look at what happens when he composed 125 00:09:46,373 --> 00:09:47,408 and the other way around. 126 00:09:48,780 --> 00:09:50,980 So this time FG books. 127 00:09:53,990 --> 00:09:56,478 What again G of X is X squared? 128 00:09:59,150 --> 00:10:04,880 And applying eh? The whole of that gives us X squared minus 8. 129 00:10:06,410 --> 00:10:09,410 Now, since G of X is greater than or equal to 0. 130 00:10:10,100 --> 00:10:11,786 And here we're taking away 8. 131 00:10:12,590 --> 00:10:16,790 This whole thing must be greater than or equal to minus 8. 132 00:10:18,820 --> 00:10:19,948 So the range. 133 00:10:23,040 --> 00:10:28,070 Is FGX is greater than or equal to minus 8? 134 00:10:29,820 --> 00:10:35,145 Now FG of X is range isn't the same as F, of X is range. 135 00:10:36,030 --> 00:10:38,780 But it certainly contained in the range of F of X. 136 00:10:39,810 --> 00:10:43,170 So these two examples show you that if you're given a composed 137 00:10:43,170 --> 00:10:46,250 function, the range must lie within the range of the second 138 00:10:46,250 --> 00:10:49,330 function you apply, but doesn't have to be all of it.