# Linear Algebra - (Line|Line Segment)

Geometry - Line in linear algebra.

Line and line segment definition in Linear Algebra that goes:

A line has a dimension of one because only one coordinate is needed to specify a point on it

## 3 - Line vs Line Segment

A line segment has a scalar $\alpha$ that ranges over a finite set of real number whereas a line has a scalar that ranges over all real numbers.

The below definitions applied to a line and to a line segment by changing the scalar range.

## 4 - Through the origin

### 4.1 - One-dimensional

The line through the origin and the vector v (the point v) is the set of points where the scalar $\alpha$ ranges over all real numbers:

$\{\alpha. v : \alpha \in \mathbb{R}, 0 <= \alpha <= 1\}$

where:

forms the line through the origin and the vector v (ie the point)

The points of a line that does contain the origin, form a vector space

### 4.2 - Three-dimensional

# Line in three dimension
{[x, y, z] : a * [x, y, z] = 0, b * [x, y, z] = 0}

## 5 - Not through the origin

Definition of a line that goes through the vector u and v (where u and v are not the origin)

### 5.1 - Translation and Scalar multiplication Formulation

Vector Translation and vector scalar multiplication are used to defined set of points forming an line segment (because the scalar $\alpha$ ranges not in $\mathbb{R}$ and is then in a finite set) that not necessarily go through the origin.

You translate the line by adding a vector c [0.5, 1] to every point of the line segment from [0, 0] to [3, 2].

$\{[0.5, 1] + \alpha [3, 2] : 0 <= \alpha <= 1\}$

The result is a line through c instead of through origin.

### 5.2 - Symmetric Formulation (Affine,Convex)

A new formulation which is symmetric with respect to endpoints (ie you have a coefficient on [3, 2] and on [0.5, 1]) is:

$\{\alpha [3.5, 3] + \beta [0.5, 1] : (\alpha, \beta) \in \mathbb{R}, (\alpha, \beta) >= 0, \alpha + \beta = 1\}$

You get it by using distributivity: $\alpha(u+v)=\alpha.u+\alpha.v$ [3,2]+[0.5,1] = ([3.5,1]-[0.5,1])+[0.5,1] = [3.5,1]+(1- )[0.5,1] = [3.5,1]+ [0.5,1]

This formulation describes the line that goes through the point [3.5, 3] and [0.5, 1].

More generally, the line through the vector u and v consists of the set of a affine combinations of u and v:

$$\{\alpha{u} + \beta{v}: (\alpha, \beta) \in \mathbb{R}, \alpha + \beta = 1\}$$

## 6 - Combination

To resume:

### 6.1 - Convex

A convex combination represents a Finite Line Segment.

An expression with two vectors of the form:

$\{\alpha.u + \beta.v : (\alpha, \beta) \in \mathbb{R}, (\alpha, \beta) >= 0, \alpha + \beta = 1\}$

is called a convex combination of u and v.

The u-to-v line segment consists of the set of convex combinations of u and v.

### 6.2 - Affine

Infinite line Segment An expression of the form u + where is called an a affine combination of u and v.

The line through u and v consists of the set of affine combinations of u and v