Numerical Analysis
Numerical Analysis
Numerical Analysis
Curve Fitting
Linear Equations
خطوات الحل:
( )1نوجد قيم a, b
عن طريق حل املعادالتني اآلتيتني آن ًيا:
( )2نعيد كتابة املعادلة بعد معرفة قيم الـ a, b
Numerical Analysis
Curve Fitting
Dealing with Non-Linear Equations
(case 1)
(case 2)
Numerical Analysis
Curve Fitting
(case 3)
(case 4)
(case 5)
(case 6)
Numerical Analysis
Curve Fitting
Polynomial Equations
(معادلة من الدرجة التانية)
Numerical Analysis
Curve Fitting
Some Laws
Arithmetic Mean
Standard Deviation
Variance
Coefficient of determination
Correlation Coefficient
Numerical Analysis
Curve Fitting
RMSE vs R2
كل ما كانت قميته صغرية كل ما كان أفضل )(RMSE
ملا تكون قيمته بـ 1كل بيكون املنحيان متوافق مع النقاط )(R2
R2
الفرق بني الـ y realوالـ yاليل طالعة من املعادلة
Numerical Analysis
Roots of Equation
Youssef Hisham
Roots of Equation
Bracketing Methods
There 3 bracketing methods:
1) Graphical Methods
2) Bisection Method
3) False Position Method
Graphical Methods
x بنشوف نقط تقاطع املنحنى مع محور
Bisection Method
Youssef Hisham
Roots of Equation
:False Position وBisection خطوات الحل يف
:xU وxL ) نختار1(
f(xU) f(xL) < zero
xr ) نحسب2(
) نحسب3(
:) نشوف4(
If: f(xL) f(xr) < zero
Then: xU = xr
Youssef Hisham
Roots of Equation
Open Methods
There 3 open methods:
1) Simple Fixed Method
2) Netwon-Rapson Method
3) Secant Method
Netwon-Rapson Method
Secant Method
Youssef Hisham
Roots of Equation
:Open Method خطوات الحل يف
0 بـxi ) نفرض قيمة1(
f(xU) f(xL) < zero
xi+1 ) نحسب2(
) نحسب3(
Youssef Hisham
Interpolation
(1) Interpolation
(2) Lagrange Interpolating Polynomial
(3) General form of the Lagrange Interpolating Polynomial
(4) Newton’s Interpolating Polynomials
(5) Divided differences and the coefficients
Youssef Hisham
Interpolation
Interpolation
Interpolation produces a function that matches the given data
exactly.
The function then can be utilized to approximate the data values
at intermediate points.
Youssef Hisham
Interpolation
Lagrange Interpolating Polynomial
Youssef Hisham
Interpolation
Newton’s Interpolating Polynomials
Newton’s equation of a function that passes through two
points (x0, y0), (x1, y1) is:
P(x) = a0 + a1(x-x0)
Youssef Hisham
Interpolation
Divided differences and the coefficients
Youssef Hisham
Integral
Youssef Hisham
Integral
Integral Rule
)(as n ≠ -1
بنزود عىل األس واحد ونقسم عىل األس الجديد
مثال 1
الحل
مثال 2
الحل
Numerical Analysis
Integral
(Special Cases)
1- Function multiplied by its derivative
بنزود أس الدالة ونقسم عىل األس الجديد
3 مثال
Numerical Analysis
Integral
Integration by Substation
:خطوات الحل
: وذلك أحيانًا حسب،تعويضا مناس ًبا
ً ) نختار1(
IF: The given equation was
Then: We use the substation
du ) نوجد2(
) نعوض3(
Numerical Analysis
Integral
6 مثال
الحل
حل آخر
Numerical Analysis
Integral
7 مثال
الحل
حل آخر
Numerical Analysis
Integral
Triangular Functions Integration
Numerical Analysis
Integral
8 مثال
الحل
9 مثال
الحل
Numerical Analysis
Integral
) (
9 مثال
الحل
Numerical Analysis
Integral
Exponential Functions Integration
10 مثال
الحل
11 مثال
الحل
Numerical Analysis
Integral
12 مثال
الحل
) )
13 مثال
الحل
Numerical Analysis
Integral
Logarithmic Integration
14 مثال
الحل
15 مثال
الحل
Numerical Analysis
Integral
مثال 16
الحل
حل آخر
Numerical Analysis
Integral
Integration by Parts
نستخدمه إليجاد تكامل حاصل رضب دالتني ليست أحدهام مشتقة األخرى
بنشتق دالة ونكامل دالة
u dv
)f(x )g(x
Numerical Analysis
Integral
17 مثال
الحل
x ex
1 ex
حل آخر
x ex
1 ex
Zero ex
Numerical Analysis
Integral
18 مثال
الحل
1
x
Numerical Analysis
Integral
19 مثال
الحل
3x+2 sin (x)
3 - cos(x)
20 مثال
الحل
ex cos(x)
ex sin(x)
ex sin(x)
ex - cos(x)
Numerical Analysis
Integral
21 مثال
الحل
x sec2(x)
1 tan(x)
Numerical Analysis
Integral
) (
يف التكامل بالتجزئ:
دامئًا نفاضل الدالة التي يصعب تكاملها
مثال 22
الحل
x ex (x+1)-2
ex + x ex -(x+1)-1
)= ex(ex + 1
Numerical Analysis
Integral
23 مثال
الحل
Numerical Analysis
Numerical Integration
Youssef Hisham
Numerical Integration
Indefinite Integrals
Indefinite Integrals of a function are functions that differ from
each other by a constant
Definite Integrals
Definite Integrals are numbers
Youssef Hisham
Numerical Integration
Trapezoid Method
h=∆x
Simpson's Method
Youssef Hisham
Differential Equations
Youssef Hisham
Differential Equations
Numerical Solutions
Numerical methods are used to obtain a graph or a table of the
unknown function.
Youssef Hisham
Differential Equations
Euler Methods
Youssef Hisham
Differential Equations
4th Order Runge-Kutta
Youssef Hisham
LU Decomposition
Numerical Analysis
LU Decomposition
LU Decomposition
Numerical Analysis
LU Decomposition
Solving Equations
Numerical Analysis
LU Decomposition
(Forward Substation)
(Backward Substation)
Numerical Analysis
Eigen Values & Eigen Vectors
Youssef Hisham
Eigen Values & Eigen Vectors
Finding Eigen Values
To find the eigen vectors, we solve the following characteristic
equation:
: Eigen Value
: Eigen Vector
Special Cases
(1) Transpose of Matrix
(2) Inverse of Matrix
(3) Power of Matrix
(4) Diagonal Matrix
Youssef Hisham
Eigen Values & Eigen Vectors
Transpose of Matrix
AT: has the same eigen values as A
AT: has different eigen vectors than A
Inverse of Matrix
If: A has 𝜆1 , 𝜆2 , 𝜆3 , ……
Then: A-1 has 𝜆1 , 𝜆1 , 𝜆1 , ……
1 2 3
Power of Matrix
If: A has 𝜆1 , 𝜆2 , 𝜆3 , ……
Then: An has 𝜆1 𝑛 , 𝜆2 𝑛 , 𝜆3 𝑛 , ……
An has the same eigen vectors as A
Youssef Hisham
Eigen Values & Eigen Vectors
Diagonal Matrix
قيم 𝜆 = قيم عنارص القطر الرئييس
Triangular Matrix
قيم 𝜆 = قيم عنارص القطر الرئييس
()Note
إذا تواجد العنرص صفر يف عنارص القطر الرئييس فال توجد قيم مميزة
Youssef Hisham