Answer:
The value of v2 in each case is:
A) V2=3v for only Vs1
B) V2=2v for only Vs2
C) V2=5v for both Vs1 and Vs2
Explanation:
In the attached graphic we draw the currents in the circuit. If we consider only one of the batteries, we can consider the other shorted.
Also, what the problem asks is the value V2 in each case, where:

If we use superposition, we passivate a battery and consider the circuit affected only by the other battery.
In the first case we can use an equivalent resistance between R2 and R3:

And


In the second case we can use an equivalent resistance between R2 and (R1+R4):

And


If we consider both batteries:

Answer & Explanation:
function Temprature
NYC=[33 33 18 29 40 55 19 22 32 37 58 54 51 52 45 41 45 39 36 45 33 18 19 19 28 34 44 21 23 30 39];
DEN=[39 48 61 39 14 37 43 38 46 39 55 46 46 39 54 45 52 52 62 45 62 40 25 57 60 57 20 32 50 48 28];
%AVERAGE CALCULATION AND ROUND TO NEAREST INT
avgNYC=round(mean(NYC));
avgDEN=round(mean(DEN));
fprintf('\nThe average temperature for the month of January in New York city is %g (F)',avgNYC);
fprintf('\nThe average temperature for the month of January in Denvar is %g (F)',avgDEN);
%part B
count=1;
NNYC=0;
NDEN=0;
while count<=length(NYC)
if NYC(count)>avgNYC
NNYC=NNYC+1;
end
if DEN(count)>avgDEN
NDEN=NDEN+1;
end
count=count+1;
end
fprintf('\nDuring %g days, the temprature in New York city was above the average',NNYC);
fprintf('\nDuring %g days, the temprature in Denvar was above the average',NDEN);
%part C
count=1;
highDen=0;
while count<=length(NYC)
if NYC(count)>DEN(count)
highDen=highDen+1;
end
count=count+1;
end
fprintf('\nDuring %g days, the temprature in Denver was higher than the temprature in New York city.\n',highDen);
end
%output
check the attachment for additional Information
Answer:a
a) Vo/Vi = - 3.4
b) Vo/Vi = - 14.8
c) Vo/Vi = - 1000
Explanation:
a)
R1 = 17kΩ
for ideal op-amp
Va≈Vb=0 so Va=0
(Va - Vi)/5kΩ + (Va -Vo)/17kΩ = 0
sin we know Va≈Vb=0
so
-Vi/5kΩ + -Vo/17kΩ = 0
Vo/Vi = - 17k/5k
Vo/Vi = -3.4
║Vo/Vi ║ = 3.4 ( negative sign phase inversion)
b)
R2 = 74kΩ
for ideal op-amp
Va≈Vb=0 so Va=0
so
(Va-Vi)/5kΩ + (Va-Vo)74kΩ = 0
-Vi/5kΩ + -Vo/74kΩ = 0
Vo/Vi = - 74kΩ/5kΩ
Vo/Vi = - 14.8
║Vo/Vi ║ = 14.8 ( negative sign phase inversion)
c)
Also for ideal op-amp
Va≈Vb=0 so Va=0
Now for position 3 we apply nodal analysis we got at position 1
(Va - Vi)/5kΩ + (Va - Vo)/5000kΩ = 0 ( 5MΩ = 5000kΩ )
so
-Vi/5kΩ + -Vo/5000kΩ = 0
Vo/Vi = - 5000kΩ/5kΩ
Vo/Vi = - 1000
║Vo/Vi ║ = 1000 ( negative sign phase inversion)