Analytic Geometry

Scalars and Vectors

Scalars

Some phenomena of Nature can be described by a number and a unit of measurement.

Definition - Scalar. A scalar is a number that expresses a magnitude without direction.

Example. The height or weight of a person, the temperature of a gas or the time it takes a vehicle to travel a distance.

However, there are other phenomena that cannot be described adequately by a scalar. If, for instance, a sailor wants to head for seaport and only knows the intensity of wind, he will not know what direction to take. The description of wind requires two elements: intensity and direction.

Vectors

Definition - Vector. A vector is a number that expresses a magnitude and has associated an orientation and a sense.

Example. The velocity of a vehicle or the force applied to an object.

Geometrically, a vector is represented by an directed line segment, that is, an arrow.

vector

Vector representation

An oriented segment can be located in different places in a Cartesian space. However, regardless of where it is located, if the length and the direction of the segment does not change, the segment represents always the same vector.

This allows to represent all vectors with the same origin, the origin of the Cartesian coordinate system. Thus, a vector can be represented by the Cartesian coordinates of its final end in any Euclidean space.

vector coordinates

Vector from two points

Given two points P and Q of a Cartesian space, the vector that starts at P and ends at Q has coordinates PQ=QP.

Example. Given the points P=(1,1) and Q=(3,4) in the real plane R2, the coordinates of the vector that start at P and ends at Q are PQ=QP=(3,4)(1,1)=(32,41)=(2,3).

vector from two points

Module of a vector

Definition - Module of a vector. Given a vector v=(v1,,vn) in Rn, the module of v is |v|=v12++vn2.

The module of a vector coincides with the length of the segment that represents the vector.

Examples. Let u=(3,4) be a vector in R2, then its module is |u|=32+42=25=5

Let v=(4,7,4) be a vector in R3, then its module is |v|=42+72+42=81=9

Unit vectors

Definition - Unit vector. A vector v in Rn is a unit vector if its module is one, that is, |v|=1.

The unit vectors with the direction of the coordinate axes are of special importance and they form the standard basis.

In R2 the standard basis is formed by two vectors i=(1,0) and j=(0,1).

Standard basis of the Cartesian plane

In R3 the standard basis is formed by three vectors i=(1,0,0), j=(0,1,0) and k=(0,0,1).

Standard basis of the Cartesian space

Sum of two vectors

Definition - Sum of two vectors. Given two vectors u=(u1,,un) y v=(v1,,vn) de Rn, the sum of u and v is

u+v=(u1+v1,,un+vn).

Example. Let u=(3,1) and v=(2,3) two vectors in R2, then the sum of them is u+v=(3+2,1+3)=(5,4).

Sum of two vectors

Product of a vector by a scalar

Definition - Product of a vector by a scalar. Given a vector v=(v1,,vn) in Rn, and a scalar aR, the product of v by a is

av=(av1,,avn).

Example. Let v=(2,1) a vector in R2 and a=2 a scalar, then the product of a by v is av=2(2,1)=(4,2).

Product of a vector by a scalar

Expressing a vector as a linear combination of the standard basis

The sum of vectors and the product of vector by a scalar allow us to express any vector as a linear combination of the standard basis.

In R3, for instance, a vector with coordinates v=(v1,v2,v3) can be expressed as the linear combination v=(v1,v2,v3)=v1i+v2j+v3k.

Expressing a vector as a linear combination of the standard basis

Dot product of two vectors

Definition - Dot product of two vectors. Given the vectors u=(u1,,un) and v=(v1,,vn) in Rn, the dot product of u and v is

uv=u1v1++unvn.

Example. Let u=(3,1) and v=(2,3) two vectors in R2, then the dot product of them is

uv=32+13=9.

Theorem - Dot product. Given two vectors u and v in Rn, it holds that

uv=|u||v|cosα

where α is the angle between the vectors.

Parallel vectors

Definition - Parallel vectors. Two vectors u and v are parallel if there is a scalar aR such that

u=av.

Example. The vectors u=(4,2) and v=(2,1) in R2 are parallel, as there is a scalar 2 such that u=(4,2)=2(2,1)=2v.

Orthogonal and orthonormal vectors

Definition - Orthogonal and orthonormal vectors. Two vectors u and v are orthogonal if their dot product is zero,

uv=0.

If in addition both vectors are unit vectors, |u|=|v|=1, then the vectors are orthonormal.

Orthogonal vectors are perpendicular, that is the angle between them is right.

Examples. The vectors u=(2,1) and v=(2,4) in R2 are orthogonal, as uv=22+14=0, but they are not orthonormal since |u|=22+121 and |v|=22+421.

The vectors i=(1,0) and j=(0,1) in R2 are orthonormal, as ij=10+01=0,|i|=12+02=1,|j|=02+12=1.

Lines

Vectorial equation of a straight line

Definition - Vectorial equation of a straight line. Given a point P=(p1,,pn) and a vector v=(v1,,vn) of Rn, the vectorial equation of the line l that passes through the point P with the direction of v is

l:X=P+tv=(p1,,pn)+t(v1,,vn)=(p1+tv1,,pn+tvn)

with tR.

Example. Let l the line of R3 that goes through P=(1,1,2) with the direction of v=(3,1,2), then the vectorial equation of l is l:X=P+tv=(1,1,2)+t(3,1,2)=(1+3t,1+t,2+2t)tR.

Vectorial equation of a line

Parametric and Cartesian equations of a line

From the vectorial equation of a line l:X=P+tv=(p1+tv1,,pn+tvn) is easy to obtain the coordinates of the the points of the line with n parametric equations

x1(t)=p1+tv1,,xn(t)=pn+tvn

from where, if v is a vector with non-null coordinates (vi0 i), we can solve for t and equal the equations getting the Cartesian equations

x1p1v1==xnpnvn

Example. Given a line with vectorial equation l:X=(1,1,2)+t(3,1,2)=(1+3t,1+t,2+2t) in R3, its parametric equations are

x(t)=1+3t,y(t)=1+t,z(t)=2+2t, and the Cartesian equations are x13=y11=z22

Point-slope equation of a line in the plane

In the particular case of the real plane R2, if we have a line with vectorial equation l:X=P+tv=(x0,y0)+t(a,b)=(x0+ta,y0+tb), its parametric equations are

x(t)=x0+ta,y(t)=y0+tb

and its Cartesian equation is

xx0a=yy0b.

From this, moving b to the other side of the equation, we get yy0=ba(xx0), or renaming m=b/a,

yy0=m(xx0).

This equation is known as the point-slope equation of the line.

Slope of a line in the plane

Definition - Slope of a line in the plane. Given a line l:X=P+tv in the real plane R2, with direction vector v=(a,b), the slope of l is b/a.

Recall that given two points P=(x1,y1) y Q=(x2,y2) on the line l, we can take as a direction vector the vector from P to Q, with coordinates PQ=QP=(x2x1,y2y1). Thus, the slope of l is y2y1x2x1, that is, the ratio between the changes in the vertical and horizontal axes.

Slope of a line in the plane

Planes

Vector equation of a plane in space

To get the equation of a plane in the real space R3 we can take a point of the plane P=(x0,y0,z0) and an orthogonal vector to the plane v=(a,b,c). Then, any point Q=(x,y,z) of the plane satisfies that the vector PQ=(xx0,yy0,zz0) is orthogonal to v, and therefore their dot product is zero.

Definition - Vector equation of a plane in space. Given a point P=(v0,y0,z0) an a vector v=(a,b,c) in the real space R3, the vector equation of the plane that passes through P orthogonal to v=(a,b,c) is

PQv=(xx0,yy0,zz0)(a,b,c)==a(xx0)+b(yy0)+c(zz0)=0.

Plane equation

Scalar equation of a plane in space

From the vector equation of the plane we can get

a(xx0)+b(yy0)+c(zz0)=0ax+by+cz=ax0+by0+cz0,

that, renaming d=ax0+by0+cz0, can be written as

ax+by+cz=d,

and is known as the scalar equation of the plane.

Example. Given the point P=(2,1,1) and the vector v=(2,1,2), the vector equation of the plane that passes through P and is orthogonal to v is

(x2,y1,z1)(2,1,2)=2(x2)+(y1)+2(z1)=0,

and its scalar equation is

2x+y+2z=7.

Next