The original PDF places both endpoints at height ; the vertically stacked fraction can be misread in extracted text. The coefficient in the index is , multiplying .
For the optical-length integrand , the Beltrami identity applies because there is no explicit dependence. It giveswhere is constant. Therefore . The full Euler-Lagrange equation is , and combining these gives . This also excludes a constant curve, which would satisfy the squared first integral but not the full variational equation. Integration yieldsEqual endpoint heights at require . The height condition then becomes , or . Its two positive roots are and . Hence the two possible stationary rays areBoth stay in , have the required endpoints and satisfy the variational equation. These are the two optical rays in a square-root refractive-index profile. Fermat stationarity supplies two rays; it does not assert that both globally minimize travel time.
