I know the impedance of the inductance is: 'jwl'; but this is correct with sinusoidal input; now my question is:
how to calculate the impedance when the input is the periodic square wave(like a digital clock)?
any help will be appreciated.
I know the impedance of the inductance is: 'jwl'; but this is correct with sinusoidal input; now my question is:
how to calculate the impedance when the input is the periodic square wave(like a digital clock)?
any help will be appreciated.
You could use the fundamental to get a very approximate stab, but because a square wave has significant energy at higher frequencies, there will be a fair degree of error.
However, given that we know that the square wave is treatable as a summed series of sine waves with a well known equation - you could iterate towards a better solution by applying the sine wave equation for impedance at each of these harmonics in turn, and summing the current flowing at each. You then get a series of sinusoidal currents which you can sum to get total current, and then get impedance back.
As you include more and more of the upper frequencies you will iterate towards a more accurate solution. This could be done easily enough in a spreadsheet or with a simple script if you know a little programming.
This gives a decent solution without delving into higher mathematics - or a useful sanity check on results that you might obtain by other methods.
Form the context of your question, it sounds like you are asking for an impedance magnitude in ohms. The problem is that this is only defined at a single frequency.
As a square wave is composed of a fundamental frequency, plus 0.33 3rd harmonic, plus 0.2 5th harmonic etc, you can make a good stab at an effective impedance (depending on how you want to define effective) by simply using the fundamental frequency.
If you want to define an effective impedance as (perhaps) rms voltage divided by rms current, then there are several ways to arrive at that figure, from analytical, to simulation with SPICE. The latter might be easiest, and also illustrate to you what happens to the waveforms (hint, the current wave is not square).
assuming your usecase allows it, you can build a simple LC filter with a known value capacitor.
From there, you can use your square wave as an input, Vc as an output, an work out your impedance from the step response of your system.
Impedance is defined as the ratio of the Laplace transforms of the Input voltage and the current flowing through the said input voltage source.
You can use the method suggested by Neil_UK for an approximate analysis, but if you are looking for an exact answer, then you must keep in mind that impedance comes out in the jwL form only for a purely sinusoidal input.
One of the methods to handle a general input voltage is to first solve the problem by writing the differential equations, for example in this case,
$$L\frac{di(t)}{dt} = v_i(t)$$
Then taking a Laplace transform like so
$$sL\mathscr{L}(i(t)) = \mathscr{L}(v_i(t))$$
And then the current established in the circuit as a function of time may be found by expressing the Laplace transform of the current in terms of known quantities (including the Laplace of v_i) and taking the inverse Laplace transform using a tool like Matlab.
If the OP is familiar with these ideas then they may lookup the iLaplace operator in Matlab.
A useful link to learn more about generalised impedance as an s domain (Laplace Domain) proportionality factor is this.
Another answer makes mention of laplace, but since your signal is periodic, it's easier to think in terms of fourier.
Your square wave can be regarded as a series of harmonics. Since the inductor is linear we can use the superposition principle to analyse each harmonic seperately. I'm going to ignore the issue of phase and just think about the magnitudes of the components.
In a square wave the fundament is the strongest component, the 3rd harmonic is \$\frac{1}{3}\$ the strength of the fundemental, the 5th harmonic is \$\frac{1}{5}\$ the strength of the fundemental and so-on.
But the impedance of the inductor is proportional to frequency. So in our current waveform, the 3rd harmonic is \$\frac{1}{9}\$ the strength of the fundemental, the 5th harmonic is \$\frac{1}{25}\$ the strength of the fundemental and so-on. The RMS current through the inductor will be dominated by the fundamental.
If you had used a capacitor instead then the impedance would be inversely proportional to frequency. All the harmonics in the current waveform would have the same strength as the fundamental and the RMS current would be infinite.