Week 2 Flashcards

1
Q

What are the sets used in this course?

A

R- Set of real numbers
R+ - set of positive reals including zero
Z - Set of Integers
Z+ - set of positive integers
R^d - set of d dimensional vectors.

[a,b]^d –> { x belongs to R^d such that xi belongs to [a,b] for all i belongs to 1,2,… ,d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a metric space?

A

Simply, it is a set with a structure.. example, point which make up a 2 unit radius from origin.

In this course, we will use R^d space with distance metric D(x,y) = llx-yll = sqrt ((x1-y1)^2 +(x2-y2)^2+…. +(xd-yd)^2)) ; aka euclidean distance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an open ball B(x,epsilon) mean?

A

open ball B(x,Epsilon) = { y belongs to R^d such that D(x.y)<epsilon }

simply, with x as center.. all points whose distance less than epsilon from x.. naturally forms a circle in two dimensions and a Sphere in three dimensions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an closed ball B-bar (x, epsilon) mean?

A

B-bar (x, Epsilon) = { y belongs to R^d such that D(x,y) less than or equal to Epsilon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are de morgan’s laws in sets?

A

complementation (Union(A,B) = Complementation(A) Intersection Complementation (B)

Complementation(Intersection(A,B))= Complementation(A) Union Complementation (B)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the common logic modifiers?

A
  1. For all
  2. There exists
  3. Implies
  4. Equivalent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a sequence?

A

Ordered collection of items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is convergent sequence?

A

Means as limit i-> infinity , xi tends to x* if for all epsilon>0, there exists N such that xn belongs to B(x*, epsilon) for all n greater than or equal to N

Simply put, beyond a particular n, whatever the ball radius is (expect radius being zero), the element of collection will fall under this ball.. or converge into this ball.(and never comes out of the ball after entering it)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a divergent sequence?

A

Not a convergent sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is norm of a vector?

A

The norm of a vector provides a way to quantify the magnitude or size of the vector in a mathematical sense. Euclidean norm is sqrt(sum of squares of coordinates)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are vector spaces?

A

Its also similar to metric space.
Vector space is collection of vectors which satisfies the following properties.
1. uEV , vEV , alpha,Beta belongs to R then Alpha u + Beta v belongs to V.

R^d is a vector space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a dot product?

A

if x and y are two vectors, then
x.y = x^Ty= Summation (i=1 to d) xi.yi

norm(x) =llxll = x.x = x^T.x = Summation (i =1 to d) xi^2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do we say if two vectors x, y are perpendicular / orthogonal?

A

x. y=0 (i.e., dot product of x and y is zero)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a d-dimensional function?

A

f: R^d –> R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are contour plots? contour maps? Heat maps?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is continuity of functions?

A

lim (i -> infinity) xi = x* implies lim (i-> infinity) f(xi)=f(x)
or compactly
lim (x -> x
) f(x) =f(x*)

Continuity should work on any or all sequences.. this will loosely translate that the limit of the function should exist from both the directions. If one sequence obeys and another sequence violates this rule.. the function is still discontinuous. E.g. f(x) = 1 for x>0 , 0 for x=0, -1 for x<1. In this function, x is discontinuous at x=0 since the sequence could converge on 0 but f(x) will only converge to 1 or -1 and NOT 0 hence, the function is not continuous.

A function is continuous if all points in the function are continuous.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How to test for continuity of functions?

A
  1. f(a) is defined
  2. lim x tends to a f(x) exists and left side limit equals right side limit
  3. lim x tends to a f(x) = f(a)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What are the types of continuity?

A
  1. continuous
  2. Point discontinuity (holes) - removable
  3. Jump discontinuity (jumps)- non- removable
  4. Infinite discontinuity (asymptotes) - non-removable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Continuity of linear functions?

A

All linear functions of type ax+b are continuous

20
Q

What is a differentiability of Functions?

A

A function f is differentiable at x* belongs to R if Lim (x->x) (f(x)-f(x)) / (x-x*)

21
Q

What is the link between continuity and differentiability?

A

If f is not continuous at x* then f is also not differentiable at x* . But the contrary is not true, A function could be continuous but still not differentiable at x. Eg : f(x)=lxl is not differentiable at x=0.

If a function is not differentiable at a point, then it may or may not be continuous at that point.

22
Q

What is a derivative of a function at x?

A

Derivative is the slope of the function at that point x which closely matches the function and could be used as an Linear approximation for the function ( at very close interval only)

23
Q

What is the linear approximation expression?

A

Linear approximation, also known as tangent line approximation or linearization, is a method used in calculus to estimate the value of a function near a particular point by using the equation of the tangent line at that point.

f’(x) = f(x)) - f(x) / (x-x*)

f(x) = f(x) + f’(x) (x-x*)

f(x) ~ Lx f

24
Q

What are the steps involved in linear approximation?

A
  1. Find the Equation of the Tangent Line:
  2. Approximate f(x) near x=a:
25
Q

How to find equation of a tangent line to a function?

A

Calculate the slope f ′ (a) of the function f(x) at x=a (the derivative of f(x) at x=a).

Use the point-slope form of the equation of a line:
y−f(a)=f ′ (a)(x−a)

Simplify to obtain the equation of the tangent line:

y=f(a)+f′(a)(x−a)

26
Q

Are higher order approximations more accurate than linear approximations?

A

Yes
quadratic approximation : f(x)~ f(x)+f’(x)(x-x) + 1/2 f’‘(x) (x-x*)^2.

there are more high approximations available.. third order .. fourth order.. etc.. but for most of this course we use linear approximation.. in special cases, we may need quadratic approximations..

27
Q

What is a tangent?

A

If one set touched(at most at one place ) another set then it is said to be a tangent.

A tangent line touches a function at atmost one point.

28
Q

What is product rule?

A

If f(x) = g(x). h(x). What is f’(x)?

f’(x) = g’(x) h(x) + h’(x) g(x)

29
Q

What is a chain rule?

A

If f(x) - g(h(x)), what is f’(x)?

f’(x) = g’( h(x)) h’(x)

30
Q

What are multivariate calculus?

A

f: R^d —> R

31
Q

What are some of the points in Geometry of lines?

A
  1. A line in R^d is subset of R^d
  2. A line through the point U belongs to R^d along the vector v belongs to R^d = { x belongs to R^d such that u+alpha.v for alpha belongs to R)
  3. Line through u, u’ belongs to R^d= { x belongs to R^d such that x=u+alpha (u’ -u) for alpha belongs to R}
    ={ x belongs to R^d: x=(1-apha)u + alpha.u’ for alpha belongs to R^d}

Note: line through u along u’-u is same as line though u’ along u-u’

32
Q

What is a hyper plane?

A

A (d-1) dimensional hyperplane is subset of R^d. A hyperplane normal to the vector w belongs to R^d with value b belongs to R = {x belongs R^d such that wTx=b}
={x belongs to R^d such that summation (i=1 to d) wi. xi.=b }

33
Q

What are tuples vs Points vs Vectors?

A

Both points and vectors are represented as tuples in R^d, and it will only be in context we could know which is which

34
Q

What are partial derivatives?

A

finding derivative of a single variable, keeping all other variables constant. (simply.. finding the derivative or slope of a function in a particular direction)

35
Q

What is a gradient?

A

Gradients in s vector containing all the partial derivatives)

Gradient = column vector (all partial derivatives)

36
Q

How is gradient found?

A

Find the Gradient: Compute ∇f(a), which is a vector of partial derivatives of f with respect to each variable evaluated at a.

37
Q

what is the relationship between gradient and linearity?

A

if gradient vector is constant, then the underlying function is linear.

38
Q

gradients and linear approximations of vectors?

A

Linear approximation of a multivariate function extends the concept of tangent line approximation from single-variable calculus to functions of multiple variables. It allows us to approximate a complex multivariate function f(x) near a point
a using a linear function.

Given a multivariate function f(x) and a point a in the domain of f:

Tangent Plane: Analogous to the tangent line in single-variable calculus, the tangent plane at a is the best linear approximation of f(x) near a.

Linear Approximation: The linear approximation of f(x) near a is given by:
L(x)=f(a)+∇f(a)⊤(x−a)
where:

∇f(a) is the gradient of f evaluated at a.
(x−a) represents the vector difference between x and a.
∇f(a)⊤ denotes the transpose of the gradient vector.
v belongs to Rd and x belongs to Rd
f(x)~ f(v) + grad(f(v) Transpose . (x-v)

39
Q

What are tangent planes?

A

The graph of linear approximations is a plane that is tangent to the graph of f at the point (v, f(v))

40
Q

gradient and contour interpretation?

A

The gradient of a function v is going to be perpendicular to the contour passing through that point.

41
Q

What are directional derivative?

A

Directional derivate of function f at point v along vector u is

lim (alpha tends to zero) (f(v+alpha.u) - f(v)) / alpha

42
Q

what is Cauchy - Schwarz Inequality?

A

For any vectors u and v in an inner product space (such as Rn or Cn), the Cauchy-Schwarz inequality states that:
∣⟨u,v⟩∣ ^2 ≤⟨u,u⟩⋅⟨v,v⟩

Where:
⟨u,v⟩ denotes the inner product (or dot product) of u and v.
⟨u,u⟩ and ⟨v,v⟩ denote the inner products of u with itself and v with itself, respectively.

The Cauchy-Schwarz inequality essentially states that the square of the absolute value of the inner product of two vectors is less than or equal to the product of the norms (or lengths) of the two vectors. In other words, the inner product of two vectors is maximized when the vectors are linearly dependent.

43
Q

What are directional derivatives?

A

The directional derivative of f at p in the direction of v measures the rate of change of f at p when moving in the direction specified by v.

44
Q

How to find directional derivatives?

A

The directional derivative D1v f(p) is given by:

Dv f(p)=∇f(p)⋅v
where:
∇f(p) is the gradient of f at p.
v is the unit vector specifying the direction.

45
Q

What is the direction of the steepest Ascent?

A

gradient multiplied by norm of gradient at a point p is the direction of steepest ascent

46
Q

How to see if equation of a line is passing through a point p along the direction of the vector v?

A

how to check if a equation of the line is passing through [7,8,6] in the direction of vector [1,2,3]?

Equation of line [1,2,3]+α[6,6,3]

proof:
equate equation of line to point , 1+6α=7 , 2+6α=8, 3+3α=6 , if the parameter α is any value other than zero then the equation satisfies the condition that it passes through the point p(7,8,6) in the direction of vector (1,2,3)

47
Q
A