Skip to main content

Question 1.13

Solutions

TZ
leumasicOfficial

7 months ago

Geometrically, the formulae make perfect sense. Of course, intuition is no substitute for a formal proof. Let us start by proving the max function:

  • If xy\bm{x \leq y}
xy    yx0    max(x,y)=x+y+(yx)2    max(x,y)=2y2=y\begin{aligned} x \leq y & \implies y - x \geq 0 \\ & \implies \max{(x, y)} = \frac{x + y + (y - x)}{2} \\ & \implies \max({x, y}) = \frac{2y}{2} = y \end{aligned}
  • If yx\bm{y \leq x}
yx    yx0    max(x,y)=x+y(yx)2    max(x,y)=2x2=x\begin{aligned} y \leq x & \implies y - x \leq 0 \\ & \implies \max{(x, y)} = \frac{x + y - (y - x)}{2} \\ & \implies \max{(x, y)} = \frac{2x}{2} = x \end{aligned}

To prove the min function:

  • If xy\bm{x \leq y}
xy    yx0    min(x,y)=x+y(yx)2    min(x,y)=2x2=x\begin{aligned} x \leq y & \implies y - x \geq 0 \\ & \implies \min{(x, y)} = \frac{x + y - (y - x)}{2} \\ & \implies \min({x, y}) = \frac{2x}{2} = x \end{aligned}
  • If yx\bm{y \leq x}
yx    yx0    min(x,y)=x+y((yx))2    min(x,y)=x+y+(yx)2    min(x,y)=2y2=y\begin{aligned} y \leq x & \implies y - x \leq 0 \\ & \implies \min{(x, y)} = \frac{x + y - (- (y - x))}{2} \\ & \implies \min{(x, y)} = \frac{x + y + (y - x)}{2} \\ & \implies \min{(x, y)} = \frac{2y}{2} = y \end{aligned}
0
Submit a solution
Optional • Markdown

Sign in to share your solution for this question.

Sign in

Navigate

Q 1.13

Navigate

Q 1.13