Optimization of an Amplifer Circuit

In summary: Maybe it's simpler to just minimize the sum of squares of the derivatives, neglecting the Gd-1 condition, letting it be what it is. The [nabla]Gd are known as the sensitivities of the circuit to the resistors. You can see how if you had a small change in R1, the output will change by [nabla]Gd*R1. The objective is to minimize this sensitivity.\nabla G_d = \left[\frac {\partial G_d} {\partial R_1}, \frac {\partial G_d} {\partial R_2}, \frac {\partial G_d} {\partial R_3},\frac {\partial G_d} {\partial R
  • #1
SSGD
49
4
The gains of an OP-AMP are listed below:

[tex]G_d = (R_1*R_4+R_2*R_3+2*R_2*R_4)/(2*R_1*(R_3+R_4))[/tex]
[tex]G_s = (R_1*R_4-R_2*R_3)/(R_1*(R_3+R_4))[/tex]
[tex]\frac {\partial G_d} {\partial R_1} = -R_2*(R_3+2*R_4)/(2*R_1^2*(R_3+R_4))[/tex]

My questions is...

Is there a mathematical perform the following:

Differential gain equal to 1 (Gd=1)
Summing gain equal to 1 (Gs=0)
Minimize partial derivatives (This would reduce the sensitivity to the Gains to Resistor Tolerances)

Idea is that if I can minimize the Partial Derivatives then the tolerance of the resistors could be larger and get the same desired results (Gains are 1 and 0 respectively). This isn't about this one specific example. This could be done for most systems that have tolerance stickups that have to be accounted for.

I am looking for a mathematical process to perform the above. Lagrangian doesn't seem to work or I don't truly understand its fully use it for this process.

Thanks
 
Mathematics news on Phys.org
  • #2
SSGD said:
Is there a mathematical process to perform the following:

Differential gain equal to 1 (Gd=1)
Summing gain equal to 1 (Gs=0)
Minimize partial derivatives (This would reduce the sensitivity to the Gains to Resistor Tolerances)
You show three equations in seven variables -- the four resistances, the two gains, and the partial. It's not possible to get a unique solution from such a system of equations.
You mention partial derivatives but included only the partial with respect to R1. With the other three partials, you would then have six equations in ten unknowns. Setting Gs and Gd to specific values would decrease the number of unknowns, but there are still more unknowns than equations.
 
  • #3
Man, I need to proof read my posts before sending them... Sorry for all the errors...
 
  • #4
I didn't want to list all of the partial derivatives. There would we 10 equations in all and only 4 variables. This would be an over determined system.
##G_d = 1##

##G_s = 0##

##min\left(\frac {\partial G_d} {\partial R_1}\right)##
##min\left(\frac {\partial G_d} {\partial R_2}\right)##
##min\left(\frac {\partial G_d} {\partial R_3}\right)##
##min\left(\frac {\partial G_d} {\partial R_4}\right)##
##min\left(\frac {\partial G_s} {\partial R_1}\right)##
##min\left(\frac {\partial G_s} {\partial R_2}\right)##
##min\left(\frac {\partial G_s} {\partial R_3}\right)##
##min\left(\frac {\partial G_s} {\partial R_4}\right)##

I want to hold Gd and Gs fixed and minimize all the partial derivatives. This seems like a constrained least squares problem, but not exactly.
 
Last edited by a moderator:
  • #5
Can you show the circuit that you wrote those equations for?
 
  • #6
A linear approximation for the differential gain and the tolerance could be written as such:

[tex]G_d\left(\vec R+\vec T\right) \approx G_d\left(\vec R\right)+\nabla_\vec R G_d\left(\vec R\right) \cdot \vec T[/tex]

If we assume the tolerances are all equal we would get the following:

[tex]G_d\left(\vec R+\vec T\right) \approx G_d\left(\vec R\right)+\nabla_\vec R G_d\left(\vec R\right) \cdot \left[1,1,...,1\right]T[/tex]

[tex]G_d\left(\vec R+\vec T\right) \approx G_d\left(\vec R\right)+T\left[\sum_{k=0}^n \frac {\partial G_d} {\partial R_k}\right][/tex]

[tex]min\left[\sum_{k=0}^n \frac {\partial G_d} {\partial R_k}\right][/tex]

Lagrangian would be:

[tex]L\left(\vec R,\lambda \right) = \sum_{k=0}^n \frac {\partial G_d} {\partial R_k} +\lambda \left(G_d-1 \right)[/tex]

If we didn't assume equal tolerance then Lagrangian would be:

[tex]L\left(\vec R,\lambda \right) = \sum_{k=0}^n T_k\frac {\partial G_d} {\partial R_k} +\lambda \left(G_d-1 \right)[/tex]

How could we incorporate Gs (Summing Gain) into the Lagrangian or find a better way of doing this?
 
  • #7
Whether it makes sense electronically is not my area of knowledge. But as a mathematical system, as I understand it, it makes some sense.

You have two functions of 4 variables. Each of 8 partial derivatives is simply another function of the variables (obviously not wholly independent). You have two constraints, which still leaves you with effectively 2 free variables. You want to choose these to minimize 8 other expressions. This makes it overdetermined. What you want is then some rule for overall minization. For example, you could say you want minimize sum of squares of partials over the two free variables. You have to pick what you want here.

As to solving it, I cannot offer any specific advice.

[edit: my reply is to the description in post #4. I have not looked at #7, and don’t intend to.]
 
Last edited:
  • Like
Likes mfb and berkeman
  • #8
PAllen said:
As to solving it, I cannot offer any specific advice.
In principle you can express the quantity you want to minimize as function of two unknowns, and then minimize it as usual (calculate the derivatives, set them to zero). This will probably be extremely messy but it is possible, at least numerically in the last step. Note that you can solve for two resistances based on the gain equations, so you can express everything as function of two resistances explicitly.
In practice plugging everything into suitable software and scanning over the parameter space is easier.@SSGD: You probably don't want to minimize the derivatives directly, because they will get smaller if you make all resistances larger by the same factor. Take the derivatives multiplied by the resistances to get a more meaningful quantity to minimize.
 
  • #9
MFB is this more in line with the idea of "Take the derivatives multiplied by the resistances to get a more meaningful quantity to minimize"

Most resistors tolerances are in a +/-% of the value of the resistor.

[tex]G_d\left(\left(I+P\right)\vec R\right) \approx G_d\left(\vec R\right)+\nabla_\vec R G_d\left(\vec R\right) \cdot P\vec R[/tex]

[tex]L\left(\vec R,\lambda \right) = \sum_{k=0}^n P_kR_k\frac {\partial G_d} {\partial R_k} +\lambda \left(G_d-1 \right)[/tex]
 
  • #10
Where do all the new symbols come from?

I meant ##min\left(R_1 \frac {\partial G_d} {\partial R_1}\right)##
 
  • #11
Okay. I will see if I can write a little program to minimize the above expression.
 
  • #12
So I made a little program to try to solve this and in doing so I realized a few things and started doing some reading to see if I could find more answers.

I need to explain a few things. All I did with the below expression is factor the R vector and defined P as the percent tolerance matrix which would be a diagonal matrix. The two expressions could we equal.

[tex]\vec R+\vec T=\left(I+P\right)\vec R [/tex]

The Tk and Pk I my mind would weight the different partial derivatives against each other. So if the weight (tolerance) was small the partial wouldn't need to be as small in comparison to a weight (tolerance) that was large which would need to make the partial smaller.

I realized I didn't want to minimize all the partial derivative expressions. I only have two objective functions to minimize. They are listed below.

[tex]min\left[\sum_{k=0}^n T_k\frac {\partial G_d} {\partial R_k}\right][/tex]

[tex]min\left[\sum_{k=0}^n T_k\frac {\partial G_s} {\partial R_k}\right][/tex]

or from the information mfb listed

[tex]min\left[\sum_{k=0}^n P_kR_k\frac {\partial G_d} {\partial R_k}\right][/tex]

[tex]min\left[\sum_{k=0}^n P_kR_k\frac {\partial G_s} {\partial R_k}\right][/tex]

Secondly I realized this is a multiple objective constrained non-linear least squares problem and I would have to define a function to minimize that would weight the two objective functions against each other. Below is the expression for the function to minimize.

[tex]F\left(\vec R,\alpha,\beta,A,B \right) = \left[A\left(0-\sum_{k=0}^n T_k\frac {\partial G_d} {\partial R_k}\right)^2+B\left(0-\sum_{k=0}^n T_k\frac {\partial G_s} {\partial R_k}\right)^2\right]+\alpha \left(G_d-1\right)+\beta \left(G_s\right)[/tex]

or from mfb the following

[tex]F\left(\vec R,\alpha,\beta,A,B \right) = \left[A\left(0-\sum_{k=0}^n P_kR_k\frac {\partial G_d} {\partial R_k}\right)^2+B\left(0-\sum_{k=0}^n P_kR_k\frac {\partial G_s} {\partial R_k}\right)^2\right]+\alpha \left(G_d-1\right)+\beta \left(G_s\right)[/tex]

I would say to two objective functions are equally important. I can't figure out a way to clearly define if they really are equally important to the sensitivity of the two gains. Below is what I think I would need to optimize to reduce the effects of tolerances on the gains, given the constraints and tolerances.

[tex]F\left(\vec R,\alpha,\beta\right) = \left[\left(\sum_{k=0}^n T_k\frac {\partial G_d} {\partial R_k}\right)^2+\left(\sum_{k=0}^n T_k\frac {\partial G_s} {\partial R_k}\right)^2\right]+\alpha \left(G_d-1\right)+\beta \left(G_s\right)[/tex]

or

[tex]F\left(\vec R,\alpha,\beta\right) = \left[\left(\sum_{k=0}^n P_kR_k\frac {\partial G_d} {\partial R_k}\right)^2+\left(\sum_{k=0}^n P_kR_k\frac {\partial G_s} {\partial R_k}\right)^2\right]+\alpha \left(G_d-1\right)+\beta \left(G_s\right)[/tex]
 
  • #13
If you want to minimize it, the last two terms should have the difference squared.

I had a closer look at the gains. If you want to keep them exact, then you cannot do anything about the derivatives. Introduce the two new parameters X=R1/R2 and Y=R3/R4 and your gains can be written as:

##G_d = \frac{X+Y+2}{2X(1+Y)} = 1## and ##G_s = \frac{X-Y}{X(1+Y)} = 0## where I added the target values. The second equation tells us that ##X=Y##, plugging that into the first one gives ##2X+2 = 2X+2X^2## with the solutions X=+1 or X=-1. The latter would need negative resistances, so X=1 and therefore Y=1 is the only option. This means R1=R2 and R3=R4. You can freely choose these pairs of resistances - it doesn't matter as only the ratio is relevant for the gains.
 

1. What is an amplifier circuit?

An amplifier circuit is an electronic circuit that is used to increase the strength of a signal. This can be done by using active components, such as transistors or operational amplifiers, to amplify the voltage or current of the input signal.

2. Why is optimization of an amplifier circuit important?

The optimization of an amplifier circuit is important because it ensures that the circuit performs at its best and meets the desired specifications. This includes maximizing the gain, minimizing distortion, and minimizing noise to achieve the best possible output signal.

3. What parameters are typically optimized in an amplifier circuit?

The parameters that are typically optimized in an amplifier circuit include gain, bandwidth, input and output impedance, distortion, and noise. These parameters are interrelated, so optimizing one may affect the others.

4. How is an amplifier circuit optimized?

An amplifier circuit can be optimized through various techniques such as choosing the appropriate components, adjusting biasing and feedback, and using simulation tools to analyze and fine-tune the circuit. It may also involve trade-offs between different parameters depending on the specific application.

5. What are the common challenges in optimizing an amplifier circuit?

Some common challenges in optimizing an amplifier circuit include finding the right balance between different parameters, avoiding oscillations or instability, and dealing with non-ideal behaviors of components. It may also require testing and tweaking the circuit multiple times to achieve the desired performance.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
6
Views
762
  • Engineering and Comp Sci Homework Help
Replies
12
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
Replies
3
Views
1K
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
23
Views
345
  • Introductory Physics Homework Help
Replies
6
Views
597
  • Introductory Physics Homework Help
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Electromagnetism
Replies
8
Views
1K
Back
Top