Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2025-10-16 20:55:26
Size: 3552
Comment: Initial commit
Revision 7 as of 2025-10-28 22:36:15
Size: 5416
Comment: Standard forms
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
== Parallelogram in the Cartesian Plane == == Unit Triangle Formed by a Vector ==
Line 13: Line 13:
The area of a parallelogram formed by two vectors can be calculated as ''||a⃗|| ||b⃗|| sin(θ) = a⃗' · b⃗''. {{{
          a
          *
  ||a|| /|
        / |
       / | ||a|| sin(θ)
      / |
     /θ |
    /_____|
Line 15: Line 23:
The first form should be self-explanatory. ''θ'' is the angle formed by the two vectors; its area is equal to base times height; its height is given by ''||b⃗|| sin(θ)''.        ||a|| cos(θ)
}}}
Line 17: Line 26:
The second form is in terms of a⃗', which is a⃗ rotated by 90 degrees (or π/2 radians) counter-clockwise.
 * This can be thought of as transforming a vector composed as ''[a,,1,, a,,2,,]'' into ''[-a,,2,, a,,1,,]'', i.e. flipping the sign of the second component and then swapping the components.
 * This can also be expressed with a [[LinearAlgebra/RotationMatrix|rotation matrix]].
----
Line 21: Line 28:
The derivation for the second form is simply forcing it into the 'shape' of the [[Calculus/VectorOperations#Dot_Product|dot product]]:

== Angle Formed by Two Vectors ==

Given two sides of a triangle, the angle between them is characterized by the [[Calculus/Trigonometry|cosine function]]:

''cos(θ) = [ adjacent ] / [ hypotenuse ]''

For any two given vectors, a similar formula can be used. To force a right triangle however, the cosine must be calculated with respect to the hypotenuse and the projection of the hypotenuse on bthe other angle.

''cos(θ) = [ (a⃗ · b⃗)/||b⃗|| ] / [ ||a⃗|| ]''

''cos(θ) = (a⃗ · b⃗)/(||a⃗|| ||b⃗||)''

''θ = cos^-1^((a⃗ · b⃗)/(||a⃗|| ||b⃗||))''

----



== Parallelogram ==

The area of a parallelogram formed by two vectors can be calculated in several ways.

 1. ''||a⃗|| ||b⃗|| sin(θ)'' where ''θ'' is the angle formed by the two vectors
    * Area is equal to base times height and height is clearly given by ''||b⃗|| sin(θ)''
 2. ''a⃗' · b⃗'' where a⃗' is a⃗ rotated by 90 degrees (or π/2 radians) counter-clockwise
    * This rotation can be thought of as transforming a vector composed as ''[a,,1,, a,,2,,]'' into ''[-a,,2,, a,,1,,]'', i.e. flipping the sign of the second component and then swapping the components.
    * This rotation can also be expressed with a [[LinearAlgebra/RotationMatrix|rotation matrix]].
    * This form is derived by forcing the first into the 'shape' of the [[Calculus/VectorOperations#Dot_Product|dot product]]:
Line 29: Line 65:
This dot product expands out to ''a,,1,,b,,2,, - a,,2,,b,,1,,''. This is called the [[LinearAlgebra/Determinant|determinant]] of the two vectors, and notated as ''det(a⃗, b⃗)''.  3.#3 ''det(a⃗, b⃗)''
      * The second form expands to ''a,,1,,b,,2,, - a,,2,,b,,1,,''. This is definitionally the [[LinearAlgebra/Determinant|determinant]] of the two vectors.
 4. ''||a × b||''
    * The [[Calculus/Distance|distance]] of the [[Calculus/VectorOperations#Cross_Product|cross product]] also gives the area
Line 31: Line 70:
Finally, note that these calculations can return a positive or negative number, so the sign must be discarded to treat it as geometric area. Note that these calculations can return a positive or negative number, so the sign must be discarded to treat it as geometric area.

Finally, note that the #2 and #3 can trivially be seen to not hold in higher dimensions; the matrix would be rectangular and only square matrices are [[LinearAlgebra/Invertibility|invertible]]. #4 does in fact hold in that circumstance.
Line 43: Line 84:
== Parallelogram in Space == == Plane Formed by Two Vectors ==
Line 45: Line 86:
The area of a parallelogram formed by two three-dimensional vectors is given by the [[Calculus/Distance|distance]] of the [[Calculus/VectorOperations#Cross_Product|cross product]]. Recall that the cross product returns a vector. This product describes the parallelogram in terms of the [[Calculus/UnitVector|unit vectors]]. To find the equation of a plane described by two vectors, first calculate the normal vector using the cross product of the vectors.
Line 47: Line 88:
The determinant-based approach for calculating area of a parallelogram in the Cartesian plane can trivially be seen to not hold in higher dimensions; the matrix would be rectangular and only square matrices are [[LinearAlgebra/Invertibility|invertible]]. If the plane passes through the origin, simply extract the normal vectors coefficients and set to zero: i.e. ''n⃗,,1,,x + n⃗,,2,,y + n⃗,,3,,z = 0''.

More generally, the equation is constructed given a point ''P = [a b c]'' on the plane: i.e. ''n⃗,,1,,(x-a) + n⃗,,2,,(y-b) + n⃗,,3,,(z-c) = 0''

----



== Angle Formed by Two Planes ==

Following from the above, the angle formed by two planes is given by:

''cos(θ) = |(n,,1,, · n,,2,,)|/(||n,,1,,|| ||n,,2,,||)''

''θ = cos^-1^(|(n,,1,, · n,,2,,)|/(||n,,1,,|| ||n,,2,,||))''

where ''n,,i,,'' is the normal vector for plane ''i''. Recall that the trivial normal vector of a plane defined like ''3x + 5y - z = 4'' is ''[3 5 -1]''.
Line 65: Line 122:
----



== Cylinder ==

The '''standard form equation of a cylinder''' which stretches infinitely along the z-axis is ''(x-a)^2^ + (y-b)^2^ = r^2^'' where the point ''P = [a b z]'' is the center of the cylinder and ''r'' is the radius.

----



== Sphere ==

The '''standard form equation of a sphere''' is ''(x-a)^2^ + (y-b)^2^ + (z-c)^2^ = r^2^'' where the point ''P = [a b c]'' is the center of the sphere and ''r'' is the radius.

Vector Geometry

Vectors can be used to express shapes and objects. These have geometry that can be expressed in terms of the vectors themselves.


Unit Triangle Formed by a Vector

          a
          *
  ||a||  /|
        / |
       /  | ||a|| sin(θ)
      /   |
     /θ   |
    /_____|

       ||a|| cos(θ)


Angle Formed by Two Vectors

Given two sides of a triangle, the angle between them is characterized by the cosine function:

cos(θ) = [ adjacent ] / [ hypotenuse ]

For any two given vectors, a similar formula can be used. To force a right triangle however, the cosine must be calculated with respect to the hypotenuse and the projection of the hypotenuse on bthe other angle.

cos(θ) = [ (a⃗ · b⃗)/||b⃗|| ] / [ ||a⃗|| ]

cos(θ) = (a⃗ · b⃗)/(||a⃗|| ||b⃗||)

θ = cos-1((a⃗ · b⃗)/(||a⃗|| ||b⃗||))


Parallelogram

The area of a parallelogram formed by two vectors can be calculated in several ways.

  1. ||a⃗|| ||b⃗|| sin(θ) where θ is the angle formed by the two vectors

    • Area is equal to base times height and height is clearly given by ||b⃗|| sin(θ)

  2. a⃗' · b⃗ where a⃗' is a⃗ rotated by 90 degrees (or π/2 radians) counter-clockwise

    • This rotation can be thought of as transforming a vector composed as [a1 a2] into [-a2 a1], i.e. flipping the sign of the second component and then swapping the components.

    • This rotation can also be expressed with a rotation matrix.

    • This form is derived by forcing the first into the 'shape' of the dot product:

||a⃗|| ||b⃗|| sin(θ)

||a⃗'|| ||b⃗|| cos(θ') where θ' is the complement of θ, and is the angle formed by a⃗' and b⃗.

a⃗' · b⃗

  1. det(a⃗, b⃗)

    • The second form expands to a1b2 - a2b1. This is definitionally the determinant of the two vectors.

  2. ||a × b||

Note that these calculations can return a positive or negative number, so the sign must be discarded to treat it as geometric area.

Finally, note that the #2 and #3 can trivially be seen to not hold in higher dimensions; the matrix would be rectangular and only square matrices are invertible. #4 does in fact hold in that circumstance.

Triangles

As above, multiplied by 1/2.


Plane Formed by Two Vectors

To find the equation of a plane described by two vectors, first calculate the normal vector using the cross product of the vectors.

If the plane passes through the origin, simply extract the normal vectors coefficients and set to zero: i.e. n⃗1x + n⃗2y + n⃗3z = 0.

More generally, the equation is constructed given a point P = [a b c] on the plane: i.e. n⃗1(x-a) + n⃗2(y-b) + n⃗3(z-c) = 0


Angle Formed by Two Planes

Following from the above, the angle formed by two planes is given by:

cos(θ) = |(n1 · n2)|/(||n1|| ||n2||)

θ = cos-1(|(n1 · n2)|/(||n1|| ||n2||))

where ni is the normal vector for plane i. Recall that the trivial normal vector of a plane defined like 3x + 5y - z = 4 is [3 5 -1].


Parallelepiped

The volume of a parallelepiped formed by three vectors is equal to the determinant of the three vectors, and notated as det(a⃗, b⃗, c⃗). Recall that the determinant of a matrix does not change with transposition, so this 3 by 3 matrix can be constructed either of columns or rows.

The general approach for calculating this by hand begins with separating the first row (i.e., [a1 b1 c1]). The determinant of a 3 by 3 matrix is a linear combination of the determinants of the 2 by 2 matrices according to the 3rd row.

det.svg

This can also be reformulated in terms of the dot and cross products as a⃗ · (b⃗ ⨯ c⃗). This is called the triple product.

If a⃗ exists in the plane formed by b⃗ and c⃗, then they in fact form a parallelogram with 0 volume. This matches with the first definition: the determinant is 0. This matches with the second definition as well. Recall that the cross product of b⃗ and c⃗ returns a vector that is orthogonal to both. If a⃗ exists on that plane, then the cross product is orthogonal to all of a⃗, b⃗, and c⃗. The dot product of two orthogonal vectors is always 0.


Cylinder

The standard form equation of a cylinder which stretches infinitely along the z-axis is (x-a)2 + (y-b)2 = r2 where the point P = [a b z] is the center of the cylinder and r is the radius.


Sphere

The standard form equation of a sphere is (x-a)2 + (y-b)2 + (z-c)2 = r2 where the point P = [a b c] is the center of the sphere and r is the radius.


CategoryRicottone

Calculus/VectorGeometry (last edited 2025-10-28 23:32:17 by DominicRicottone)