The GATE Grind

GATE 2024 CS (CS2) – Question 4

General Aptitude · Quantitative Aptitude: Algebra, Geometry and Mensuration · 1 mark · Multiple choice

For positive non-zero real variables $x$ and $y$, if $\ln\left(\frac{x+y}{2}\right)=\frac{1}{2}[\ln(x)+\ln(y)]$, then, the value of $\frac{x}{y}+\frac{y}{x}$ is

  1. 1
  2. 1/2
  3. 2
  4. 4

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) 2

Explanation

Combine the logarithms on the right to obtain
$$\ln\frac{x+y}{2}=\ln\sqrt{xy}.$$
Positivity allows us to equate their arguments: x+y=2√xy. Squaring gives x²+2xy+y²=4xy, hence (x−y)²=0 and x=y.

Therefore $x/y+y/x=1+1=2$, **C**. This is also the equality case of the arithmetic-mean/geometric-mean inequality.

More Quantitative Aptitude: Algebra, Geometry and Mensuration questions

All Quantitative Aptitude: Algebra, Geometry and Mensuration questions →