1 00:00:12,200 --> 00:00:15,320 SARA DON: Here, I present a spherical distribution problem 2 00:00:15,320 --> 00:00:17,870 and how I went about finding an approximate solution 3 00:00:17,870 --> 00:00:20,120 in Mathematica. 4 00:00:20,120 --> 00:00:23,180 If you observe light that passes through a translucent spherical 5 00:00:23,180 --> 00:00:25,460 object or radiation that is transmitted 6 00:00:25,460 --> 00:00:28,220 through a spherical attenuator, the intensity 7 00:00:28,220 --> 00:00:32,800 is not evenly distributed the intensity 8 00:00:32,800 --> 00:00:34,660 of transmitted radiation is described 9 00:00:34,660 --> 00:00:37,330 by this exponential function where the intensity 10 00:00:37,330 --> 00:00:40,270 distribution is governed by the material thickness x 11 00:00:40,270 --> 00:00:41,290 and density lambda. 12 00:00:43,954 --> 00:00:44,995 Let's plot this function. 13 00:00:52,800 --> 00:00:55,870 You can see that as the material thickness x increases, 14 00:00:55,870 --> 00:00:57,840 the intensity of the transmitted radiation 15 00:00:57,840 --> 00:00:59,670 decreases exponentially. 16 00:00:59,670 --> 00:01:02,250 Let's make a function to model the transmitted radiation 17 00:01:02,250 --> 00:01:04,620 intensity in 3D. 18 00:01:04,620 --> 00:01:08,310 In this module, I defined i, i0, and lambda 19 00:01:08,310 --> 00:01:10,640 to be local variables. 20 00:01:10,640 --> 00:01:12,780 c is the function for a hemisphere. 21 00:01:12,780 --> 00:01:14,550 We want to look at the effect on a sphere, 22 00:01:14,550 --> 00:01:16,440 but it's easier to work with a hemisphere. 23 00:01:16,440 --> 00:01:19,350 So I multiplied the hemisphere by 2. 24 00:01:19,350 --> 00:01:21,270 And the function returns intensity 25 00:01:21,270 --> 00:01:23,730 as a function of x and y positioned 26 00:01:23,730 --> 00:01:26,800 where the xy plane is the projection of the sphere. 27 00:01:26,800 --> 00:01:31,300 Let's have a look at the intensity distribution in 3D. 28 00:01:31,300 --> 00:01:33,220 This plot shows us that the intensity 29 00:01:33,220 --> 00:01:34,810 at the edges of the projection is 30 00:01:34,810 --> 00:01:38,170 greater than the intensity in the middle of the projection. 31 00:01:38,170 --> 00:01:40,387 It's a bit hard to visualize, so here's 32 00:01:40,387 --> 00:01:41,470 another way to look at it. 33 00:01:50,300 --> 00:01:52,870 You can see that the intensity is highest around the edges 34 00:01:52,870 --> 00:01:55,300 and lowest in the center of the projection. 35 00:01:55,300 --> 00:01:56,910 I did this by making the arrow length 36 00:01:56,910 --> 00:01:58,150 a function of the intensity. 37 00:02:07,530 --> 00:02:10,250 Now let's see what happens when we replace lambda, which was 38 00:02:10,250 --> 00:02:12,330 a constant, with a function. 39 00:02:12,330 --> 00:02:14,540 This means that we are changing the materials density 40 00:02:14,540 --> 00:02:17,400 as a function of the sphere's radius. 41 00:02:17,400 --> 00:02:19,160 I'm going to alter the density function 42 00:02:19,160 --> 00:02:20,930 I made before so that we can specify 43 00:02:20,930 --> 00:02:22,400 different functions for lambda. 44 00:02:26,190 --> 00:02:27,870 Here, I'll show you three functions 45 00:02:27,870 --> 00:02:30,540 I tried out earlier for lambda to try and make 46 00:02:30,540 --> 00:02:33,210 the intensity constant. 47 00:02:33,210 --> 00:02:36,510 There's a cosine function, a nested sine function, 48 00:02:36,510 --> 00:02:39,030 as suggested by Professor Carter, 49 00:02:39,030 --> 00:02:41,970 and a spherical Bessel function. 50 00:02:41,970 --> 00:02:43,470 Let's check that our function works 51 00:02:43,470 --> 00:02:46,650 on the lambda as a constant case we tried before. 52 00:02:46,650 --> 00:02:49,470 OK, good, it works. 53 00:02:49,470 --> 00:02:51,570 Now let's look at our new density functions. 54 00:02:56,150 --> 00:02:58,360 The first one is the cosine function. 55 00:02:58,360 --> 00:03:00,580 You can see that the shape is not quite a hemisphere 56 00:03:00,580 --> 00:03:04,130 and now looks a bit closer to a cylinder. 57 00:03:04,130 --> 00:03:06,070 Next is the sine function. 58 00:03:06,070 --> 00:03:08,080 It looks a lot like the cosine function, 59 00:03:08,080 --> 00:03:11,410 more like a cylinder than a hemisphere. 60 00:03:11,410 --> 00:03:12,950 And last is the Bessel function. 61 00:03:22,790 --> 00:03:25,997 It also looks a lot like the sine and cosine functions. 62 00:03:30,290 --> 00:03:32,690 Since the sine, cosine, and Bessel functions 63 00:03:32,690 --> 00:03:34,890 are very similar, I'll plot them a different Way 64 00:03:34,890 --> 00:03:37,100 So you can see them more clearly. 65 00:03:37,100 --> 00:03:40,220 Here, the blue line is the Bessel function. 66 00:03:40,220 --> 00:03:43,110 The red line is the cosine function, 67 00:03:43,110 --> 00:03:46,832 and the yellow line is the nested sine function. 68 00:03:46,832 --> 00:03:49,820 OK, since it's hard to see from the 3D plots which 69 00:03:49,820 --> 00:03:52,070 of the density functions is closest to giving me 70 00:03:52,070 --> 00:03:54,260 constant intensity, Professor Carter 71 00:03:54,260 --> 00:03:58,410 suggested that I make a numerical error analysis. 72 00:03:58,410 --> 00:04:00,380 If the intensity were constant, we 73 00:04:00,380 --> 00:04:02,960 would get a cylinder in a 3D plot. 74 00:04:02,960 --> 00:04:05,360 So I found the height of that theoretical cylinder 75 00:04:05,360 --> 00:04:08,750 by finding the minima for each of the intensity functions. 76 00:04:08,750 --> 00:04:10,910 Then I subtracted the volume of the intensity 77 00:04:10,910 --> 00:04:13,400 from the volume of the theoretical cylinder, 78 00:04:13,400 --> 00:04:16,800 and the square of this difference is the error. 79 00:04:16,800 --> 00:04:18,380 Here's a list of the errors. 80 00:04:18,380 --> 00:04:20,850 But it will be easier to compare if I make a bar chart. 81 00:04:29,460 --> 00:04:32,780 OK, now you can clearly see which function is the winner. 82 00:04:32,780 --> 00:04:35,300 When the density is constant, the intensity 83 00:04:35,300 --> 00:04:37,970 is the furthest from being constant. 84 00:04:37,970 --> 00:04:39,470 The sine and cosine functions are 85 00:04:39,470 --> 00:04:43,370 much closer to making the intensity constant. 86 00:04:43,370 --> 00:04:44,990 But the spherical Bessel function 87 00:04:44,990 --> 00:04:48,740 definitely makes the most even intensity distribution. 88 00:04:48,740 --> 00:04:51,620 There is no perfect solution because at the limit 89 00:04:51,620 --> 00:04:54,020 of the edge of the sphere, the material thickness 90 00:04:54,020 --> 00:04:54,770 goes to zero. 91 00:04:54,770 --> 00:04:57,879 And therefore, the density function must go to infinity. 92 00:04:57,879 --> 00:04:59,420 But it looks like the Bessel function 93 00:04:59,420 --> 00:05:02,020 makes a good approximation.