Derivatives and Sensitivity In Practice hero
LaboratoryDerivatives and Sensitivity

Derivatives and Sensitivity In Practice

Master secant line limits, algebraic derivative rules, stationary slope conditions, and valuation sensitivity rates through manual calculations.

Work through each problem on paper before expanding the solution details.


Part 1: The Underlying Mechanics Drill

Problem 1: Average Rate of Change for a Linear Function

A server hosting a machine learning inference endpoint incurs compute costs according to the linear function:

f(x)=3x+5f(x) = 3x + 5

where xx represents execution runtime in hours, and f(x)f(x) represents total cost in dollars.

Calculate the average rate of change ΔyΔx\frac{\Delta y}{\Delta x} between x1=1x_1 = 1 hour and x2=4x_2 = 4 hours.

Reveal Solution

Step 1: Compute function values at interval endpoints:

  • At x1=1x_1 = 1: f(1)=3(1)+5=8f(1) = 3(1) + 5 = 8
  • At x2=4x_2 = 4: f(4)=3(4)+5=12+5=17f(4) = 3(4) + 5 = 12 + 5 = 17

Step 2: Calculate differences:

  • Δx=x2−x1=4−1=3\Delta x = x_2 - x_1 = 4 - 1 = 3
  • Δy=f(4)−f(1)=17−8=9\Delta y = f(4) - f(1) = 17 - 8 = 9

Step 3: Evaluate the rate fraction:

ΔyΔx=93=3.0 dollars per hour\frac{\Delta y}{\Delta x} = \frac{9}{3} = \mathbf{3.0 \text{ dollars per hour}}

Takeaway: For any linear function f(x)=mx+cf(x) = mx + c, the average rate of change across any interval is always equal to the constant coefficient m=3.0m = 3.0.


Problem 2: Power Rule Derivative Computation

Given the cubic monomial function:

f(x)=4x3f(x) = 4x^3

Compute the exact algebraic derivative ddx[4x3]\frac{d}{dx}[4x^3] using the power rule.

Reveal Solution

Apply the constant multiplier rule and the power rule:

ddx[c⋅xn]=c⋅nxn−1\frac{d}{dx}[c \cdot x^n] = c \cdot n x^{n-1}

For c=4c = 4 and n=3n = 3:

ddx[4x3]=4⋅ddx[x3]=4⋅(3x3−1)=4⋅(3x2)=12x2\frac{d}{dx}[4x^3] = 4 \cdot \frac{d}{dx}[x^3] = 4 \cdot (3 x^{3-1}) = 4 \cdot (3x^2) = \mathbf{12x^2}

Takeaway: Multiplying the coefficient by the exponent (4×3=124 \times 3 = 12) and decreasing the exponent by 11 (3−1=23 - 1 = 2) gives the exact derivative 12x212x^2.


Problem 3: Polynomial Derivative Evaluation at an Operating Point

Consider the quadratic function:

f(x)=2x2−6x+9f(x) = 2x^2 - 6x + 9
  • Part A: Compute the general derivative function f′(x)f'(x).
  • Part B: Evaluate the instantaneous rate of change at x=3x = 3.
Reveal Solution

Part A: Compute f′(x)f'(x) using term-by-term differentiation:

  • ddx[2x2]=2(2x)=4x\frac{d}{dx}[2x^2] = 2(2x) = 4x
  • ddx[−6x]=−6\frac{d}{dx}[-6x] = -6
  • ddx[9]=0\frac{d}{dx}[9] = 0
f′(x)=4x−6f'(x) = \mathbf{4x - 6}

Part B: Evaluate at x=3x = 3:

f′(3)=4(3)−6=12−6=+6.0f'(3) = 4(3) - 6 = 12 - 6 = \mathbf{+6.0}

Interpretation: At x=3x = 3, the function is increasing at an instantaneous rate of +6.0+6.0 units of output for every 11 unit increase in xx. The tangent slope is positive and uphill.


Problem 4: Stationary Point Calculation (Vertex of a Quadratic Curve)

Given the quadratic error curve:

f(x)=x2−8x+12f(x) = x^2 - 8x + 12
  • Part A: Compute the derivative f′(x)f'(x).
  • Part B: Find the stationary point by solving f′(x)=0f'(x) = 0.
  • Part C: Evaluate the function value at this stationary coordinate.
Reveal Solution

Part A: Compute the derivative:

f′(x)=ddx[x2]−ddx[8x]+ddx[12]=2x−8f'(x) = \frac{d}{dx}[x^2] - \frac{d}{dx}[8x] + \frac{d}{dx}[12] = \mathbf{2x - 8}

Part B: Set derivative to zero and solve for xx:

2x−8=0  ⟹  2x=8  ⟹  x=42x - 8 = 0 \implies 2x = 8 \implies \mathbf{x = 4}

Part C: Evaluate f(4)f(4):

f(4)=(4)2−8(4)+12=16−32+12=−4.0f(4) = (4)^2 - 8(4) + 12 = 16 - 32 + 12 = \mathbf{-4.0}

Geometric Conclusion: At x=4x = 4, the curve reaches its global minimum vertex (4,−4)(4, -4). The tangent line at this point is perfectly flat with slope f′(4)=0.0f'(4) = 0.0.


Problem 5: Directional Sign and Sensitivity Interpretation

An optimization algorithm is evaluating an objective function f(x)f(x). At the current operating point x0=1.5x_0 = 1.5, the calculated derivative is:

f′(1.5)=+5.0f'(1.5) = +5.0

To decrease the value of f(x)f(x), should the algorithm increase or decrease xx? Explain why using the relationship between differentials.

Reveal Solution

Answer: The algorithm must decrease xx (nudge xx in the negative direction).

Mathematical Rationale: The first-order differential relationship states:

Δf≈f′(x)⋅Δx\Delta f \approx f'(x) \cdot \Delta x

Substituting f′(1.5)=+5.0f'(1.5) = +5.0:

Δf≈(+5.0)⋅Δx\Delta f \approx (+5.0) \cdot \Delta x
  • If we increase xx (Δx>0\Delta x > 0), then Δf>0\Delta f > 0 (the function increases).
  • If we decrease xx (Δx<0\Delta x < 0, e.g., Δx=−0.1\Delta x = -0.1), then: Δf≈(+5.0)⋅(−0.1)=−0.5(the function decreases)\Delta f \approx (+5.0) \cdot (-0.1) = \mathbf{-0.5} \quad (\text{the function decreases})

Optimization Takeaway: Gradient descent updates variables in the direction of the negative derivative (−dfdx=−5.0-\frac{df}{dx} = -5.0). When the derivative is positive, step left (decrease xx).


Part 2: Applied Scenario: The VC Valuation Sensitivity Analysis

In Course 1, our venture capital firm models the enterprise post-money valuation of high-growth AI startups.

An early-stage SaaS startup's valuation V(r)V(r) (measured in millions of dollars, $M\char36 M) is modeled as a quadratic function of its monthly recurring revenue (MRR) traction rate rr (measured in units of $100k/month\char36 100\text{k}/\text{month}):

V(r)=0.5r2+2r+10V(r) = 0.5r^2 + 2r + 10

where:

  • rr is the traction rate (r=4r = 4 corresponds to $400k/month\char36 400\text{k}/\text{month} in MRR).
  • V(r)V(r) is the post-money valuation in millions of dollars (at r=0r = 0, base intellectual property valuation is V(0)=$10MV(0) = \char36 10\text{M}).

Problem 6: Step-by-Step Valuation Sensitivity & Marginal Nudge Audit

  • Part A: Compute the general derivative function dVdr\frac{dV}{dr} using the power, linear multiplier, and constant rules.
  • Part B: Evaluate the instantaneous valuation sensitivity dVdr\frac{dV}{dr} at current traction rate r=4r = 4. State the physical units of this derivative.
  • Part C (Marginal Contract Nudge): The startup is negotiating an enterprise contract that will increase its traction rate by Δr=+0.10\Delta r = +0.10 (an additional $10k/month\char36 10\text{k}/\text{month} in MRR).
    1. Use the linear tangent approximation ΔVlinear≈dVdr⋅Δr\Delta V_{\text{linear}} \approx \frac{dV}{dr} \cdot \Delta r to estimate the valuation increase.
    2. Compute the exact valuation increase ΔVexact=V(4.1)−V(4.0)\Delta V_{\text{exact}} = V(4.1) - V(4.0).
    3. Compare the linear estimate against the exact value and explain why the tangent approximation is accurate for small nudges.
  • Part D (Scale Economies & Sensitivity Growth): Calculate the sensitivity derivative at r=1r = 1 versus r=6r = 6. In 2–3 sentences, explain why sensitivity grows as traction expands, and why venture investors evaluate derivative rates when pricing investment rounds.
Reveal Solution

Part A: Analytical Valuation Derivative

Differentiate V(r)=0.5r2+2r+10V(r) = 0.5r^2 + 2r + 10 term-by-term:

  1. ddr[0.5r2]=0.5⋅(2r)=1.0r=r\frac{d}{dr}[0.5r^2] = 0.5 \cdot (2r) = 1.0r = r
  2. ddr[2r]=2\frac{d}{dr}[2r] = 2
  3. ddr[10]=0\frac{d}{dr}[10] = 0
dVdr=r+2\frac{dV}{dr} = \mathbf{r + 2}

Part B: Instantaneous Sensitivity at r=4r = 4

Substitute r=4r = 4 into the derivative:

dVdr∣r=4=4+2=6.0\left. \frac{dV}{dr} \right|_{r=4} = 4 + 2 = \mathbf{6.0}

Physical Units & Meaning: The valuation sensitivity is $6.0M\char36 6.0\text{M} of valuation per unit of traction rate (or $60,000\char36 60{,}000 in enterprise valuation for every $1,000/month\char36 1{,}000/\text{month} in MRR).


Part C: Marginal Contract Nudge Comparison

  1. Linear Tangent Approximation: ΔVlinear≈(dVdr)⋅Δr=6.0⋅(+0.10)=$0.60M(or $600,000)\Delta V_{\text{linear}} \approx \left(\frac{dV}{dr}\right) \cdot \Delta r = 6.0 \cdot (+0.10) = \mathbf{\char36 0.60\text{M}} \quad (\text{or } \char36 600{,}000)

  2. Exact Polynomial Valuation Calculation:

    • At r=4.0r = 4.0: V(4.0)=0.5(4.0)2+2(4.0)+10=0.5(16)+8+10=8+8+10=$26.0MV(4.0) = 0.5(4.0)^2 + 2(4.0) + 10 = 0.5(16) + 8 + 10 = 8 + 8 + 10 = \mathbf{\char36 26.0\text{M}}
    • At r=4.1r = 4.1: V(4.1)=0.5(4.1)2+2(4.1)+10=0.5(16.81)+8.2+10=8.405+8.2+10=$26.605MV(4.1) = 0.5(4.1)^2 + 2(4.1) + 10 = 0.5(16.81) + 8.2 + 10 = 8.405 + 8.2 + 10 = \mathbf{\char36 26.605\text{M}}
    • Exact difference: ΔVexact=26.605−26.000=$0.605M(or $605,000)\Delta V_{\text{exact}} = 26.605 - 26.000 = \mathbf{\char36 0.605\text{M}} \quad (\text{or } \char36 605{,}000)
  3. Comparison and Residual Analysis: Discrepancy=ΔVexact−ΔVlinear=0.605−0.600=$0.005M(or $5,000)\text{Discrepancy} = \Delta V_{\text{exact}} - \Delta V_{\text{linear}} = 0.605 - 0.600 = \mathbf{\char36 0.005\text{M}} \quad (\text{or } \char36 5{,}000) The linear tangent approximation captures 99.17%99.17\% of the exact valuation change. The microscopic $5,000\char36 5{,}000 difference corresponds precisely to the second-order quadratic term: a(Δr)2=0.5(Δr)2=0.5(0.10)2=0.5(0.01)=$0.005M(or 12V′′(r)(Δr)2=12(1.0)(0.01)=$0.005M)a(\Delta r)^2 = 0.5(\Delta r)^2 = 0.5(0.10)^2 = 0.5(0.01) = \mathbf{\char36 0.005\text{M}} \quad (\text{or } \frac{1}{2} V''(r)(\Delta r)^2 = \frac{1}{2}(1.0)(0.01) = \char36 0.005\text{M}) For infinitesimal nudges (drdr), this second-order term approaches zero, making the derivative an exact representation of marginal change.


Part D: Scale Economies & Investor Pricing Leverage

  • At r=1r = 1 ($100k/month\char36 100\text{k}/\text{month} MRR): dVdr∣r=1=1+2=$3.0M valuation per traction unit\left.\frac{dV}{dr}\right|_{r=1} = 1 + 2 = \mathbf{\char36 3.0\text{M} \text{ valuation per traction unit}}
  • At r=6r = 6 ($600k/month\char36 600\text{k}/\text{month} MRR): dVdr∣r=6=6+2=$8.0M valuation per traction unit\left.\frac{dV}{dr}\right|_{r=6} = 6 + 2 = \mathbf{\char36 8.0\text{M} \text{ valuation per traction unit}}

Investor Synthesis: Because the valuation curve is quadratic (0.5r20.5r^2), the derivative dVdr=r+2\frac{dV}{dr} = r + 2 scales linearly with traction. Each incremental dollar of recurring revenue creates more enterprise value at high volume than at early launch due to compounding market dominance and operational leverage. Venture investors compute this instantaneous rate of change to price marginal growth and structure follow-on investment rounds.

Previous
Elementary Power and Sum Derivative Rules