Understanding the Relationship Between i*cos and sin in Circuit Analysis

  • #1
jaydnul
558
15
In circuit analysis, everything seems to work out when you set i*cos = sin. But thats not a legitimate equation, so why does that work? Is there a proof that this is a real equation?
 
Physics news on Phys.org
  • #2
jaydnul said:
why does that work?
First, where does it work? I don’t remember ever seeing that work in circuits
 
  • Like
Likes vanhees71
  • #3
sin(wt) across a cap gives I = c*w*cos(wt). So V/I becomes 1/jwc. It works everywhere else too
 
  • #4
jaydnul said:
sin(wt) across a cap gives I = c*w*cos(wt). So V/I becomes 1/jwc. It works everywhere else too
So where is ##i \cos = \sin ## in that?
 
  • #5
should be i*sin = cos, sorry. V/I = sin/(cwcos). replace cos with jsin and it simplifies to 1/jwc
 
  • #6
another example:

i have a transfer function given by the complex number (A+jB). I multiply my input sin(wt) and i get Asin(wt)+jBsin(wt). Using the equality above, it becomes Asin(wt) + Bcos(wt), which is just standard form of any sinusoid with a magnitude of sqrt(A^2 + B^2). No need to convert into an exponential with eulers formula, then take the "real" part of that exponential.
 
  • #7
I think you are misinterpreting the fact that $$\frac d {dt}~e^{i\omega t}=i\omega e^{i\omega t}$$ as a new "magic rule" for circuit analysis. This is just a property of a circular function.
 
  • Like
Likes scottdave and DaveE
  • #8
hutchphd said:
I think you are misinterpreting the fact that $$\frac d {dt}~e^{i\omega t}=i\omega e^{i\omega t}$$ as a new "magic rule" for circuit analysis. This is just a property of a circular function.
Does that complex exponential equation show that i*sin = cos

I am just wondering why it seems to always work, i cant find an example where it doesnt. But then also, i cant prove i*sin = cos.

Without every invoking complex exponentials, eulers formula, etc. Why can i simply replace all cos terms with isin, do the algebra, then replace all the isin terms back with cos and somehow magically always get the correct answer.
 
  • #9
jaydnul said:
Does that complex exponential equation show that i*sin = cos

I am just wondering why it seems to always work, i cant find an example where it doesnt. But then also, i cant prove i*sin = cos.

Without every invoking complex exponentials, eulers formula, etc. Why can i simply replace all cos terms with isin, do the algebra, then replace all the isin terms back with cos and somehow magically always get the correct answer.
because the problem is linear and all the i does is identify the imaginary part. So switching and then switching back works OK. If your problem scrambled them (by squaring for instance) the result would not work out. Try it
 
  • #10
hutchphd said:
because the problem is linear and all the i does is identify the imaginary part. So switching and then switching back works OK. If your problem scrambled them (by squaring for instance) the result would not work out. Try it
Ahh maybe thats it. But in circuits all the of the components are linearized. Whats an example of what you are talking about, maybe im confused?
 
  • #11
jaydnul said:
should be i*sin = cos, sorry. V/I = sin/(cwcos). replace cos with jsin and it simplifies to 1/jwc
Ok, so you seem to be mixing phasor concepts with time domain notation. So in phasor notation ##A \cos(\omega t+\phi)## is written as ##A\angle \phi## which is further interpreted as the complex number ##A e^{j\phi}##. So the phasor of ##\cos(\omega t)## would be ##1 e^{j0}=1## and the phasor of ##\sin (\omega t)=\cos (\omega t - \pi/2)## would be ##1 e^{-j\pi/2}=-j##. So ##phasor(\cos)=j \ phasor(\sin)## which does not mean ##\cos = j \ \sin##
 
Last edited:
  • Like
  • Informative
Likes scottdave, DaveE and jasonRF
  • #12
1697663713994.png
 
  • #13
jaydnul said:
another example:

i have a transfer function given by the complex number (A+jB). I multiply my input sin(wt) and i get Asin(wt)+jBsin(wt). Using the equality above, it becomes Asin(wt) + Bcos(wt), which is just standard form of any sinusoid with a magnitude of sqrt(A^2 + B^2). No need to convert into an exponential with eulers formula, then take the "real" part of that exponential.
If you are using complex numbers in circuit analysis (like a complex impedance, or your transfer function), then you are using Euler's formula* to express quantities that have both an amplitude and phase. It won't do you much good in the long run to pretend that you aren't. It's not any easier your way, assuming correct answers are your goal.

jaydnul said:
i cant prove i*sin = cos.
Because that's just not true. EEs use math the way it's taught in math classes. Inventing something new without any rigorous basis will not work for you. The mathematical approaches to circuit analysis are not tricks that someone stumbled across or found through trial and error. There is a firm logically consistent reason for the analytical tools used.

I think it's time to take a big step back and look not just at how these problems are solved, but also why those tools are used; why they work.

* Alternately you can think of everything as a 2-D vector instead of complex numbers, it's really the same thing.
 
  • Like
Likes jasonRF
  • #14
I get it, I understand phasors, i am an MSEE working in industry as an analog designer. Just asking for an example where that substitution doesnt work thats it. Phasors are already abstract, and its mysterious to me as to why that substitution seems to always work.
 
  • #15
jaydnul said:
Of course this example works, the way you did it anyway. All you did was change the symbols while still treating it as a 2-d vector (the original complex number). A & B terms didn't change and those were all you used to find the magnitude and phase. You could have substituted apples and monkeys in place of sin and cos, as long as apples and monkeys make an orthogonal basis. I don't really follow how this improves anything.
 
  • #16
jaydnul said:
Just asking for an example where that substitution doesnt work thats it.
That substitution doesn't work in the example that you gave in post 5.
jaydnul said:
should be i*sin = cos, sorry. V/I = sin/(cwcos). replace cos with jsin and it simplifies to 1/jwc
If the voltage across a capacitor is ##v= \sin(\omega t)## then the current through it is ##i = C \dot v = C \omega \cos(\omega t)## so $$\frac{v}{i} = \frac{\sin(\omega t)}{C \omega \cos(\omega t)} \ne \frac{1}{j\omega C}$$ What does work, as I said, is to use phasor notation.
 
  • Like
Likes jasonRF
  • #17
jaydnul said:
I get it, I understand phasors, i am an MSEE working in industry as an analog designer. Just asking for an example where that substitution doesnt work thats it. Phasors are already abstract, and its mysterious to me as to why that substitution seems to always work.
Since you claim to understand phasors, why don’t you use them the same way as all other EEs I have ever worked with and gone to school with? Were you taught this method?

Of course, if ##\omega t## is real then ##\cos(\omega t)## is real and ##i \, \sin(\omega t)## is imaginary, so they are never equal. Writing ##i \, \sin(\omega t)=\cos(\omega t)## makes as much sense as writing ##1=2##. They are both false.
 
  • #18
DaveE said:
You could have substituted apples and monkeys in place of sin and cos, as long as apples and monkeys make an orthogonal basis.
But you need the derivative of apples to be monkeys, as well as orthogonal. So i dont see the point you are making.
Dale said:
That substitution doesn't work in the example that you gave in post 5. If the voltage across a capacitor is ##v= \sin(\omega t)## then the current through it is ##i = C \dot v = C \omega \cos(\omega t)## so $$\frac{v}{i} = \frac{\sin(\omega t)}{C \omega \cos(\omega t)} \ne \frac{1}{j\omega C}$$ What does work, as I said, is to use phasor notation.
Yes it does? Substitute cos(wt) with j*sin(wt) and thats exactly what you get, and kinda my entire point here.
 
  • #19
jaydnul said:
Yes it does? Substitute cos(wt) with j*sin(wt) and thats exactly what you get, and kinda my entire point here.
If you make the substitution then you do get the right hand side of the inequality, but it doesn’t equal the left hand side of the inequality. In other words, once you make the substitution, the remaining quantity is no longer equal to ##v/i## where ##v## and ##i## are functions of time, not phasors.
 
  • #20
hutchphd said:
because the problem is linear and all the i does is identify the imaginary part. So switching and then switching back works OK. If your problem scrambled them (by squaring for instance) the result would not work out.

I really appreciate all the posts but this is the only one that is attempting to answer my question. Is this expandable?

jasonRF said:
Since you claim to understand phasors, why don’t you use them the same way as all other EEs I have ever worked with and gone to school with? Were you taught this method?

Of course, if ##\omega t## is real then ##\cos(\omega t)## is real and ##i \, \sin(\omega t)## is imaginary, so they are never equal. Writing ##i \, \sin(\omega t)=\cos(\omega t)## makes as much sense as writing ##1=2##. They are both false.
It is interesting to think about and i enjoy it. Why do people post things like this lol. The only reasonable responses should be:

i dont know

it is unknowable

this is why that happens to work but here is the context where it doesn't work/falls apart
 
  • #21
Dale said:
If you make the substitution then you do get the right hand side of the inequality, but it doesn’t equal the left hand side of the inequality. In other words, once you make the substitution, the remaining quantity is no longer equal to ##v/i## where ##v## and ##i## are functions of time,
the units for 1/jwc is the same as V/I. I mean it is a function of t, the two sin(wt) just cancel eachothers impacts…
 
  • #22
jaydnul said:
the two sin(wt) just cancel eachothers impacts
That is exactly the problem. ##\cos/\sin=\tan\ne 1/j##
 
Last edited:
  • #23
Im wondering why IT WORKS when you substitute jsin. Thats it
 
  • #24
jaydnul said:
Im wondering why IT WORKS when you substitute jsin. Thats it
And I am telling you that the substitution doesn’t work.

What does work is to transform to phasors.
 
  • #25
Dale said:
And I am telling you that the substitution doesn’t work.

What does work is to transform to phasors.
Using phasors to derive the magnitude of the transfer function of a circuit gives THE EXACT SAME results as substituting jsin=cos. Thats what i mean by work. Input output. If you want to argue what word to use for that instead of WORKS thats fine

Hutchphd had what seemed to be the only helpful post so far. Can anyone expand on that
 
  • #26
It might be easier if you give an explicit (excruciatingly detailed) example of what you mean. I think you will see it is not very interestng when looked at in detail. Phasors and complex notation give the same results when applied appropriately. So please give one concrete example of your substition (in gory detail)
 
  • #27
Because of the trig identity ##A sin(\omega t) + B cos(\omega t) = \sqrt{A^2+B^2}~ sin(\omega t + atan(\frac{B}{A}))##

And
##|(A+jB) sin(\omega t)| = |(A+jB)| ⋅ |sin(\omega t)| = \sqrt{A^2+B^2} ~|sin(\omega t)|##

##arg((A+jB) sin(\omega t)) = arg(A+jB) + arg(sin(\omega t)) = atan(\frac{B}{A}) + arg(sin(\omega t))##

Then when you jump to phasor notation and drop the ##sin(\omega t)## terms they are the same. It's the same solution algorithm, that is all. Nothing Euler didn't know 300 years ago. If you aren't working with phasors, it's just wrong.
 
  • #28
I am now officially lost.
 
  • #29
Maybe I missed it (sorry if I did), but why don't you write sin(x) and cos(x) in terms of complex exponentials and check it explicitly?
 
  • Like
Likes Ibix
  • #30
jaydnul said:
Using phasors to derive the magnitude of the transfer function of a circuit gives THE EXACT SAME results as substituting jsin=cos. Thats what i mean by work. Input output. If you want to argue what word to use for that instead of WORKS thats fine

Hutchphd had what seemed to be the only helpful post so far. Can anyone expand on that
So the analytic representation of ##A \cos(\omega t+\phi)## is ##A e^{j\phi}e^{j\omega t}## and the phasor representation is the non-time-dependent part ##A e^{j\phi}##. So the phasor representation of ##\cos(\omega t)## is ##e^{j0}=1##.

Since ##\sin(\theta)=\cos(\theta-\pi/2)## the phasor representation of ##\sin(\omega t)## is ##e^{-j\pi/2}=-j##.

So $$phasor(\cos(\omega t))=j \ phasor(\sin(\omega t))$$ This is where the relationship you are seeing comes in. But this in no way implies that $$\cos(\omega t)=j \ \sin(\omega t)$$ That substitution does not work for the reasons I showed above.

You are just being sloppy. You need to clearly identify when you are working with functions of time and when you are working with their phasor representations. A function is not the same as the representation of that function in another domain.

Similarly, when you are working with Fourier transforms you need to be clear about when a function is in the time domain and when it is in the frequency domain. If ##X(\omega)=\mathcal F [x(t)]## then $$\mathcal F[ \dot x]=j\omega X$$ is correct whereas $$\dot x=j\omega x$$ is simply wrong. This is what you are doing and claiming that it works. Sloppy mixing of domains doesn't work.
 
  • Like
Likes DaveE and hutchphd
  • #31
haushofer said:
Maybe I missed it (sorry if I did), but why don't you write sin(x) and cos(x) in terms of complex exponentials and check it explicitly?
Hey haushofer, ya i tried that. if you do that then it just spits it back out. jsinx = jsinx.
Dale said:
So the analytic representation of ##A \cos(\omega t+\phi)## is ##A e^{j\phi}e^{j\omega t}## and the phasor representation is the non-time-dependent part ##A e^{j\phi}##. So the phasor representation of ##\cos(\omega t)## is ##e^{j0}=1##.

Since ##\sin(\theta)=\cos(\theta-\pi/2)## the phasor representation of ##\sin(\omega t)## is ##e^{-j\pi/2}=-j##.

So $$phasor(\cos(\omega t))=j \ phasor(\sin(\omega t))$$ This is where the relationship you are seeing comes in. But this in no way implies that $$\cos(\omega t)=j \ \sin(\omega t)$$ That substitution does not work for the reasons I showed above.

You are just being sloppy. You need to clearly identify when you are working with functions of time and when you are working with their phasor representations. A function is not the same as the representation of that function in another domain.

Similarly, when you are working with Fourier transforms you need to be clear about when a function is in the time domain and when it is in the frequency domain. If ##X(\omega)=\mathcal F [x(t)]## then $$\mathcal F[ \dot x]=j\omega X$$ is correct whereas $$\dot x=j\omega x$$ is simply wrong. This is what you are doing and claiming that it works. Sloppy mixing of domains doesn't work.
I understand all of this, ill stop using the word "works" since that seems to be what we are hung up on.

Mathematically, if you input a sin signal into a circuit, calculate the transfer characteristics, substitute jsin for cos terms to further simplify the algebra, then substitute cos back in for all the jsin terms, you end up with a sin wave with exactly the same magnitude as when you do it with phasor representation. I can plug in x values into the answer i arrived at, it will give me the right values for y. plain and simple.

Intellectually it is an interesting exercise to find out why that happens to spit out the same answer as the phasor method, and why it wont work in some instances.

Just a bunch of dogmatic explanations so far like just listen to us, thats not how you are supposed to do it

DaveE said:
If you aren't working with phasors, it's just wrong.
 
  • Skeptical
  • Sad
Likes weirdoguy, DaveE and berkeman
  • #32
hutchphd said:
because the problem is linear and all the i does is identify the imaginary part. So switching and then switching back works OK. If your problem scrambled them (by squaring for instance) the result would not work out. Try it
This is an interesting comment. I'm not sure how to take it further, but maybe it is an explaination?

Something else I was thinking about (which may be complete nonsense) is that -sin^2 is equal to cos^2 when looking at phase and magnitude ONLY. The dc bias separates them, but working with j seems to remove the DC bias from the calculations? idk attacking the problem from an EE perspective haha probably just nonsense
 
  • #33
jaydnul said:
substitute jsin for cos terms to further simplify the algebra
This step is a sloppy transform to the phasor representation. The purpose of the phasor representation is indeed to simplify the math.

jaydnul said:
substitute cos back in for all the jsin terms
This step is a sloppy transform back from the phasor representation.

jaydnul said:
Intellectually it is an interesting exercise to find out why that happens to spit out the same answer as the phasor method, and why it wont work in some instances
I don't think that figuring out when it is ok to be sloppy is a good idea. I think it is better to not be sloppy in the first place. What possible disadvantage is there to being clear and careful?

Personally, I think transforming to and from phasors is so easy that there is no reason to make it sloppy. I would rather have one clear rule that I know works and can apply systematically instead of a collection of ad hoc rules that are unclear and their limits are unknown. Particularly when the clear and systematic rule is as easy as phasors.

It seems likely that the sloppy approach will not work any time that phasors will not work. Are there cases where phasors will work and the sloppy approach will not? I don't know.

jaydnul said:
ill stop using the word "works" since that seems to be what we are hung up on.
I am actually hung up on saying ##\cos = j \sin## when what you really mean is that in the phasor representation ## 1 = j (-j)##.

##\cos = j \sin## is simply false. ##1=j(-j)## is true. The fact that the second is the phasor representation of the first doesn't make the first true.
 
Last edited:
  • Like
Likes DaveE
  • #34
In phasor world what you are doing is equivalent to taking your phasor graph, rotating it 90deg on the table, doing some stuff and then rotating it back. As long as tyou work consistently, this should work out fine. Only the relative phases matter.
 
  • Like
Likes DaveE
  • #35
hutchphd said:
In phasor world what you are doing is equivalent to taking your phasor graph, rotating it 90deg on the table, doing some stuff and then rotating it back. As long as tyou work consistently, this should work out fine. Only the relative phases matter.
Isnt that curious? Idk i find it strange.

Maybe it works in circuits because everything is linearized as you said, but in quantum mechanics for instance would this fall apart? Its been so long since i took qm so i probably dont remember well enough to generate an example like that
 

Similar threads

Replies
3
Views
1K
Replies
1
Views
827
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
353
Replies
9
Views
3K
  • Calculus and Beyond Homework Help
Replies
22
Views
1K
  • Differential Equations
Replies
6
Views
2K
  • Electromagnetism
Replies
7
Views
936
  • Introductory Physics Homework Help
Replies
29
Views
929
  • Electromagnetism
Replies
4
Views
640
Back
Top