Lesson 6-3: Rates of Change & Advanced Optimization
Focus
- Interpret velocity and acceleration as derivatives.
- Use marginal quantities for decisions in economics.
- Solve related rates via implicit differentiation.
- Handle advanced optimization with constraints.
Prerequisites
- Differentiation rules and chain rule.
- Basic optimization and critical points.
- Comfort with units and modeling constraints.
Motion: Velocity and Acceleration
Quadratic-Drag Model
Consider vertical motion with air resistance simplified as a quadratic term. Let position be meters and use a polynomial surrogate for teaching:
Then
This model differs from any cubic used elsewhere in the course and captures non-constant acceleration.
Event Timing
- Time to peak height: solve for t.
- Feasible interval: if , ensure while airborne.
- Sensitivity: analyze how shifts the peak time and height.
Mega Labs Appendix
Lab A: Tank Draining
- V(t)=pi r^2 h(t), ; dh/dt proportional to -sqrt{h}
- Relate dV/dt to dh/dt and parameters
- Compute instantaneous dh/dt at given h with units
Lab B: Expanding Rectangle
- Area A=xy with dx/dt, dy/dt given
- Find dA/dt at an instant
- Explain sign and magnitude
Lab C: Cooling Coffee
- Newton's law: dT/dt=-k(T-T_a)
- Solve and interpret instantaneous cooling rate
- Discuss effect of k
Lab D: Traffic Flow
- q=k v, with Greenshields v=v_max(1-k/k_j)
- Find dq/dk and optimal density
- Interpret physically
Definitions
Sign conventions matter: negative velocity indicates direction opposite to the positive axis; acceleration shows change in velocity.
Example
If , then:
At t=2, v=-3 (moving negative), a=0 (instantaneous constant speed).
Economics: Marginal Analysis
Definitions
At optimum for smooth P, set MR = MC.
Example
If , , then , optimal at (thousand units), (ten-thousand currency units).
Piecewise Motion & Non-smooth Rates
Consider a vehicle with two phases:
Integrate piecewise to find , ensure continuity at , and discuss differentiability.
Related Rates
Strategy
- Identify variables and given rates (units!).
- Write a constraint equation linking variables.
- Implicitly differentiate with respect to time t.
- Substitute known values at the instant; solve for unknown rate.
Classic Example
A ladder of fixed length L leans against a wall, sliding down: . Differentiate to find dy/dt in terms of dx/dt and x,y.
Advanced Related Rates Examples
Expanding Circle with Constraint
Circle area grows at a constant rate . Find and discuss behavior as r increases.
Cone Filling with Leak
Right cone with radius-height ratio fixed. Inflow , leak proportional to height q_{out}=eta h. Compute .
Express volume with ; then dV/dt=q_{in}-eta h and solve for .
Advanced Optimization with Constraints
Many problems reduce multiple variables to one via constraints. Carefully specify the feasible domain, then differentiate and test. For conceptual enrichment, Lagrange multipliers select extrema subject to smooth constraints (beyond scope but useful context).
Open-Top Cylinder with Fixed Surface
For volume with fixed lateral+base area , express h in terms of r and maximize V(r) on feasible r.
Pipeline Cost with Terrain Penalty
Cost where x is flat distance and the rest crosses rough terrain (penalty b). Optimize x in to minimize cost.
Guided Practice
Set A: Velocity & Acceleration
- Differentiate s(t) to v,a
- Sign analysis and turning points
- Units check
Set B: Marginal Analysis
- Compute MC, MR
- Find optimal output where MR=MC
- Interpret economics units
Set C: Related Rates
- Write constraint
- Implicitly differentiate
- Evaluate at instant with units
Set D: Optimization with Constraint
- Reduce variables
- Differentiate and solve
- Check feasibility and bounds
Projects & Scenarios
Project A: Motion Profile
- Speed/acceleration limits
- Piecewise v(t)
- Feasibility & smoothness
Project B: Inventory Policy
- EOQ with constraint
- Sensitivity to D,S,H
- Units and feasibility
Project C: Signal Timing
- Queue model
- Optimize cycle time
- Practical constraints
Project D: Risk-Limited Plan
- EV with variance penalty
- Select policy
- Report sensitivity
Project E: Pump Scheduling
- Power cost curve
- Meet demand profile
- Optimize switching times
Project F: Warehouse Layout
- Travel-time model
- Decision variables
- Optimize and interpret
Review derivatives concepts in Lesson 6-1 and optimization methods in Lesson 6-2.
Extended Related Rates Bank
Problem A: Shadow Length
- Person walks away from lamp
- Find rate of shadow change
- Units check
Problem B: Conical Tank
- Inflow/leak rates
- dh/dt at instant
- Parameter sensitivity
Problem C: Expanding Sphere
- dV/dt known
- Find dr/dt
- Interpret growth
Problem D: Sliding Ladder
- x^2+y^2=L^2
- Given dx/dt
- Find dy/dt with sign
Problem E: Heating Coil
- T(t) model
- dT/dt at t0
- Units and meaning
Problem F: Draining Tank
- Torricelli form
- Find dh/dt
- Compare with measurement
Advanced Optimization Studio
Studio 1: Production Mix
- Maximize profit: P = 40x + 30y subject to 2x + y ≤ 100, x + 2y ≤ 80.
- Feasible region: vertices (0,0), (50,0), (40,20), (0,40).
- Corner point analysis: P(40,20) = 2200 maximum.
- Optimal: produce 40 units of X, 20 units of Y for $2200 profit.
Studio 2: Transportation Cost
- Minimize cost: C = 2x₁₁ + 3x₁₂ + 4x₂₁ + x₂₂ with supply/demand constraints.
- Supply: x₁₁ + x₁₂ = 50, x₂₁ + x₂₂ = 30. Demand: x₁₁ + x₂₁ = 40, x₁₂ + x₂₂ = 40.
- Solve using transportation simplex or corner point method.
- Optimal allocation minimizes total shipping cost across network.
Studio 3: Portfolio Optimization
- Maximize return: R = 0.08x + 0.12y - 0.001(x² + y²) with x + y ≤ 10000.
- Quadratic objective with linear constraint, interior maximum possible.
- ∇R = (0.08 - 0.002x, 0.12 - 0.002y), set equal to λ(1,1).
- Optimal: balanced portfolio based on risk-return trade-off.
Studio 4: Facility Location
- Minimize sum of distances: f(x,y) = Σᵢ wᵢ√[(x-aᵢ)² + (y-bᵢ)²].
- Weighted Fermat point problem with multiple customer locations.
- Use iterative methods or geometric median algorithms.
- Optimal location balances customer proximity with demand weights.
Studio 5: Resource Allocation
- Budget constraint: c₁x₁ + c₂x₂ + c₃x₃ = B, maximize utility U(x₁,x₂,x₃).
- Lagrange multipliers: ∇U = λ(c₁,c₂,c₃) at optimum.
- Marginal utility per dollar spent must be equal across all goods.
- Optimal spending pattern depends on individual preferences.
Studio 6: Network Flow
- Maximize flow through network with capacity constraints on edges.
- Conservation at nodes: flow in = flow out (except source/sink).
- Linear programming formulation with flow variables on edges.
- Max-flow min-cut theorem determines network bottlenecks.
Studio 7: Inventory Management
- Multi-item EOQ: minimize Σᵢ [(Dᵢ/Qᵢ)Sᵢ + (Qᵢ/2)Hᵢ] subject to warehouse space.
- Space constraint: Σᵢ vᵢQᵢ ≤ V where vᵢ is volume per unit.
- Lagrange method or heuristic allocation rules.
- Balance holding costs against setup costs and space limitations.
Studio 8: Geometric Optimization
- Minimize perimeter of rectangle inscribed in ellipse x²/a² + y²/b² = 1.
- Rectangle vertices: (±x,±y) on ellipse, perimeter P = 4(x+y).
- Constraint: x²/a² + y²/b² = 1, use substitution or Lagrange.
- Optimal rectangle depends on ellipse aspect ratio a/b.
Studio 9: Scheduling Optimization
- Minimize completion time: schedule n jobs on m machines.
- Precedence constraints and machine capacity limitations.
- Critical path method or integer programming formulation.
- Optimal schedule minimizes project duration and resource conflicts.
Studio 10: Energy Optimization
- Minimize energy: E = ½∫[u'(x)]² dx subject to boundary conditions.
- Calculus of variations: Euler-Lagrange equation u''(x) = 0.
- Solution: u(x) = ax + b, linear interpolation minimizes energy.
- Applications: heat distribution, membrane deformation, optimal control.
Summary & Quality Checks
- Use models distinct from other lessons to avoid redundancy.
- Always specify domains and feasibility when optimizing.
- In related rates, annotate units at every step.
- Validate with limiting cases and back-of-the-envelope checks.
Real-World Case Studies
Case Study A: Pharmacokinetics
- Two-compartment model (conceptual)
- Elimination rate via derivative
- Interpret half-life
Case Study B: Wind Farm Output
- Power ~ v^3 model
- Marginal change with wind speed
- Capacity factor discussion
Case Study C: Traffic Ramp Metering
- Throughput vs density
- Optimal setpoint via derivative
- Constraints and safety
Case Study D: Cooling Systems
- Heat transfer rate ~ ΔT
- Optimize coolant flow subject to bounds
- Units sanity check
Quick Reference
Derivative Rules
- Power rule, product rule, quotient rule, chain rule.
- Logarithmic differentiation for products/powers.
- Implicit differentiation for constraints.
Optimization Checks
- Critical points: solve f'(x)=0 and boundary.
- Second-derivative or monotonicity test.
- Feasibility and units sanity check.
Error Diagnostics & Rubric
- Unit mismatch: confirm every computed quantity’s unit.
- Domain violation: mark where expressions are undefined.
- Sign mistakes: check direction conventions explicitly.
- Edge cases: test t=0, large t, and boundary parameters.
FAQ
Q: How do I choose between sign chart and algebraic isolation?
A: Prefer sign charts when factors’ signs vary or denominators appear.
Q: When is Lagrange overkill?
A: Single-variable constrained problems usually suffice with substitution.
Q: Can velocity be zero while acceleration nonzero?
A: Yes, at turning points acceleration often remains nonzero.
Additional Practice Blocks
Block A: Units & Domains
- Check units at each step
- Mark undefined points
- Confirm feasible intervals
Block B: Sensitivity
- Small-Δ parameter change
- Estimate impact on optimum
- Report percent change
Block C: Verification
- Test boundary cases
- Use alternate method cross-check
- Numerical sanity test
Block D: Presentation
- Write assumptions explicitly
- Include diagrams where helpful
- State final answer with units