From First Law: Q = delta-U + W
Q is same for both, delta-U is same for both → WA = WB
W = P x pi r^2 x d (same pressure, circular pistons)
P pi rA^2 x 16 = P pi rB^2 x 9
rA^2/rB^2 = 9/16
rA/rB = 3/4
Q = delta-U + W. Q = heat added to system (positive when heat enters). delta-U = change in internal energy of system. W = work done BY the system (positive when system expands). Internal energy U depends only on temperature for ideal gas: delta-U = nCvT. Heat Q and work W are path functions (depend on process). Internal energy U is a state function (depends only on initial and final states).
Isothermal (constant T): delta-U = 0, so Q = W. W = nRT ln(V2/V1). For ideal gas: PV = constant. Isobaric (constant P): W = P(V2-V1) = nR(T2-T1). Q = nCp delta-T. delta-U = nCv delta-T. Isochoric (constant V): W = 0, so Q = delta-U = nCv delta-T. Adiabatic (no heat exchange, Q = 0): delta-U = -W. PV^gamma = constant. T V^(gamma-1) = constant.
General: W = integral of P dV. For constant pressure: W = P delta-V. For circular piston: delta-V = A x d = pi r^2 x d. For non-circular or varying area: must integrate. Work is the area under PV diagram. Expansion: W > 0 (gas does work on surroundings). Compression: W < 0 (surroundings do work on gas). Cyclic process: W = net area enclosed in PV diagram. Efficiency of heat engine: eta = W/Q_hot = 1 - Q_cold/Q_hot.
Cv (constant volume): Q = nCv delta-T, all heat goes to internal energy. Cp (constant pressure): Q = nCp delta-T, heat goes to internal energy plus work. Relation: Cp - Cv = R (Mayer relation). gamma = Cp/Cv. Monatomic ideal gas (He, Ar): Cv = 3R/2, Cp = 5R/2, gamma = 5/3. Diatomic (N2, O2, air): Cv = 5R/2, Cp = 7R/2, gamma = 7/5 = 1.4. Polyatomic: gamma closer to 1. Higher gamma = more efficient adiabatic compression (diesel engines).
Heat cannot spontaneously flow from cold to hot (Clausius statement). No engine can convert all heat into work with 100% efficiency (Kelvin-Planck statement). Entropy S always increases in irreversible process. dS = dQ/T for reversible process. Entropy of universe always increases. Carnot efficiency: eta_max = 1 - T_cold/T_hot. Maximum possible efficiency for any heat engine operating between these temperatures.
Boyle law: PV = constant (constant T). Charles law: V/T = constant (constant P). Gay-Lussac law: P/T = constant (constant V). Combined: PV = nRT = NkT. n = moles, R = 8.314 J/mol/K, N = number of molecules, k = Boltzmann constant = 1.38x10^-23 J/K. Real gas deviations: van der Waals equation (a/V^2 - repulsion + pressure, b - volume correction). At low T and high P, real gas deviates most from ideal behaviour.
Pressure = (1/3) rho v_rms^2 = (1/3)(m N/V) v_rms^2. RMS speed v_rms = sqrt(3RT/M) = sqrt(3kT/m). Average speed v_avg = sqrt(8RT/pi M). Most probable speed v_p = sqrt(2RT/M). Ratio: v_p : v_avg : v_rms = 1 : 1.128 : 1.225. Mean free path lambda = 1/(sqrt(2) pi d^2 n). Average kinetic energy per molecule = (3/2)kT. For ideal gas: internal energy U = (f/2)nRT where f = degrees of freedom.
Heat engine: absorbs Q_H from hot reservoir, does work W, rejects Q_C to cold reservoir. Efficiency eta = W/Q_H = 1 - Q_C/Q_H. Carnot engine (reversible): eta = 1 - T_C/T_H (maximum possible). Refrigerator: reverse of heat engine. Work input W to move heat Q_C from cold to hot. COP = Q_C/W. Heat pump: COP = Q_H/W = 1 + COP_refrigerator. Carnot COP = T_C/(T_H - T_C). Real engines are less efficient than Carnot due to irreversibilities (friction, heat leaks, rapid pressure changes).