0:00:00.000,0:00:04.755 >> Now, let's do an example with our non-inverting operational amplifier. 0:00:04.755,0:00:06.960 So, here comes an example. 0:00:06.960,0:00:09.750 Let's start with our non-ideal model. 0:00:09.750,0:00:12.120 This is the non-ideal model and let's connect it 0:00:12.120,0:00:15.195 up in the non-inverting amplifier case that I showed you. 0:00:15.195,0:00:18.120 So, we want to define our gain. 0:00:18.120,0:00:20.340 This way we want to find the circuit gain of 0:00:20.340,0:00:25.305 this amplifier circuit and the gain is defined as the output divided by the input. 0:00:25.305,0:00:28.020 So, let's use some, 0:00:28.020,0:00:29.340 the node-voltage method. 0:00:29.340,0:00:32.100 Let's first consider this node A. 0:00:32.100,0:00:35.505 So, let's consider our currents that are going out this way. 0:00:35.505,0:00:38.520 We know sum of those must be equal to zero. 0:00:38.520,0:00:40.950 So, what voltage do we have here? 0:00:40.950,0:00:43.745 V out minus what voltages over here. 0:00:43.745,0:00:51.560 That is A times Vp minus Vn and divide that by the resistor R0. 0:00:51.560,0:00:54.545 Now, let's consider this value right here, 0:00:54.545,0:00:59.530 V out minus this voltage is Vn. 0:00:59.530,0:01:04.250 We're going to divide that by R1 and that is going to be equal to zero. 0:01:04.250,0:01:08.165 Now, let's do our node at this point. 0:01:08.165,0:01:18.244 We can say Vn minus V out divided by R1 plus Vn minus zero divided by R2, 0:01:18.244,0:01:25.520 plus right here, Vn minus going all the way, 0:01:25.520,0:01:28.440 keep going right there. 0:01:28.440,0:01:34.315 Vn minus Vp divided by Ri and this all equals zero. 0:01:34.315,0:01:36.005 Those are the two values. 0:01:36.005,0:01:38.900 These are the two equations and we'd call them the A equation and 0:01:38.900,0:01:42.320 the B equation that define the two nodes that we have. 0:01:42.320,0:01:44.060 Let's also take a look at the circuit, 0:01:44.060,0:01:45.680 see if there's anything else that we know. 0:01:45.680,0:01:48.875 Because at the moment, we have three unknowns and only two equations. 0:01:48.875,0:01:51.560 We don't know V out, Vn or Vp. 0:01:51.560,0:01:52.925 But if you look right here, 0:01:52.925,0:01:57.695 you can see that Vp is equal to Vs. Because of the way the circuit is hooked up. 0:01:57.695,0:02:01.290 So, let's just substitute that back in for 0:02:01.290,0:02:06.140 Vp in each of those cases right there to make these equations a little bit simple. 0:02:06.140,0:02:07.970 Now we have two unknowns, 0:02:07.970,0:02:12.870 Vn and V out and we have two equations to solve them. 0:02:13.150,0:02:20.255 So, in order to write those as a matrix equation and apply Cramer's rule, 0:02:20.255,0:02:22.310 I've given you a little example here. 0:02:22.310,0:02:24.470 You might want to just stop the video for a minute and 0:02:24.470,0:02:26.720 take a look at the [inaudible] this example. 0:02:26.720,0:02:29.630 I took the two equations right here and I converted 0:02:29.630,0:02:32.630 them into matrix form for V out and Vn. 0:02:32.630,0:02:34.205 Then I applied Cramer's rule. 0:02:34.205,0:02:37.100 You may have to look that up online if you don't remember it from math. 0:02:37.100,0:02:41.120 Let's stop the video right now and do a little bit of practice on 0:02:41.120,0:02:46.910 this particular problem and see that you can get the answer for the gain of this Op Amp. 0:02:47.630,0:02:50.660 Okay, I'm hoping that you spent a little bit of time 0:02:50.660,0:02:53.120 with that example and did the non-ideal case. 0:02:53.120,0:02:59.180 That's the last time you're going to have to do the non-ideal amplifier in this class. 0:02:59.180,0:03:04.790 Now, let's rewrite our node a equation V out minus A times V 0:03:04.790,0:03:12.980 n minus V p divided by R out plus V out minus Vn divided by R1 equals zero. 0:03:12.980,0:03:16.510 Here's the KCL node that I had at node B. 0:03:16.510,0:03:20.855 Now, let's apply our ideal Op Amp equations. 0:03:20.855,0:03:23.585 Remember we know that Vs is equal to Vp. 0:03:23.585,0:03:27.305 But we also know because its ideal that Vp equals Vn. 0:03:27.305,0:03:29.949 So, if Vn equals Vp, 0:03:29.949,0:03:31.440 then this is zero. 0:03:31.440,0:03:35.100 Vn is Vs, Vn is Vs, 0:03:35.100,0:03:40.230 Vn is Vs, and Vn minus Vp is equal to zero. 0:03:40.230,0:03:43.200 Great, our A equation and our B equation, 0:03:43.200,0:03:44.945 we've applied that simplification. 0:03:44.945,0:03:46.885 Do we need to apply anything for the currents? 0:03:46.885,0:03:49.095 No, so we don't need to use that information. 0:03:49.095,0:03:50.600 But keep your eye on this one. 0:03:50.600,0:03:53.995 Remember that the output resistance is zero. We're going to need that. 0:03:53.995,0:03:58.220 Right here this equation gives us the idea that we could solve for V out 0:03:58.220,0:04:02.510 very easily because the only values we have are V out and Vs. 0:04:02.510,0:04:05.270 But remember that this value is zero. 0:04:05.270,0:04:07.220 So, it's like we're dividing by zero. 0:04:07.220,0:04:09.650 This is not a good equation for us to use. 0:04:09.650,0:04:11.930 Let's use the B equation instead. 0:04:11.930,0:04:13.370 So, for the V equation, 0:04:13.370,0:04:18.709 I want to solve for V out and I can say right here there's my V out. 0:04:18.709,0:04:25.995 So, I can say that V out is equal to Vs times one divided by R2, 0:04:25.995,0:04:31.415 plus one divided by R1 and then I have a V out over R1 on the other side. 0:04:31.415,0:04:36.200 So, if I solve this, I can say that V out over Vs and happens to be 0:04:36.200,0:04:43.760 my gain is going to multiply this thing out R1 plus R2 over R1 R2. 0:04:43.760,0:04:46.340 Then I'm going to bring this R1 over to the other side, 0:04:46.340,0:04:48.100 see this R1 came over here. 0:04:48.100,0:04:52.160 So, now my R1 cancel out and my gain which is my output 0:04:52.160,0:04:56.210 divided by my input is R1 plus R2 over R2. 0:04:56.210,0:05:00.320 Awesome. If we actually calculate that for the numbers that we have here, 0:05:00.320,0:05:01.520 the value is five. 0:05:01.520,0:05:06.860 If we had calculated it using the non-ideal case, it was 4.99975. 0:05:06.860,0:05:11.330 So, this is a very good approximation for an ideal Op Amp. 0:05:11.330,0:05:15.240 This is how we are going to do our problems in the future. 0:05:15.740,0:05:19.775 So remember, that the circuit gain depends on a circuit. 0:05:19.775,0:05:21.665 Here's the gain we just derived it. 0:05:21.665,0:05:23.915 Remember saturation is going to take over too. 0:05:23.915,0:05:26.015 We can't make this gain just as large as we want. 0:05:26.015,0:05:30.940 It's controlled by the power supplies that we put on this Op Amp. 0:05:30.940,0:05:34.450 Again, back to our Wild Horse Corral.