β—€ Back to Note

Tony's Intertwingled Memex β€’ Reference Manual

Automated Audio AGC Amplifier Loop Stability (Electrical & Computer Engineering) Solution

Formulas & Definitions

An audio electronics hardware engineer in the UNLV Entertainment Engineering & Design program is tuning an automated gain control (AGC) feedback pre-amplifier circuit for live stage microphone feeds. The small-signal total harmonic distortion energy E(v,r)E(v, r)E(v,r) (in microjoules, ΞΌJ\mu\text{J}ΞΌJ) across the feedback loop depends on the input reference bias voltage vvv (in Volts) and the digital feedback resistance parameter rrr (in kilo-ohms).

Circuit network analysis models the distortion energy surface over the operating domain by:

E(v,r)=v2βˆ’4vr+5r2βˆ’6v+4E(v, r) = v^2 - 4vr + 5r^2 - 6v + 4E(v,r)=v2βˆ’4vr+5r2βˆ’6v+4

  1. Formulate the first-order partial derivatives βˆ‚Eβˆ‚v\frac{\partial E}{\partial v}βˆ‚vβˆ‚E​ and βˆ‚Eβˆ‚r\frac{\partial E}{\partial r}βˆ‚rβˆ‚E​ and assemble the gradient vector βˆ‡E(v,r)\nabla E(v, r)βˆ‡E(v,r).
  2. Set up and solve the simultaneous linear system βˆ‡E(v,r)=0\nabla E(v, r) = \mathbf{0}βˆ‡E(v,r)=0 to find all quiescent operating bias points (v0,r0)(v_0, r_0)(v0​,r0​).
  3. Compute the second-order partial derivatives EvvE_{vv}Evv​, ErrE_{rr}Err​, and the cross-derivative EvrE_{vr}Evr​.
  4. Calculate the Hessian discriminant D=EvvErrβˆ’(Evr)2D = E_{vv}E_{rr} - (E_{vr})^2D=Evv​Errβ€‹βˆ’(Evr​)2 and apply the Second Derivative Test to classify the bias point.
  5. In audio hardware design, determine whether this circuit tuning configuration minimizes signal distortion or risks unstable oscillation. State the minimum distortion energy Emin⁑E_{\min}Emin​.

Step-by-Step Solution:

  1. Formulate the Gradient Vector: State the Two-Variable Gradient Formula (defined in The Gradient Vector):

    βˆ‡E(v,r)=βŸ¨βˆ‚Eβˆ‚v,βˆ‚Eβˆ‚r⟩=βˆ‚Eβˆ‚vi^+βˆ‚Eβˆ‚rj^\nabla E(v, r) = \left\langle \frac{\partial E}{\partial v}, \frac{\partial E}{\partial r} \right\rangle = \frac{\partial E}{\partial v}\hat{i} + \frac{\partial E}{\partial r}\hat{j}βˆ‡E(v,r)=βŸ¨βˆ‚vβˆ‚E​,βˆ‚rβˆ‚Eβ€‹βŸ©=βˆ‚vβˆ‚E​i^+βˆ‚rβˆ‚E​j^​
    Compute the partial derivatives:
    βˆ‚Eβˆ‚v=βˆ‚βˆ‚v(v2βˆ’4vr+5r2βˆ’6v+4)=2vβˆ’4rβˆ’6\frac{\partial E}{\partial v} = \frac{\partial}{\partial v}(v^2 - 4vr + 5r^2 - 6v + 4) = 2v - 4r - 6βˆ‚vβˆ‚E​=βˆ‚vβˆ‚β€‹(v2βˆ’4vr+5r2βˆ’6v+4)=2vβˆ’4rβˆ’6
    βˆ‚Eβˆ‚r=βˆ‚βˆ‚r(v2βˆ’4vr+5r2βˆ’6v+4)=βˆ’4v+10r\frac{\partial E}{\partial r} = \frac{\partial}{\partial r}(v^2 - 4vr + 5r^2 - 6v + 4) = -4v + 10rβˆ‚rβˆ‚E​=βˆ‚rβˆ‚β€‹(v2βˆ’4vr+5r2βˆ’6v+4)=βˆ’4v+10r
    The evaluated gradient is:
    βˆ‡E(v,r)=⟨2vβˆ’4rβˆ’6,β€‰βˆ’4v+10r⟩=(2vβˆ’4rβˆ’6)i^+(βˆ’4v+10r)j^\nabla E(v, r) = \langle 2v - 4r - 6, \, -4v + 10r \rangle = (2v - 4r - 6)\hat{i} + (-4v + 10r)\hat{j}βˆ‡E(v,r)=⟨2vβˆ’4rβˆ’6,βˆ’4v+10r⟩=(2vβˆ’4rβˆ’6)i^+(βˆ’4v+10r)j^​

  2. Locate the Quiescent Bias Point: State the Critical Point Condition (defined in Critical Points in Multivariable Functions):

    βˆ‡E(v,r)=0β€…β€ŠβŸΉβ€…β€Š{2vβˆ’4rβˆ’6=0βˆ’4v+10r=0\nabla E(v, r) = \mathbf{0} \implies \begin{cases} 2v - 4r - 6 = 0 \\ -4v + 10r = 0 \end{cases}βˆ‡E(v,r)=0⟹{2vβˆ’4rβˆ’6=0βˆ’4v+10r=0​
    From the second equation:
    10r=4vβ€…β€ŠβŸΉβ€…β€Šv=104r=2.5r10r = 4v \implies v = \frac{10}{4}r = 2.5r10r=4v⟹v=410​r=2.5r
    Substitute v=2.5rv = 2.5rv=2.5r into the first equation:
    2(2.5r)βˆ’4rβˆ’6=0β€…β€ŠβŸΉβ€…β€Š5rβˆ’4r=6β€…β€ŠβŸΉβ€…β€Šr=6Β kΞ©2(2.5r) - 4r - 6 = 0 \implies 5r - 4r = 6 \implies r = 6\text{ k}\Omega2(2.5r)βˆ’4rβˆ’6=0⟹5rβˆ’4r=6⟹r=6Β kΞ©
    Now calculate vvv:
    v=2.5(6)=15Β Vv = 2.5(6) = 15\text{ V}v=2.5(6)=15Β V
    The single quiescent critical bias point is (v0,r0)=(15,6)(v_0, r_0) = (15, 6)(v0​,r0​)=(15,6).

  3. Compute Second-Order Partial Derivatives: State the Second-Order Partial Derivatives (defined in Second-Order Partial Derivatives):

    Evv=βˆ‚βˆ‚v(2vβˆ’4rβˆ’6)=2E_{vv} = \frac{\partial}{\partial v}(2v - 4r - 6) = 2Evv​=βˆ‚vβˆ‚β€‹(2vβˆ’4rβˆ’6)=2
    Err=βˆ‚βˆ‚r(βˆ’4v+10r)=10E_{rr} = \frac{\partial}{\partial r}(-4v + 10r) = 10Err​=βˆ‚rβˆ‚β€‹(βˆ’4v+10r)=10
    Evr=βˆ‚βˆ‚r(2vβˆ’4rβˆ’6)=βˆ’4E_{vr} = \frac{\partial}{\partial r}(2v - 4r - 6) = -4Evr​=βˆ‚rβˆ‚β€‹(2vβˆ’4rβˆ’6)=βˆ’4

  4. Calculate Hessian Discriminant and Classify: State the Hessian Discriminant Formula (defined in Second Derivative Test for Multivariable Functions):

    D=EvvErrβˆ’(Evr)2D = E_{vv}E_{rr} - (E_{vr})^2D=Evv​Errβ€‹βˆ’(Evr​)2
    Substitute the second derivatives:
    D=(2)(10)βˆ’(βˆ’4)2=20βˆ’16=4D = (2)(10) - (-4)^2 = 20 - 16 = 4D=(2)(10)βˆ’(βˆ’4)2=20βˆ’16=4
    Evaluate criteria:

    • D=4>0D = 4 > 0D=4>0
    • Evv=2>0E_{vv} = 2 > 0Evv​=2>0 Since D>0D > 0D>0 and Evv>0E_{vv} > 0Evv​>0, the bias point (15Β V,6Β kΞ©)(15\text{ V}, 6\text{ k}\Omega)(15Β V,6Β kΞ©) is a local minimum.
  5. Engineering Evaluation of Stability and Distortion: Because the critical point is a true local minimum with positive curvature in all parameter directions (D>0,Evv>0D > 0, E_{vv} > 0D>0,Evv​>0), small drift in battery supply voltage vvv or resistor thermal tolerance rrr causes distortion to rise symmetrically rather than inducing divergent feedback runaway. The loop is stably tuned.

    Substitute (15,6)(15, 6)(15,6) into the energy function:

    E(15,6)=(15)2βˆ’4(15)(6)+5(6)2βˆ’6(15)+4E(15, 6) = (15)^2 - 4(15)(6) + 5(6)^2 - 6(15) + 4E(15,6)=(15)2βˆ’4(15)(6)+5(6)2βˆ’6(15)+4
    E(15,6)=225βˆ’360+5(36)βˆ’90+4=225βˆ’360+180βˆ’90+4=βˆ’41Β ΞΌJΒ (relativeΒ toΒ referenceΒ offset)E(15, 6) = 225 - 360 + 5(36) - 90 + 4 = 225 - 360 + 180 - 90 + 4 = -41\ \mu\text{J}\ (\text{relative to reference offset})E(15,6)=225βˆ’360+5(36)βˆ’90+4=225βˆ’360+180βˆ’90+4=βˆ’41Β ΞΌJΒ (relativeΒ toΒ referenceΒ offset)
    The circuit achieves minimal harmonic distortion at v=15Β Vv = 15\text{ V}v=15Β V and r=6Β kΞ©r = 6\text{ k}\Omegar=6Β kΞ©.