JEE Main 2011. Previous Year Question.
Problem
The shortest distance between the line $y-x=1$ and the curve $x=y^2$ is:
Key insight. Since the parabola $x=y^2$ is easy to parametrise as $(t^2,t)$, the distance from any point on it to the line can be written as a single function of $t$ alone. Minimising that function — an ordinary one-variable calculus problem — gives the shortest distance directly, without needing calculus on the line itself.
Watch this explained step by step → · More on the Shiwam’s Classes channel
Approach
Write the line in standard form $x-y+1=0$, and parametrise a general point on the parabola as $(t^2,t)$. Use the point-to-line distance formula to express the distance as a function of $t$, then minimise this function using calculus (or by completing the square) to find the shortest distance.
Solution
Step 1 — Write the line in standard form
$$y-x=1 \implies x-y+1=0$$
Step 2 — Parametrise a point on the parabola
For $x=y^2$, let $y=t$, so $x=t^2$. A general point on the curve is $(t^2, t)$.
Step 3 — Write the distance from this point to the line
Using the point-to-line distance formula for $x-y+1=0$:
$$d(t) = \frac{|t^2-t+1|}{\sqrt{1^2+(-1)^2}} = \frac{|t^2-t+1|}{\sqrt2}$$
Step 4 — Check the sign of t² − t + 1
The discriminant of $t^2-t+1$ is $1-4=-3<0$, so this expression is always positive — the absolute value can be dropped:
$$d(t) = \frac{t^2-t+1}{\sqrt2}$$
Step 5 — Minimise t² − t + 1
Completing the square (or using calculus, $\frac{d}{dt}(t^2-t+1)=2t-1=0 \implies t=\frac{1}{2}$):
$$t^2-t+1 = \left(t-\frac{1}{2}\right)^2+\frac{3}{4}$$
This is minimised when $t=\dfrac{1}{2}$, giving a minimum value of $\dfrac{3}{4}$.
Step 6 — Compute the minimum distance
$$d_{\min} = \frac{\frac{3}{4}}{\sqrt2} = \frac{3}{4\sqrt2} = \frac{3\sqrt2}{8}$$
Answer
$$\frac{3\sqrt2}{8}$$
Common mistakes
- Forgetting to check whether $t^2-t+1$ can be negative before dropping the absolute value. Here the discriminant confirms it’s always positive, but this check is essential — skipping it could lead to incorrectly minimising the wrong (unsigned) expression.
- Minimising $t^2-t+1$ itself and forgetting to divide by $\sqrt2$ at the end. The minimum of the numerator alone ($\frac{3}{4}$) is not the final answer — it still needs to be divided by the line’s normalising factor $\sqrt{1^2+(-1)^2}=\sqrt2$.
Practise next
- Find the shortest distance between the line $x-y=2$ and the curve $y=x^2$, using the same parametrise-and-minimise approach.
Show answer
$\dfrac{7\sqrt2}{8}$. The line $x-y=2$ misses the parabola entirely, so the shortest distance is from the point of $y=x^2$ where the tangent is parallel to the line.
Parametrising by $(t,t^2)$, the distance to $x-y-2=0$ is $\dfrac{|t-t^2-2|}{\sqrt2}$. Minimising the numerator: $\dfrac{d}{dt}(t-t^2-2)=1-2t=0$ gives $t=\tfrac12$ — the tangent there has slope $1$, matching the line.
At that point the numerator is $\left|\tfrac12-\tfrac14-2\right|=\tfrac74$, so the distance is $\dfrac{7}{4\sqrt2}=\dfrac{7\sqrt2}{8}\approx1.24$.

Doubts are answered by Shiwam, usually within a day. Ask about this question specifically — a general question about the chapter is better asked in class.