Professional Documents
Culture Documents
EE 735
Outline
• Numerical integration
𝑎+𝑏 x
𝑎 𝑏
2
Trapezoidal Rule
y 𝑦=𝑓 𝑥
𝑏
𝑓 𝑎 +𝑓 𝑏
න 𝑓 𝑥 𝑑𝑥 ≈ 𝑏 − 𝑎
𝑓(𝑏) 𝑎 2
𝑓(𝑎)
Numerical Integration
𝑏 𝑁
𝑓 𝑥𝑖−1 + 𝑓 𝑥
න 𝑓 𝑥 𝑑𝑥 ≈ Δ𝑥𝑖
𝑎 2
x 𝑖=1
𝑎 𝑏
Simpson’s Rule
Lagrange polynominal
Numerical Integration
2𝑀 + 𝑇
𝑆𝑖𝑚𝑝𝑜𝑛′ 𝑠 𝑚𝑒𝑟ℎ𝑜𝑑 𝑖𝑠 𝑡ℎ𝑒 𝑤𝑒𝑖𝑔ℎ𝑡𝑒𝑑 𝑎𝑣𝑒𝑟𝑎𝑔𝑒 𝑜𝑓 𝑀𝑖𝑑 𝑝𝑜𝑖𝑛𝑡 𝑎𝑛𝑑 𝑡𝑟𝑎𝑝𝑒𝑧𝑜𝑖𝑑𝑎𝑙 𝑚𝑒𝑡ℎ𝑜𝑑𝑠 𝑆 =
3
Assignment
Question 1.
Solve the following for abrupt and linearly graded pn junction diode.
(a) Plot the Electric field profile by solving the Gauss Law using numerical integration techniques such
as Trapezoidal or Simpson’s methods. Compare the result with the inbuilt MATLAB functions for
integration. Check the accuracy of numerically integrated results by varying the grid spacing.
𝜌 𝑥
𝐸(𝑥) = 𝑑𝑥 , for −𝑥𝑝 ≤ 𝑥 ≤ 𝑥𝑛
𝜖𝑠
System of linear equations
Numerical methods to solve Ax=b
2
𝑞
∇ 𝑉 𝑥 =− 𝑁𝐷 − 𝑁𝐴 • Direct methods:
𝜖𝑠 1. Gauss elimination
2. LU decomposition
Using central difference approximation
• 𝑨𝒙 = 𝒃 → 𝐿𝑈𝑉 = 𝑏
𝑅2 → 𝑅2 + 2𝑅1
𝑅3 → 𝑅3 − 4𝑅1
𝑅3 → 𝑅3 + 0.5𝑅2
𝑳 𝑼
System of non-linear equations
• Charge neutrality equation: 𝑁𝐷+ − 𝑁𝐴− = 𝑛 − 𝑝
𝑁𝐷
𝑁𝐷+ =
𝐸 − 𝐸𝐷
1 + 2 exp 𝐹
𝑘𝑇
𝑁𝐴
𝑁𝐴− =
𝐸 − 𝐸𝐹
1 + 4 exp 𝐴
𝑘𝑇
𝑁𝐷 𝑁𝐴 𝐸𝑉 − 𝑬𝑭 𝑬𝑭 − 𝐸𝑐
− = −𝑁𝑣 exp + 𝑁𝑐 exp
𝑬𝑭 − 𝐸𝐷 𝐸𝐴 − 𝑬𝑭 𝑘𝑇 𝑘𝑇
1 + 2 exp 1 + 4 exp
𝑘𝑇 𝑘𝑇
Newton Raphson Method
• Numerical analysis to find the roots of real valued functions
𝑥𝑜 is the initial guess for a root of 𝑓.
𝑓 𝑥𝑜
𝑥1 = 𝑥𝑜 − ′
𝑓 𝑥𝑜
𝑓 𝑥𝑛
𝑥𝑛+1 = 𝑥𝑛 − ′
𝑓 𝑥𝑛