Day 2: Analytical Trigonometry & Functional Equations

2.1 Product-to-Sum and Sum-to-Product Identities.
Sum-to-Product:sin(x)+sin(y)=2sin(x+y2)cos(xy2)sin(x)sin(y)=2cos(x+y2)sin(xy2)cos(x)+cos(y)=2cos(x+y2)cos(xy2)cos(x)cos(y)=2sin(x+y2)sin(xy2)Product-to-Sum:2sin(A)cos(B)=sin(A+B)+sin(AB)2cos(A)sin(B)=sin(A+B)sin(AB)2cos(A)cos(B)=cos(A+B)+cos(AB)2sin(A)sin(B)=cos(AB)cos(A+B)Angle Addition Base:sin(A+B)=sin(A)cos(B)+cos(A)sin(B)cos(A+B)=cos(A)cos(B)sin(A)sin(B)\begin{aligned}\textbf{Sum-to-Product:} & \\\sin(x) + \sin(y) &= 2 \sin\left(\frac{x+y}{2}\right) \cos\left(\frac{x-y}{2}\right) \\\sin(x) - \sin(y) &= 2 \cos\left(\frac{x+y}{2}\right) \sin\left(\frac{x-y}{2}\right) \\\cos(x) + \cos(y) &= 2 \cos\left(\frac{x+y}{2}\right) \cos\left(\frac{x-y}{2}\right) \\\cos(x) - \cos(y) &= -2 \sin\left(\frac{x+y}{2}\right) \sin\left(\frac{x-y}{2}\right) \\\\\textbf{Product-to-Sum:} & \\2 \sin(A)\cos(B) &= \sin(A+B) + \sin(A-B) \\2 \cos(A)\sin(B) &= \sin(A+B) - \sin(A-B) \\2 \cos(A)\cos(B) &= \cos(A+B) + \cos(A-B) \\2 \sin(A)\sin(B) &= \cos(A-B) - \cos(A+B) \\\\\textbf{Angle Addition Base:} & \\\sin(A+B) &= \sin(A)\cos(B) + \cos(A)\sin(B) \\\cos(A+B) &= \cos(A)\cos(B) - \sin(A)\sin(B)\end{aligned}
2.2 Double / Half-Angle Transformations
sin(2θ)=2sin(θ)cos(θ)cos(2θ)=cos2(θ)sin2(θ)cos(2θ)=2cos2(θ)1cos(2θ)=12sin2(θ)\begin{aligned} \sin(2\theta) &= 2\sin(\theta)\cos(\theta) \\ \cos(2\theta) &= \cos^2(\theta) - \sin^2(\theta) \\ \cos(2\theta) &= 2\cos^2(\theta) - 1 \\ \cos(2\theta) &= 1 - 2\sin^2(\theta) \end{aligned}
2.3 Monotonicity and Injectivity Invariants
Initial Value:Vstart=N(N1)2Split Operation:ΔV=+1Merge Operation:ΔV=1Total Operations:Moves=VendVstart\begin{aligned} \textbf{Initial Value:} \quad V_{\text{start}} &= \frac{N(N-1)}{2} \\ \textbf{Split Operation:} \quad \Delta V &= +1 \\ \textbf{Merge Operation:} \quad \Delta V &= -1 \\ \textbf{Total Operations:} \quad \text{Moves} &= |V_{\text{end}} - V_{\text{start}}| \end{aligned}
2.4 Classical Inequalities
[ THE AM-GM-HM BOUND ]The standard average is ALWAYS bigger than or equal to the multiplying average.Formula:a+b2ab21a+1bShortcut:a+b2abGeneral Form:x1+x2++xnnx1x2xnnRule:Equality ONLY happens if all variables are completely identical (a=b).[ THE CAUCHY-SCHWARZ POOL ]Multiplying separate squared pools ALWAYS beats grouping and pairing them up.Identity:(a2+b2)(x2+y2)=(ax+by)2+(aybx)2Inequality:(a2+b2)(x2+y2)(ax+by)2Rule:The exact value lost when pairing is the leftover term (aybx)2.[ TITU’S FRACTION]Joining separate fractions into one fraction ALWAYS drops the total value.Formula:a2x+b2y(a+b)2x+yRule:Add the tops together, square it, and divide by the added bottoms.\begin{aligned}&\textbf{[ THE AM-GM-HM BOUND ]} \\&\text{The standard average is ALWAYS bigger than or equal to the multiplying average.} \\\\&\text{Formula:} \quad \frac{a+b}{2} \geq \sqrt{ab} \geq \frac{2}{\frac{1}{a} + \frac{1}{b}} \\&\text{Shortcut:} \quad a+b \geq 2\sqrt{ab} \\&\text{General Form:} \quad \frac{x_1 + x_2 + \dots + x_n}{n} \geq \sqrt[n]{x_1 \cdot x_2 \dots x_n} \\&\text{Rule:} \quad \text{Equality ONLY happens if all variables are completely identical } (a = b). \\\\\\&\textbf{[ THE CAUCHY-SCHWARZ POOL ]} \\&\text{Multiplying separate squared pools ALWAYS beats grouping and pairing them up.} \\\\&\text{Identity:} \quad (a^2 + b^2)(x^2 + y^2) = (ax + by)^2 + (ay - bx)^2 \\&\text{Inequality:} \quad (a^2 + b^2)(x^2 + y^2) \geq (ax + by)^2 \\&\text{Rule:} \quad \text{The exact value lost when pairing is the leftover term } (ay - bx)^2. \\\\\\&\textbf{[ TITU'S FRACTION]} \\&\text{Joining separate fractions into one fraction ALWAYS drops the total value.} \\\\&\text{Formula:} \quad \frac{a^2}{x} + \frac{b^2}{y} \geq \frac{(a+b)^2}{x+y} \\&\text{Rule:} \quad \text{Add the tops together, square it, and divide by the added bottoms.}\end{aligned}
2.5 Geometric Progressions & Series
[ THE MULTIPLYING CHAIN ]A sequence where you multiply by the exact same multiplier to jump to the next term.[ FINITE SUM ]Adding up a specific, fixed number of multiplying steps.Formula 1:=a(rn1)r1Formula 2:=lrar1Rule:a=first term,l=last term,r=multiplier,n=total terms.[ INFINITE SUM ]Adding up multiplying steps FOREVER. Only works if the numbers get smaller.Formula:=a1rRule:Only use this if the multiplier r is strictly between 1 and 1.\begin{aligned}&\textbf{[ THE MULTIPLYING CHAIN ]} \\&\text{A sequence where you multiply by the exact same multiplier to jump to the next term.} \\\\&\textbf{[ FINITE SUM ]} \\&\text{Adding up a specific, fixed number of multiplying steps.} \\\\&\text{Formula 1:} \quad \sum = \frac{a(r^n - 1)}{r - 1} \\&\text{Formula 2:} \quad \sum = \frac{lr - a}{r - 1} \\&\text{Rule:} \quad a = \text{first term}, \,\, l = \text{last term}, \,\, r = \text{multiplier}, \,\, n = \text{total terms.} \\\\\\&\textbf{[ INFINITE SUM ]} \\&\text{Adding up multiplying steps FOREVER. Only works if the numbers get smaller.} \\\\&\text{Formula:} \quad \sum = \frac{a}{1 - r} \\&\text{Rule:} \quad \text{Only use this if the multiplier } r \text{ is strictly between } -1 \text{ and } 1.\end{aligned}