0:00:01.670,0:00:05.280 >> The first of the op-amp configurations that we're going 0:00:05.280,0:00:08.250 to consider is known as the non-inverting amplifier. 0:00:08.250,0:00:12.270 It gets its name from the fact that the source voltage to 0:00:12.270,0:00:16.560 be amplified is connected to the non-inverting terminal. 0:00:16.560,0:00:21.315 Because of that, it turns out that the output voltage will be of the same sign, 0:00:21.315,0:00:24.075 S-I-G-N, as the input voltage. 0:00:24.075,0:00:26.495 So, for example, if V_s is a positive voltage, 0:00:26.495,0:00:28.755 the output voltage will also be positive. 0:00:28.755,0:00:31.095 On the other hand, if the input voltage is negative, 0:00:31.095,0:00:33.390 then the output voltage will be negative also. 0:00:33.390,0:00:35.515 The sign is not inverted. 0:00:35.515,0:00:38.030 I have here two different schematics. 0:00:38.030,0:00:41.900 I'd encourage you to stop the video for just a second and convince 0:00:41.900,0:00:46.625 yourself that these two schematics are identical as far as function is concerned. 0:00:46.625,0:00:49.160 The things that you're going to be looking at are that 0:00:49.160,0:00:52.190 the V_s is connected to the non-inverting terminal. 0:00:52.190,0:00:55.355 Of course, the non-inverting terminal is the one that's got the positive sign on it. 0:00:55.355,0:00:57.530 So, if this one is connected to the non-inverting, 0:00:57.530,0:01:00.440 over here, V_s is also connected to the non-inverting. 0:01:00.440,0:01:05.425 So, this amplifier over here is upside down from this op-amp here. 0:01:05.425,0:01:09.305 The other thing that you look at is where does the feedback go. 0:01:09.305,0:01:10.700 We'll talk more about feedback later, 0:01:10.700,0:01:15.065 but suffice for now to say that feedback is the process or the act of 0:01:15.065,0:01:21.560 taking the voltage at the output and running it back to, 0:01:21.560,0:01:25.835 in this case, the negative or the inverting terminal. 0:01:25.835,0:01:27.950 Again, we'll talk more about feedback later, 0:01:27.950,0:01:30.865 but this is referred to as negative feedback. 0:01:30.865,0:01:33.350 You can remember that because the feedback loop comes back 0:01:33.350,0:01:37.385 to the terminal of the negative sign which is the inverting sign. 0:01:37.385,0:01:39.800 So, in both of these feedback circuits, 0:01:39.800,0:01:42.820 we're going from V_out through R_1. 0:01:42.820,0:01:45.470 The node beat between R_1 and R_2 is 0:01:45.470,0:01:48.440 then tabbed and brought back to the inverting terminal. 0:01:48.440,0:01:50.915 Notice, over here, we have the same situation, 0:01:50.915,0:01:52.205 coming from the output, 0:01:52.205,0:01:55.580 going through R_1, connecting to R_2, 0:01:55.580,0:01:59.970 and the node where R_1 and R_2 are connected is connected 0:01:59.970,0:02:04.940 then to the inverting terminal and then brought back the ground. 0:02:04.940,0:02:11.390 Now, let's analyze these op-amps at both of these circuits and see what it is, 0:02:11.390,0:02:13.910 why we might draw it this way under certain circumstances 0:02:13.910,0:02:16.790 and why we might draw it this way under other circumstances. 0:02:16.790,0:02:18.950 Let's start here with the one on the right. 0:02:18.950,0:02:21.320 By drawing it in this configuration, 0:02:21.320,0:02:27.830 it makes it obvious that the output voltage goes through a voltage divider circuit, 0:02:27.830,0:02:34.260 and only a portion of the output voltage is fed back to the inverting terminal. 0:02:34.700,0:02:36.720 In this case here, 0:02:36.720,0:02:38.920 V_n then, 0:02:39.010,0:02:41.630 using our voltage divider formula, 0:02:41.630,0:02:45.250 V_n is equal to the voltage across R_2, 0:02:45.250,0:02:53.430 which is V_out times R_2 over R_1 plus R_2. 0:02:53.430,0:02:57.435 Now, in order to get V_out as a function of V, 0:02:57.435,0:03:01.130 our input, we're going to reverse the roles 0:03:01.130,0:03:04.730 here and multiply both sides by the inverse of this. 0:03:04.730,0:03:06.590 In solving or solving for V_out, 0:03:06.590,0:03:16.225 we get that V_out is equal to V_n times R_1 plus R_2 over R_2. 0:03:16.225,0:03:18.325 Now, we don't want it as a function of V_n. 0:03:18.325,0:03:21.800 We want to know what the output is as a function of the input voltage 0:03:21.800,0:03:26.825 V_s. We now apply one of our ideal op-amp approximations. 0:03:26.825,0:03:29.950 That was the one that referred to as the virtual short. 0:03:29.950,0:03:35.000 That V_p and V_n are going to be so close to each 0:03:35.000,0:03:40.835 other that the difference V_p minus V_n is zero, 0:03:40.835,0:03:45.800 or what we can say then is that V_n is approximately equal to V_p. 0:03:45.800,0:03:49.175 Now, what is V_p? 0:03:49.175,0:03:51.545 Using another op-amp approximation, 0:03:51.545,0:03:55.585 the current going into the input terminals is zero. 0:03:55.585,0:03:58.645 Therefore, I_p is zero. 0:03:58.645,0:04:00.710 There will be no voltage drop across 0:04:00.710,0:04:03.275 V_s because the current going through it is zero. 0:04:03.275,0:04:07.910 So, V_p is in fact just our source voltage V_s. 0:04:07.910,0:04:15.060 So, V_p equals V_s. V_n equals V_p due to the virtual short. 0:04:15.060,0:04:21.820 We have then that V_out again replacing V_n with V_s. 0:04:21.820,0:04:31.225 V_out is equal to V_s times R_1 plus R_2 over R_2. 0:04:31.225,0:04:33.960 Generally speaking, we'll take this and say, well, 0:04:33.960,0:04:38.270 note that R_2 is a denominator that's common to both of those two terms. 0:04:38.270,0:04:46.110 So, we can then have V_out is equal to V_s times R_2 over R_2, 0:04:46.110,0:04:53.350 that's one, plus R_1 over R_2. 0:04:53.350,0:04:57.570 We say that the gain, G, the closed loop gain, 0:04:57.570,0:05:01.640 the gain that we get because of this feedback circuit is equal 0:05:01.640,0:05:08.615 to one plus R_1 plus R_2. 0:05:08.615,0:05:13.940 We're going to refer to that as the gain of the non-inverting amplifier. 0:05:13.940,0:05:16.690 We'll see when we get to the inverting amplifier configuration that 0:05:16.690,0:05:20.540 its gain is just slightly different than this. 0:05:20.540,0:05:24.910 But let's just point out now that V_out is in fact going to be 0:05:24.910,0:05:29.440 the same sign as V_s. R_1 and R_2 are both positive quantities. 0:05:29.440,0:05:32.970 So, the ratio of a positive quantities is positive, 0:05:32.970,0:05:34.670 plus one is a positive number, 0:05:34.670,0:05:38.525 times whatever the sign is on V_s gives us a V_out, 0:05:38.525,0:05:41.785 which is the same sign as V_s. Now, 0:05:41.785,0:05:44.375 let's look at this circuit over here. 0:05:44.375,0:05:50.190 To analyze this, we're going to use a technique that use a node analysis, 0:05:50.190,0:05:56.655 which is an analysis technique that we'll frequently use on op-amp circuits, 0:05:56.655,0:06:02.005 especially as the op-amp circuit gets to be a little bit more complex. 0:06:02.005,0:06:04.450 So, here's the deal. 0:06:04.450,0:06:13.770 This is now V_n. We're going to write a node equation at V_n. But first, 0:06:13.770,0:06:18.630 we're going to note that this voltage here, V_p, 0:06:18.630,0:06:21.640 is going to equal our source voltage. 0:06:21.640,0:06:25.575 As we saw over here, the R_s had no influence on it. 0:06:25.575,0:06:28.315 So, I've left that out of this circuit here. 0:06:28.315,0:06:36.470 So, V_p equals V_s. V_n equals V_p because of the virtual short. 0:06:36.470,0:06:40.200 So, V_n then is going to equal V_s. 0:06:40.200,0:06:50.115 Now, let's write a node equation summing the currents leaving this node. 0:06:50.115,0:06:57.570 The current leaving this node going through R_2 to ground is V_s minus 0:06:57.570,0:07:04.690 zero divided by R_2 plus the current going from this node in this direction. 0:07:04.690,0:07:07.730 It's going to be the voltage across R_1, which is V_s, 0:07:07.730,0:07:16.270 minus V_out divided by R_1, 0:07:16.270,0:07:23.405 and then plus the current going into or leaving this node and going into the op-amp. 0:07:23.405,0:07:26.600 But our ideal op-amp approximation tells us 0:07:26.600,0:07:29.300 that the current going into the input terminal is zero. 0:07:29.300,0:07:31.955 So, we could write a plus zero there. 0:07:31.955,0:07:37.855 But let's that off and simply say that the sum of those two currents must equal zero. 0:07:37.855,0:07:40.215 So, what that's saying is that in fact, 0:07:40.215,0:07:42.055 just as we saw over here, 0:07:42.055,0:07:45.920 the current is going from the output through these two resistors back. 0:07:45.920,0:07:52.520 It's going from the output through these two resistors to ground. 0:07:52.520,0:07:58.355 These two resistors are in series because the current going in here is zero. 0:07:58.355,0:08:03.395 Now, let's solve this equation for V_out in terms of these paths. 0:08:03.395,0:08:11.910 We have V_s factoring out V_s times one over R_2 plus one over 0:08:11.910,0:08:20.950 R_1 minus V_out over R_1 is equal to zero. 0:08:22.490,0:08:26.520 That bring this term over to the other side, and solving for V_0, 0:08:26.520,0:08:36.794 We get then that V_0 is equal to V_s times R_1 times 0:08:36.794,0:08:44.810 one over R_2 plus one over R_1 or distributing that 0:08:44.810,0:08:47.315 through the R_1 over the R_1 gives you the one, 0:08:47.315,0:08:49.190 the R_1 over R_2 gives you the other term, 0:08:49.190,0:08:50.975 and we get the V_out is equal to 0:08:50.975,0:08:59.995 V_s times one plus R_1 over R_2. 0:08:59.995,0:09:02.885 So, the gain terms are the same. 0:09:02.885,0:09:05.195 These two circuits are equivalent 0:09:05.195,0:09:09.870 and that gives you an idea of what the non-inverting amplifier does.