Mesh Analysis: Solving for I1 with Loop Equations

AI Thread Summary
The discussion focuses on using mesh current analysis to solve for the current I1 in a circuit, involving complex equations derived from two loops. Participants share their attempts at solving the equations, with some discrepancies in calculations and angles noted. There are discussions about the accuracy of angles derived from arctan functions and the importance of maintaining correct signs in calculations. The use of MATLAB for solving the equations is mentioned, with some expressing frustration about needing to perform calculations by hand. Ultimately, the conversation emphasizes the need for careful algebraic manipulation and understanding of complex numbers in circuit analysis.
shaltera
Messages
91
Reaction score
0

Homework Statement


Use mesh current analysis to determine I1

Homework Equations


Loop 1

47i1+j100(i1+i2)-12=0
(47+j100)i1+j100i2=12

Loop 2
-j75i2+j100(i1+i2)-10=0
j100i1+j25i2=10

The Attempt at a Solution


Homework Statement


Homework Equations



j100i1+j25i2=10 (-4)
-j400i1-j100i2=-40

(47+j100)i1+j100i2=12
-j400i1+(47+j100)i1=-38
j400i1-i1(47+j100)=38
(-47-j300)i1=38

Is it correct?
 

Attachments

  • f1.jpg
    f1.jpg
    22.8 KB · Views: 517
Last edited by a moderator:
Physics news on Phys.org
shaltera said:

Homework Statement


Use mesh current analysis to determine I1

Homework Equations


Loop 1

47i1+j100(i1+i2)-12=0
(47+j100)i1+j100i2=12

Loop 2
-j75i2+j100(i1+i2)-10=0
j100i1+j25i2=10

The Attempt at a Solution


Homework Statement





Homework Equations



j100i1+j25i2=10 (-4)
-j400i1-j100i2=-40

(47+j100)i1+j100i2=12
-j400i1+(47+j100)i1=-38 <---- check that value
j400i1-i1(47+j100)=38
(-47-j300)i1=38

Is it correct?

A slight problem with the voltage value indicated above.
 
  • Like
Likes 1 person
40-12=28
Well spotted
 
shaltera said:
40-12=28
Well spotted

Right. Now finish, isolating i1 and writing it in a standard form.
 
Thanks.I decided to use matrices to solve this problem.I hope matrices is correct
 

Attachments

  • m1.jpg
    m1.jpg
    11.9 KB · Views: 410
For i1 I have -0.0557<84.63deg

Is it correct?
 
shaltera said:
For i1 I have -0.0557<84.63deg

Is it correct?

No, it doesn't match what I find.
 
(47+j500)i1=-28
i1=(-28)/(47-j500)=(-28)/(sqroot(472+5002))tan -1(500/47)=
-28/502.2<84.63deg=-0.05557<84.63deg
 
shaltera said:
(47+j500)i1=-28
i1=(-28)/(47-j500)=(-28)/(sqroot(472+5002)tan -1(500/47)=
-28/502.2<84.63deg=-0.05557<84.63deg

Show your algebra beginning from where you left off here in your first post:

##j400 i_1 - (47 + j100) i_1 = 28##
 
  • #10
For mesh A
-12+47i1+j100(i1+i2)=0
47+j100i1+j100i2=12
(47+j100)i1+j100i2=12

For mesh B
-10-j752+j100(i1+i2)=10
j100i1+j25i2=10

Therefor
(47+j100)i1+j100i2=12
j100i1+j25i2=10 (x(-4))

(47+j100)i1+j400i1+j100i2-j100i2=12-40
(47+j100)i1-j400i1=-28
47i1+j100i1-j400i1=-28
(47-j300)i1=-28
 
  • #11
i1=-0.922<80.09deg

hope is correct
 
Last edited:
  • #12
shaltera said:
For mesh A
-12+47i1+j100(i1+i2)=0
47+j100i1+j100i2=12 ##~~~~##<--- lost your parentheses here...
(47+j100)i1+j100i2=12 ##~~~~##<--- but recovered them here
The final expression is okay.

For mesh B
-10-j752+j100(i1+i2)=10 ##~~~~~##<--- Voltage source appears twice!
j100i1+j25i2=10 ##~~~~~##<---- But now the duplicate's gone!
The final expression is okay.

Therefor
(47+j100)i1+j100i2=12
j100i1+j25i2=10 (x(-4)) = -j400i1 - j100i2 = -40

(47+j100)i1+j400i1+j100i2-j100i2=12-40 <--- What happened here?
(47+j100)i1-j400i1=-28
47i1+j100i1-j400i1=-28
(47-j300)i1=-28
I think you tried to subtract the mesh B equation from the mesh A equation, but didn't change the sign of the i1 term.
 
Last edited:
  • #13
j100i1+j25i2=10 multiply by (-4)
-j400i1-j100i2=-40
then I add equation for mesh A to B
(47+j100)i1-j400i+j100i2-j100i2=12-40
+j100i2-j100i2=0
Therefor
(47+j100)i1-j400i1=-28
47i1+j100i1-j400i1=-28
47i1-j300i1=-28
(47-j300)i1=-28
 
  • #14
shaltera said:
j100i1+j25i2=10 multiply by (-4)
-j400i1-j100i2=-40
then I add equation for mesh A to B
(47+j100)i1-j400i+j100i2-j100i2=12-40
+j100i2-j100i2=0
Therefor
(47+j100)i1-j400i1=-28
47i1+j100i1-j400i1=-28
47i1-j300i1=-28
(47-j300)i1=-28

Okay, that looks better. Continue.
 
  • #15
i1=-=-28/303.65<80.096=-0.0922<80.096

As well should I mention that I have used KVL to solve this problem
 
  • #16
shaltera said:
i1=-=-28/303.65<80.096=-0.0922<80.096
You should incorporate the sign of the numeric part into the angle since the numeric part is the magnitude of the complex value, and magnitudes are always positive (absolute) values. Your angle appears to be off by one degree... typo?

As well should I mention that I have used KVL to solve this problem
Yes, that was clear from your equations.
 
  • #17
i1=-28/(47-j300)=-28/sqr (472-3002)tan-1(-300/47)=-28/303.65<80.096=0.093<-81.10deg

10=j100i1+j25i2 =100x1<90x0.093<-81.10+j25i2
10=9.3<(90-81.10)+j25i2
10=9.3cos(9)+j9.3sin(9)=9.19+j1.439+j25i2
10=9.19+j1.439+j25i2
-0.81+j1.439=-j25i2
1.651<-0.94/-j25i2=1.651<-0.94/25<90=0.066<-90.94
 
Last edited:
  • #18
shaltera said:
i1=-28/(47-j300)=-28/sqr (472-3002)tan-1(-300/47)=-28/303.65<80.096=0.093<-81.10deg
The angle you've found for the denominator doesn't reflect the sign of the argument of the arctan function. Note that the "-" is associated with the numerator of the argument, -300. So the angle should end up in the [STRIKE]third[/STRIKE] fourth quadrant. Also the angle value is off by a degree (typo?).

Next, the negative sign on the numerator (-28) has disappeared. It should get rolled into the final angle... think of the numerator as 28 ∠ ±180°. Or, perhaps more easily, make the numerator positive to begin with (multiply top and bottom by -1 before you begin).
 
Last edited:
  • #19
Calculated differently:

(-28/47-j300)(47+j300)/(47+j300)=(-1316-j8400)(2209-j290000)=(-1316-j8400)/92209
(-1316/92209)-(j8400/92209)=-0.0142-j0.091=0.092<98.86deg
 
  • #20
shaltera said:
Calculated differently:

(-28/47-j300)(47+j300)/(47+j300)=(-1316-j8400)(2209-j290000)=(-1316-j8400)/92209
(-1316/92209)-(j8400/92209)=-0.0142-j0.091=0.092<98.86deg

Good, but the angle should be negative. The two components of the current are both negative, putting the angle in the third quadrant.
 
  • #21
I simple used Pythagorean theorem and arctan

sqr((-0.0142)2+(-0.091)2)tan -1(-0.091/-0.0142)=
0.092<-98.86deg
 
  • #22
CASIO fx-83ES, calculated arctan (0.091/0.0142) as 81.25deg. Online calculator gave me result:98.86

Which one is correct?
 
  • #23
shaltera said:
I simple used Pythagorean theorem and arctan

sqr((-0.0142)2+(-0.091)2)tan -1(-0.091/-0.0142)=
0.092<-98.86deg

Arctan can't "see" the two negative signs of its argument; they cancel when you do the division. It's up to you, the user, to make sure that the angle ends up in the right quadrant. I'm sure you covered the domain and range of the trig functions in one of your previous courses dealing with trigonometry.

As an alternative to arctan, if your calculator has an atan2(y,x) function, then it takes both arguments separately and always returns the right result.
 
  • #24
gneill said:
The angle you've found for the denominator doesn't reflect the sign of the argument of the arctan function. Note that the "-" is associated with the numerator of the argument, -300. So the angle should end up in the [STRIKE]third[/STRIKE] fourth quadrant. Also the angle value is off by a degree (typo?).

Next, the negative sign on the numerator (-28) has disappeared. It should get rolled into the final angle... think of the numerator as 28 ∠ ±180°. Or, perhaps more easily, make the numerator positive to begin with (multiply top and bottom by -1 before you begin).

I didn't know how to express it at the beginning but that's what I had in mind

arctan -1 (300/47)
 
  • #25
Look like online calculator is right :)

0.092<-98.86deg
 
  • #26
Ok.How about calculations in a second equation (i2) in P17?Is it correct?
 
  • #27
shaltera said:
CASIO fx-83ES, calculated arctan (0.091/0.0142) as 81.25deg. Online calculator gave me result:98.86

Which one is correct?

81.13° for that argument to arctan. The 98.86 value looks like the result for -28/(47 - j300).
 
  • #28
10=j100i1+j25i2
10=9.3<(90-98.86)-j25i2=100x1<90x0.093<-98.86+j25i2
10=-9.3cos(9)-j9.3sin(9)=-9.19-j1.439+j25i2
10=-9.19-j1.439+j25i2
 
  • #29
shaltera said:
10=j100i1+j25i2
10=9.3<(90-98.86)-j25i2=100x1<90x0.093<-98.86+j25i2
10=-9.3cos(9)-j9.3sin(9)=-9.19-j1.439+j25i2
10=-9.19-j1.439+j25i2

It's getting messy plugging in numbers and then rearranging while calculating. Why not start by clearing out the j's from the right hand side? Multiply through by -j.

##-j10 = 100 i_1 + 25 i_2##

Isolate ##i_2## and then then start plugging in values.
 
  • #30
gneill said:
It's getting messy plugging in numbers and then rearranging while calculating. Why not start by clearing out the j's from the right hand side? Multiply through by -j.

##-j10 = 100 i_1 + 25 i_2##

Isolate ##i_2## and then then start plugging in values.

i2=(-100i1-j10)/25=-10(10i1-j)/25=-2(10i1-j)/5
 
Last edited:
  • #31
i2=(-100i1-j10)/25=-10(10i1-j)/25=-2(10i1-j)/5

i2=-2(10(0.093<-98.86)-j)/5

Honestly I don't know how to continue
 
  • #32
shaltera said:
i2=(-100i1-j10)/25=-10(10i1-j)/25=-2(10i1-j10)/5

Okay, but simpler:

##i_2 = -4 i_1 - j\frac{10}{25}##

EDIT: and use the rectangular version of i1 to plug in.
 
  • #33
i2=-4(0.093<-98.86)-j10/25=-4(-0.0143+j0.091)-j0.4=0.052-j0.364-j0.4=0.052-j0.764
 
  • #34
shaltera said:
Equation above have two unknown,if I replace i1 with 0.093<-98.86 look mess

Only i2 is unknown. Convert i1 to rectangular form before plugging it in.

Note that you should make a habit of keeping more digits in intermediate values! Otherwise repeated conversions and calculations will cause rounding and truncation errors to creep into your results (especially for angular values). Always keep extra guard digits!
 
Last edited:
  • #35
0.052-j0.764=sqr(0.0522+(-0.764)2tan -1(-(0.764/0.052)=0.765<-86.106
 
  • #36
shaltera said:
0.052-j0.764

What is that? If it's i2 it doesn't look right. Show your steps.
 
  • #37
i1=0.093<-98.86

I converted polar form to complex numbers for i1
-0.0143+j0.091 then I entered in

i2=--4i1-j10/25
i2=-4(-0.0143+j0.091)-j0.4=0.052-j0.364-j0.4=0.052-j0.764
i2=0.052-j0.764=sqr(0.0522+(-0.764)2)tan -1(-(0.764/0.052)=0.765<-86.106
 
  • #38
shaltera said:
i1=0.093<-98.86

I converted polar form to complex numbers for i1
-0.0143+j0.091 then I entered in
Should be: -0.0143 - j0.0911
Check your conversion. You should note that an angle of -98.86° places it in the third quadrant, so both terms must be negative.

i2=--4i1-j10/25
i2=-4(-0.0143+j0.091)-j0.4=0.052-j0.364-j0.4=0.052-j0.764
i2=0.052-j0.764=sqr(0.0522+(-0.764)2)tan -1(-(0.764/0.052)=0.765<-86.106
 
  • #39
I calculated with Matlab

for I1=-0.0143-0.0911i=0.0922<-98.9040
for I2= 0.0571-0.0356i=0.0673<-31.9553

I don't get it why we have to calculate by hand?
 
  • #40
Can I use Matlab for my assessment?

a=[47+100j 100j;100j 25j]
b=[12;10]
i=a\b

then magn=abs(i)
and then the angle
angle(i)*180/pi

Why do we have to calculate by hand?I'm not living in 20 century
 
  • #41
shaltera said:
I calculated with Matlab

for I1=-0.0143-0.0911i=0.0922<-98.9040
for I2= 0.0571-0.0356i=0.0673<-31.9553

I don't get it why we have to calculate by hand?

Yes, those values look good. As to why you have to calculate by hand, I can only presume that there are "pedagogical reasons"; You'll have to ask your instructor.
 
  • #42
shaltera said:
Can I use Matlab for my assessment?

a=[47+100j 100j;100j 25j]
b=[12;10]
i=a\b

then magn=abs(i)
and then the angle
angle(i)*180/pi

Why do we have to calculate by hand?I'm not living in 20 century

Who says you have to calculate by hand? Your instructor? Many instructors will require you to calculate by hand for a while so that you learn how complex arithmetic works. But, after a while, you should be able to use modern software or calculators.
 
  • #43
Apart of Matlab, I do not have a calculator with atan2 function.I was looking for a formula to convert polar to rectangular form but all examples are with positive values
 
  • #44
Many calculators have built-in polar to rectangular (and back) functions. They will accomplish the same thing.
 

Similar threads

Replies
7
Views
2K
Replies
62
Views
11K
Replies
7
Views
2K
Replies
4
Views
7K
Replies
7
Views
2K
Replies
4
Views
2K
Back
Top