How does an operational amplifier compare two voltages or boost a small signal?
The operational amplifier as a comparator and as an inverting amplifier, including calculating the voltage gain and output voltage of an inverting amplifier.
An SQA National 5 Engineering Science answer on the operational amplifier, covering its use as a comparator that switches when two input voltages cross, the inverting amplifier configuration, and calculating the voltage gain and output voltage from the feedback and input resistors.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this key area is asking
The SQA wants you to know the operational amplifier (op-amp) in two roles: as a comparator that decides which of two voltages is larger, and as an inverting amplifier whose voltage gain is set by two resistors.
The op-amp as a comparator
This is extremely useful in control. Feed a sensing voltage (from an LDR or thermistor divider) to one input and a fixed reference voltage to the other, and the comparator output switches the moment the sensed voltage crosses the reference. That output can then drive a transistor and an output device.
The reference voltage is usually set with a second voltage divider, often one with a variable resistor so the switching point can be adjusted. This is exactly how a frost alarm or a thermostat chooses the temperature at which it acts: turning the variable resistor moves the reference voltage, which moves the threshold at which the comparator flips. Because the output snaps cleanly between high and low rather than changing gradually, the comparator gives a sharp, reliable switch from a smoothly varying sensor signal.
The op-amp as an inverting amplifier
A small signal (for example, from a microphone or sensor) is often too small to be useful and must be amplified. The inverting amplifier uses one input resistor and one feedback resistor to set a precise gain.
So the output voltage is . A larger or smaller gives a larger gain.
Why the op-amp matters
The op-amp gives you two of the most useful processing blocks in the course: a precise comparator for threshold switching, and an amplifier for boosting weak signals. Both turn up in control circuits and both lead naturally into a transistor output stage.
Try this
Q1. State what a comparator does. [1 mark]
- Cue. It compares two input voltages and switches its output high or low depending on which input is higher.
Q2. An inverting amplifier has and . Calculate the gain. [2 marks]
- Cue. .
Q3. An inverting amplifier of gain has an input of . Find the output. [2 marks]
- Cue. .
Exam-style practice questions
Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
SQA N5 style3 marksAn inverting amplifier has a feedback resistor of 100 kohm and an input resistor of 20 kohm. Calculate its voltage gain.Show worked answer →
Use the inverting amplifier gain relationship.
Relationship: , where is the feedback resistor and the input resistor.
Substitution: .
The gain is : the output is 5 times the input and inverted (opposite sign). Markers reward selecting the relationship, substituting (the kilo-ohms cancel), and stating the gain, including the minus sign or noting the inversion.
SQA N5 style3 marksAn inverting amplifier has a gain of -8. An input voltage of +0.30 V is applied. Calculate the output voltage.Show worked answer →
Use the definition of gain to find the output.
Relationship: , so .
Substitution: .
The output is : 8 times larger and opposite in sign to the input. Markers reward selecting the relationship, substituting and giving the output in volts with the correct (negative) sign.
Related dot points
- The voltage divider and input transducers: calculating the output voltage of a divider and using the LDR and thermistor to make light- and temperature-sensing circuits.
An SQA National 5 Engineering Science answer on the voltage divider and input transducers, covering the divider equation, how the output voltage splits in proportion to resistance, and how an LDR or thermistor makes a light- or temperature-sensing circuit that produces a changing voltage.
- Output devices and transistor switching: common output transducers and using a transistor as an electronic switch driven by a sensing circuit, including a protective diode.
An SQA National 5 Engineering Science answer on output devices and transistor switching, covering output transducers such as the lamp, LED, buzzer and motor, how a transistor acts as an electronic switch turned on by a small base voltage, the use of a series resistor for an LED, and a protective diode across a motor coil.
- Analogue electronics: voltage, current and resistance, Ohm's law, electrical power, and combining resistors in series and in parallel.
An SQA National 5 Engineering Science answer on analogue electronics, covering voltage, current and resistance, Ohm's law V equals IR, electrical power P equals IV, and how to combine resistors in series and in parallel in a circuit.
- Universal systems diagrams: representing an electronic or control system as input, process and output sub-systems using block diagrams.
An SQA National 5 Engineering Science answer on the universal systems approach, covering input, process and output sub-systems, drawing and interpreting block diagrams, the meaning of feedback, and identifying real components within each block.
Sources & how we know this
- SQA National 5 Engineering Science Course Specification — SQA (2017)
- SQA Engineering Science Data Booklet National 4/5 — SQA (2017)