Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Image: ubuntu2204
3D Coordinate
We use a tuple of three numbers to express a point in the 3D space as . Note the right-hand rule for the three axis.
The distance between two points and is
The Standard Equation for the Sphere of Radius and Center is
Example
Find the center and radius of the sphere
Note that the equation is equivalent to
Vector in 3D
Vectors represent things that have both magnitude and direction in the plane (2D) or in space (3D).
Vector/directed line segment represent quantities such as force, displacement, and velocity.
The vector represented by the directed line segment has initial point and terminal point and its length is denoted by . Two vectors are equal if they have the same length (magnitude) and direction.
Component Form
If is a two-dimensional vector in the plane equal to the vector with initial point at the origin and terminal point , then the component form of is
If is a three-dimensional vector in the space equal to the vector with initial point at the origin and terminal point , then the component form of is
Given the points and , the component form of is
The magnitude or length of the vector is the nonnegative number
Vector Algebra Operations
Let and be vectors in space and is a scalar in .
Scalar multiplication:
Midpoint of a Line Segment
The midpoint of the line segment joining points to is the point
Properties of Vector Operations
Let , , be vectors in plane or space and , are scalars.
Unit Vectors/Direction
A vector of length 1 is called a unit vector. The standard unit vectors are For a vector in space, we have
Find a unit vector in the direction of the vector from to .
First we find the vector form to , which is Then we normalize it by dividing by the length of the vector () to get the unit vector
Length and Direction
If , then
is the direction of
the equation expresses as its length times its direction.
The Dot Product
If a force is applied to a particle moving along a straight path, we often need to know the magnitude of the force in the direction of motion. Note that the direction that is perpendicular to the path does not help moving the particle along the path, so we only need to find the part that is parallel to the path. If the angle between the force and the path direction is , then only the magnitude works.
If is parallel to the tangent line to the path at the point where is applied, then we want the magnitude of in the direction of , which is where is the angle between and the . The question is "how do we find the angle ?"
By the cosine rule, we have
Inner product of u and v:
u*v
,u.dot_product(v)
,u.inner_product(v)
Norm of u:
u.norm()
Angle Between Two Vectors
The dot product (inner product) of vectors and is the scalar
So the cosine rule tells
The angle between two nonzero vectors and is given by
Example
Find the angle between and .
Find the angle in the triangle determined by the vertices , and .
We first compute the two vectors , and . Then we compute the angle by the formule
Orthogonal Vectors
Vectors and are orthogonal if .
Properties of the Dot Product
If , , and are any vectors and is a scalar, then
Projecting one Vector onto another
The vector projection of onto is the vector The scalar component of in the direction of is the scalar
Therefore, the projection is
Verify that is orthogonal to .
The Cross Product
In a plane, we can use slope and angle of inclination to describe a line. How to describe a plane in space?
If and are not parallel, they determine a plane. We select a unit vector perpendicular to the plane by the right-hand rule.
The cross/vector product is the vector
Applications of the cross product:
compute area The magnitude of the cross product is the area of the parallelogram determined by and .
find perpendicular vector: is perpendicular to and .
Nonzero vectors and are parallel if and only if
Some Properties of the Cross Product
If , , and are any vectors and are scalars, then
Determinant Formula for
If and , then based on the properties of cross product, we have
Triple Scalar or Box Product
It computes the volume of the parallelepiped determined by , , and .
Calculating the Triple Scalar Product as a Determinant
Lines and Planes in Space
A vector equation for the line through parallel to is where is the position vector of .
The standard parametrization of the line through parallel to is
Example: Parametrize the line segment joining the points and
We need to find based on the two points on the line. By calculation, the vector is Then we have
Distance from a Point to a Line Through Parallel to
The distance is from a point to a line is , which does not depend on the point .
Find the distance from the point to the line
An Equation for a Plane in Space
A plane is determined by a point on the plane and its "tilt" or orientation.
The plane through normal to has
Vector equation:
Component equation:
Component equation simplified:
Example: Find an equation for the plane through , , and .
We need to find the normal vector first use the cross product of and . The cross product is . Therefore, the equation is
Lines of Intersection
Two planes that are not parallel intersect in a line.
This is perpendicular to both normal vectors, so we can use the cross product to find the direction of the line.
Example: Find parametric equations for the line of intersection of the planes and
We first compute the direction of the line using the cross product of two normal vectors, which gives Then we find one point on both planes, .
Example: Find the point where the line intersects the plane .
Just plug in to the equation of the plan and solve for .
Distance from a Point to a Plane
The distance from a point to a plane is the inner product of to the normalized normal vector .
Angles Between Planes
The angle between planes is the angle between two normal vectors.