Op-Amp Input Bias Current.
When studying op-amps, people often consider the ideal model, so when it comes to real circuits certain questions arise. One of them is: what is the resistor Rb in the circuit below for?
Why does this question arise?
Because no current flows through the inputs of an ideal op-amp, so it doesn't need such a resistor; you'll only find it in a real circuit. It really is a strange resistor, and its purpose isn't immediately obvious.
The internet says it is needed to combat errors caused by the bias current. And here another question arises: what is this current?
To answer this question, we need to look at the internal structure of the op-amp inputs.

The picture shows that the transistor bases are connected to current sources, which create the bias needed for them to operate. Due to imperfections in the manufacturing process, the current sources deliver a current that differs by a few percent from what is needed. These remaining few percent, needed for the input stage to work properly, are called the bias current. Interestingly, it can flow in any direction: in one direction on one input and in the other direction on the other.
I think it is now clear that the Rb resistors shown in the first figure allow the bias currents to be taken into account, because as they flow through the resistor they create a voltage drop across it. Without these resistors the bias currents are simply not accounted for, and this leads to an error.
Since the currents flowing through the non-inverting and inverting pins differ, the datasheet specifies the average current flowing through a pin, the Input Bias Current. It is calculated as half the sum of the input currents. In addition to the bias current, the Input Offset Current is also specified, which shows the permissible current difference between the inputs.
Why does this question arise?
Because no current flows through the inputs of an ideal op-amp, so it doesn't need such a resistor; you'll only find it in a real circuit. It really is a strange resistor, and its purpose isn't immediately obvious.
The internet says it is needed to combat errors caused by the bias current. And here another question arises: what is this current?
To answer this question, we need to look at the internal structure of the op-amp inputs.

The picture shows that the transistor bases are connected to current sources, which create the bias needed for them to operate. Due to imperfections in the manufacturing process, the current sources deliver a current that differs by a few percent from what is needed. These remaining few percent, needed for the input stage to work properly, are called the bias current. Interestingly, it can flow in any direction: in one direction on one input and in the other direction on the other.
I think it is now clear that the Rb resistors shown in the first figure allow the bias currents to be taken into account, because as they flow through the resistor they create a voltage drop across it. Without these resistors the bias currents are simply not accounted for, and this leads to an error.
Since the currents flowing through the non-inverting and inverting pins differ, the datasheet specifies the average current flowing through a pin, the Input Bias Current. It is calculated as half the sum of the input currents. In addition to the bias current, the Input Offset Current is also specified, which shows the permissible current difference between the inputs.
