You are on page 1of 5

Introduction to Electromagnetic Fields (EHB 212E) Spring 2021

Homework #1 Solutions
Due date & time: 30.03.2021 & 23.59
Contact for homework: gulsahyildiz@itu.edu.tr
The answers of the homework should be clearly written by hand or typed. Answers should follow the same order as the questions.
Each step of your work should be clearly shown. The final results should be encircled. Messy homework with poor readability will be
punished as reduced grade.
Write your name and student id number to the beginning of your homework, forgotten identification will be punished as reduced
grade.
The answers should be organized as a single PDF file and uploaded to Ninova before the deadline. Late submissions will not be graded.
Be sure that you upload the correct version of your work. Only the uploaded version of your work will be graded, I do not want to see
e-mails saying “I accidentally uploaded the wrong version, please accept the attached homework that I worked so hard on…” You are
engineering students, not elementary school.
Cheating is a way of plagiarism, and plagiarism is certainly not accepted in academia. If you are caught to do plagiarism, the homework
is graded 0 for both parties (cheater and the helper). You are expected to abide the Honor Code of ITU. At the top of each homework
beside your identity, you need to write “I accept and abide the Honor Code of ITU.” and you need to sign this statement. Without this
statement and the signature, the homework will not be graded.

Q1. Verify Divergence theorem for the function 𝐹⃗ = 𝑒⃗𝜌 𝜌 over the semi-cylindrical volume
𝑥2 + 𝑦2 ≤ 𝑎
𝑉={
0 ≤ 𝑧 ≤ ℎ, 𝑥 ≥ 0
1
Q2. Verify Stoke’s theorem for the function 𝐹⃗ = 𝑧 2 (𝑐𝑜𝑠𝜙 + )𝑒⃗⃗⃗⃗
over the rectangular closed contour
√2 𝜌
𝐶𝑎𝑏𝑐𝑑 shown in the figure. The direction of the contour is given on the figure. Choose 𝑑𝑙⃗⃗⃗⃗ and 𝑑𝑠
⃗⃗⃗⃗⃗
appropriately.

Figure 1 The geometry of the problem 2


Q3.

Figure 2. The geometry of the problem 3

In Figure 2, the constant charge density distribution 𝜌0 (𝐶/𝑚2) is defined on the surface located at 𝑥 − 𝑦
plane. In the question, the parts of a ring are given. Here, a is the inner radius and b is the outer radius.
Dielectric permittivity of the space is 𝜖0 . Hint: The ring pieces are located at x – y plane and each of them
is scanning 2𝜙0 angle in the space.

a) Find the electric field at an any point located at (0,0,z). Do not forget that Electric Field is a vector.)
b) By taking the limit cases, find the electric field at the same point (0,0,z) for the following figures.
In the following figures, the top views are given. No need to show all steps, just give the final
answers.
Hint: No need to do everything from beginning. Just try to take the limits or change the boundaries
of the integral.
c) Verify the last figure (Infinite Sheet) with Gauss’ Law.

i. ii. iii. iv.


Ring Shape Disk Shape Bow – Tie Shape Infinite Sheet
Q4. A vector field is given as 𝐹⃗ = 𝑒⃗𝜌 𝜌. Plot the vector field in MATLAB for 𝑧 = 0, |𝑥| < 10 and |𝑦| < 10.

clear all
close all
clc
[x,y]=meshgrid(-10:1:10,-10:1:10);
u=cos(atan(y./x)).*sqrt(x.^2+y.^2);
v=sin(atan(y./x)).*sqrt(x.^2+y.^2);
quiver(x,y,u,v)
axis equal

You might also like