In my previous post, I shared how to solve an parallel resistor equation with two resistors in parallel.
RΣ21=R11+R21⟺RΣ2=R1+R2R1R2
What if we had more than two resistors in parallel?
First, let's make a quick note about finding the resistance of circuits in series.
The total resistance of resistors in a series is simply the sum of their resistances.
RΣn=i=1∑n=R1+R2+R3+⋯+Rn
So as long a the resistors are part of a path, they can be seen as one big resistor.
I could also probably go over Ohm's Law (
R=V/I
or
V=IR
where
V
is voltage in volts,
I
is the electrical current in amperes, and
R
is the resistance in ohms), but I don't want to do that. Maybe in another article.
This article is about parallel resistors.
Suppose we have three resistors in parallel.
RΣ31=R11+R21+R31
We can use the formula for two resistors in parallel, but we would need to add a third resistor.
We now have a formula we can use to find the resistance of three resistors in parallel.
What if we have four resistors in parallel? We can use the formula from our three parallel resistor example and use it to find a formula for four parallel resistors.
Right now, you are probably think to yourself "Ugh! That's a lot of things I can't track" or "My head hurts from looking at this!"
This is why when formulas like this get this complicated I like to shift towards Sigma (
Σ
) and Pi (
Π
) notations for for series of sums and products.
The basic concepts of these notations is to avoid having to write things over and over. Let's say we wanted to find the sum of numbers 1 through 4.
i=1∑4i=1+2+3+4=10
Factorial (
n!
) is just a prettier way to write the product of a series of numbers starting at 1.
4!=i=1∏4i=1⋅2⋅3⋅4=24
But we can use
Σ
and
Π
at different starting and ending points.
i=2∑63ii=3∏42+i=6+9+12+15+18=60=5⋅6⋅7⋅9=1890
Take a note of the formulas we have created thus far.
Did you notice in the formulas on the right side, the numerators are the product of all the resistors?
If we could create a generalized formula, we could probably write the numerator in
Π
notation.
u=i=1∏nRi=R1⋅R2⋅R3⋅⋯⋅Rn□
Pretty easy to see, right?
The denominators will require a bit more understanding. Each item in the denominator is the numerator divided by one term to cancel out one of the factors in a term.
But writing this is problematic. Nobody wants to write all that stuff I just wrote when they can use a
Π
notation to indicate that when we multiply by all our factors, we can skip
Rj
. That's where this neat little hack comes in.
vj=j=i∏Rj
Basically we say here "skip
j
if it is equal to
i
because
j
should not equal
i
".
This is important because keep in mind, our denominator is the sum of products. Microsoft Excel geeks might now about the SUMPRODUCT function which acts as a filter add only matching items. With
∏j=i
, we basically added a filter to exclude multiplying
Rj
when
j=i
.
There is a reason I put that subscripted
j
next to
v
. Its because we need the denominator (
v
) to be the sum of each
vj
of which each
vj
is the product of all the resistors (
u
) except when
j=i
.
Confused? Think of this as having two for loops. In the following code sample, our initial sum is zero and our initial product is one. Starting with a sum of one would throw our answer off by one, and starting with a product of zero would mean all the products are zero. We can't have that. I've opted to shift our product index by one because arrays in JavaScript start a zero, but our math examples start at one.
letr={1.5,1.5,4,4};// each resister with values in ohmsfunctiondenominator(r){letsum=0;for(leti=1;i<=n;i++){// sigma sumletproduct=1;for(letj=1;j<=n;j++){// pi productif(i===j)continue;// if i equals j, skip this stepproduct*=r[j-1];}sum+=product;}returnsum;}console.log(denominator(r));// => 66
There's probably a more modern way to do this with JavaScript with the Array class's filter() or reduce() functions, but we still have to include our numerator in the formula!
For those wonder, here's what the code would be for the numerator.
But I didn't spend about a hour writing thsi just to show you this.
Remember last post where we wanted to find the rates of change in a resistor? There's a reason I used
u
and
v
in this example, because we're not done yet! We want to find the derivative of
RΣn
.
Get the ibuprofen handy, because I'm going to make your head hurt.
Because
RΣn
is the quotient of two values, so will our
RΣn′
. Which means, we will need to break out the the quotient rule.
RΣn′(t)=(vu)′=[v]2u′⋅v−u⋅v′
But I'm getting ahead of myself. I mean, how do we derive a
Σ
series, or a
Π
series, or a
ΣΠ
series!?
We should probably start by taking a look at how we derived a circuit with two parallel resistors in it, from the previous post.
You know what, let's drop the
(t)
's. I know they are important to remind ourselves that we are working with functions with respect to time, and there are many ways to write your notation. But Team Lagrange for the win.
OK, so that was our formula for two resistors in parallel. What about three? The numerator is easy to figure out. The product rule indicates that one of the values in each term is the first derivative. The denominator will require the sum rule and the product rule.
For brevity, I decided not to include some of my work because there was a lot of F.O.I.L. and cancelling. You can expect the same when I work on four factors in a bit. The point here is to find patterns.
That took me over an hour to write, not including the stuff I cut out for clarity.
So what can we learn from this? Firstly, we don't need to expand the denominator. Just don't. It's a lot of busy work. In fact, I won't be expanding the denominator in or four parallel resistor example or in the
n
th example. So lets assume that in any first derivative, of
RΣn
, the denominator is as follows
[vΣn]2=⎣⎡i=1∑nj=1∏Rj⎦⎤2□
Our attention is primarily on the numerator.
We can see that the terms in the numerator for
RΣ2
are multiplied by
[R3]2
. If we group our numerator terms together, we see that each numerator term is a denominator term multiplied by the derivative of a resistor. We will need to prove this in our four parallel resistor example to validate our generalization.
See how complex this is. Fortunately, we can see our pattern.
With every new factor, for each product term, at least one of the factors is derived while the others are squared. With this information, we can generalize the numerator. Let's start with how to describe each term
[ui]′=Ri′j=i∏[Rj]2
Each subterm is the product of the derivative multiplied by the squares of the other factors except when
j=i
We can also describe the sum of these subterms. This will describe our numerator.
uΣn′=i=1∑n⎝⎛Ri′j=i∏[Rj]2⎠⎞□
We have reached the end of a long journey. All there is now is to pair our numerator with the denominator.
I wanted to interpret the derived formula into code, but I just don't have the energy left after having figure out all the terms for four resistors in parallel. Maybe in a future post. Stay tuned.