Ma · Mathematics

Find the Shortest Segment Cut Off by the First Quadrant

Published By the 9to5Science editorial team

At a glance

  1. 1. Name the intercepts

    Let the line meet the positive x- and y-axes at (u, 0) and (0, v), where u and v are positive.

  2. 2. Use the point condition

    For a given point (a, b), the intercept form of the line gives a/u + b/v = 1.

  3. 3. Minimize the length

    Minimize the squared segment length u² + v² subject to that condition.

  4. 4. Find the intercepts

    The minimizing intercepts are u = a^(1/3)S and v = b^(1/3)S, where S = a^(2/3) + b^(2/3).

  5. 5. Compute the minimum

    The shortest length is S^(3/2), or (a^(2/3) + b^(2/3))^(3/2).

Suppose a line passes through a fixed point (a,b)(a,b) in the first quadrant, with a>0a>0 and b>0b>0. It meets the positive xx- and yy-axes at two points, and the portion between those intercepts is cut off by the first quadrant. The goal is to choose the line so that this segment is as short as possible.

The answer depends on the coordinates of the fixed point. The method is to express the segment length in terms of its two intercepts and minimize subject to the condition that the line passes through (a,b)(a,b).

Write the line using its intercepts

Let the intercepts be (u,0)(u,0) and (0,v)(0,v), where u,v>0u,v>0. The segment length is

L=u2+v2.L=\sqrt{u^2+v^2}.

A line with these intercepts has equation

xu+yv=1.\frac{x}{u}+\frac{y}{v}=1.

Since it passes through (a,b)(a,b), the intercepts must satisfy

au+bv=1.\frac{a}{u}+\frac{b}{v}=1.

Thus, the problem is to minimize u2+v2u^2+v^2 subject to this constraint. Minimizing the squared length is equivalent to minimizing the length, and it avoids carrying a square root through the calculus.

Minimize with the constraint

Use a Lagrange multiplier for

f(u,v)=u2+v2,g(u,v)=au+bv−1=0.f(u,v)=u^2+v^2, \qquad g(u,v)=\frac{a}{u}+\frac{b}{v}-1=0.

The multiplier equations are

2u=λ(−au2),2v=λ(−bv2).\begin{aligned} 2u&=\lambda\left(-\frac{a}{u^2}\right),\\ 2v&=\lambda\left(-\frac{b}{v^2}\right). \end{aligned}

Eliminating λ\lambda gives

u3a=v3b,\frac{u^3}{a}=\frac{v^3}{b},

so the minimizing intercepts have the ratio

uv=(ab)1/3.\frac{u}{v}=\left(\frac{a}{b}\right)^{1/3}.

This ratio, together with the point constraint, determines both intercepts. Set

S=a2/3+b2/3.S=a^{2/3}+b^{2/3}.

Then the intercepts are

u=a1/3S,v=b1/3S.u=a^{1/3}S, \qquad v=b^{1/3}S.

Indeed, substituting them into the constraint gives

au+bv=a2/3+b2/3S=1.\frac{a}{u}+\frac{b}{v} =\frac{a^{2/3}+b^{2/3}}{S}=1.

Minimum length and worked example

Substitute the minimizing intercepts into the length formula:

Lmin⁡=(a1/3S)2+(b1/3S)2=Sa2/3+b2/3=(a2/3+b2/3)3/2.\begin{aligned} L_{\min} &=\sqrt{(a^{1/3}S)^2+(b^{1/3}S)^2}\\ &=S\sqrt{a^{2/3}+b^{2/3}}\\ &=\left(a^{2/3}+b^{2/3}\right)^{3/2}. \end{aligned}

For example, take the fixed point (8,1)(8,1). Then

S=82/3+12/3=4+1=5.S=8^{2/3}+1^{2/3}=4+1=5.

The best intercepts are

u=81/3(5)=10,v=11/3(5)=5.u=8^{1/3}(5)=10, \qquad v=1^{1/3}(5)=5.

So the segment runs from (10,0)(10,0) to (0,5)(0,5) and has length

102+52=125=55.\sqrt{10^2+5^2}=\sqrt{125}=5\sqrt{5}.

The line is x/10+y/5=1x/10+y/5=1, and it passes through (8,1)(8,1) because 8/10+1/5=18/10+1/5=1.

Why this is a minimum

The constraint implies u>au>a and v>bv>b. Solving it for vv gives v=bu/(u−a)v=bu/(u-a), with u>au>a. As u→a+u\to a^+, vv and hence the segment length tend to infinity; as u→∞u\to\infty, the segment length also tends to infinity. Therefore, the continuous length function on this feasible curve attains a minimum at an interior point. At any such minimum, the Lagrange equations apply. They yield the ratio above, and that ratio together with the constraint has the unique positive solution u=a1/3Su=a^{1/3}S, v=b1/3Sv=b^{1/3}S. Thus this pair is the unique global minimizer.

Common mistakes

  • Using the slope without enforcing the point condition. A candidate line must satisfy a/u+b/v=1a/u+b/v=1; optimizing over arbitrary intercepts does not solve the stated problem.
  • Minimizing the sum of intercepts. The segment length is u2+v2\sqrt{u^2+v^2}, not u+vu+v. Those objectives generally produce different lines.
  • Forgetting the square root at the end. The minimized quantity during the calculation is the squared length. Take its square root to report the segment length.
  • Ignoring the point’s location. The formula assumes a,b>0a,b>0. If the point lies on an axis, the positive-intercept setup becomes a boundary case and needs separate interpretation.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.