Applied Mathematics

Chapter 3
Vectors, Geometry and Coordinate Systems

Bachelors Program in Machine Technology
Applied Mathematics   •   Bachelor

Vectors, Geometry and Coordinate Systems

Introduction

Machine technology depends on accurate descriptions of position, orientation, force, velocity, acceleration, torque, and geometric form. Scalars such as mass, temperature, and time are described by magnitude alone. Many engineering quantities, however, possess both magnitude and direction. A force of 500 N directed horizontally is not equivalent to a force of 500 N directed vertically. Vectors provide the mathematical language for representing and manipulating such quantities.

This chapter develops vector algebra and the principal coordinate systems used in machine analysis. It then applies these ideas to lines, planes, forces, motion, and machine geometry. The methods are relevant to computer-aided design, robotics, statics, kinematics, surveying, manufacturing, and numerical simulation.

Learning Objectives

By the end of this chapter, the reader should be able to:

  1. Distinguish scalar and vector quantities and represent vectors in component form.
  2. Perform vector addition, subtraction, scalar multiplication, and normalization.
  3. Use dot products to calculate projections, angles, work, and perpendicularity.
  4. Use cross products to calculate moments, areas, and normal directions.
  5. Represent and analyze lines and planes in three-dimensional space.
  6. Convert between Cartesian, polar, cylindrical, and spherical coordinates.
  7. Apply vector and coordinate methods to machine forces, motion, and geometry.
  8. Recognize assumptions, limitations, units, and sources of modeling error.

1. Scalars, Vectors, and Unit Vectors

A scalar is specified by a numerical magnitude and appropriate unit. Examples include a shaft diameter of 40 mm, a mass of 12 kg, and a temperature of 80 ยฐC. A vector requires magnitude, direction, and sense. Examples include displacement, velocity, acceleration, force, and torque.

A vector in three-dimensional Cartesian space may be written as

๐š = aโ‚“๐ข + aแตง๐ฃ + az๐ค

where ๐ข, ๐ฃ, and ๐ค are unit vectors in the positive x-, y-, and z-directions, and aโ‚“, aแตง, and a_z are the vector components. The magnitude of ๐š is

|๐š| = โˆš(aโ‚“ยฒ + aแตงยฒ + azยฒ)

The expression assumes mutually perpendicular Cartesian axes and consistent units for all components. If the components are measured in newtons, the magnitude is also measured in newtons.

A unit vector in the direction of a nonzero vector ๐š is

รข = ๐š / |๐š|

A unit vector has magnitude one and is useful for specifying direction independently of magnitude. The zero vector has no defined direction and therefore cannot be normalized.

Position, displacement, and force vectors

If a point P has coordinates (x, y, z), its position vector from the origin is

๐ซP = x๐ข + y๐ฃ + z๐ค

For points A and B, the displacement from A to B is

๐ซAB = ๐ซB โˆ’ ๐ซA

This direction is important. The vector from B to A is ๐ซBA = โˆ’๐ซAB.

2. Vector Algebra

For vectors ๐š and ๐› with corresponding components, addition and subtraction are performed component by component:

๐š ยฑ ๐› = (aโ‚“ ยฑ bโ‚“)๐ข + (aแตง ยฑ bแตง)๐ฃ + (az ยฑ bz)๐ค

For a scalar ฮป,

ฮป๐š = ฮปaโ‚“๐ข + ฮปaแตง๐ฃ + ฮปaz๐ค

A positive scalar changes magnitude; a negative scalar reverses direction as well as changing magnitude.

Worked Example 1: Resultant force

Three forces act on a machine bracket:

๐…โ‚ = 120๐ข + 50๐ฃ โˆ’ 30๐ค N
๐…โ‚‚ = โˆ’40๐ข + 80๐ฃ + 20๐ค N
๐…โ‚ƒ = 10๐ข โˆ’ 25๐ฃ + 15๐ค N

The resultant is

๐‘ = ๐…โ‚ + ๐…โ‚‚ + ๐…โ‚ƒ
๐‘ = (120 โˆ’ 40 + 10)๐ข + (50 + 80 โˆ’ 25)๐ฃ + (โˆ’30 + 20 + 15)๐ค
๐‘ = 90๐ข + 105๐ฃ + 5๐ค N

Its magnitude is

|๐‘| = โˆš(90ยฒ + 105ยฒ + 5ยฒ) = โˆš19150 โ‰ˆ 138.4 N

The calculation assumes that all forces act in the same reference frame and that their points of application are irrelevant to the desired resultant force. For a complete rigid-body analysis, moments must also be considered.

3. Dot Product

The dot product, or scalar product, of vectors ๐š and ๐› is

๐š ยท ๐› = aโ‚“bโ‚“ + aแตงbแตง + azbz

It may also be written as

๐š ยท ๐› = |๐š||๐›| cos ฮธ

where ฮธ is the smaller angle between the vectors, 0ยฐ โ‰ค ฮธ โ‰ค 180ยฐ. The dot product is a scalar.

The angle between two nonzero vectors is therefore

ฮธ = cosโปยน[(๐š ยท ๐›)/(|๐š||๐›|)]

The formula requires nonzero vectors and a common coordinate system. Due to rounding, the calculated ratio should be constrained to the interval [โˆ’1, 1] before evaluating the inverse cosine in software.

Important consequences are:

  • ๐š ยท ๐› > 0: the angle is acute.
  • ๐š ยท ๐› = 0: the vectors are perpendicular.
  • ๐š ยท ๐› < 0: the angle is obtuse.

Projection

The scalar projection of ๐š onto ๐› is

comp_๐› ๐š = (๐š ยท ๐›)/|๐›|

provided ๐› โ‰  0. The vector projection is

proj_๐› ๐š = [(๐š ยท ๐›)/|๐›|ยฒ]๐›

Projection is used to resolve a force into components parallel and perpendicular to a guide, shaft, or inclined surface.

Work

For a constant force ๐… causing displacement ๐ฌ, mechanical work is

W = ๐… ยท ๐ฌ = |๐…||๐ฌ| cos ฮธ

where W is in joules when force is in newtons and displacement is in metres. This formula applies to a constant force. For a variable force, work is calculated using a line integral:

W = โˆซC ๐… ยท d๐ซ

Worked Example 2: Force along a guide

A force ๐… = 600๐ข + 800๐ฃ N acts on a slide moving along the unit direction ๐ฎ = 0.6๐ข + 0.8๐ฃ. Since |๐ฎ| = 1, the force component along the slide is

๐… ยท ๐ฎ = 600(0.6) + 800(0.8) = 1000 N

If the slide moves 0.25 m in that direction, the work is

W = 1000(0.25) = 250 J

The perpendicular component has no work for this displacement because its dot product with the displacement is zero.

4. Cross Product

The cross product of ๐š and ๐› is a vector perpendicular to both:

๐š ร— ๐› = (aแตงbz โˆ’ azbแตง)๐ข + (azbโ‚“ โˆ’ aโ‚“bz)๐ฃ + (aโ‚“bแตง โˆ’ aแตงbโ‚“)๐ค

Its magnitude is

|๐š ร— ๐›| = |๐š||๐›| sin ฮธ

The direction follows the right-hand rule. The cross product is anti-commutative:

๐š ร— ๐› = โˆ’(๐› ร— ๐š)

Parallel vectors have zero cross product. The formula assumes a right-handed Cartesian coordinate system.

Moments and torque

The moment of a force ๐… about a point O is

๐ŒO = ๐ซ ร— ๐…

where ๐ซ is the position vector from O to any point on the forceโ€™s line of action. The unit is newton-metres. The result depends on both force and location; consequently, replacing a force by an equal parallel force at another point generally changes the moment.

Area and normal vectors

The area of the parallelogram formed by vectors ๐š and ๐› is |๐š ร— ๐›|. The area of the triangle they form is

Atriangle = ยฝ|๐š ร— ๐›|

A normal unit vector to the plane containing ๐š and ๐› is

๐ง = (๐š ร— ๐›)/|๐š ร— ๐›|

provided the vectors are nonparallel.

Worked Example 3: Shaft torque

A force ๐… = 0๐ข + 400๐ฃ N is applied at position ๐ซ = 0.30๐ข + 0.10๐ค m relative to a shaft center. Then

๐Œ = ๐ซ ร— ๐…
๐Œ = (0.30๐ข + 0.10๐ค) ร— (400๐ฃ)

Using ๐ข ร— ๐ฃ = ๐ค and ๐ค ร— ๐ฃ = โˆ’๐ข,

๐Œ = 120๐ค โˆ’ 40๐ข Nยทm

Thus, ๐Œ = โˆ’40๐ข + 120๐ค Nยทm. Its magnitude is

|๐Œ| = โˆš(40ยฒ + 120ยฒ) โ‰ˆ 126.5 Nยทm

5. Lines in Two and Three Dimensions

A line through point A with position vector ๐ซโ‚€ and direction vector ๐ is represented parametrically by

๐ซ(t) = ๐ซโ‚€ + t๐

where t is a real parameter. The direction vector must be nonzero. If ๐ซโ‚€ = (xโ‚€, yโ‚€, zโ‚€) and ๐ = (a, b, c), then

x = xโ‚€ + at, y = yโ‚€ + bt, z = zโ‚€ + ct

A symmetric form, when a, b, and c are nonzero, is

(x โˆ’ xโ‚€)/a = (y โˆ’ yโ‚€)/b = (z โˆ’ zโ‚€)/c

The vector equation is preferable when one or more direction components are zero.

Two lines may be parallel, intersecting, or skew. Skew lines are neither parallel nor intersecting and can occur only in three dimensions. In machine design, this distinction is important when checking whether shafts, slides, or tool paths actually meet.

The distance from a point P to a line through A with direction ๐ is

d = |(๐ซP โˆ’ ๐ซA) ร— ๐|/|๐|

This requires ๐ โ‰  0.

6. Planes in Three Dimensions

A plane through point Pโ‚€ with normal vector ๐ง = (A, B, C) is described by

๐ง ยท (๐ซ โˆ’ ๐ซโ‚€) = 0

or, in Cartesian form,

A(x โˆ’ xโ‚€) + B(y โˆ’ yโ‚€) + C(z โˆ’ zโ‚€) = 0

After expansion, the general plane equation is

Ax + By + Cz + D = 0

where (A, B, C) is a nonzero normal vector. Multiplying all four coefficients by the same nonzero constant produces the same plane.

The distance from point P(xโ‚, yโ‚, zโ‚) to the plane Ax + By + Cz + D = 0 is

d = |Axโ‚ + Byโ‚ + Czโ‚ + D|/โˆš(Aยฒ + Bยฒ + Cยฒ)

Plane through three points

If A, B, and C are noncollinear points, two direction vectors are ๐ฏ = ๐ซB โˆ’ ๐ซA and ๐ฐ = ๐ซC โˆ’ ๐ซA. A normal is ๐ง = ๐ฏ ร— ๐ฐ, and the plane is

(๐ฏ ร— ๐ฐ) ยท (๐ซ โˆ’ ๐ซA) = 0

Collinear points do not define a unique plane because their cross product is zero.

7. Coordinate Systems

Cartesian coordinates

Cartesian coordinates describe a point by perpendicular distances (x, y, z). They are convenient for rectangular machine frames, orthogonal slides, and most force-balance calculations. Their differential volume element is

dV = dx dy dz

Polar coordinates

Polar coordinates describe a planar point by radial distance r and angle ฮธ:

x = r cos ฮธ, y = r sin ฮธ

The inverse relations are

r = โˆš(xยฒ + yยฒ), ฮธ = atan2(y, x)

The function atan2 is preferred to ordinary tanโปยน because it identifies the correct quadrant. Polar coordinates are useful for cams, rotating components, circular patterns, and radial motion.

Cylindrical coordinates

Cylindrical coordinates extend polar coordinates by adding height z:

x = ฯ cos ฯ†, y = ฯ sin ฯ†, z = z

The inverse relations are

ฯ = โˆš(xยฒ + yยฒ), ฯ† = atan2(y, x), z = z

Here ฯ is the radial distance from the z-axis and ฯ† is the azimuth angle. The differential volume element is

dV = ฯ dฯ dฯ† dz

The factor ฯ is essential and follows from the increasing circumference of circular shells.

Spherical coordinates

Using the common engineering convention, spherical coordinates are (r, ฮธ, ฯ†), where r is distance from the origin, ฮธ is the polar angle measured down from the positive z-axis, and ฯ† is the azimuth angle in the xy-plane:

x = r sin ฮธ cos ฯ†
y = r sin ฮธ sin ฯ†
z = r cos ฮธ

The inverse relations are

r = โˆš(xยฒ + yยฒ + zยฒ)
ฮธ = cosโปยน(z/r), ฯ† = atan2(y, x)

For r โ‰  0, the ranges are conventionally 0 โ‰ค ฮธ โ‰ค 180ยฐ and 0 โ‰ค ฯ† < 360ยฐ. The differential volume element is

dV = rยฒ sin ฮธ dr dฮธ dฯ†

Different disciplines interchange the symbols ฮธ and ฯ†, so the convention must always be stated.

Worked Example 4: Coordinate conversion

Convert the Cartesian point (3, 4, 12) m to cylindrical and spherical coordinates.

For cylindrical coordinates,

ฯ = โˆš(3ยฒ + 4ยฒ) = 5 m
ฯ† = atan2(4, 3) โ‰ˆ 53.13ยฐ

Thus the cylindrical coordinates are (5 m, 53.13ยฐ, 12 m).

For spherical coordinates,

r = โˆš(3ยฒ + 4ยฒ + 12ยฒ) = 13 m
ฮธ = cosโปยน(12/13) โ‰ˆ 22.62ยฐ

The azimuth remains ฯ† โ‰ˆ 53.13ยฐ. Therefore, under the stated convention, the spherical coordinates are (13 m, 22.62ยฐ, 53.13ยฐ).

8. Applications to Machine Technology

Force systems

A force should be resolved in a coordinate system aligned with the machine or mechanism. The resultant force is the vector sum of all applied forces. Equilibrium of a particle requires

โˆ‘๐… = 0

For a rigid body in three dimensions, force equilibrium must be accompanied by moment equilibrium:

โˆ‘๐ŒO = 0

These conditions assume static equilibrium and an inertial reference frame. They do not by themselves describe deformation, frictional constitutive behavior, or dynamic effects.

Velocity and acceleration

Position ๐ซ(t) produces velocity and acceleration through differentiation:

๐ฏ(t) = d๐ซ/dt
๐š(t) = d๐ฏ/dt = dยฒ๐ซ/dtยฒ

For circular motion of radius R with angular speed ฯ‰, the tangential speed is

v = Rฯ‰

and the inward normal acceleration is

an = vยฒ/R = Rฯ‰ยฒ

These relations require uniform circular geometry; ฯ‰ must be expressed in radians per second.

Machine geometry and CAD

Coordinate frames establish the relationship between a component, a fixture, a tool, and a workpiece. A point measured in one frame can be transformed to another by rotation and translation. In planar motion, a rotation through angle ฮธ uses the matrix

[ x' ] [ cos ฮธ โˆ’sin ฮธ ][ x ]
[ y' ] = [ sin ฮธ cos ฮธ ][ y ]

This transformation preserves distances and angles because it represents a rigid rotation. Translation must then be added separately. In three-dimensional robotics and CAD, homogeneous transformation matrices combine rotation and translation in one representation.

9. Applied Case: Locating a Drilling Axis on an Inclined Fixture

Background

Consider an illustrative manufacturing cell in which a drilling tool must pass through a point on an inclined fixture. The fixture surface is defined by three measured points, and the tool axis must be normal to that surface.

Problem

Let the measured points, in millimetres, be

A = (0, 0, 0), B = (80, 0, 20), C = (0, 60, 15).

Determine a normal direction, the plane equation, and the tool-axis line through P = (30, 20, 11).

Analysis

Two vectors in the fixture surface are

๐ฏ = ๐ซB โˆ’ ๐ซA = 80๐ข + 20๐ค mm
๐ฐ = ๐ซC โˆ’ ๐ซA = 60๐ฃ + 15๐ค mm

Their cross product is

๐ง = ๐ฏ ร— ๐ฐ = โˆ’1200๐ข โˆ’1200๐ฃ + 4800๐ค mmยฒ

A simpler parallel normal is ๐ง = (โˆ’5, โˆ’5, 20). The plane through A is therefore

โˆ’5x โˆ’ 5y + 20z = 0

or

z = (x + y)/4

Substitution verifies the measured points: B gives z = 20 mm and C gives z = 15 mm.

The normal magnitude is

|๐ง| = โˆš(25 + 25 + 400) = โˆš450 โ‰ˆ 21.21

A unit normal is approximately

๐งฬ‚ = (โˆ’0.236, โˆ’0.236, 0.943)

The drilling-axis line through P is therefore

๐ซ(t) = (30, 20, 11) + t(โˆ’5, โˆ’5, 20)

where t may be scaled to produce the required physical drill length. If the drill must extend 100 mm, the direction should first be normalized and multiplied by 100.

Outcome and learning points

The vector cross product converted surface measurements into a usable tool direction. The plane equation provided a geometric check, while the parametric line represented the drilling axis. In a production system, measurement uncertainty, fixture deformation, tool deflection, and coordinate-frame calibration would also need consideration.

10. Limitations, Errors, and Best Practices

Vector methods are exact within their mathematical model, but engineering results may be affected by:

  • inconsistent units, such as mixing millimetres and metres;
  • incorrect axis orientation or left-handed coordinate systems;
  • degrees used where software expects radians;
  • rounded measurements and nearly parallel vectors;
  • poorly conditioned calculations involving very small angles;
  • confusing a pointโ€™s coordinates with a direction vector;
  • using a force resultant without checking its moment;
  • ambiguity in spherical-coordinate conventions.

Best practice is to define the origin, positive axes, units, angle convention, and reference frame before calculating. Keep extra digits during intermediate computations and round only the final result. Verify results by dimensional analysis, geometric reasonableness, and substitution into the original equations. In CAD, robotics, and measurement software, coordinate transformations should be documented so that data can be traced and independently reproduced.

Digital tools and AI-assisted engineering software can perform vector calculations, fit planes, and identify geometric features from point clouds. They do not remove the need for engineering judgment. A technician or engineer must validate sensor calibration, coordinate conventions, tolerances, and physical plausibility. Automated outputs should not be accepted without checking the underlying data and assumptions.

Chapter Summary

Vectors represent quantities that possess magnitude and direction and are essential for forces, motion, and machine geometry. Cartesian components permit systematic addition, subtraction, scaling, and magnitude calculation. The dot product produces a scalar and supports angle calculations, projections, perpendicularity, and work. The cross product produces a vector normal to two input vectors and supports moments, torque, areas, and plane construction.

Lines are represented by a point and a direction vector, while planes are represented by a point and a normal vector or by a Cartesian equation. Cartesian coordinates are suited to orthogonal machine frames; polar coordinates describe planar radial geometry; cylindrical coordinates suit shafts and rotational systems; and spherical coordinates describe three-dimensional radial systems. Correct coordinate conventions, unit consistency, and reference-frame definitions are essential.

In machine technology, these methods support equilibrium analysis, shaft torque calculations, tool-path definition, fixture alignment, motion analysis, CAD modeling, and robotic positioning. Their reliability depends on appropriate assumptions, accurate measurements, and verification against physical conditions.

Key Terms

Scalar: A quantity described by magnitude only.

Vector: A quantity described by magnitude and direction.

Component: The signed projection of a vector along a coordinate axis.

Unit vector: A vector with magnitude one.

Resultant: The vector sum of several vectors.

Dot product: A scalar product equal to the product of magnitudes and the cosine of their included angle.

Projection: The component of one vector along another direction.

Cross product: A vector product perpendicular to two input vectors.

Moment: The turning effect of a force about a point or axis.

Position vector: A vector locating a point relative to an origin.

Parametric line: A line defined by a point, direction vector, and scalar parameter.

Plane normal: A vector perpendicular to a plane.

Cartesian coordinates: Coordinates based on mutually perpendicular linear axes.

Polar coordinates: A two-dimensional radial distance and angle system.

Cylindrical coordinates: A radial, angular, and axial coordinate system.

Spherical coordinates: A radial distance with polar and azimuth angles.

Reference frame: An origin and set of oriented axes used for measurement.

Equilibrium: A state in which resultant force and, for a rigid body, resultant moment are zero.

Coordinate transformation: A mathematical conversion between reference frames.

Review Questions

Short Answer Questions

  1. What distinguishes a vector from a scalar?
  2. State the component form and magnitude formula for a three-dimensional vector.
  3. What physical information does the dot product provide?
  4. Why is the cross product useful in torque calculations?
  5. State the conventional spherical-coordinate conversion equations used in this chapter.

Long Answer Questions

  1. Explain vector addition, scalar multiplication, normalization, and their significance in machine-force analysis.
  2. Derive the formula for the projection of one vector onto another and discuss its engineering uses.
  3. Explain how three noncollinear points define a plane using a cross product.
  4. Compare Cartesian, polar, cylindrical, and spherical coordinates, including one machine application of each.
  5. Discuss the assumptions and practical limitations involved in using vector equilibrium equations for a real machine.

Analytical / Application Questions

  1. Forces of 200๐ข โˆ’ 150๐ฃ + 80๐ค N and โˆ’50๐ข + 40๐ฃ โˆ’ 20๐ค N act on a bracket. Determine the resultant force and its magnitude.
  2. A force ๐… = 300๐ข + 400๐ฃ N is applied at ๐ซ = 0.2๐ข + 0.5๐ค m. Calculate the moment about the origin and interpret its direction.
  3. A tool must move along the line joining A = (20, 10, 5) mm and B = (80, 40, 35) mm. Construct a parametric equation for the tool path and determine the unit direction vector.

Multiple Choice Questions with Answers

Question 1

Which operation produces a scalar from two vectors?

A. Vector addition

B. Dot product

C. Cross product

D. Scalar multiplication

Correct Answer: B. Dot product

Question 2

The magnitude of ๐š = 3๐ข + 4๐ฃ is:

A. 1

B. 5

C. 7

D. 12

Correct Answer: B. 5

Question 3

The moment of a force ๐… about point O is calculated using:

A. ๐ซ ยท ๐…

B. ๐ซ + ๐…

C. ๐ซ ร— ๐…

D. |๐ซ|/|๐…|

Correct Answer: C. ๐ซ ร— ๐…

Question 4

Two nonzero vectors are perpendicular when their dot product is:

A. โˆ’1

B. 0

C. 1

D. Undefined

Correct Answer: B. 0

Question 5

For the line ๐ซ(t) = ๐ซโ‚€ + t๐, ๐ represents the:

A. Origin

B. Plane normal

C. Direction vector

D. Distance from the origin

Correct Answer: C. Direction vector

Question 6

The cylindrical radial coordinate of the point (3, 4, 7) is:

A. 3

B. 4

C. 5

D. 7

Correct Answer: C. 5

Question 7

Using the convention in this chapter, the spherical polar angle ฮธ is measured from the:

A. Positive x-axis

B. Positive y-axis

C. Positive z-axis

D. Negative z-axis

Correct Answer: C. Positive z-axis

Question 8

If two vectors are parallel, their cross product is:

A. A unit vector

B. Zero

C. Their sum

D. Their dot product

Correct Answer: B. Zero

Question 9

The work done by a constant force is calculated by:

A. ๐… ร— ๐ฌ

B. ๐… ยท ๐ฌ

C. |๐…| + |๐ฌ|

D. ๐…/๐ฌ

Correct Answer: B. ๐… ยท ๐ฌ

Question 10

For a rigid body in static equilibrium, which pair of conditions is required?

A. Only constant velocity

B. โˆ‘๐… = 0 and โˆ‘๐Œ = 0

C. Only zero displacement

D. Equal mass and volume

Correct Answer: B. โˆ‘๐… = 0 and โˆ‘๐Œ = 0

Applied Mathematics
Chapter 3 of 15