📐 Week 03 (Part I: Pre-Calculus Foundations) • Student Lecture Materials
🐍 Download Notebook (.ipynb) 📑 Download Blank Slides (PDF) 📊 Download Dataset (.csv)

Week 03 — Exponentials, Natural Logarithms & Base Switching

Engineering Focus: Mooring Capstan Tension Multiplication, Oil-Quenched Steel Cooling Times, Radioactive Decay & Large Deformation True Strain Companion Dataset: Week03_Quenched_Alloy_Cooling_and_Capstan_Winch_Data.csv


1. “Calculus Made Easy” Intuition: Why Does Nature Pick \(e \approx 2.71828\)?

Suppose a bacteria colony doubles every hour (\(2^t\)), a battery discharges by half every \(10\text{ minutes}\) (\((1/2)^{t/10}\)), and steel cools toward room air smoothly second by second. Every single continuous growth or decay process in nature obeys one central rule: > The rate at which the quantity changes right now is proportional to how much of the quantity currently exists.

Think about compound interest or cooling hot coffee:

The Two-Way Bridge: \(\ln(x)\) Simply Asks “What Exponent Made \(x\)?”

To undo multiplication, use division. To undo squaring, use square roots. To undo \(e^x\)—say, to rescue an unknown time \(t\) trapped up inside an exponent \(e^{-t/\tau}\)—we apply the natural logarithm \(\ln(\cdot)\): \[\ln(e^{\square}) = \square \qquad \text{and} \qquad e^{\ln(\triangle)} = \triangle \quad (\triangle > 0)\] Even better: because any positive base \(b\) equals \(e^{\ln b}\), you never need to panic when a formula uses base \(2\), base \(10\), or base \(1/2\)! Simply rewrite: \[\mathbf{b^x = \left(e^{\ln b}\right)^x = e^{(\ln b) x}}\]

2. Complete Mathematical Derivations & Reference Guide

2.1 Step-by-Step Derivation of True Logarithmic Strain \(\varepsilon_{\text{true}} = \ln(L/L_0)\)

In freshman statics, you define engineering strain as \(\epsilon_{\text{eng}} = \frac{L - L_0}{L_0}\). That works well for tiny steel stretches (\(0.1\%\)), but fails badly for rubber bands or hot metal forging! Suppose you stretch a \(10\text{ cm}\) bar to \(20\text{ cm}\) in two stages: first \(10 \to 15\) (\(+50\%\)), then \(15 \to 20\) (\(+33.3\%\)). Notice \(50\% + 33.3\% = 83.3\% \neq 100\%\)! How do we measure stretch honestly at every tiny step? Sum up all tiny fractional stretches \(\frac{dL}{L}\): \[d\varepsilon_{\text{true}} = \frac{dL}{L} \quad \implies \quad \varepsilon_{\text{true}} = \int_{L_0}^L \frac{dL'}{L'} = \ln(L) - \ln(L_0) = \ln\!\left(\frac{L}{L_0}\right) = \ln(1 + \epsilon_{\text{eng}})\] Now check our two-stage stretch! Stage 1 gives \(\ln(15/10)\), Stage 2 gives \(\ln(20/15)\), and adding them gives \(\ln(15/10) + \ln(20/15) = \ln(20/10) = \ln(2)\)! Logarithmic strain is perfectly additive across arbitrary finite deformations!

2.2 Step-by-Step Capstan Winch Tension Law \(T_{\text{tight}} = T_{\text{slack}}\,e^{\mu\theta}\)

Wrap a rope around a circular post with friction coefficient \(\mu\). Over a tiny wrap slice \(d\theta\), normal force equals \(T\,d\theta\), so friction boosts tension by \(dT = \mu T\,d\theta \implies \frac{dT}{T} = \mu\,d\theta\). Adding all slices from \(0\) to \(\theta\) gives \(\ln(T_2 / T_1) = \mu\theta\), so taking \(e^{(\cdot)}\) yields: \[T_2 = T_1\,e^{\mu\theta} \qquad \iff \qquad \theta = \frac{1}{\mu}\ln\!\left(\frac{T_2}{T_1}\right)\] Look at how fast friction multiplies: just 3 full turns (\(\theta = 6\pi\)) with \(\mu = 0.3\) gives \(e^{0.3(6\pi)} \approx \mathbf{286\times}\) holding force amplification!

2.3 Master Exponential & Logarithm Properties Table

Law / Property Exact Identity Engineering Meaning
Inverse Cancellation \(\ln(e^u) = u,\quad e^{\ln a} = a\) (\(a>0\)) Extracts time \(t\) or ratio from exponents
Product \(\leftrightarrow\) Sum \(\ln(AB) = \ln A + \ln B\) Converts multiplicative decibels/strains into sums
Exponent Drop Rule \(\ln(A^p) = p\ln A\) Pulls unknown exponents down onto ground level
Base-Switching Law \(b^x = e^{(\ln b)x},\quad \log_b x = \frac{\ln x}{\ln b}\) Converts half-life / doubling laws to base \(e\)
Newton Cooling Inversion \(T(t) = T_\infty + \Delta T_0 e^{-t/\tau} \iff t = -\tau\ln\frac{T-T_\infty}{T_0-T_\infty}\) Predicts quench or thermal soak times
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sympy as sp
from pathlib import Path

plt.rcParams.update({
    "figure.dpi": 150,
    "font.size": 10,
    "axes.grid": True,
    "grid.alpha": 0.30,
    "axes.spines.top": False,
    "axes.spines.right": False,
})

def load_week_csv(filename):
    for p in [Path("datasets") / filename, Path("../datasets") / filename]:
        if p.exists():
            return pd.read_csv(p)
    raise FileNotFoundError(f"Dataset not found: {filename}")

3. Real-World Quench Cooling & Capstan Telemetry Analysis

We load Week03_Quenched_Alloy_Cooling_and_Capstan_Winch_Data.csv, combining experimental thermocouple measurements of an AISI 4140 shaft quenched in oil with marine capstan tension test measurements across wrap turns. Plotting \(\ln\frac{T(t)-T_\infty}{T_0-T_\infty}\) vs. \(t\) straightens the curved exponential cooling curve into a perfect straight line of slope \(-1/\tau\)!

df = load_week_csv("Week03_Quenched_Alloy_Cooling_and_Capstan_Winch_Data.csv")
print("Week 03 Quench & Capstan Data (first 6 rows):")
print(df.head(6).to_string(index=False))

# Fit thermal time constant tau from linear slope of -ln((T - Tinf)/(T0 - Tinf)) vs t
T_inf, T_0 = 40.0, 820.0
t_s = df["Quench_Time_s"].values
theta_star = (df["Shaft_Temp_degC"].values - T_inf) / (T_0 - T_inf)
# Linear regression through origin on -ln(theta*) vs t
inv_tau = np.polyfit(t_s, -np.log(theta_star), 1)[0]
tau_fit = 1.0 / inv_tau
t_to_180 = -tau_fit * np.log((180.0 - T_inf) / (T_0 - T_inf))
print(f"\n[Log-Linear Regression] Fitted time constant tau = {tau_fit:.2f} s")
print(f"[Time Inversion] Exact time to cool to 180 deg C = {t_to_180:.2f} s ({t_to_180/60:.2f} min)")

fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(11.8, 4.3))
ax1.plot(t_s, df["Shaft_Temp_degC"], "o", color="#dc2626", ms=5, label="Measured Shaft Temp")
t_line = np.linspace(0, t_s.max(), 200)
ax1.plot(t_line, T_inf + (T_0 - T_inf) * np.exp(-t_line / tau_fit), "-", color="#1d4ed8", lw=2.1, label=rf"Model Fit ($\tau = {tau_fit:.1f}$ s)")
ax1.axhline(180.0, color="#059669", ls="--", lw=1.4, label=f"Target 180 deg C ({t_to_180:.1f} s)")
ax1.set_title("AISI 4140 Quench Cooling Curve $T(t)$")
ax1.set_xlabel("Quench Time $t$ [s]")
ax1.set_ylabel("Temperature $T$ [$^\\circ$C]")
ax1.legend(fontsize=8.5)

ax2.semilogy(df["Capstan_Turns_N"], df["Tension_Ratio_T2_T1"], "s-", color="#059669", lw=2.0, label=r"Measured Ratio $T_2/T_1$")
N_g = np.linspace(0, 3.5, 100)
ax2.semilogy(N_g, np.exp(0.28 * 2 * np.pi * N_g), "--", color="#1e293b", lw=1.5, label=r"Theory $e^{0.28 \cdot 2\pi N}$")
ax2.set_title("Capstan Tension Growth (Semi-Log Straight Line)")
ax2.set_xlabel("Drum Wrap Turns $N$")
ax2.set_ylabel("Tension Ratio $T_2 / T_1$ (log scale)")
ax2.legend(fontsize=8.5)

plt.tight_layout()
plt.show()
# Verified Output:
Week 03 Quench & Capstan Data (first 6 rows):
 Quench_Time_s  Shaft_Temp_degC  Capstan_Turns_N  Tension_Ratio_T2_T1
           0.0           820.00              0.0                1.000
          20.0           671.92              0.2                1.422
          40.0           551.96              0.4                2.021
          60.0           454.77              0.6                2.874
          80.0           376.03              0.8                4.085
         100.0           312.23              1.0                5.808

[Log-Linear Regression] Fitted time constant tau = 95.00 s
[Time Inversion] Exact time to cool to 180 deg C = 163.18 s (2.72 min)
Week 03 Engineering Plot

4. Three Unabridged Worked Engineering Problems

Worked Example 1 — Base-Switching Half-Life Decay into Natural Base \(e\)

Problem: A nuclear medical isotope has half-life \(t_{1/2} = 8.0\text{ hours}\), following \(N(t) = N_0\left(\frac{1}{2}\right)^{t / 8}\). Rewrite \(N(t)\) in continuous natural base form \(N_0 e^{-\lambda t}\) and compute the exact time required for activity to fall to \(5\%\) of initial strength.

Unabridged Hand Solution:

  1. Switch Base \((1/2)\) to \(e\): Use \(b^u = e^{(\ln b) u}\) with \(b = \frac{1}{2}\) and \(u = \frac{t}{8}\): \[\left(\frac{1}{2}\right)^{t/8} = \exp\!\left[\ln\!\left(\frac{1}{2}\right) \cdot \frac{t}{8}\right] = \exp\!\left(-\frac{\ln 2}{8}\,t\right)\]

  2. Identify Decay Constant \(\lambda\): \[\lambda = \frac{\ln 2}{8\text{ hr}} \approx \frac{0.693147}{8} = \mathbf{0.08664\text{ hr}^{-1}}\]

  3. Solve for \(5\%\) Remaining (\(N/N_0 = 0.05\)): \[e^{-\lambda t} = 0.05 \implies -\lambda t = \ln(0.05) = -\ln(20) \implies t = \frac{\ln 20}{0.086643} = \mathbf{34.58\text{ hours}}\]


Worked Example 2 — Capstan Winch Safety Wrap Count

Problem: A harbor crane winch (\(\mu = 0.28\)) must hold a \(T_2 = 45\text{ kN}\) barge cable using a deckhand pull force of only \(T_1 = 150\text{ N}\). Calculate the exact wrap angle \(\theta\) (in radians) and minimum full drum turns \(N = \theta / (2\pi)\).

Unabridged Hand Solution:

  1. Tension amplification ratio: \(\frac{T_2}{T_1} = \frac{45{,}000\text{ N}}{150\text{ N}} = 300\).

  2. Invert \(300 = e^{0.28\theta}\) using \(\ln\): \[0.28\,\theta = \ln(300) \approx 5.70378 \implies \theta = \frac{5.70378}{0.28} = \mathbf{20.371\text{ rad}}\]

  3. Convert to drum turns: \(N = \frac{20.371}{2\pi} = \mathbf{3.24\text{ turns}}\) (so specify at least \(3.5\) or \(4\) wraps for safety!).


Worked Example 3 — Decibel Sound Attenuation & Logarithmic Addition

Problem: A factory ventilation fan produces sound intensity \(I = 0.025\text{ W/m}^2\) compared to human threshold \(I_0 = 10^{-12}\text{ W/m}^2\). Using \(L_{\text{dB}} = 10\log_{10}(I/I_0)\), calculate its decibel rating, and determine how many decibels are added if a second identical fan turns on (\(I_{\text{new}} = 2 I\)).

Unabridged Hand Solution:

  1. Single Fan Rating: \[\frac{I}{I_0} = \frac{2.5\times 10^{-2}}{10^{-12}} = 2.5\times 10^{10}\] \[L_1 = 10\log_{10}(2.5\times 10^{10}) = 10(\log_{10} 2.5 + 10) = 10(0.39794 + 10) = \mathbf{103.98\text{ dB}}\]

  2. Doubling Acoustic Power (\(\times 2\)): Use the product \(\to\) sum logarithm rule! \[L_2 - L_1 = 10\log_{10}(2) = 10(0.30103) = \mathbf{+3.01\text{ dB}}\] (Result: two identical noisy machines never double the decibels—they ALWAYS add only \(+3.01\text{ dB}\), reaching \(106.99\text{ dB}\)!)

# SymPy & NumPy Check for Examples 1, 2, 3
t_s = sp.Symbol("t", real=True, positive=True)
assert sp.simplify(sp.Rational(1, 2)**(t_s / 8) - sp.exp(-sp.ln(2) * t_s / 8)) == 0
t_5pct = np.log(20.0) / (np.log(2.0) / 8.0)

theta_cap = np.log(45000.0 / 150.0) / 0.28
N_turns = theta_cap / (2.0 * np.pi)

L1_db = 10.0 * np.log10(0.025 / 1e-12)
L2_db = 10.0 * np.log10(0.050 / 1e-12)
print(f"[Example 1] 5% activity time = {t_5pct:.2f} hours (Exact SymPy base-switch verified)")
print(f"[Example 2] Required wrap = {theta_cap:.3f} rad ({N_turns:.2f} turns)")
print(f"[Example 3] 1 fan = {L1_db:.2f} dB, 2 fans = {L2_db:.2f} dB (+{L2_db-L1_db:.2f} dB)")
# Verified Output:
[Example 1] 5% activity time = 34.58 hours (Exact SymPy base-switch verified)
[Example 2] Required wrap = 20.371 rad (3.24 turns)
[Example 3] 1 fan = 103.98 dB, 2 fans = 106.99 dB (+3.01 dB)

5. Engineering Practice Problems (Self-Study Exercises)

Practice Problem 1 — True Strain vs. Engineering Strain in Rubber Stretching

A silicone seal gasket of unstretched length \(L_0 = 50.0\text{ mm}\) is stretched to \(L = 125.0\text{ mm}\). Compute both the engineering strain \(\epsilon_{\text{eng}} = \frac{L - L_0}{L_0}\) and true logarithmic strain \(\varepsilon_{\text{true}} = \ln(L/L_0)\), then determine how much length \(L_{\text{half}}\) corresponds to half of that true strain.

🔍 Click to View Complete Step-by-Step Solution
  1. Engineering strain: \(\epsilon_{\text{eng}} = \frac{125 - 50}{50} = \mathbf{1.50\ (150\%)}\).
  2. True logarithmic strain: \(\varepsilon_{\text{true}} = \ln\!\left(\frac{125}{50}\right) = \ln(2.5) = \mathbf{0.9163}\).
  3. Half true strain: Set \(\ln(L_{\text{half}}/50) = \frac{1}{2}\ln(2.5) = \ln(\sqrt{2.5})\): \[L_{\text{half}} = 50\sqrt{2.5} = \mathbf{79.06\text{ mm}}\]

Practice Problem 2 — RC Capacitor Discharge Timer

An airbag controller holds a backup capacitor charged to \(V_0 = 24.0\text{ V}\) through a bleed resistor such that \(V(t) = V_0\,e^{-t / (RC)}\) with time constant \(\tau = RC = 4.50\text{ s}\). After main battery disconnect, how many seconds pass until capacitor voltage drops below the firing threshold \(V = 9.0\text{ V}\)?

🔍 Click to View Complete Step-by-Step Solution
  1. Set \(9.0 = 24.0\,e^{-t / 4.50} \implies e^{-t / 4.50} = \frac{9}{24} = \frac{3}{8} = 0.375\).
  2. Take natural logarithm of both sides: \[-\frac{t}{4.50} = \ln(0.375) = -0.98083 \implies t = 4.50 \times 0.98083 = \mathbf{4.414\text{ s}}\]

Practice Problem 3 — Solving a Compound Exponential-Linear Base Equation

Solve analytically for \(x\): \(\quad 4^{2x - 1} = 3^{x + 2}\), and express \(x\) cleanly in terms of natural logarithms.

🔍 Click to View Complete Step-by-Step Solution
  1. Take \(\ln\) of both sides and drop the exponents to ground level: \[(2x - 1)\ln 4 = (x + 2)\ln 3\]

  2. Expand and group \(x\) terms on the left: \[x(2\ln 4 - \ln 3) = \ln 4 + 2\ln 3 \implies x\ln\!\left(\frac{16}{3}\right) = \ln(36)\]

  3. Divide: \[x = \frac{\ln(36)}{\ln(16/3)} = \frac{3.58352}{1.67398} \approx \mathbf{2.1407}\]


Practice Problem 4 — Atmospheric Barometric Pressure Drop

Standard atmospheric pressure at sea level is \(P_0 = 101.325\text{ kPa}\) and drops roughly exponentially with altitude \(z\ [\text{km}]\) via scale height \(H = 8.4\text{ km}\): \(P(z) = P_0\,e^{-z/H}\). At what altitude does air pressure drop to \(50\%\) of sea-level pressure (the altitude where mountaineers experience half the oxygen per breath)?

🔍 Click to View Complete Step-by-Step Solution
  1. Set \(\frac{P(z)}{P_0} = e^{-z / 8.4} = 0.5\).
  2. Invert with \(\ln\): \[-\frac{z}{8.4} = \ln(0.5) = -\ln 2 \implies z = 8.4\ln 2 = 8.4 \times 0.69315 = \mathbf{5.822\text{ km}}\]

References

🎬 Visual Intuition Animation — Exponential Base Sweep And Log Mirror