How many degrees of freedom does a line have on a plane?
Using $y=ax+b$ I can get a line for every point $(a,b)$ but there are still some lines left $(x=c)$. So it seems that lines are more than points so they have more degrees of freedom than $2$. How many?
$\endgroup$5 Answers
$\begingroup$You have indeed two degrees of freedom, but the problem is that the correspondence is not "perfect" with points of the plane $\mathbb{R}^2$. It is nicer with points in $\mathbb{R}^{+}\times S^1$, where $S^1$ is the circle and $\mathbb{R}^+$. is the ray of non-negative real numbers.
Let us see what this means, but before let me point out that even though the correspondence in your post doesn't cover one of the lines in the plane, it is ok, to determine degrees of freedom to allow considering correspondences that skip a set of states of the system that is small (has smaller dimension). So, your analysis also shows that there are two degrees of freedom, even though the single line $x=c$ is skipped.
By $S^1$ above we are denoting the circle. For each line on the plane we have its angle with respect to the positive part of the $X$-axis. We only need to consider angles between $0$ and $\pi$ and consider $0$ the same angle as $\pi$. Take into account that when you rotate more than and angle larger than $\pi$ you are getting an slope that can also be obtained with an angle smaller than $\pi$. Each of these angles corresponds to a point in the circle.
Having a line we also have the distance to the line from the origin. This is a non-negative real number.
The distance to the origin and the angle determines the line and conversely each line determines the distance to the origin and the angle.
We can put all of these in formulas. A general line in the plane can be written as $$ax+by=c$$
The vertical lines fall in the case that $b=0$. This equation is unique up to multiplication by a non-zero constant. For example, multiplying by $r\neq0$ we get an equation $$rax+rby=rc$$ that defines the same line.
There is a unique angle $0\leq \theta<\pi$ such that $b\cdot\tan(\theta)=-a$, where we assume $\theta=\pi/2$ when $b=0$. This is the angle we discussed above.
The distance from the origin to this line is $$d=\frac{|c|}{\sqrt{a^2+b^2}}$$
We can go the other way around. If we have $\theta$ then we can find a pair $a,b$ such that $b\tan(\theta)=-a$. This pair is not unique, but it is up to multiplication by a constant $r\neq0$, which is all we need. One you have an $a,b$ pair you can use the given $d$ and solve for $$c=d\cdot\sqrt{a^2+b^2}$$
We removed the absolute value from $c$ because we are allowed to multiply the whole equation $ax+by=c$ by $-1$ if we want, and still get the same line. We can always assume we want $c\geq0$.
$\endgroup$ 8 $\begingroup$You could start from $$ a x + b y + c = 0 $$ to model all lines.
$\endgroup$ 1 $\begingroup$A planar line needs two degrees of freedom. Think of starting along the x axis and 1) rotating by $\theta$ and 2) parallel offseting by $d$ the result is (in the form $A x+B y+C=0$)
$$ (-\sin\theta)x + (\cos\theta) y +(- d) = 0 $$
The above is defined for all values of the two parameters $\theta$ and $d$. There are no singularities or degeneracies.
So given any line of the form $A x+B y+C =0$ the defining parameters of the line are found by
$$ \tan \theta = -\frac{A}{B} $$ $$ d = - \frac{C}{\sqrt{A^2+B^2}} $$
The give the orientation of the line $\theta$ and the minimum distance to the origin $d$.
If $B=0$ then $\theta$ is still defined using the atan2() function $\theta = {\rm atan2}(-A,B)$
Note: Similarly in 3D a line needs four parameters. Three rotations and one offset.
$\endgroup$ 3 $\begingroup$The equation $ax+by=c$ defines a line uniquely except that nonzero multiples are identified and $(a,b)=(0,0)$ is excluded. It turns out that this space is actually homeomorphic to a Mobius strip with boundary removed. To see this, let $z=a+ib$, so that we are talking about the set of all $(z,c)$ such that $z\ne0$.
Because a global scale factor on the equation $ax+by=c$ does not change the line, we can assume that $a^2+b^2=|z|^2=1$ and we are looking at the space $S^1\times\Bbb R$. But there is still a double cover, because $(z,c)$ and $(-z,-c)$ correspond to the same point. Thus the centerline of the Mobius strip is $(z,0)$ for $z\in S^1$ - this is the set of all lines through the origin, note that you get back to where you have started after a $180^\circ$ rotation - and non-centerlines would be circles $(z,c)$ for fixed $c\ne0$. This set corresponds to the set of tangents to a circle of radius $c$ at the origin; note that as you go around the circle the lines do not repeat until you go $360^\circ$, unlike the case of $c=0$.
Thus there is no global homeomorphism to a subset of $\Bbb R^2$, although it is a two-dimensional manifold without boundary, i.e. there are two degrees of freedom with no singular points. There is a subset of the line space which is a Mobius strip, though, if we put the boundary back in: the set of all lines which intersect the unit circle is the set $(z,c)$ where $|c|\le1$ (under the identification $(z,c)=(-z,-c)$), which is homeomorphic to the Mobius strip.
$\endgroup$ 1 $\begingroup$A segment of any line can be scaled, translated and rotated on a plane so there are three DOF. The last two are Euclidean motions that are constants of integration of differential equations of motion in the plane.
EDIT1:
Taking a view that whatever is added on in integration can be viewed as a degree of freedom (DOF).
In the plane, $ \dfrac{dy}{dx}=m $ gives one DOF. Integrating $ y = mx + C $ adds one more DOF, now $ (m,C) $. It is same if we use polar coordinates $ x \cos \alpha + y \sin \alpha = p $, two constants or parameters $( p, \alpha) $ .
For a straight line segment when limits are included it may be viewed as a DOF in the sense of dilation.
$\endgroup$ 2