Exam Prep
Exam Prep
Abhinav Pradeep
October 29, 2023
1 Multivariate Limits
1.1 Continuity in calculus of one variable
To prove f is continuous at c,
lim f = lim− f
x→c+ x→c
+
For c ,
|f (x) − L| < ϵ
Analogously, for c− ,
|f (x) − L| < ϵ
|f (x) − L| < ϵ
1
1.4 Euclidean distance in Rn
For P, Q ∈ Rn , where P = (P1 , P2 , P3 ...Pn ), Q = (Q1 , Q2 , Q3 ...Qn )
v
u n
uX
D(P, Q) = t (Pi − Qi )2
i=1
∀ϵ > 0, ∃I ∈ N s.t ∀i ≥ I,
D(xi , X) < ϵ
we have that:
f : D → Rm
Where
D ⊆ Rn
Considering the set of all sequences that converge at X is equivalent to considering the set of all
directions possible ∈ Rn or ∈ D that X can be approached from. Hence, where the single variable case
considers approaches to X + and X − , the multivariate case considers approaches from all directions
possible in abstract Rn
1.7 Limits of multivariate functions
f : Rn → Rm
To prove
lim f (x) = L
x→C
lim (f ± g) = L ± M
(x,y)→(a,b)
lim (f × g) = L × M
(x,y)→(a,b)
f L
lim =
(x,y)→(a,b) g M
lim kf = kL
(x,y)→(a,b)
Suppose that lim(x,y)→(a,b) f (x, y) = L AND g(x) continuous at L. Then, lim(x,y)→(a,b) g(f (x, y)) = g(L)
Squeeze Theorem:
f ≤g≤h
Change of variables: Set two new variable u and v such that the limit can be split up into two separate
single variable limits.
2 Multivariate Derivatives
NOTE: || : Rn → R where for V ∈ Rn , |V | = D(0, V )
2.1 Differentiability
f : Rn → Rm is differentiable at X ∈ Rn if ∃T such that:
|f (x + h) − f (x) − T h|
lim =0
h→0 |h|
Where h ∈ Rn
|f (x + V h) − f (x)|
DV f (x) = lim
h→0 |h|
Where h ∈ Rn
DV f = (DV f1 , DV f2 , DV f3 , ...DV fm )
∂ 2f ∂ 2f
=
∂x∂y ∂y∂x
For f : Rn → R the total derivative, which is called the gradient ∇, can be defined as:
∇f = (D1 f, D2 f, D3 f, ...Dn f )
The gradient ∇f points in the direction of maximum increase of the function f .
The magnitude |∇f | gives the slope (rate of increase) along this maximal direction
f + g : Rn → Rm
Is totally differentiable at x and
3 Tangent Plane
Consider f : R2 → R
Let z = f (x, y)
The plane tangent to z = f (x, y) at some point P⃗ = (a, b, f (a, b)) is of the form:
⃗n(⃗r) = ⃗n(P⃗ )
Where ⃗n is the vector normal to z = f (x, y) at P⃗ . This would be:
⃗n = (1, 0, Dx f ) × (0, 1, Dy f )
Where (1, 0, Dx f ) denotes how much f (x, y) changes in the x direction and (0, 1, Dy f ) denotes how
much f (x, y) changes in the y direction.
Dx F = (1, 0, Dx f )
Dy F = (0, 1, Dy f )
Either way,
i j k
⃗n = det 1 0 Dx f
0 1 Dy f
⃗n = −(Dx f )i − (Dy f )j + k
⃗n = (−Dx f, −Dy f, 1)
Let ⃗r = (x, y, z)
⃗n(⃗r) = ⃗n(P⃗ )
4 Optimization on f : Rn → R
4.1 Definition of local extrema
Consider f : Rn → R
Define Bϵ (x) = {a ∈ Rn |D(x, a) < ϵ}
Hf (X) = Indefinite
xT M x > 0 ∀x ∈ Rn
M is negative definite iff:
xT M x < 0 ∀x ∈ Rn
M is indefinite iff:
xT M x = 0 ∀x ∈ Rn
f : Rn → R
gi : Rn → R, i ∈ [1, m]
Optimize f with respect to constraints gi = 0 ∀i ∈ [1, m]
gi = 0 forms a contour or level curve. From below proof, it is evident the ∇gi (x) ⊥ (gi = 0)@x:
gi (r(t)) = 0
d
gi (r(t)) = 0
dt
d
∇gi · r(t) = 0 − (1)
dt
QED
However, it is intuitive and a fact that the minimums and maximums of f (r(t)) will occur
where f (r(t)) is flat.
gi = 0 ∀i ∈ [1, m]
5 Arc Length
Arc length
s
n 2 2 2
X ∆x ∆y ∆y
s = lim + + ∆t
n→∞
i=1
∆t ∆t ∆t
Therefore, for some curve r in R that is parametrized as r(t) : R → R3 :
3
Z b
s= |r′ (t)|dt
a
6 Line integrals
Given f : R2 → R. For some curve C ∈ R2 , that can be parametrized as r : [a, b] → C,
Z
I= f (r)ds
C
3
Parametrize the curve as r(t) : [a, b] → R . By the arc length formula:
ds = |r′ (t)|dt
Hence,
Z Z b
f (r)ds = f (r(t)) |r′ (t)| dt
C a
7 Polar Co-Ordinates
Go from (x, y) to (r, θ)
x = r cos (θ)
y = r sin (θ)
Go from (r, θ) to (x, y)
p
r= x2 + y 2
y
θ = arctan
x
8 Vector fields
Vector fields are defined as F : Rn → Rn . In this case, n is usually 3 F : R3 → R3
F = ∇f
Where f : Rn → R. More explicitly,
∂f ∂f ∂f ∂f
F = , , , ...
∂x1 ∂x2 ∂x3 ∂xn
This property leads to the fact that the line integral is path independent:
Z b
F (r(t)) · r′ (t) dt
a
F (r(t)) = ∇f (r(t))
∂f ∂f
F (r(t)) = ,
∂x ∂y
Hence,
Z b
∂f ∂f dx dy
, · , dt
a ∂x ∂y dt dt
Z b
∂f dx ∂f dy
+ dt
a ∂x dt ∂y dt
By inverse chain rule,
Z b
df
dt
a dt
Z r(b)
df
r(a)
= f (r(b)) − f (r(a))
8.2.1 Easy way to check for 2D conservative vector fields
Assume F is conservative. Hence,
∂f ∂f
F = ,
∂x ∂y
By Clairauts theorem,
∂ 2f ∂ 2f
=
∂x∂y ∂y∂x
Hence,
∂F2 ∂F1
=
∂x ∂y
9 Physics stuff
9.1 Motion in conservative fields
9.1.1 Conservation of energy derivation
Given some conservative field,
F = ∇f
V = −f
Consider an object of mass m in a force dependant field. The object can be characterized as having
an initial position and velocity. There are no external forces.
By newtons first law,
F (r) = mr̈
|F |
F = r
|r|
Dependant variable: Vd
Steps:
f (Vd , V1 , V2 , V3 , ...Vn−1 ) = 0
2. Hence, f has n parameters. There exist generally 3 fundamental units. Therefore, there exist n − 3
dimensionless Π.
3. Pick 3 repeating variables such that the exponents yield m0 l0 t0 . Repeating variables are those that
cannot form m0 l0 t0 without multiplying in any other terms. Try not to pick Vd . Assume repeating
variables are V1 , V2 , V3 .
Φ1 (Π1 , Π2 , Π3 , ...Π(n−3) ) = 0
Π1 = Φ2 (Π2 , Π3 , ...Π(n−3) )
Π2 = Φ2 (Π1 , Π3 , ...Π(n−3) )
..
.
In this case if form such that Vd = f (V1 , V2 , V3 , ...Vn−1 ) was asked for, then pick and manipulate:
Π1 = Φ2 (Π2 , Π3 , ...Π(n−3) )
9.3 First order EOM to know
Newton’s law of cooling:
dT
= −k(T − Tm )
dt
Tm : temperature of surrounding areas
dT
k is chosen such that if T > Tm , dt
is negative.
Electric circuit:
3
X
Vi = 0
i=1
dJ
L + RJ = E(t)
dt
Single-species population models:
1. Non-damped
dP
= rP
dt
r : Rate
2. Damped
dP P
= rP 1−
dt θ
θ : Carrying capacity
Predator-prey system
dx
= αx − βxy
dt
dy
= −γy + δxy
dt
x is prey and y is predator. All parameters are positive.
Species competing for same food source
dx1
= x1 (α1 − β1 x1 − γ1 x2 )
dt
dx2
= x2 (α2 − β2 x2 − γ2 x1 )
dt
L is natural length of spring. s is length that the spring is stretched by when mass is tied to the end
and the system is at equilibrium. Hooke’s law states:
T = −kd
Therefore the force on the mass is:
F = T + mg
F = −kd + mg
At equilibrium:
F = −ks + mg
F = 0 at equilibrium as the mass is not in motion.
Hence,
0 = −ks + mg ⇒ ks = mg
When the string is stretched some x away from s
F = −k(s + x) + mg
F = −ks − kx + mg
As ks = mg
F = −kx
mẍ = −kx
mẍ + kx = 0
k
Let ω 2 = m
,
ẍ + ω 2 x = 0
Consider its characteristic equation
λ2 + ω 2 = 0
λ2 = −ω 2
λ = ±ωi
Consider eωti = cos (ωt) + sin (ωt)i. Hence,
c1 = A cos Φ
c2 = A sin Φ
Hence,
x = A cos (ωt − Φ)
π π
Φ∈ − ,
2 2
9.4.2 The damped spring
F = T + mg + Fd
Let damping force be proportional to velocity. Fd = −β ẋ
F = −k(s + x) + mg − β ẋ
As ks = mg
F = −kx − β ẋ
Hence,
mẍ = −kx − β ẋ
mẍ + β ẋ + kx = 0
k β
Let ω 2 = m
, 2p = m
ẍ + 2pẋ + ω 2 x = 0
λ2 + 2pλ + ω 2 = 0
By the quadratic formula:
√
−b ± b2 − 4ac
λ=
a
q
λ = −2p ± (2p)2 − 4 (ω 2 )
Consider the discriminant:
D = 4p2 − 4ω 2
D = 4 p2 − ω 2
If D < 0, the spring is under damped, then the EOM looks like:
p p
x = e−pt c1 cos( ω 2 − p2 t) + c2 sin( ω 2 − p2 t)
If D = 0, the spring is critically damped λ = −p and using reduction of order the below solution will
be found:
x = e−pt (c1 + c2 t)
If D > 0, the spring is over damped. Two real roots, which are guaranteed to be negative λ = −α and
λ = −β. Hence, general soln:
x = c1 e−αt + c2 e−βt
The forced spring
mẍ + β ẋ + kx = f (t)
10.2 Order:
1st order: Only first derivatives
2nd order: Only second derivatives
..
.
Nth order
10.3 Linearity:
Linear:
n
X di f (x)
ai (x) = b(x)
i=1
dxi
That is it can be written as:
n
!
X di
ai (x) i f (x) = b(x)
i=1
dx
Non-Linear:
Function can not be written as some operator acting on f (x).
f (x)n
di f (x) dj f (x)
·
dxi dxj
g(f (x))
Where g is not linear.
10.4 Auxillary conditions:
Initial Value Problems(IVP):
di+1 f df d2 f d3 f di f
= F (x, , , , ... )
dxi+1 dx dx2 dx3 dxi
Given
10.5 Autonomous
Derivative is independent of the dependant variable. Only depends on function itself.
10.6 Homogeneous
Lack of any free terms.
y ′ = f (y, x)
11.1 Linear
General solution to:
y ′ + Q(x)y = R(x)
R
Qdx
Multiply both sides by e
R R R
Qdx ′ Qdx Qdx
e y + Q(x)e y=e R(x)
By the inverse chan rule,
d R Qdx R
e y = e Qdx R(x)
dx
R
Z R
Qdx
e y = e Qdx R(x)dx
Z
1 R
Qdx
y= R
Qdx
e R(x)dx
e
y ′ = f (y, x)
As
M (x) + N (y)y ′ = 0
dy
M (x) + N (y) =0
dx
M (x)dx + N (y)dy = 0
Then the solution can be implicitly written as
Z Z
N (y)dy = M (x)dx
∂M (x, y) ∂N (x, y)
=
∂x ∂y
Then it is exact in R. To find y, find f (x, y) such that:
∂f (x, y)
= M (x, y)
∂x
∂f (x, y)
= N (x, y)
∂y
When integrating M (x, y) w.r.t x, +h becomes +h(y). Contours of f (x, y) are the implicit expression
of y. That is:
f (x, y) = C
Where C ∈ R is determined by initial values.
∂M (x, y) ∂N (x, y)
̸=
∂x ∂y
Goal is to find µ(x, y) such that
µx (x, y)M (x, y) − µy (x, y)N (x, y) − µ(x, y) (Ny (x, y) + Mx (x, y)) = 0
The only way this simplifies is:
dµ(x)
dx
M (x, y) − µ(x) (Ny (x, y) + Mx (x, y)) = 0 − dµ(y)
dy
N (x, y) − µ(y) (Ny (x, y) + Mx (x, y)) = 0
y ′′ = f (y, y ′ , x)
aλ2 + bλ + c = 0
12.4 Wronskian
The Wronskian W (y1 , y2 )(x) is defined as
y1 (x) y2 (x)
W (y1 , y2 )(x) = det ′
y1 (x) y2′ (x)
If
ay ′′ + by ′ + cy = AeBx
Assume y = λeBx
If
ay ′′ + by ′ + cy = A cos(Bt)
or
ay ′′ + by ′ + cy = A sin(Bt)
Assume y = λ1 sin(Bt) + λ2 cos(Bt)
If
ay ′′ + by ′ + cy = A cos(Bt)eCx
or
ay ′′ + by ′ + cy = A sin(Bt)eCx
Assume y = λ1 eCx sin(Bt) + λ2 eCx cos(Bt). In general:
The general solution of the above equation can be written as:
f (n) (x0 )
an = (x − x0 )n
n!
Radius of convergence:
an+1
lim = c|x − x0 |
n→∞ an
Where radius of convergence is:
1
|x − x0 | ≤
c
Consider two series given by:
∞
X
s1 = bn (x − x0 )n
n=1
Consider that:
f (x) ± g(x)
f (x)g(x)
f (x)
g(x)
Differentiation rules:
∞
X
y= an (x − x0 )n
n=1
∞
′ d X
y = an (x − x0 )n
dx n=1
The equation:
y ′′ + p(x)y ′ + q(x)y = 0
THe solution takes the form:
y = a0 y1 + a1 y2
Where a0 and a1 are arbitrary and depend on the initial conditions. y1 and y2 are power series. The
function is analytic at x = x0 where the R(y) ≥ min (R(p), R(q)).
To solve for y, write y and its derivatives as taylor series. Then solve for the coefficients. Change of
index and the above derived rules for operations of power series will be useful. Find a relation (explicit
or recursive) for the coefficients of y1 in terms of a0 and do the same for y2 in terms of a1 .
12.7 Non-Homogeneous Linear with Function Coefficients: General so-
lution
To find the general solution to a second order linear differential equation
y ′′ + p(x)y ′ + q(x)y = 0
Solve the above using series solutions to find that:
y = a0 y1 + a1 y2
General solution of the non homogenous equation will be of the form,
y = a0 y1 + a1 y2 + Y
Let Y be of the form:
Y = u1 (x)y1 + u2 (x)y2
It can be shown that:
Z
y2 (x)r(x)
u1 (x) = − dx
W (y1 , y2 )(x)
Z
y1 (x)r(x)
u2 (x) = dx
W (y1 , y2 )(x)
Hence, the solution can be written as:
Z Z
y2 (x)r(x) y1 (x)r(x)
y = a0 y1 + a1 y2 − y1 dx + y2 dx
W (y1 , y2 )(x) W (y1 , y2 )(x)
13 Parameterization of curves in R3
14 Envelope of a family of functions
y(x, t) = f (x, t)
Hold t constant.
1. Find ft (x, t)
2. Set ft (x, t) = 0
3. Find t in terms of x. Call this function g(x). The envelope is therefore:
E = f (x, g(x))
15 Partial fractions