Showing posts with label arc length. Show all posts
Showing posts with label arc length. Show all posts

Sunday, May 5, 2024

Circular Sector: Finding the Radius and Angle

 Circular Sector: Finding the Radius and Angle





Here is the problem:


We are given the area of the circular segment, A, and the arc length of the segment, s. What is the radius, r, and the angle, θ?


The arc length is calculated as: s = θ * r


The area is calculated as: A = ½ * θ * r^2


We have the system of equations:


A = ½ * θ * r^2

s = θ * r


Divide A by s:


A / s= (½ * θ * r^2) / (θ * r)

A / s = r / 2

2 * A / s = r


Then

s = r * θ

θ = s / r = s^2 / (2 * A)


In summary:

r = 2 * A / s

θ = s / r = s^2 / (2 * A)


Note that the angle is in radians.

Example


Example 1:

s = 4, A = 30


r = (2 * 30) / 4 = 15

θ = 4 / 15 ≈ 0.266666667


Example 2:

s = 10.5, A = 31.8


r = (2 * 30) / 4 = 212/35 ≈ 6.057142857

θ = 10.5 / (212/35) = 735/424 ≈ 1.733490566


Eddie


All original content copyright, © 2011-2024. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Sunday, April 28, 2024

TI 30Xa Algorithms: Fundamental Horizontal Circle Calculations

 TI 30Xa Algorithms: Fundamental Horizontal Circle Calculations



Introduction and Formulas





Given the following:


r = radius of the curve

Δ = central angle, or the angular sweep of the curve. The angle is usually given in whole degrees or in surveying, degrees-minutes-seconds.


We can calculate the following:


The length of the tangent line to the central meeting point:

t = r × tan( Δ / 2 )


The linear distance from where the curve begins to the point the curve ends, known as the chord distance:

c = 2 × r × sin( Δ / 2 )


The distance of the curve from the end points, known as the arc length:

s = (Δ° / 180°) × π × r


Note the formula for arc length assumes that the angle is in degrees. If the angle is in radians, the formula for arc length reduces to s = Δ rad × r.



Procedure


The procedure is made for the TI-30Xa, where we can take advantage of the three memory registers it has. You can use another calculator, except most basic scientific calculators only have one memory register; you will just have type in one of the extra variables.


1. Check the angle mode. We should be in degrees mode, which is indicated by the DEG indicator. If not, press the [ DRG ] key until degrees mode is selected.


2. Enter the central degree (Δ).


If the degree is in whole degrees, just enter the angle and store into memory register 1. ( [ STO ] [ 1 ] ).


If the degree is in degrees-minutes-seconds format (known as DMS or sometimes as HMS), enter the angle in DD.MMSSS format. Then press [ 2nd ] [ + ] {DMS>DD} to convert the angle into whole degrees. Then store the result into memory register 1.


3. Enter the radius length and store in memory register 2. ( [ STO ] [ 2 ] ).


Memory registers:

M1 = Δ; M2 = r


4. Calculate the tangent length, t:


[ ( ] [ RCL ] 1 [ ÷ ] 2 [ ) ] [ TAN ] [ × ] [ RCL ] 2 [ = ]


5. Calculate the chord distance, c:


2 [ × ] [ RCL ] 2 [ × ] [ ( ] [ RCL ] 1 [ ÷ ] 2 [ ) ] [ SIN ] [ = ]


6. Calculate the arc length, s:


[ RCL ] 1 [ × ] [ π ] [ × ] [ RCL ] 2 [ ÷ ] 180 [ = ]


Examples


Let’s assume for the following examples Degrees mode is set (DEG).


Example 1:

r = 150 ft (it can be any length unit as long as you keep it consistent)

Δ = 60° (whole degrees)


60 [ STO ] 1

150 [ STO ] 2


t: [ ( ] [ RCL ] 1 [ ÷ ] 2 [ ) ] [ TAN ] [ × ] [ RCL ] 2 [ = ]

t = 86.60254038 ft


c: 2 [ × ] [ RCL ] 2 [ × ] [ ( ] [ RCL ] 1 [ ÷ ] 2 [ ) ] [ SIN ] [ = ]

c = 150 ft

(In this case, the chord length is the same as the radius. Why? There is a geometric reason.)


s: [ RCL ] 1 [ × ] [ π ] [ × ] [ RCL ] 2 [ ÷ ] 180 [ = ]

s = 157.0796327 ft



Example 2:

r = 324 ft

Δ = 92°22’18” (92 degrees, 22 minutes, 18 seconds)


92.2218 [ 2nd ] [ + ] {DMS>DD} [ STO ] 1

324 [ STO ] 2


t: [ ( ] [ RCL ] 1 [ ÷ ] 2 [ ) ] [ TAN ] [ × ] [ RCL ] 2 [ = ]

t = 337.6968953 ft


c: 2 [ × ] [ RCL ] 2 [ × ] [ ( ] [ RCL ] 1 [ ÷ ] 2 [ ) ] [ SIN ] [ = ]

c = 467.5897175 ft


s: [ RCL ] 1 [ × ] [ π ] [ × ] [ RCL ] 2 [ ÷ ] 180 [ = ]

s = 522.3494689 ft



Source

Hewlett-Packard Company. HP-46 sample applications. Loveland, CO. February 1,1975. Part No. 00046-90018. pg. 104-105



Happy Birthday, Smokey!


Eddie


All original content copyright, © 2011-2024. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Saturday, April 27, 2024

Casio fx-CG 50: Points on a Circle

 Casio fx-CG 50: Points on a Circle


Introduction and Derivation





Given the initial point on a circle (x, y). If the point travels on a circle a distance of arc length s, where is the new point on the circle? Assumption: The center of the circle lies on the point (0, 0).


In fact, we can have two points depending on the direction traveled: counter-clockwise or clockwise. The programs presented today will determine both points.


Points that lie on the circle have the same radius. Determine the required radius:

r = √(x^2 + y^2)


And since the circle is centered at (0, 0), we can determine the angle by:

θ = arctan(y/x) = arg(x + yi)


We will assume all angles are in radians.


The arc length can be used to determine the angle traveled. Let’s call this angle z:

s = r × z

z = s / r


The new points can be determined by:


x’ = r × cos(θ + z), y’ = r × sin(θ + z)


x’’ = r × cos(θ - z), y’’ = r × sin(θ - z)


Casio fx-CG 50 Basic: PTSONCIRC


Code:


ClrText

Blue “POINTS ON”

Blue “THE CIRCLE”

Blue “CENTER (0,0)”

Red “RADIANS”

Rad

“INITIAL X”? → X

“INITIAL Y”? → Y

“ARC LENGTH”? → S

Abs (X+Yi) → R

Arg (X+Yi) → θ

S ÷ R → Z

R × cos(θ + Z) → A

R × sin(θ + Z) → B

R × cos(θ - Z) → C

R × cos(θ - Z) → D

ClrText

Green Locate 1,3,”POINT 1”

Black Locate 1,4,A

Blue Locate 11,4,”,”

Black Locate 12,4,B

Green Locate 1,5,”POINT 2”

Black Locate 1,6,C

Blue Locate 11,6,”,”

Black Locate 12,6,D


For monochrome models, leave out the color commands (Blue, Red, Black, Green)


Casio fx-CG 50 Python: ptsoncirc.py


Code:


from math import *

print(“Points on\nthe circle.”)

print(“Center is at (0,0)”)

x=float(input(“initial x? “))

y=float(input(“initial y? “))

s=float(input(“arc length? “))

r=sqrt(x**2+y**2)

t=atan(x,y)

z=s/r

b,a=r*cos(t+z),r*sin(t+z)

d,c=r*cos(t-z),r*sin(t-z)

print(“Point 1”)

print(str(a),”,\n”,str(b))

print(“Point 2”)

print(str(c),”,\n”,str(d))


Examples


X: 5, Y: 6, S: 1.5

Point 1: (3.76280901, 6.84406811)

Point 2: (6.05333094, 4.93529983)


X: 4: Y: 5, S: 1

Point 1: (3.173620164, 5.561306956)

Point 2: (4.729016994, 4.316989492)



Python Pointers


Storing to Multiple Variables in One Line


We can store a value to multiple variables in one line. For example,


a = b = 7

Stores the value 7 to both the variables a and b.


We can store multiple values to multiple values to multiple variables in one line. For example:


a, b = 7, 8

Stores 8 to the variable b and 7 to the variable a. The expression works from the inside-out.


We could also have both uppercase and lowercase letters as different variables, such as A and a. I choose not to because I want to avoid confusion.



New Line Escape Character: \n


In a string, we can add \n (backslash, n) to create a new line.



Eddie


All original content copyright, © 2011-2024. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.


Saturday, August 19, 2023

Casio fx-991CW and TI-30X Pro MathPrint: Arc Length of f(x)

Casio fx-991CW and TI-30X Pro MathPrint:  Arc Length of f(x)



Here is a tip for calculus class.  



Calculating The Arc Length of f(x)



The arc length of f(x) is defined as:


∫( √( 1 + (f'(x))^2 ) dx, x = a to x = b)



With the two function memory, f(x) and g(x), on the Casio fx-991CW and TI-30X Pro MathPrint, we can calculate arc length with the expression:  


∫( √( 1 + (g(x))^2 ) dx, x = a to x = b)


where g(x) = d/dx f(x)





Setup Instructions



Casio fx-991CW


To set up f(x) and g(x):


1.  Press [ f(x) ], select Define f(x) to define the function.  Press [ EXE ] to register it. 

2.  Press [ f(x) ], select Define g(x) to define the derivative.  Press [ EXE ] to register it.  

3.  Recall f(x) and g(x) by pressing [ f(x) ] and selecting the function.



Derivative: 


g(x)  =  ( (f(x + h) - f(x) )/h     [h is sufficiently small, like 0.001]


The integral function on the fx-991CW does not allow to have the derivative command in the integrand.  Therefore, the definition of the derivative must be used.  



TI-30X Pro MathPrint


To set up f(x) and g(x):


1.  Press [ table ].   Select Add/Edict Func.

2.  Edit f(x), then press [ enter ].

3.  Edit g(x), enter the derivative.  Press [ enter ].

4.  Press [ 2nd ] (quit) to exit Table mode. 

5.  Recall f(x) and g(x) by pressing [ table ] and selecting the function.


Derivative: 


g(x)  =  ( (f(x + h) - f(x) )/h     [h is sufficiently small, like 0.001]


 or


g(x) = d/dx( f(x) )|x=x


Note:  The TI-30X Pro MathPrint is a European version of the TI-36X Pro.   The TI-36X Pro has only one function memory slot.  


In any calculus problem, set the angle mode to Radians. 



Examples



1.  f(x) = x^3 + 1 from x = 0 to x = 3.  


For this first example, screens are from the Casio fx-991CW.






Arc length ≈ 27.65808204



2.  f(x) = sin x from x = 0 to x = π


Arc length ≈ 3.820197739



3.  f(x) = 4x^2 + 1 from x = 0 to x = 1


Arc length ≈ 1.478942858



Eddie


All original content copyright, © 2011-2023.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Wednesday, March 30, 2022

March Calculus Madness Sweet Sixteen - Day 15: r = α * (1 - cos Θ)

 ------------


Welcome to March Calculus Madness!


------------


r = α * (1 - cos Θ)


r = α * (1 - cos Θ)

r^2 = α^2 * (1 - 2 * cos Θ + cos^2 Θ)


dr/dΘ = α * sin Θ

(dr/dΘ)^2 = α^2 * sin^2 Θ



Area from 0 ≤ Θ ≤ 2*π


1/2 * ∫ α^2 * (1 - cos Θ)^2  dΘ from Θ = 0 to Θ = 2*π

= α^2/2 * ∫ 1 - 2 * cos Θ + cos^2 Θ dΘ from Θ = 0 to Θ = 2*π

= α^2/2 * ∫ 1 - 2 * cos Θ + 1/2 * cos(2*Θ) + 1/2 dΘ from Θ = 0 to Θ = 2*π

= α^2/2 * (3/2 * Θ - 2 * sin Θ + 1/4 * sin(2*Θ) from Θ = 0 to Θ = 2*π)

= 3/2 * π * α^2


Arc Length from 0 ≤ Θ ≤ 2*π


r^2 + (dr/dΘ)^2

= α^2 * (1 - 2 * cos Θ + cos^2 Θ) + α^2 * sin^2 Θ

= α^2 - 2  * α^2 * cos Θ + α^2 * (cos^2 Θ + sin^2 Θ)

= α^2 - 2  * α^2 * cos Θ + α^2 

= 2 * α^2 - 2 * α^2 * cos Θ

= 2 * α^2 *(1  - cos Θ)


Arc Length:

∫ 2 * α^2 *(1  - cos Θ) dΘ from Θ = 0 to Θ = 2*π

= α * √2 * ∫ √(1  cos Θ) dΘ from Θ = 0 to Θ = 2*π

= α * √2 * 4 * √2

= 8 * α


Eddie 


All original content copyright, © 2011-2022.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Tuesday, March 29, 2022

March Calculus Madness Sweet Sixteen - Day 14: The Arc Length of a Spiral

 ------------


Welcome to March Calculus Madness!


------------


The Length of a Spiral from 0 ≤ Θ ≤ m


The equation of a spiral:  r = α * Θ


The arc length of a polar equation r(Θ):  ∫ √(r(Θ)^2 + (dr/dΘ)^2) dΘ


r = α * Θ

r^2 = α^2 * Θ^2


dr = α dΘ

(dr/dΘ)^2 = α^2


∫ √(α^2 * Θ^2 + α^2) dΘ from Θ = 0 to Θ = m

= α * ∫ √(Θ^2 + 1) dΘ from Θ = 0 to Θ = m

= α/2 * ( ln|Θ + √(1 + Θ^2)| + Θ * √(1 + Θ^2) for Θ = 0 to Θ = m)

(see below)

= α/2 * ( ln|m + √(1 + m^2)| + m * √(1 + m^2) )



Aside:

∫ √(1 + Θ^2) dΘ


Let Θ = tan x

dΘ = sec^2 x dx


∫ √(1 + Θ^2) dΘ

= ∫ √(1 + tan^2 x) * sec^2 x  dx

= ∫ √(sec^2 x) * sec^2 x dx

= ∫ sec^3 x dx

= 1/2 * ∫ sec x dx + (sec x * tan x)/2 + C

(per reduction integration rule for sec x)


= 1/2 * ln|tan x + sec x| + 1/2 * sec x * tan x + C


with: 

Θ = tan x

arctan Θ = x

sec(arctan Θ) = sec x

√(1 + x^2) = sec x


= 1/2 * ln|Θ + √(1 + Θ^2)| + 1/2 * Θ * √(1 + Θ^2) + C


Eddie 


All original content copyright, © 2011-2022.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Sunday, March 27, 2022

March Calculus Madness Sweet Sixteen - Day 12: Arc Length of Sine and Cosine

 ------------


Welcome to March Calculus Madness!


------------


What is the arc length of y = sin x and y = cos x from x = 0 to x = 2 * π


The arc length of y(x) is calculated by:


∫ √(1 + (dy/dx)^2) dx for x = a to x = b


For y(x) = sin x, dy/dx = cos x, (dy/dx)^2 = cos^2 x


Arc length of y = sin x from x = 0 to x = 2*π

∫ √(1 + cos^2 x) dx for x = 0 to x = 2*π ≈ 7.64039557806


Likewise, for y(x) = cos x, dy/dx = -sin x, (dy/dx)^2 = sin^2 x

∫ √(1 + sin^2 x) dx for x = 0 to x = 2*π ≈ 7.64039557806


Yes, the arc lengths are the approximately the same.  


Eddie


All original content copyright, © 2011-2022.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Sunday, May 16, 2021

TI-NSpire CX II and TI-84 Plus CE: Enhanced Graphing Table

TI-NSpire CX II and TI-84 Plus CE:  Enhanced Graphing Table


Introduction


The program TABLEYX allows the user to enter a function, not only store it for graphing, but also display an analytic table.  Results are stored in lists so they can be used for further analysis.  


Both the TI-NSpire CX II (.tns) and TI-84 Plus CE (.8xp) version can be downloaded here.


TI-NSpire CX Version






Table of contents:

1.1  The Notes Page 

1.2  Calc Page:  run tableyx() here

1.3  Graph Page:  it should update automatically each time tableyx() is run

14.  Table Page:  updates when tableyx() is executed

1.5  Program Listing


Lists:

xlist:  x coordinates

ylist:  y(x)

dislist:  Euclidean distance from (0,0) to (x,y)

arclist:  Arclength of y(x) from 0 to x

derlist:  Derivative at (x,y)

intlist:  Integral of y(x) from 0 to x


Program:


Define tableyx()=

Prgm

:© set approximate mode

:setMode(5,2)

:© main program

:Request "y(x)? ",y(x)

:Request "Δx? ",dx

:Request "Number of steps? ",n

:seq(i,i,0,dx*n,dx)→xlist

:seq(y(i),i,0,dx*n,dx)→ylist

:seq(∫(y(x),x,0,i),i,0,dx*n,dx)→intlist

:seq(nDerivative(y(x),x=i),i,0,dx*n,dx)→derlist

:seq(approx(arcLen(y(x),x,0,i)),i,0,dx*n,dx)→arclist

:√(xlist^(2)+ylist^(2))→dislist

:Disp "Done.  See the next page for results."

:EndPrgm


TI-84 Plus CE Version


When the program ends:


Press [ graph ] to see the graph.


Press [ stats ], select Edit... to see the lists in a list editing format.


Lists:

L1:  x coordinates

L2:  y(x)

L3:  Euclidean distance from (0,0) to (x,y)

L4:  Derivative at (x,y)

L5:  Integral of y(x) from 0 to x


Program:


Float

Radian

Input "Y(X)=",Str1

String>Equ(Str1,Y₁)

Input "CHG X? ",D

Input "NO OF STEPS? ",N

seq(I,I,0,D*N,D)→L₁

seq(Y₁(I),I,0,D*N,D)→L₂

√(L₁²+L₂²)→L₃

seq(nDeriv(Y₁(X),X,I),I,0,D*N,D)→L₄

seq(fnInt(Y₁(X),X,0,I),I,0,D*N,D)→L₅

ClrHome

Disp "RESULTS","L₁: X","L₂: Y","L₃: DIST FROM (0,0)","L₄: D/DX Y(X)","L₅: INTEGRAL FROM X=0","PRESS STAT, EDIT"

Pause 

SetUpEditor L₁,L₂,L₃,L₄,L₅



Eddie


All original content copyright, © 2011-2021.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 



Sunday, February 16, 2020

Casio fx-3650P: Circular Segment

Casio fx-3650P: Circular Segment

Introduction





Variables:
X:  radius
Y:  angle (in degree)
C:  chord length
D:  altitude
A:  area
B:  arc length

Program 1:  Given Chord Length and Altitude

Calculate:  Radius, Angle, Area, Arc Length

? → C : ? → D : Deg :
( ( C ÷ 2 )^2 + D^2 ) ÷ ( 2D ) → X ◢
2 cos^-1 ( ( X - D ) ÷ X ) → Y ◢
X^2 ÷ 2 * ( π Y ÷ 180 - sin Y ) → A ◢
X Y π ÷ 180 → B

Example:
Input C = 8,  D = 11.75

X:  6.555851064 (radius)
Y:  284.8004594 (angle)
A:  127.5950317 (area)
B:  32.58720643 (arc length)

Program 2:  Given Radius and Angle

Calculate:  Chord Length, Altitude, Area, Arc Length

? → X : ? → Y : Deg :
2 * sin(Y ÷ 2) → C ◢
2 X ( sin(Y ÷ 4))^2 → D ◢
X^2 ÷ 2 * ( π Y ÷ 180 - sin Y ) → A ◢
X Y π ÷ 180 → B

Example:
Input X = 17.25, Y = 204

C:  33.74609223 (chord length)
D:  20.83647667 (altitude)
A:  590.2462124 (area)
B:  61.41813638 (arc length)

Source:

John W Harris and Horst Stocker.  Handbook of Mathematics and Computational Science Spring:  New York.  2006 ISBN 978-0-387-94746-4

Announcement

I am going to have surgery this week and my family is having medical issues.  I will be taking some time off in the next few weeks.  Tomorrow I have a special post reviewing the classic TI-30 from 1976. Take care everyone and thank you so much for your support.  I love doing this blog. 

Eddie

All original content copyright, © 2011-2020.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Saturday, April 1, 2017

Basics of Tensors: An Attempt of Making Sense of Tensors



Basics of Tensors: An Attempt of Making Sense of Tensors

First post of April 2017.  No joke. 

Introduction

Trying to finally make some sense of tensor calculus, here is what I learned so far.  I still consider myself a novice when it comes to tensor calculus theory.  In tensors, both subscripts and superscripts are used as indices.  To be honest, that throws me off since I’m used to seeing superscripts as symbols for power. 

When I first learned about tensors, I was tensors were just matrices.  It turns out, matrices are a subset of tensors and whether we’ve been knowing it or not, we use tensors every day in mathematics: scalars (numbers), vectors, and numbers.  In a way, scalars can be thought of as 0-dimensional tensors (points), vectors are 1-dimensional tensors, and matrices are 2-dimesnional tensors. 

To maintain clarity, I will use strictly subscripts, followed by underscores ( _ ).

The General Definition of Tensors

Einstein Sums:  Note that a and x may not necessarily be scalars, but also functions.
Σ a_i * x_i from i=1 to n = a_1*x_1 + a_2*x_2 + a_3*x_3 + … + a_n*x_n
In tensor calculus, the sum is simply expressed as a_i * x_i. 

Double Sums: 
a_i,j
= Σ a_i,j * x_i * y_j (sum over i)
= Σ a_i,j * x_i * y_j  (sum over j)

On a personal note, I prefer using the Σ symbol, only for clarity.  Because without context a_n*x_n to me a single term and not representing a sum.

Kronercker Delta: fundamental function in tensor calculus

δ_i, j = { 1 if i=j; 0 if i≠j

Tensor:  A nth rank tensor in m-dimensional space that has n indices m^n components of each tensor.  The components can be numbers or functions.

Included in the family of tensors are:
Scalars:  0 indices
Vectors: 1 index
Matrices:  2 indices

Matrices in Tensor Notation

The notation [ a_i,j ]_m,n is a matrix with dimensions m * n with indices i and j for each components.

Multiplication of Matrices A and B with:
A = [a_i,j]_m,n
B = [b_i,j]_n,k
AB = [ a_i,r * b_r,j ] _m,k

Identity Matrix:
I = [ δ_i,j ]_n,n

Transpose Matrix:
A^T = [ a_j,I ]_n,m

Determinant:
det A = e_i,1 * e_i,2 * e_i,3 * … * e_i,n * a_1_i,1 * a_2_i,2 * a_3_i,3 * … * a_n_i,n

where e is the Levi-Civita symbol with represents a sign of permutations of numbers 1, 2, 3, …, n

In general,

e = {
 +1 for even permutations (even number of two-number swaps),
-1 for odd permutations (odd number of two-number swaps),
0 otherwise
= Π sign(a_j – a_i) for 1≤i<j≤n
= sign(a_2 – a_1) * sign(a_3 – a_1) * … * sign(a_n – a_1) * sign(a_3 – a_2) * sign(a_4 – a_2) * …  * sign(a_n – a_2) * … * sign(a_n – a_n-1)

For 2 dimensions:
e_i,j = { +1 for i=1, j=2; -1 for i=2, j=1, 0 for i=j

For 3 dimensions:
e_i,j,k = { + 1 for permutations (1,2,3), (2,3,1), (3,1,2),
-1 for permutations (3,2,1), (1,3,2), (2,1,3), 0 for other permutations

Contravariant and Covariant Transformations

Let T_i and W_i be vector fields with systems x_i and y_i respectively.  For the transformation T to W:

Contravariant Vector Transformation:  W_i = T_r * (δy_i / δx_r)

Covariant Transformation:  W_i = T_r * (δx_r / δy_i)

The difference between the two transformations is in the partial deritival and what variable gets differentiated in respect to its corresponding function.  Note that W and T are assumed to contain functions.

Cartesian and Affine Tensors

Cartesian Tensors:  A tensor in 3-dimensional Euclidian space ([x, y, z]).  With Cartesian tensors, there is no distinction between covariant and contravariant indices.

Affine Tensors:  Affine tensors are a specialized version of Cartesian tensors formed by:

T: y_i = a_i,j * x_j   (in the context of sums, hence:  T:  y_i = Σ a_i,j * x_j)

Where det a_i,j ≠ 0.  In an affine tensor, x and y are considered functions.  In an affine transformation, lines that are parallel are preserved. 

The Jacobian of an affine tensor is:

J = [ [ ∂y_1/∂x_1 … ∂y_1/∂x_n ] … [ ∂y_n/∂x_1 … ∂y_n/∂x_n] ]

And it’s inverse:

J^-1 = [ [ ∂x_1/∂y_1 … ∂x_1/∂y_n ] … [ ∂x_n/∂y_1 … ∂x_n/∂y_n] ]

Metric Tensors

Metric Tensor:  type of function which takes a pair of tangent vector V and W with scalars g which familiarizes dot products. 

In the following, x_i is assumed to be a function of an independent variable, like t.

Arc Length: 
ds^2 = δ_i,j * dx_i * dx_j = Σ (dx_i/dt)^2

Norm:
||V|| = √(V^2) = √(Σ v_i * v_i)

Angle Between Vectors:
cos θ = (U * V) / (||U|| * ||V||)

Area:
∫ ∫ | R_u x R_v| du dv

That is some of the basics of tensor calculus. 

Source:  Kay, David C. Ph. D.  Schaum’s Outlines: Tensor Calculus  McGraw Hill.  New York, 2011


Eddie

This blog is property of Edward Shore, 2017

Spotlight: Akron Brass FireCalc Pocket Computer

Spotlight: Akron Brass FireCalc Pocket Computer Welcome to a special Monday Edition of Eddie’s Math and Calculator blog. Thi...