<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="m0056">
  <name>Inverting Amplifiers with Impedances</name>

  <metadata>
  <md:version>2.3</md:version>
  <md:created>2000/08/08</md:created>
  <md:revised>2004/08/10 08:14:46.254 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="dhj">
      <md:firstname>Don</md:firstname>
      
      <md:surname>Johnson</md:surname>
      <md:email>dhj@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="carolrb">
      <md:firstname>Carol</md:firstname>
      
      <md:surname>Bettoney</md:surname>
      <md:email>carolrb@alumni.rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="dhj">
      <md:firstname>Don</md:firstname>
      
      <md:surname>Johnson</md:surname>
      <md:email>dhj@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  

  <md:abstract>Inverting amplifiers with impedances.</md:abstract>
</metadata>
  <content>

    <para id="one"> As long as design requirements are met, the
      input-output relation for the inverting amplifier also applies
      when the feedback and input circuit elements are impedances
      (resistors, capacitors, and inductors).  </para>
    <figure id="opamp">
      <name>opamp</name>
      <media type="image/png" src="opamp11.png"/>
      <caption>
	<m:math>
	  <m:apply>
	    <m:eq/>
	    <m:apply>
	      <m:divide/>
	      <m:ci>
		<m:msub>
		  <m:mi>V</m:mi>
		  <m:mi>out</m:mi>
		</m:msub>
	      </m:ci>
	      <m:ci>
		<m:msub>
		  <m:mi>V</m:mi>
		  <m:mi>in</m:mi>
		</m:msub>
	      </m:ci>
	    </m:apply>
	    <m:apply>
	      <m:minus/>
	      <m:apply>
		<m:divide/>
		<m:ci>
		  <m:msub>
		    <m:mi>Z</m:mi>
		    <m:mi>F</m:mi>
		  </m:msub>
		</m:ci>
		<m:ci>Z</m:ci>
	      </m:apply>
	    </m:apply>
	  </m:apply>
	</m:math>
      </caption>
    </figure>
    <example id="exone">
      <para id="two"> Let's design an op-amp circuit that functions as
	a lowpass filter. We want the transfer function between the
	output and input voltage to be
	<equation id="eq1">
	  <m:math>
	    <m:apply>
	      <m:eq/>
	      <m:apply>
		<m:ci type="fn">H</m:ci>
		<m:ci>f</m:ci>
	      </m:apply>
	      <m:apply>
		<m:divide/>
		<m:ci>K</m:ci>
		<m:apply>
		  <m:plus/>
		  <m:cn>1</m:cn>
		  <m:apply>
		    <m:divide/>
		    <m:apply>
		      <m:times/>
                      <m:imaginaryi/>
                      <m:cn>2</m:cn>
                      <m:pi/>
                      <m:ci>f</m:ci>
		    </m:apply>
		    <m:ci>
		      <m:msub>
			<m:mi>f</m:mi>
			<m:mi>c</m:mi>
		      </m:msub>
		    </m:ci>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:apply>
	  </m:math>
	</equation> 
	where
	<m:math>
	  <m:ci>K</m:ci>
	</m:math> 
	equals the passband gain and   
	<m:math>
	  <m:ci>
	    <m:msub>
	      <m:mi>f</m:mi>
	      <m:mi>c</m:mi>
	    </m:msub>
	  </m:ci>
	</m:math>
	is the cutoff frequency. Let's assume that the inversion
	(negative gain) does not matter.  With the transfer function
	of the above op-amp circuit in mind, let's consider some
	choices.  
	<list id="listone"> 
	  <item>
	    <m:math>
	      <m:apply>
		<m:eq/>
		<m:ci>
		  <m:msub>
		    <m:mi>Z</m:mi>
		    <m:mi>F</m:mi>
		  </m:msub>
		</m:ci>
		<m:ci>K</m:ci>
	      </m:apply>
	    </m:math>,
	    <m:math>
	      <m:apply>
		<m:eq/>
		<m:ci>Z</m:ci>
		<m:apply>
		  <m:plus/>
		  <m:cn>1</m:cn>
		  <m:apply>
		    <m:divide/>
		    <m:apply>
		      <m:times/>
		      <m:imaginaryi/>
		      <m:cn>2</m:cn>
		      <m:pi/>
		      <m:ci>f</m:ci>
		    </m:apply>
		    <m:ci>
		      <m:msub>
			<m:mi>f</m:mi>
			<m:mi>c</m:mi>
		      </m:msub>
		    </m:ci>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:math>.  This choice means the feedback impedance is a
	    resistor and that the input impedance is a series
	    combination of an inductor and a resistor. In circuit
	    design, we try to avoid inductors because they are
	    physically bulkier than capacitors.
	  </item>
	  <item>   
	    <m:math>
	      <m:apply>
		<m:eq/>
		<m:ci>
		  <m:msub>
		    <m:mi>Z</m:mi>
		    <m:mi>F</m:mi>
		  </m:msub>
		</m:ci>
		<m:apply>
		  <m:divide/>
		  <m:cn>1</m:cn>
		  <m:apply>
		    <m:plus/>
		    <m:cn>1</m:cn> 
		    <m:apply>
		      <m:divide/>
		      <m:apply>
			<m:times/>
			<m:imaginaryi/>
			<m:cn>2</m:cn>
			<m:pi/>
			<m:ci>f</m:ci>
		      </m:apply>
		      <m:ci>
			<m:msub>
			  <m:mi>f</m:mi>
			  <m:mi>c</m:mi>
			</m:msub>
		      </m:ci>
		    </m:apply>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:math>,
	    <m:math>
	      <m:apply>
		<m:eq/>
		<m:ci>Z</m:ci>
		<m:apply>
		  <m:divide/>
		  <m:cn>1</m:cn>
		  <m:ci>K</m:ci>
		</m:apply>
	      </m:apply>
	    </m:math>.  Consider the reciprocal of the feedback
	    impedance (its admittance):
	    <m:math>
	      <m:apply>
		<m:eq/>
		<m:apply>
		  <m:inverse/>
		  <m:ci>
		    <m:msub>
		      <m:mi>Z</m:mi>
		      <m:mi>F</m:mi>
		    </m:msub>
		  </m:ci>
		</m:apply>
		<m:apply>
		  <m:plus/>
		  <m:cn>1</m:cn> 
		  <m:apply>
		    <m:divide/>
		    <m:apply>
		      <m:times/>
		      <m:imaginaryi/>
		      <m:cn>2</m:cn>
		      <m:pi/>
		      <m:ci>f</m:ci>
		    </m:apply>
		    <m:ci>
		      <m:msub>
			<m:mi>f</m:mi>
			<m:mi>c</m:mi>
		      </m:msub>
		    </m:ci>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:math>.  Thus, the admittance is a sum of admittances,
	    suggesting the parallel combination of a resistor (value =
	    <m:math>
	      <m:cn>1</m:cn>
	      <m:ci>Ω</m:ci>
	    </m:math>
	    ) and a capacitor (value = 
	    <m:math>
	      <m:apply>
		<m:times/>
		<m:apply>
		  <m:divide/>
		  <m:cn>1</m:cn>
		  <m:ci>
		    <m:msub>
		      <m:mi>f</m:mi>
		      <m:mi>c</m:mi>
		    </m:msub>
		  </m:ci>
		</m:apply>
		<m:ci>F</m:ci>
	      </m:apply>
	    </m:math>).  We have the right idea, but the values (like
	    1 Ω) are not right. Consider the general
	    <m:math>
	      <m:apply>
		<m:times/>
		<m:ci>R</m:ci>
		<m:ci>C</m:ci>
	      </m:apply>
	    </m:math>
	     parallel combination; its admittance is   
	    <m:math>  
	      <m:apply>
		<m:plus/>
		<m:apply>
		  <m:divide/>
		  <m:cn>1</m:cn>
		  <m:ci>
		    <m:msub>
		      <m:mi>R</m:mi>
		      <m:mi>F</m:mi>
		    </m:msub>
		  </m:ci>
		</m:apply>
		<m:apply>
		  <m:times/>
		  <m:imaginaryi/>
		  <m:cn>2</m:cn>
		  <m:pi/>
		  <m:ci>f</m:ci>
		  <m:ci>C</m:ci>
		</m:apply>
	      </m:apply>
	    </m:math>.
	    Letting the input resistance equal   
	    <m:math>
	      <m:ci>R</m:ci>
	    </m:math>,
	    the transfer function of the op-amp inverting amplifier now is
	    <m:math>
	      <m:apply>
		<m:eq/>
		<m:apply>
		  <m:ci type="fn">H</m:ci>
		  <m:ci>f</m:ci>
		</m:apply>
		<m:apply>
		  <m:minus/>
		  <m:apply>
		    <m:divide/>
		    <m:apply>
		      <m:divide/>
		      <m:ci>
			<m:msub>
			  <m:mi>R</m:mi>
			  <m:mi>F</m:mi>
			</m:msub>
		      </m:ci>
		      <m:ci>R</m:ci>
		    </m:apply>
		    <m:apply>
		      <m:plus/>
		      <m:cn>1</m:cn> 
		      <m:apply>
			<m:times/>
			<m:imaginaryi/>
			<m:cn>2</m:cn>
			<m:pi/>
			<m:ci>f</m:ci>
			<m:ci>
			  <m:msub>
			    <m:mi>R</m:mi>
			    <m:mi>F</m:mi>
			  </m:msub>
			</m:ci>
			<m:ci>C</m:ci>
		      </m:apply>
		    </m:apply>
		  </m:apply>
		</m:apply>
	      </m:apply>
	    </m:math>
	  </item>
	</list>
	Thus, we have the gain equal to   
	<m:math>
	  <m:apply>
	    <m:divide/>
	    <m:ci>
	      <m:msub>
		<m:mi>R</m:mi>
		<m:mi>F</m:mi>
	      </m:msub>
	    </m:ci>
	    <m:ci>R</m:ci>
	  </m:apply>
	</m:math>
	and the cutoff frequency   
	<m:math>
	  <m:apply>
	    <m:divide/>
	    <m:cn>1</m:cn>
	    <m:apply>
	      <m:times/>
	      <m:ci>
		<m:msub>
		  <m:mi>R</m:mi>
		  <m:mi>F</m:mi>
		</m:msub>
	      </m:ci>
	      <m:ci>C</m:ci>
	    </m:apply>
	  </m:apply>
	</m:math>.
      </para>
    </example>
    <para id="four">
      Thus, creating a specific transfer function with op-amps does
      not have a unique answer. As opposed to design with passive
      circuits, electronics is more flexible (a cascade of circuits
      can be built so that each has little effect on the others) and
      gain (increase in power and amplitude) can result. To complete
      our example, let's assume we want a lowpass filter that emulates
      what the telephone companies do. Signals transmitted over the
      telephone have an upper frequency limit of about 3 kHz. For
      the second design choice, we require
      <m:math>
	<m:apply>
	  <m:eq/>
	  <m:apply>
	    <m:times/>
	    <m:ci>
	      <m:msub>
		<m:mi>R</m:mi>
		<m:mi>F</m:mi>
	      </m:msub>
	    </m:ci>
	    <m:ci>C</m:ci>
	  </m:apply>
	  <m:apply>
	    <m:times/>
	    <m:cn>3.3</m:cn>
	    <m:apply>
	      <m:power/>
	      <m:cn>10</m:cn>
	      <m:apply>
		<m:minus/>
		<m:cn>4</m:cn>
	      </m:apply>
	    </m:apply>
	  </m:apply>
	</m:apply>
      </m:math>.  Thus, many choices for resistance and capacitance
      values are possible. A 1 μF capacitor and a
      330 Ω resistor; 10 nF and 33 kΩ,
      and 10 pF and 33 MΩ would all theoretically
      work. Let's also desire a voltage gain of ten:
      <m:math>
	<m:apply>
	  <m:eq/>
	  <m:apply>
	    <m:divide/>
	    <m:ci>
	      <m:msub>
		<m:mi>R</m:mi>
		<m:mi>F</m:mi>
	      </m:msub>
	    </m:ci>
	    <m:ci>R</m:ci>
	  </m:apply>
	  <m:cn>10</m:cn>
	</m:apply>
      </m:math>, 
      which means
      <m:math>
	<m:apply>
	  <m:eq/>
	  <m:ci>R</m:ci> 
	  <m:apply>
	    <m:divide/>
	    <m:ci>
	      <m:msub>
		<m:mi>R</m:mi>
		<m:mi>F</m:mi>
	      </m:msub>
	    </m:ci>
	    <m:cn>10</m:cn>
	  </m:apply>
	</m:apply>
      </m:math>. 
      Recall that we must have
      <m:math>
	<m:apply>
	  <m:mo>≪</m:mo>
	  <m:ci>R</m:ci> 
	  <m:ci>
	    <m:msub>
	      <m:mi>R</m:mi>
	      <m:mi>in</m:mi>
	    </m:msub>
	  </m:ci>
	</m:apply>
      </m:math>.  
      As the op-amp's input impedance is about 1 MΩ we don't want   
      <m:math>
	<m:ci>R</m:ci>
      </m:math>
      too large, and this requirement means that the last choice for
      resistor/capacitor values won't work. We also need to ask for
      less gain than the op-amp can provide itself.  Because the
      feedback "element" is an impedance (a parallel resistor
      capacitor combination), we need to examine the gain requirement
      more carefully. We must have
      <m:math>
	<m:apply>
	  <m:mo>≪</m:mo>
	  <m:apply>
	    <m:divide/>
	    <m:apply>
	      <m:abs/>
              <m:ci>
                <m:msub>
                  <m:mi>Z</m:mi>
                  <m:mi>F</m:mi>
                </m:msub>
              </m:ci>
	    </m:apply>
	    <m:ci>R</m:ci> 
	  </m:apply>
	  <m:apply>
	    <m:power/>
	    <m:cn>10</m:cn>
	    <m:cn>5</m:cn>
	  </m:apply>
	</m:apply>
      </m:math> 
      for all frequencies of interest. Thus,   
      <m:math>
	<m:apply>
	  <m:lt/>
	  <m:apply>
	    <m:divide/>
	    <m:apply>
	      <m:divide/>
              <m:ci>
                <m:msub>
                  <m:mi>R</m:mi>
                  <m:mi>F</m:mi>
                </m:msub>
              </m:ci>
              <m:apply>
                <m:abs/>
		<m:apply>
		  <m:plus/>
		  <m:cn>1</m:cn> 
		  <m:apply>
		    <m:times/>
		    <m:imaginaryi/>
		    <m:cn>2</m:cn>
		    <m:pi/>
		    <m:ci>f</m:ci>
		    <m:ci>
		      <m:msub>
			<m:mi>R</m:mi>
			<m:mi>F</m:mi>
		      </m:msub>
		    </m:ci>
		    <m:ci>C</m:ci>
		  </m:apply>
		</m:apply>
              </m:apply>
	    </m:apply>
	    <m:ci>R</m:ci> 
	  </m:apply>
	  <m:apply>
	    <m:power/>
	    <m:cn>10</m:cn>
	    <m:cn>5</m:cn>
	  </m:apply>
	</m:apply>
      </m:math>.
      As this impedance decreases with frequency, the design specification of  
      <m:math>
	<m:apply>
	  <m:eq/>
	  <m:apply>
	    <m:divide/>
	    <m:ci>
	      <m:msub>
		<m:mi>R</m:mi>
		<m:mi>F</m:mi>
	      </m:msub>
	    </m:ci>
	    <m:ci>R</m:ci>
	  </m:apply>
	  <m:cn>10</m:cn>
	</m:apply>
      </m:math> means that this criterion is easily met. Thus, the
      first two choices for the resistor and capacitor values (as well
      as many others in this range) will work well. Additional
      considerations like parts cost might enter into the
      picture. Unless you have a high-power application (this isn't
      one) or ask for high-precision components, costs don't depend
      heavily on component values as long as you stay close to
      standard values. For resistors, having values
      <m:math>
	<m:apply>
	  <m:times/>
	  <m:ci>r</m:ci> 
	  <m:apply>
	    <m:power/>
	    <m:cn>10</m:cn>
	    <m:ci>d</m:ci>
	  </m:apply>
	</m:apply>
      </m:math>, 
      easily obtained values of   
      <m:math>
	<m:ci>r</m:ci>
      </m:math>
      are 1, 1.4, 3.3, 4.7, and 6.8, and the decades span 0-8.
    </para>
    <exercise id="exer1">
      <problem>
	<para id="exer1a">
	  What is special about the resistor values; why these rather
	  odd-appearing values for
	  <m:math>
	    <m:ci>r</m:ci>
	  </m:math>?
	</para>
      </problem>
      <solution>
	<para id="exer1b">
	  The ratio between adjacent values is about  
	  <m:math>
	    <m:apply>
	      <m:root/>
	      <m:cn>2</m:cn>
	    </m:apply>
	  </m:math>.
	</para>
      </solution>
    </exercise>

  </content>
</document>
