◀ Back to Note

Tony's Intertwingled Memex • Reference Manual

Automated Audio Amplifier Loop Gain (Electrical & Computer Engineering) Solution

Formulas & Definitions

In professional audio electronics design, an automated gain control circuit stabilizes output volume using an active feedback amplifier loop. The loop amplification gain factor GGG (dimensionless ratio) depends on an input control bias voltage vvv (in Volts, V\text{V}V) and a digital potentiometer feedback resistance rrr (in kilo-ohms, kΩ\text{k}\OmegakΩ, for r>0r > 0r>0):

G(v,r)=v3ln⁡(r)G(v, r) = v^3 \ln(r)G(v,r)=v3ln(r)

  1. Compute the first-order partial derivatives GvG_vGv​ and GrG_rGr​.
  2. Compute the second-order partial derivatives (Gvv,Grr,Gvr,GrvG_{vv}, G_{rr}, G_{vr}, G_{rv}Gvv​,Grr​,Gvr​,Grv​).
  3. Verify Clairaut's Theorem for the mixed partials GvrG_{vr}Gvr​ and GrvG_{rv}Grv​.
  4. Construct the 2×22 \times 22×2 Hessian matrix HG(v,r)\mathbf{H}_G(v, r)HG​(v,r) and evaluate it at the reference bias operating point (v,r)=(2 V,e kΩ)(v, r) = (2\text{ V}, e\text{ k}\Omega)(v,r)=(2 V,e kΩ).
  5. Calculate the Hessian determinant D=det⁡(HG)D = \det(\mathbf{H}_G)D=det(HG​) at (2,e)(2, e)(2,e) and determine whether the gain surface exhibits a local extremum or a saddle behavior at this operating point.

Step-by-Step Solution:

  1. Compute First-Order Partial Derivatives: State the First-Order Partial Derivative Formulas (see Partial Derivatives):

    Gv=∂∂v[v3ln⁡(r)]=3v2ln⁡(r)G_v = \frac{\partial}{\partial v}[v^3 \ln(r)] = 3v^2 \ln(r)Gv​=∂v∂​[v3ln(r)]=3v2ln(r)
    Gr=∂∂r[v3ln⁡(r)]=v3(1r)=v3rG_r = \frac{\partial}{\partial r}[v^3 \ln(r)] = v^3 \left(\frac{1}{r}\right) = \frac{v^3}{r}Gr​=∂r∂​[v3ln(r)]=v3(r1​)=rv3​

  2. Compute Second-Order Partial Derivatives: State the Second-Order Partial Derivative Formulas (see Second-Order Partial Derivatives):

    • Pure Partials:
      Gvv=∂∂v[3v2ln⁡(r)]=6vln⁡(r)G_{vv} = \frac{\partial}{\partial v}[3v^2 \ln(r)] = 6v \ln(r)Gvv​=∂v∂​[3v2ln(r)]=6vln(r)
      Grr=∂∂r[v3r−1]=v3(−r−2)=−v3r2G_{rr} = \frac{\partial}{\partial r}\left[v^3 r^{-1}\right] = v^3 (-r^{-2}) = -\frac{v^3}{r^2}Grr​=∂r∂​[v3r−1]=v3(−r−2)=−r2v3​
    • Mixed Partials:
      Gvr=∂∂r[3v2ln⁡(r)]=3v2(1r)=3v2rG_{vr} = \frac{\partial}{\partial r}[3v^2 \ln(r)] = 3v^2 \left(\frac{1}{r}\right) = \frac{3v^2}{r}Gvr​=∂r∂​[3v2ln(r)]=3v2(r1​)=r3v2​
      Grv=∂∂v[v3r]=3v2rG_{rv} = \frac{\partial}{\partial v}\left[\frac{v^3}{r}\right] = \frac{3v^2}{r}Grv​=∂v∂​[rv3​]=r3v2​
  3. Verify Clairaut's Theorem:

    Gvr=Grv=3v2rG_{vr} = G_{rv} = \frac{3v^2}{r}Gvr​=Grv​=r3v2​
    For all r>0r > 0r>0, the function G(v,r)G(v, r)G(v,r) is infinitely differentiable (C∞C^\inftyC∞), confirming Clairaut's Theorem.

  4. Construct and Evaluate Hessian Matrix at (v,r)=(2,e)(v, r) = (2, e)(v,r)=(2,e):

    HG(v,r)=[GvvGvrGrvGrr]=[6vln⁡(r)3v2r3v2r−v3r2]\mathbf{H}_G(v, r) = \begin{bmatrix} G_{vv} & G_{vr} \\ G_{rv} & G_{rr} \end{bmatrix} = \begin{bmatrix} 6v \ln(r) & \frac{3v^2}{r} \\ \frac{3v^2}{r} & -\frac{v^3}{r^2} \end{bmatrix}HG​(v,r)=[Gvv​Grv​​Gvr​Grr​​]=[6vln(r)r3v2​​r3v2​−r2v3​​]

    • Since ln⁡(e)=1\ln(e) = 1ln(e)=1:
      • Gvv(2,e)=6(2)(1)=12G_{vv}(2, e) = 6(2)(1) = 12Gvv​(2,e)=6(2)(1)=12
      • Grr(2,e)=−23e2=−8e2G_{rr}(2, e) = -\frac{2^3}{e^2} = -\frac{8}{e^2}Grr​(2,e)=−e223​=−e28​
      • Gvr(2,e)=3(22)e=12eG_{vr}(2, e) = \frac{3(2^2)}{e} = \frac{12}{e}Gvr​(2,e)=e3(22)​=e12​
        HG(2,e)=[1212e12e−8e2]\mathbf{H}_G(2, e) = \begin{bmatrix} 12 & \frac{12}{e} \\ \frac{12}{e} & -\frac{8}{e^2} \end{bmatrix}HG​(2,e)=[12e12​​e12​−e28​​]
  5. Compute Hessian Determinant and Classify Geometry:

    D=det⁡(HG)=GvvGrr−(Gvr)2=(12)(−8e2)−(12e)2D = \det(\mathbf{H}_G) = G_{vv} G_{rr} - (G_{vr})^2 = (12)\left(-\frac{8}{e^2}\right) - \left(\frac{12}{e}\right)^2D=det(HG​)=Gvv​Grr​−(Gvr​)2=(12)(−e28​)−(e12​)2
    D=−96e2−144e2=−240e2≈−2407.389≈−32.48D = -\frac{96}{e^2} - \frac{144}{e^2} = -\frac{240}{e^2} \approx -\frac{240}{7.389} \approx -32.48D=−e296​−e2144​=−e2240​≈−7.389240​≈−32.48
    Because D<0D < 0D<0, the gain surface possesses negative Gaussian curvature, confirming that the operating point (2,e)(2, e)(2,e) is on a hyperbolic saddle geometry. In feedback control loop design, negative Hessian determinants indicate parameter trade-offs: increasing voltage boosts gain while increasing resistance suppresses gain, requiring active closed-loop stabilization.