Incomplete

My notes for MAT21C is incomplete since I regularly skip classes and only take notes on problems on the homework that I don’t know or forgot how to do from AP Calculus AB/BC.

Series

N: common Maclaurin series

common Maclaurin series

Link to original

P: binomial series expansion

binomial function Taylor series

We have a binomial function where .

If is a positive integer, then the binomial function is a polynomial, and its Taylor series would be the same polynomial.

If is not a positive integer, then its Taylor series has infinitely many non-zero terms. The Taylor series converges for and is given by:

with binomial coefficients , , and so on.

Link to original

Algebra in 3D

P: angle between vectors

angle between vectors

The angle between vectors can be determined with dot product:

or alternatively using cross product:

Link to original

P: Two vectors orthogonal?

Two vectors are orthogonal if .

dot product

The dot product or scalar product of and is . The resulting value is a scalar. The dot product is 0 when the vectors are orthogonal to each other.

  • length of A (or B) times the length of A (or B) in the direction of B (or A), a.k.a the length of the other side of the triangle
  • is the acute or flat angle between and

The dot product is equal to the sum of the product of the corresponding components. For example, if they are two dimensional, then:

# assume u, v are two tuples of arbitrary dimensions
assert len(u) == len(v)
u_dot_v = sum([u_i * v_i for u_i, v_i in zip(u, v)])
Link to original

P: Three vectors in same plane?

Yes if the triple scalar product is 0.

triple scalar product

The triple scalar product of , , and is the determinant of the vertically concatenated matrix:

or in short:

The above is equivalent to

Triple scalar product of zero

The triple scalar product of three vectors is 0 if they are in the same plane.

Link to original

P: two plane intersection (parametric line eqn)

find a parametric equation for the line where two planes intersect

  1. Find normal vectors for the two plane. ![[normal vector#findβ€”vecn-of-a-plane|Find of a plane]]
  2. The intersecting line has the same direction as . Find the cross product.
    • NOTE: You don’t have to find the unit vector (direction) of the cross product, since the magnitude doesn’t matter, only the direction and where the initial point of the vector do (which we will determine later.
  3. Find a point shared by both planes where we can place the direction vector of the line.

    find a point shared by two planes

    • Case 1: the point is apparent in the plane equations.
      • Common point:
    • Case 2: try setting one variable to zero, plug it into the plane equations, then solve the resulting system of equations (two equations, two variables). See this post.
    Link to original
  4. Create a parametric equation now that we have and point .

    parametric equation of line from vector and point

    Given vector and point , a parametric equation for a line can be found:

    Link to original
Link to original

P: parametric equation from vector and point

parametric equation of line from vector and point

Given vector and point , a parametric equation for a line can be found:

Link to original

P: normal vector to surface at point

normal vector to surface at point

The normal vector to surface is given by the gradient . Evaluate the function at point to obtain the normal vector tangent to surface at point.

Link to original

P: tangent plane to surface

tangent plane to surface at point

To find the plane, first get its normal vector.

normal vector to surface at point

The normal vector to surface is given by the gradient . Evaluate the function at point to obtain the normal vector tangent to surface at point.

Link to original

Given the point and a normal vector, it is easy to make a plane.

plane from point and normal vector

Given a point and normal vector , a plane can be defined as follows:

Link to original

Link to original

P: area of parallelogram given three vertices

area of parallelogram given three vertices

Problem

Given three vertices of the parallelogram , , and , calculate the vectors and .

Solution

The area of the parallelogram is , their cross product.

Link to original

P: area of triangle given three vertices

area of triangle given three vertices

Problem

Given three vertices of the triangle , , and , calculate the vectors and .

Solution

The area of the parallelogram is , their cross product. The corresponding triangle is half the area.

Link to original

P: volume of parallelopiped given four vertices

volume of parallelopiped given four vertices

Assume we are given four vertices to . Treat the as the origin and calculate three vectors , , and . These three vectors are the three edges ending on the same vertex. The volume is the triple scalar product of , , and , i.e., , or find the determinant of their matrix from vertical concatenation).

Link to original

P: intersection of lines or minimum distance between lines

intersection of lines or minimum distance between lines

Without already knowing if the lines intersect, we have to follow through these steps one by one.

Parallel - distance

First check whether the lines are parallel. The lines are parallel if the cross product of the direction vectors is zero. To find distance between parallel lines: Find one point on each line. Let’s call them and . Calculate the vector

The distance between the lines is where is the direction vector for any one of the two lines.

Intersection?

If the lines aren’t parallel, we need to determine whether the lines intersect or are skew. Treat the two parametric equations as a system of equations, and solve for both parameters. If the solutions are valid (check with all equations), then we have an intersection, otherwise the lines are skew. Detailed steps below:

  • Set the first pair of parametric equations (both ) equal to each other. Solve for one of the parameter (parametric variable).
  • Set the second pair of equations equal to each other. Plug the solved parameter in, and solve for the other parameter.
  • Set the third pair equal to each other. Plug the first parameter into it and solve for the other one. Check if the solution for the parametric variable is consistent with step 2. If not, then the lines are skew. If it is, then plug the one parameter into a line equation to obtain the intersection coordinate.

Skew!

To calculate distance between skew lines:

  • Find the cross product between the two direction vectors. If the two lines were moved to the same plane, would be its normal vector.
  • Then find any point on each line ( and ) and calculate the vector . Note that the -component of is the basically distance between these two lines. We can calculate that using projection.
  • The distance between the two lines is the projection of onto :
Link to original

P: distance between point and line

distance between point and line

  • Find a point on the line.
  • The distance can be calculated from:

where is the direction vector.

Link to original

P: Projection vector

projection vector

The projection vector of onto is a vector in direction with a magnitude of β€˜s -component.

Its magnitude is

To make it a vector in β€˜s direction, multiply it by , which is β€˜s direction vector.

Link to original

Multivariate calculus

P: partial differentiation

partial differentiation

The partial differentiation of an equation with respect to () can be obtained by differentiating the equation with respect to and treating other variables as if they were constants. For example, .

For partial differentiation involving underlying variables, use chain rule and chain rule dependency diagram (e.g. when is defined not in terms of , but some other variables that can be defined with )

Link to original

P: chain rule dependency diagram

chain rule dependency diagram

A chain rule dependency diagram is useful for calculating more involved partial differentiations using chain rule.

To draw a diagram for , start from the initial function/variable, say , which is defined in terms of undesired variables (say and ). The diagram starts with as the first node. Add the variables as children to the current variable’s node. Do this repeatedly to all the newly added child nodes (leaves) until they reach at the desired variable ( in this case). Each edge in the diagram represents a partial derivative ( where is the parent variable and is child variable). For each possible path from the initial to the desired variable ( to ), multiply all the edges (e.g. -- becomes ). Sum all the paths together to get the desired partial differentiation (e.g. ).

Link to original

P: gradient

gradient

Gradient of a multivariate function at a point is a vector pointing at the direction of steepest increase in value, with a magnitude of the function’s directional derivative in the pointed direction. each partial derivative. Its components consist of partial derivatives of the corresponding variables. For instance,

Link to original

P: find direction of maximum growth and decrease of function at point

find direction of maximum growth and decrease of function at point

At a point , the maximum growth is in the direction of the gradient (), and the maximum decrease is in the opposite direction (). This can be used for optimization (e.g. stochastic gradient descent).

Link to original

P: directional derivative of f in direction of u

directional derivative

The directional derivative of in the direction , assuming that is a direction vector.

where and so on are the partial derivatives with respect to the subscripted variable.

If is the direction vector () of at point , then:

Link to original

P: critical points of multivariate function

find critical points of multivariate function

Problem

Assume the function is defined in terms of and , i.e. . Find the critical points (any minimum, maximum, or saddle point).

At critical points, and , where is the partial derivative with respect to the corresponding variable. Solve the system of equations for and . Check the coordinates for extraneous solutions (not sure if this can happen but it might).

second derivative test

For a univariate function , a second derivative test tells:

  • if is concave up (if )
  • if is concave down (if )
  • where inflection points are (where concavity changes)

If is a multivariate function, to determine whether has a minimum, maximum, or saddle point at the critical point , we can use the second derivative test.

First find , , and (, , ). Then calculate the determinant as below:

Then:

  1. If and , then has a local minimum at .
  2. If and , then has a local maximum at .
  3. If , then has saddle point at .
  4. If then test is inconclusive.
Link to original

Link to original

P: evaluate a multivariate limit (or prove it doesn’t exist)

evaluate a multivariate limit

Try each step and move on to the next if indeterminate form is encountered:

Step 1 - Simple Substitution

Try just substituting the coordinate of the limit into the expression.

Step 2 - Algebraic Manipulation

Factoring

If the expression is a fraction, try factoring the numerator and denominator and see if anything cancels. Then evaluate the limit again.

Multiply by conjugate over conjugate

If the fraction contains a root in numerator/denominator (e.g. in the form ), try getting rid of it by multiplying the fraction by the conjugate over conjugate. The conjugate for is . This might get rid of indeterminate forms if you are lucky.

Try to find other ways

See if there’s any other things you can try, like trignometry identities, to make the expression evaluatable.

Step 3 - Evaluate along paths to prove limit DNE

It’s likely that the limit does not exist, but we need to prove it. Try approaching the limit along different paths, like (y-axis), (x-axis), , , etc. Substitute the value into the limit expression then evaluate the limit. If any two limits evaluated along different paths are not equal to each other, then the limit does not exist. Note that if two limits evaluated along different paths end up being equal, this number is not necessarily the limit of the function.

Link to original

P: level curve

level curve

Level curves are like contour lines but for 3D functions.

To sketch level curves for a function, determine a range of values and step size (e.g. from -2 to 2 with step size 1, meaning ). Then for each value of : set , solve for , and draw the resulting curve.

Link to original

P: multivariate function domain

multivariate function domain

For a (real) multivariate function (let’s say ), its domain is a region where is β€˜s arity.

The boundary of is a curve that separates points internal to the domain from the points outside the domain. Formally, a region in a plane is bounded if it lies inside a disk of finite radius. Note that boundary points can be either in or out of the domain, and two boundary points don’t have to all be in or out of the domain.

  • The domain is closed if contains all boundary points, if any.
  • The domain is open if contains no boundary points.
  • In cases where there is no boundary (e.g. when the domain is the entire plane), then the domain is both open and closed.
  • The domain can be neither open nor closed if contains some but not all boundary points.
Link to original

P: piecewise multivariate partial derivative

piecewise multivariate partial derivative

Problem

Given a piecewise function : Find its partial derivatives at every point

For any point ,

Plug the into , and evaluate. We need to check if the second derivative exists at this point. If not, then the partial derivative doesn’t exist at . Do the same for .

If the second partial derivative does exist at (piecewise is OK), and the left and right side first derivatives evaluate to the same value at , then the partial derivative exist at .

Link to original