Vectors, Geometry and Coordinate SystemsIntroductionMachine 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 ObjectivesBy the end of this chapter, the reader should be able to: - Distinguish scalar and vector quantities and represent vectors in component form.
- Perform vector addition, subtraction, scalar multiplication, and normalization.
- Use dot products to calculate projections, angles, work, and perpendicularity.
- Use cross products to calculate moments, areas, and normal directions.
- Represent and analyze lines and planes in three-dimensional space.
- Convert between Cartesian, polar, cylindrical, and spherical coordinates.
- Apply vector and coordinate methods to machine forces, motion, and geometry.
- Recognize assumptions, limitations, units, and sources of modeling error.
1. Scalars, Vectors, and Unit VectorsA 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 vectorsIf 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 AlgebraFor 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 forceThree 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 ProductThe 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.
ProjectionThe 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. WorkFor 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 guideA 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 ProductThe 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 torqueThe 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 vectorsThe 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 torqueA 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 DimensionsA 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 DimensionsA 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 pointsIf 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 SystemsCartesian coordinatesCartesian 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 coordinatesPolar 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 coordinatesCylindrical 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 coordinatesUsing 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 conversionConvert 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 TechnologyForce systemsA 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 accelerationPosition ๐ซ(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 CADCoordinate 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 FixtureBackgroundConsider 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. ProblemLet 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). AnalysisTwo 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 pointsThe 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 PracticesVector 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 SummaryVectors 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 TermsScalar: 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 QuestionsShort Answer Questions- What distinguishes a vector from a scalar?
- State the component form and magnitude formula for a three-dimensional vector.
- What physical information does the dot product provide?
- Why is the cross product useful in torque calculations?
- State the conventional spherical-coordinate conversion equations used in this chapter.
Long Answer Questions- Explain vector addition, scalar multiplication, normalization, and their significance in machine-force analysis.
- Derive the formula for the projection of one vector onto another and discuss its engineering uses.
- Explain how three noncollinear points define a plane using a cross product.
- Compare Cartesian, polar, cylindrical, and spherical coordinates, including one machine application of each.
- Discuss the assumptions and practical limitations involved in using vector equilibrium equations for a real machine.
Analytical / Application Questions- Forces of 200๐ข โ 150๐ฃ + 80๐ค N and โ50๐ข + 40๐ฃ โ 20๐ค N act on a bracket. Determine the resultant force and its magnitude.
- A force ๐
= 300๐ข + 400๐ฃ N is applied at ๐ซ = 0.2๐ข + 0.5๐ค m. Calculate the moment about the origin and interpret its direction.
- 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 AnswersQuestion 1Which 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 2The magnitude of ๐ = 3๐ข + 4๐ฃ is: A. 1 B. 5 C. 7 D. 12 Correct Answer: B. 5 Question 3The moment of a force ๐
about point O is calculated using: A. ๐ซ ยท ๐
B. ๐ซ + ๐
C. ๐ซ ร ๐
D. |๐ซ|/|๐
| Correct Answer: C. ๐ซ ร ๐
Question 4Two nonzero vectors are perpendicular when their dot product is: A. โ1 B. 0 C. 1 D. Undefined Correct Answer: B. 0 Question 5For 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 6The cylindrical radial coordinate of the point (3, 4, 7) is: A. 3 B. 4 C. 5 D. 7 Correct Answer: C. 5 Question 7Using 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 8If 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 9The work done by a constant force is calculated by: A. ๐
ร ๐ฌ B. ๐
ยท ๐ฌ C. |๐
| + |๐ฌ| D. ๐
/๐ฌ Correct Answer: B. ๐
ยท ๐ฌ Question 10For 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
|