Skip to content
GATEiit

GATE EC 2025 Q59: Least-squares distance from a vector to a line

Syllabus topic: Vectors in plane and space

Question

Consider the vectors

For real-valued scalar variable x, the value of

min⁡x∥ax−b∥2

is ____________ (*rounded off to two decimal places*).

∥⋅∥2 denotes the Euclidean norm, i.e., for , ∥y∥2=y12+y22.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 2.95 to 3.05 (official GATE 2025 final answer key)

Concept used: The minimum of ∥ax−b∥2 is the length of the component of b orthogonal to a (least-squares projection).

Concept notes

Loading notes…

First step: The optimal x is aTb/aTa; compute the residual b−ax and its norm (or use ∥b∥2−(aTb)2/∥a∥2).

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

Share this question

WhatsAppDownload image

Source: official GATE 2025 EC question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key