Math 2 Me-Oth
Math 2 Me-Oth
VECTORS
A vector is a directed straight line with a specific
magnitude. A vector is specified completely by its
direction and magnitude soY
...,/
v
Unit vectors are vectors with unit magnitudes (i.e.,
magnitudes of one)
j
vector magnitud e
jR
rt-'--ax-----w-,1
z
I
Example
Find the unit vector (i.e., the direction vector) asso-
ciated with the origin-based vector 18i + 3j + 29k.
(A) 0.525i + 0.088j + 0.846k
(B) 0.892i + 0.178j + 0.416k ()}\.,
(C) 1.342i + 0.868j + 2.437k ~;~ t>e·
. . g.l t?>"'cf)
~t~
2
(D) 6I+J+ ik
~
Solution
The unit vector o ncular vector is the vector itself
divided by its len
•t t 18i + 3j + 29k
un1 vee or=---;:::.==================
J 2 2
(18) + (3) + (29)
2
Example
Vv'hat i::; r.lte . liWll o vectors 5i + 3j - 7k and
lOi- l2j + .5 k?
(A 8i -7j ~k
~0~:>v/._1'
.-.vL~
i~j=j~k=k~i=O
to B.
Examples: Dot products
8= 25.2°
(20+40+42) =7.9
.J16 + 100 + 49
cross product
The cross product is a vector product of magnitude
IBIIAI sine which is perpendicular to the plane containing
A and B. The product is
li) , ..,
J k c ,.
,,'-:>.
AxB= ~ ay Gz =- B xA
h_,. by bz
uxv
A X B =-B X A
A X (B + C) = (A X B) + (A X C)
(B + C) X A= (B X A) + (C X A)
i x i=j .-< j=k x k=O
i X j = k = - j X i; j X k = i = -k X j
k Y i = j = -i X k
If A x B = 0, then either A= 0, B = 0, or A' it parallel to B.
What is the area of the parallelognm1 made by the vectors F1 and F2?
F1 =5i +4j +6k~ F2 =4i +lOj +7k
' ~')
,J
~~~!~")~.:
i j k 0 (:~
rN §
F1 XF2 = 5 4 6 = (28- 60)i- -~24j.f(50 -16)k = -32 i - llj + 34k
-t 10 7
\t.O
V _ a.+-
-- ~
ax
aJ
{)y
.+a
- k
{)z
r7A,
v'+':;:;
(a-I+-J
. 8ya. -
·fj~
Variation
"!(
v x, y, z
)= (8/(x,fJxy, z)).1 + (8f(x,{Jyy, z)).J
In the above two images, the values of the
+ ef(~:· z))k function are represented in black and white, black
representing higher values, and its corresponding
gradient is represented by blue arrows.
Example
Find !ne gra~ien! ol !he function l(x, ~zJ =6x2-7y- sin(z)in C~~~ian coordinates
~ . .,o;.;'Cj
0l fb~}:.?
~t~ '
Divergence
Imagine a fluid, with the vector field representing the velocity of the fluid at each
point in space. Divergence measures the net flow of fluid out of (i.e., diverging from)
f
a given point. lffluid is instead flowing into that point, the-divergence will be
negative.
"~(
A point or region with positive dive s~.oAftZeterred to as a "source" (offiuid,
or whatever the field is describing) ~ mt or region with negative divergence
is a "sink".
Ex.armpl e
V\lha..t is tbe dbrergen.ce of the fol lo-,;o;ring ......,.-ector- fieJ d ~!
v- = 2ri + :2yj
(.i\... ) 0
(B) :2
( C~) :3
(D) -1.
=2 +2
=4
H.'\
curl V= \7 x V
i
a
ox
P(x, y, z)
~ ......_ ..__
..«'"- ~ ~
~...._~
~~~
~~~
~~
\0\
Example
Determine the curl of the vector function V(x, y, z).
(A) 7exy
(B) 7exyi
(C) 7exw
(D) 7exyk
\OY
Solution
Using the variation of~· 7.48~
i j k
curl 'V =
a a
ay oz
' 0
\or
Vector
Identities
\Of.
Laplacian of a Scalar
Example
Deter.mine the scalar function
tx-3- 9y + 5 at t
(A) 0
(B) 1
(C) 6
(D) 9
\00
\01
'ov
DIFFERENTIAL EQUATIONS
cry(x) dy(x) ( )- ( )
bn d n
X
+ ... + b. dX + boY X - j X
,VJ
~· ,c~'
~i ~c 0
0~·/JJ
Linear Differential Equatio~j . ' / onstant Coefficient
~z
cfy(x) dy(x) ) ( )
bn dx" + ... + b. dx + boy(x = j x
'Ot\
Example
Which of the following is NOT a linear differential
equation?
2
(A) 5 ~;%- 8 ~~ + 16y = 4te- 7 t
( B) 5 d2y t?- dy
dt? - 8 dt + 16y = 0 ~
R'lt d-11 dy .f\.1> 0
cc) s-~- s - ~ + 16y = - ~. o'·e:,0
dt2 dt dy9)~ ~, 0.§
(D) 5cdy) 2- 8dy + 16'&-o.v~.~~
.~
;~--v
dt dt ~7
Solution '
\0'\
Characteristic Equ
Solving Linear Differential
Equations with Constant Coefficients
Homogeneous First-Order Linear Differential
Equations
and can be 1·eal and distinct £or a 2 > 4b~ real and equal for
a 2 = 4b, and complex for a 2 < 4b.
If a 2 > 4b, the solution is of the fonn (overdamped)
V=
.
c1e'iX + c2er2X
If r?= 4b, the solution is of the fonn (critically damped)
.v = ( c1+ c ?:-r )e'·lx
2
If a < 4b, the solution is of the form (tmderdamped)
.V = ea:t (C1 cos ~x + C2 sin ~x), where ..,. eP.:>
~ ~0 -.),e:;
a= - a/2
0
B_ 14b - cJ o<o ~.'li-"'J?'P
- 2 &>...Xf./
~~
Wbat is the g ener o n to the ·following homoge-
neot.IS differen tial .!'r'....,lflo&·- on ?
I - 8'!/ + 16y = Q
(A) 11 = Ca e4 x
(B) y = ( Ct +C~x)e4:r:
(C) y = C1 e-43: + 02 e4 x
(D) y = Cr e 2"" + C2e4:r.
nr
= 4,4
11 = ( C1 + Ggx)e'z
= ( G1 + C2x)e4x
Ex:runple: Second-order homogeneoillS equations
y = C le -lx + C 2e -5x
_v(O) = 1 = c1 + c2
y'(O) = 0 = -C1- SC2
1 =-4C2
1
c2 =- 4
C1=114
y = 1%e-x- %e·5x no
Nonhomogeneous equations
y//- y/- 2y = 10 COS X
General solution = particular solution + homogeneous
- solution)
~ .• ,., '<,-
homogeneous solution&o~~:P·
As homogeneous equations ~r
particular solution
fo solve the particular solution, you must know the fotm of the solution. The form of the
pmticular solution is given in the NCEES Handbook for cettain possible forcing
functions, f{x).
fo solve the patticular solution:
differentiate and then plug into the original equation
collect like tenns.
n"\
The coefficients of the like tetms must sum to zero, giving simultaneous equations.
Solve the equations and detetmine what the constant(s) is (are).
ful :Yp~
A B
Aeax Beax a t root of characteristic equation
A1 sin lU\: + A2cos mx B1 sin lU\: + B2 cos lllt
\lV
From the table in the NCEES Handbook, the particular solution has-the form:
YP = B1cos x + B2 sinx
yp' = -B1 sinx +B2 cos x
YP " =- B 1 cos x- B 2 sm
. x
~r ( '-
Plugging in, we get: ~ r_
~Y
~
' - -~ - L..~ -- - .. . ,-~
Isolating the sin and cos coeffi · e get the following simultaneous equations:
-3 B1-B2= 10
B1-3 B2=0
B1 =-3
B2=-l
YP = -3 cos x- sin x
\\A
ROOT EXTRACTION
Newton's Method for Root Extraction
Given a function/(x) which has a simple root of/{x) = 0 at
x = a au impoliant c01nputational ta k w a &be to find that
. �"-:)
root. If/{x) has a continuous first 1 • wthen the
0
(j + 1 )st estimate of the root is
��
'
Exa01ple
Ne~n's method is being used to find the roots . o:f the
equation f(x) = ( x - 2) 2 - 1. What is the -third approxi-
mation of the root i f x = 9.33 iS chosen as the first
a.ppro:x:i.x:n.ation?
(A) 1.0
(B) 2.0
(C) 3.0
(D) 4.0
Solution
Perform two iterations of Newton's method with an
initial guess of 9.33.
](x) = (x- 2) 2 -1
f(x) = (2)(x- 2)
!(x1) = (9.33- 2) 2 - 1 =-5~.73
/'(xt) = (2)(9.33 :Y:.. : r l~'6~
v~ (
• •.f ~/
From. Eq. 9.1,
r::Y >.." ~#
'-"'l.~ v t:Y
_¢,
'+1
= . J(x) ~'Vff
.xi' .afJ ---
.f'(x) "-,·<{~-
k = O k= 1 k= 2 k = n-1 k = n
0
Euler's or Forward Rectangular Rule
lzb .f(x)dx
are:
Euler's or Forward Recta
fab f(x)dx
v
Trapezoidal Rule
If the irregular side can be divided into a series of
n cells of equal width, and if the irregular side of each
cell is fairly straight :y. .- z>'
0
£}..~A.~.~'
ov (;V,/>- ,l
"
Exa.rnple
For the irregula..Jr" area· under the curve sho-w:n, a = 3,
and b = 15. The formula. of the curve is
f(x) = (1 - x)(:z:- 30)
:F(xl
"
Exam pte
For the in~egular area under the curve shoWD..t a = 3,
a.nd b = 15. ~e formula -of the curve is
f(x) = (1 - :z;)'(x- 30)
f(x~
a+ b= 3+ 15 = 9
2 2
t(a; b) = f(9) = (1 - 9)(9
Ax = (b-
H'
Numerical Solution of Ordinary
Differential Equations
Euler's Approximation
Given a differential equation
dddt =f (x, t) with x(O) = X 0
~
0
At some general time kl!!.t ~ • o<:'..,0e..
i[(k + 1)8.1] =x(k8.t) + 8.tf[x(k8.t~t t$-"'l.,fJ-.0
which can be used with starting condit~
· ~-;;~
recursively for x(8.t), x(2Llt), . .. , x(n ~7
The method can be extended to 1 erential equations
by recasting them as n first-o-·............,...
In particular, when dx/dt =