Random Cool Stuff: Alculus
Random Cool Stuff: Alculus
back to home
Contents
0.1
CALCULUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
0.2
LOGIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
0.3
0.1
CALCULUS
MULTIPLE INTEGRALS The tricky part is the limits of the multiple integral, a good-to-remember is that the outer
most integral is from point to point, then it is from a curve to a cruve, then it is from a surface to a surface, etc. In
this way, the result will be a number. The corresponding curve and surfaces can be determined from the graph or
analytically..
Remark: Complex #
1
| 1z | = |z|
;
Dot/cross product btw complex vectors are undefined, while algebraic product and division are;
Defn: Frobenius Companion Matrix
The companion matrix is defined for monic polynomial, or
p(t ) = s n + cn1 s n1 + ... + c2 s 2 + c1 s + c0
as:
c
n1
1
0
0
cn2
0
1
0
0
0
cn3
0
0
1
0
0
... c1
...
0
...
0
...
0
...
0
...
1
c0
0
0
V
R
R
~ f dV
f d ~S =
Z
1
t
Ai (x) =
cos
+ xt d t
0
3
3
Z
1
t
t
B i (x) =
exp + x t + sin
+ xt
dt
0
3
3
Ib
f ()g ()d
Ia
Convolution
Convolution between two functions is an operator taking in two functions, the target function f and the reversed shifted
weight function g , and returning the average as a function of the shifting t :
Z
( f g ) (t ) =
f ()g (t ) d
The convolution can be thought as profile of average of f created by shifting the focus of the weight function g . The
reversion is to make the shifting procede in the positive direction.
Note that convolution commutes for f and g : f g = g f . Pf: a change of variable shows it directly.
Eg: the convolution with the dirac delta function
f (x) (x xi ) =
=
Z
3
ZR
R3
f () [x xi ]d
f () [(x xi ) ]d
= f (x xi )
Is simply the shifting of the function to another point of reference.
Cross-correlation
Cross correlation, or sliding inner product, between two functions is the inner product as a function of the shifting:
Z
R f g (t ) = ( f ? g )(t )
f ()g (t + )d
where f is the complex conjugate of f . For real functions, this is inconsequential. The cross-correlation is the average of the
target function as a function of the shfiting of the weight. The cross-correlation between two discrete functions is analogous:
R f g [n] = ( f ? g )[n]
f [m] g (n + m)
m=
Auto-correlation
Auto-correlation is simply the cross-correlation of the target function with itself. The weight is the function iteself:
R f f (t ) = ( f ? f )(t )
In an autocorrelation, which is the cross-correlation of a signal with itself, there will always be a peak at a lag of zero unless
the signal is a trivial zero signal.
Mean, Variance, Covariance, Correlation, Auto-Covariance, Auto-coorelation
MEAN of a random variable is defined as:
E(x) = x =
x fX (x)d x
f (x, y)d A
the expected value functional is defined by the inner product with the joint pdf:
Z
E[ g (x, y)] = g (x, y) fX Y (x, y) d x d y
COVARIANCE AND CORRELATION of two jointly distributed random variable is defined by:
Cov(x, y) = E[(X x )(Y y )]
= E(X Y ) x y
Cor(x, y) = E[(X x )(Y y )]/ x y
= Cov(x, y)/ x y
where the expected value is integration of the inner product with joint pdf.
0.2
LOGIC
L AW OF EXCLUDED MIDDLE tertium non datur/ principium tertii exclusi. Bertrand Russell asserts a distinction between
the "law of excluded middle" and the "law of noncontradiction". In The Problems of Philosophy, he cites three "Laws of
Thought" as more or less "self-evident" or "a priori" in the sense of Aristotle:
1. Law of identity: "Whatever is, is."
2. Law of noncontradiction: "Nothing can both be and not be."
3. Law of excluded middle: "Everything must either be or not be." Note that in semantics, every declarative sentence is
either true or not true means that Law of bivalence is satisfied.
0.3
The term curvilinear comes from the fact that when perturbing only one coordinates, the resultant trajectory of a
particle is a curve rather than a line.
DEFINITION OF BASIS VECTOR The basis vectors are unit vectors such that:
r
xi
= hi ei
where r is the position vector, xi is the ith coordinate. hi is the arclength scaling factor.
Table 1
h1
1
1
1
Cartesian(x, y, z)
Cylindrical(r, , z)
Spherical(r, , )
4
h2
1
r
r sin
h3
1
1
r
SPATIAL DERIVATIVES IN DIFFERENT COORDINATES The catch here is that now the basis vectors changes with
coordinate as well! For Cartesian coordinates, basis vectors dont change:
Table 2: Cartesian derivatives of basis vector
ex
ey
ez
CYLINDRICAL
/ x
0
0
0
/ y
0
0
0
/ z
0
0
0
er
e
ez
/ r
0
0
0
/
e
er
0
/ z
0
0
0
Key observation: when determining r , observe that perturbing by is rotating the unit vector e r by , the
difference e r must have magnitude 1 and in the direction of the tangent to the pertubation curve. Hence we
have the above relation.
SPHERICAL Similar scenario for spherical note that we denote the AZIMUTHAL ANGLE as and the POLE ANGLE
with z axis as :
Table 4: Spherical derivatives of basis vector
er
e
e
/ r
0
0
0
/
sin e
sin e r cos e
cos e
/
e
0
e r
The modifications unique to the spherical coordinates are that when we perturb , we are not rotating e r , e , but their
radial component on the cut plane(constant z), this component has magnitude sin for e r and magnitude cos for
e along that radial. Hence when we perturb , we are rotating these less-than-unit vectors, hence the magitude of
the difference e r , will be sin in the direction of e and the magitude of the difference e , will be cos in the
direction of e . When perturbing , however, things are again similar to perturbing the polar angle in cylindrical case.