1.14 1 Vectors and Matrices Definition: mathematical expressions possessing a magnitude and a direction that add up accordingly to the parallelogram law. Examples: forces, displacements, velocities etc. Graphical representation – an arrow with the direction of the vector and the length corresponding to the magnitude of the vector. Length of vector πΜ is denoted as P or |πΜ |. Three basic types of vectors: Free vector is not attached to any point or a line in a body. Example: Displacement of the body moving without rotation. Sliding vector has unique line of application Example: Force acting on a rigid body. Fixed vector has unique point of application (and, thereof, line of application). Example: Force acting on a deformable body. Note: in statics, forces are sliding vectors as there is no deformation. Hence, they have unique magnitude, direction, and line of action. However, we can slide the force along its line of action. 1.15 ο· Vector properties Negative vector http://mathinsight.org/image/ vector_opposite a +(-a)=0 Multiplication by a scalar http://webphysics.iupui.edu /JITTworkshop/152Basics/ vectors/vectors.html 1.16 ο· Vector addition Graphical Addition Triangle rule: http://www.maths.usyd.edu. au/u/MOW/vectors/vectors3/v-3-3.html Parallelogram rule: http://www.maths.usyd.edu. au/u/MOW/vectors/vectors3/v-3-3.html Note 1: πΜ + πΜ = πΜ + πΜ Note 2: The above methods do not general give line of action Note 3: Parallelogram rule can be used to resolve the vector into components (not unique and not necessarily orthogonal) Μ , generally |πΜ | + |πΜ | = |π Μ | Note 3: While πΜ + πΜ = π 1.17 To find numerical values of length (magnitude) and angle (direction) of vector, use trigonometry. Sine law π΄ sin(π) = π΅ sin(π) = πΆ , sin(π ) good when two angles and one side are known. Cosine law πΆ = √π΄2 +π΅2 − 2π΄π΅πππ π, good for addition, when two vectors and angle between them are known. Multiple vector addition http://www.drcruzan.com/MathVectors.html 1.18 Vector addition, Example 1: Example 2 1.19 Example 3 1.20 Addition using rectangular components: 2D http://www.maths.usyd.edu.au /u/MOW/vectors/vectors-7/v7-2.html Ο΄ Cartesian unit vectors: |πΜ | = |πΜ | = 1 Any vector can be then represented in Cartesian coordinates: πΜ = ππ₯ ∗ πΜ + ππ¦ ∗ πΜ Where: ππ₯ = |πΜ | ∗ cos Θ; ππ¦ = |πΜ | ∗ sin Θ = |πΜ | ∗ cos(90 − Θ) From here: |πΜ | = √ππ₯2 + ππ¦2 and Θ = tan−1 ππ¦ ⁄π π₯ Adding two vectors: πΜ = ππ₯ ∗ πΜ + ππ¦ ∗ πΜ and πΜ = ππ₯ ∗ πΜ + ππ¦ ∗ πΜ π Μ = πΜ + πΜ = π π₯ ∗ πΜ + π π¦ ∗ πΜ = ππ₯ ∗ πΜ + ππ¦ ∗ πΜ + ππ₯ ∗ πΜ + ππ¦ ∗ πΜ = (ππ₯ + ππ₯ ) ∗ πΜ + (ππ¦ + ππ¦ ) ∗ πΜ Similar for more than two forces. 1.21 Examples: 1.22 3D Similar to 2D. Μ | = π Unit vectors: |πΜ | = |πΜ | = |π πΜ = ππ₯ πΜ + ππ¦ πΜ + ππ§ πΜ and |πΜ | = √ππ₯2 + ππ¦2 + ππ§2 Directional Cosines: If we have vector πΜ = ππ₯ πΜ + ππ¦ πΜ + ππ§ πΜ , we can introduce directional cosines πππ (πΌ) = ππ¦ ππ₯ π , πππ (π½) = , πππ (πΎ) = π§, where πΌ, π½, πΎπ π π coordinate direction angles between vector πΜ and positive πΜ , πΜ , πΜ directions of coordinate system. Then πΜ = ππππ (πΌ)πΜ + ππππ (π½)πΜ + ππππ (πΎ)πΜ = π(πππ (πΌ)πΜ + πππ (π½)πΜ + πππ (πΎ)πΜ ) = ππ’ Μ Μ Μ Μ , π Where Μ Μ Μ Μ π’π is unit vector in the direction of πΜ , π’π Μ Μ Μ Μ =πππ (πΌ)πΜ + πππ (π½)πΜ + πππ (πΎ)πΜ and πππ 2 (πΌ) + πππ 2 (π½) + πππ 2 (πΎ) = 1 1.23 ο· Matrices Definition: A rectangular array of numbers arranged in rows and columns. Matrix A of an order mXn http://en.wikipedia.org/wiki/Matrix_ %28mathematics%29 Each element of the matrix aij is the row i and column j element of A. For example, a12 denotes the element in the first row and second column. Square Matrix: m=n Note: A vector can be represented as a matrix of the order 1X3, in the following way: πΜ = ππ₯ πΜ + ππ¦ πΜ + ππ§ πΜ = (ππ₯ ππ¦ ππ§ ) Submatrix is obtained from the matrix by deleting any collection of rows and columns. Example: http://en.wikipedia.org/wiki/Matrix_ %28mathematics%29 Note: most of the matrix algebra is beyond the scope of this course. 1.24 Determinant of a matrix: Determinant can be calculated only for a square matrix. Determinant of a matrix A is denoted det(A) or |A|. For a 2X2 matrix, the determinant is defined as follows: http://en.wikipedia.org/wiki/Determinant#2 .C2.A0.C3.97.C2.A02_matrices For matrices of higher order, the process is inductive. The determinant is calculated by going through either a row or a column, multiplying the elements in it by the determinant of a submatrix that is obtained by removing the row and the column of the corresponding element for the overall matrix and alternating the plus and minus signs. Of most interest to us is the determinant of a 3X3 matrix: http://en.wikipedia.org/wiki/Determinant#2 .C2.A0.C3.97.C2.A02_matrices An alternative easy way to calculate the determinant of a 3X3 matrix is using the rule of Sarrus: http://en.wikipedia.org/wiki/Determinant#2 .C2.A0.C3.97.C2.A02_matrices πππ‘ (π΄) = π11 π22 π33 + π12 π23 π31 + π13 π21 π32 − π13 π22 π31 − π11 π23 π32 − π12 π21 π33 Example of use: calculating the area of a parallelogram where the first row is 1’s and the second and third are vectors of the parallelogram’s sides. 1.25 ο· Vector operators The Scalar (dot) product: Definition: π΄Μ β π΅Μ = |π΄Μ | β |π΅Μ | β πππ (π), where π is the angle between vectors π΄Μ and π΅Μ , with their tails joined. As can be seen the dot product is a scalar (hence the alternative name). From definition it is obvious that for Cartesian unit vectors: πΜ β πΜ = πΜ β πΜ = πΜ β πΜ = 1 β 1 β cos(0) = 1 πΜ β πΜ = πΜ β πΜ = πΜ β πΜ = 1 β 1 β cos(90°) = 0 Leading to: π΄Μ β π΅Μ = (π΄π₯ πΜ + π΄π¦ πΜ + π΄π§ πΜ ) β (π΅π₯ πΜ + π΅π¦ πΜ + π΅π§ πΜ ) = π΄π₯ π΅π₯ + π΄π¦ π΅π¦ + π΄π§ π΅π§ Select computation method based on what is easier to compute or given. Dot product rules Commutative: π΄Μ β π΅Μ = π΅Μ β π΄Μ Distributive: π΄Μ β (π΅Μ + πΆΜ ) = π΄Μ β π΅Μ + π΄Μ β πΆΜ Multiplication by a scalar: a(π΄Μ β π΅Μ ) = (ππ΄Μ ) β π΅Μ = π΄Μ β (ππ΅Μ ) Example: π΄Μ = 2πΜ − 3πΜ , π΅Μ = 6πΜ + 4πΜ , π΄Μ β π΅Μ =?. π΄Μ β π΅Μ = (2πΜ − 3πΜ ) β (6πΜ + 4πΜ ) = 2 β 6 − 3 β 4 = 0 In order to calculate the angle between these two vectors: 1.26 π΄Μ β π΅Μ = |π΄Μ | β |π΅Μ | β πππ (π ) = 0, 3D Example: π΄Μ = πΜ + 3πΜ + πΜ , βΉ π³ = 90° π΅Μ = 2πΜ − πΜ + πΜ π΄Μ β π΅Μ =? π΄Μ β π΅Μ = 1 ∗ 2 − 3 ∗ 1 + 1 ∗ 1 = 0 Hence, π΄Μ and π΅Μ are perpendicular. You can always check it by drawing them. Applications of the dot product: 1) Angle between two vectors: π = πππ −1 ( π΄Μ βπ΅Μ AB ) You need to know components of π΄Μ and π΅Μ . 2) Components of vector parallel and perpendicular to a line. πΉβ₯ = F β cos(π ) = πΉΜ β π’ Μ Μ Μ β₯ πΉΜ β₯ = πΉβ₯ β π’ Μ Μ Μ β₯ = (πΉΜ β Μ Μ Μ π’β₯ ) β Μ Μ Μ π’β₯ Μ Μ Μ πΉ⊥ = πΉΜ − πΉΜ β₯ , πΉ⊥ = √πΉ 2 − πΉβ₯2 Alternatively: πΉ⊥ = πΉ β π ππ(π ), π = πππ −1 πΉΜ β Μ Μ Μ π’β₯ ( ) πΉ Μ Μ Μ πΉ⊥ = πΉ⊥ β π’ Μ Μ Μ Μ Μ Μ Μ Μ ⊥ = πΉ β π ππ (π ) β π’ ⊥ = √πΉ 2 − πΉβ₯2 β π’ Μ Μ Μ Μ ⊥ 1.27 Examples: 1.28 The vector (cross) product: Definition: the vector product of two vectors π΄Μ and π΅Μ denoted as π΄Μ × π΅Μ is defined as vector πΆΜ which satisfies the following conditions: 1. Direction: perpendicular to the plane formed by π΄Μ and π΅Μ 2. Magnitude: |π΄Μ × π΅Μ | = |π΄Μ | ∗ |π΅Μ | ∗ π ππ(π), where π is an angle between |π΄Μ | and |π΅Μ |. Hence, π΄Μ × π΄Μ = 0. 3. Sense: given by right hand rule (or screwdriver rule). Note 1: From the product definition |πΜ × πΜ | = |πΜ × πΜ | = |πΜ × πΜ | = 1 β 1 β Sin(0) = 0 |πΜ × πΜ | = |πΜ × πΜ | = |πΜ × πΜ | = 1 β 1 β Sin(90°) = 1 Note 2: The vector product is not commutative π΄Μ × π΅Μ = −(π΅Μ × π΄Μ ) Note 3: The vector product is distributive π΄Μ × (π΅Μ 1 + π΅Μ 2 ) = π΄Μ × π΅Μ 1 + π΄Μ × π΅Μ 2 How to calculate? Example: using the definition π΄Μ = 2πΜ − πΜ , π΅Μ = 3πΜ + 2πΜ , π΄Μ × π΅Μ =?. π΄Μ × π΅Μ = (2πΜ − πΜ ) × (3πΜ + 2πΜ ) = 2πΜ × (3πΜ + 2πΜ ) − πΜ × (3πΜ + 2πΜ ) = 2π × 3π + 2π × 2π − π × 3π − π × 2π = 4πΜ + 3πΜ = 7πΜ Going by definition is cumbersome and complicated. 1.29 An alternative way to calculate: It is easy to calculate both the magnitude and the direction of the cross product by using a determinant of a matrix. πΜ πΜ πΜ π΄Μ × π΅Μ = |π΄π₯ π΄π¦ π΄π§ | π΅π₯ π΅π¦ π΅π§ = (π΄π¦ π΅π§ − π΄π§ π΅π¦ ) ∗ πΜ + (π΄π§ π΅π₯ − π΄π₯ π΅π§ ) ∗ πΜ + (π΄π₯ π΅π¦ − π΄π¦ π΅π₯ ) ∗ πΜ Mixed triple product: πΆΜ β (π΄Μ × π΅Μ ) Interpretation: absolute value of the triple product is the volume of the parallelepiped with vectors π΄Μ , π΅Μ πππ πΆΜ for sides. Mixed triple product is zero if the vectors forming it are coplanar. Counterclockwise circular permutation: πΆΜ β (π΄Μ × π΅Μ ) = π΅Μ β (πΆΜ × π΄Μ ) = π΄Μ β (π΅Μ × πΆΜ ) = −πΆΜ β (π΅Μ × π΄Μ ) = −π΄Μ β (πΆΜ × π΅Μ ) = −π΅Μ β (π΄Μ × πΆΜ ) B C πΆπ₯ πΆΜ β (π΄Μ × π΅Μ ) = |π΄π₯ π΅π₯ Note: the triple product is a scalar. πΆπ¦ π΄π¦ π΅π¦ πΆπ§ π΄π§ | π΅π§ A