Ampere's Law Exercise

A circular wire loop of radius 1 1 lies within the x y xy plane and has its center at the origin. The loop carries 1 1 unit of electric current. A closed triangular loop has the vertices shown in the diagram. Consider the following three magnetic line integrals:

Q 12 = P 1 P 2 B d Q 23 = P 2 P 3 B d Q 31 = P 3 P 1 B d Q_{12} = \int_{\vec{P}_1}^{\vec{P}_2} \vec{B} \cdot \vec{d \ell} \\ Q_{23} = \int_{\vec{P}_2}^{\vec{P}_3} \vec{B} \cdot \vec{d \ell} \\ Q_{31} = \int_{\vec{P}_3}^{\vec{P}_1} \vec{B} \cdot \vec{d \ell}

In the above integrals, B \vec{B} is the vector magnetic flux density produced by the loop at a particular point. Determine the following ratio:

Q 12 Q 23 Q 31 Q 12 + Q 23 + Q 31 \frac{Q_{12} \, Q_{23} \, Q_{31} }{Q_{12} + Q_{23} + Q_{31}}

Details and Assumptions:
1) Magnetic permeability μ 0 = 1 \mu_0 = 1
2) You know ahead of time what the denominator of the ratio is
3) All three Q Q values are positive
4) All three integrals are evaluated along straight-line paths between points


The answer is 0.0159.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Karan Chatrath
Jan 31, 2020

I shall show the line integral calculation steps for Q 12 Q_{12} .

Any point P P on the line joining points P 1 P_1 and P 2 P_2 can be parameterised as follows:

r p = P 1 + L P 2 P 1 P 2 P 1 \vec{r}_p = \vec{P}_1 + L \frac{\vec{P}_2 - \vec{P}_1}{\lvert \vec{P}_2 - \vec{P}_1 \rvert}

Where the parameter L L varies from zero to a 1 = P 2 P 1 a_1 = \lvert \vec{P}_2 - \vec{P}_1 \rvert . Any point on the circular loop can be parameterised using polar coordinates:

r c = cos θ i ^ + sin θ j ^ \vec{r}_c = \cos{\theta} \hat{i} + \sin{\theta} \hat{j}

d r c = ( sin θ i ^ + cos θ j ^ ) d θ d\vec{r}_c = \left(-\sin{\theta} \hat{i} + \cos{\theta} \hat{j}\right)d\theta

Applying Biot Savart law to obtain the field at point P P on the line joining P 1 P_1 and P 2 P_2 gives:

d B 1 = μ o I 4 π ( d r c × ( r p r c ) r p r c 3 ) d\vec{B}_1 = \frac{\mu_o I}{4\pi} \left(\frac{d\vec{r}_c \times \left(\vec{r}_p-\vec{r}_c\right)}{\lvert \vec{r}_p-\vec{r}_c \rvert ^3}\right)

The total magnetic field at point P P is, therefore:

B 1 = 0 2 π d B 1 \vec{B}_1 = \int_{0}^{2\pi} d\vec{B}_1

A line element on the line joining points P 1 P_1 and P 2 P_2 is as follows:

d r p = d L P 2 P 1 P 2 P 1 d\vec{r}_p = dL \frac{\vec{P}_2 - \vec{P}_1}{\lvert \vec{P}_2 - \vec{P}_1 \rvert}

The line integral is therefore:

Q 12 = 0 a 1 B 1 d r p Q_{12} = \int_{0}^{a_1} \vec{B}_1 \cdot d\vec{r}_p

This calculation is done using a simple script of code as follows. The other line integrals can follow the exact same procedure. Bear in mind the directions of current flow at all times.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
r1 = [0;0;0];
r2 = [1;1;1];
r3 = [2;-1;-1];
% Direction of current in line joining P1 and P2:
r12 = r2 - r1;

% Length element on line:
dL12 = 1e-3;

% Initialisation:
Q12 = 0;
for L12 = 0:dL12:norm(r12)

    % Position vector of point P on the considered line segment:
    rp = r1 + L12*(r12/norm(r12));

    % Length element of considered line in the vicinity of P
    drp = dL12*(r12/norm(r12));

    % Initialisation of magnetic field:
    B1 = 0;

    % Angle step:
    dtheta = pi/1000;

    % Obtaining magnetic field at point P:
    for theta = 0:dtheta:2*pi

        % Position vector of point on circular loop and arc length element:
        rc = [cos(theta);sin(theta);0];
        drc = [-sin(theta);cos(theta);0]*dtheta;

        % Biot-Savart Law:
        dB  = (1/(4*pi))*cross(drc,(rp-rc))/(norm(rp-rc)^3);

        % Numerical Integration:
        B1  = B1 + dB;
    end

    % Evaluation of line integral:
    % Elementary dot product:
    dQ12 = B1'*drp;
    % Numerical Integration:
    Q12   = Q12 + dQ12;
end
% Q12 = 0.4455;

% Same calculation procedure for computing Q23 and Q31:

% Q23 = 0.0752;
% Q31 = 0.4811;

@Karan Chatrath how you post this type of solution in this format is it computer language.? Sir can't you write solution simply sir please??

A Former Brilliant Member - 1 year, 4 months ago

Log in to reply

Could you specify the difficulty you face a little more? Also, refer to the steps shown before the code. Those steps describe the process of calculation. I have followed those exact steps in the code. I suggest you compute the integrands by following the steps. You can construct expressions and solve the integrals using Wolfram, for instance.

Karan Chatrath - 1 year, 4 months ago

Log in to reply

Bhaiya i face a lot of difficulty in this computer code language can you please write the whole solution

A Former Brilliant Member - 1 year, 4 months ago

Log in to reply

@A Former Brilliant Member Okay, I will update the solution. Computing and writing out explicit expressions takes me time so I will do that when I can. In the meantime, please tell me whether you can understand the steps I have shown before the code? You essentially need to follow those exact steps to construct the integrands.

Karan Chatrath - 1 year, 4 months ago

Log in to reply

@Karan Chatrath @Karan Chatrath how you parametrised that point in the first line of your solution I can't able to understand that sir please can you help?

A Former Brilliant Member - 1 year, 4 months ago

Log in to reply

@A Former Brilliant Member

I hope that this helps. Enlarge the image while viewing it. I have added it to my solution as well.

Karan Chatrath - 1 year, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...