25

Why did scientists chose to go with sine wave to represent alternating current and not other waveforms like triangle and square?

What advantage does sine offers above other waveforms in representing current and voltage?

Peter Mortensen
  • 1,676
  • 3
  • 17
  • 23
Rookie91
  • 2,108
  • 4
  • 29
  • 46
  • 32
    No one "chose" those wave forms, its what naturally appears in generators. – PlasmaHH Feb 05 '15 at 09:39
  • That would not be perfectly sine in shape right.A square wave or triangle can be used to represent the positive cycle and negative right?Or is it for the ease of calculation ? – Rookie91 Feb 05 '15 at 09:43
  • 5
    I suggest you have a look at how these things work: http://en.wikipedia.org/wiki/Single-phase_generator and if you can construct one that gives me a triangle or square wave, I would like to have one please. – PlasmaHH Feb 05 '15 at 09:47
  • 10
    Fourier figured out that any signal/waveform can be described as a number of sines superimposed. – HKOB Feb 05 '15 at 11:34
  • 2
    @PlasmaHH It is possible to build generators for waveforms other than sine. Just look at the back EMF of a BLDC, which is trapezoidal (in the common case). But yes, without additional effort, a sine wave is just what you get easily. – Roland Mieslinger Feb 05 '15 at 12:53
  • 1
    I'm surprised no one mentioned that all functions can be regarded as sum of sines and cosines. – Plutonium smuggler Feb 05 '15 at 15:20
  • 1
    The sine is what occurs "naturally". Eg, an AC electric power generator will generate current/voltage that is very nearly a sinusoid. It's mathematically the simplest because it's perfectly "smooth". – Hot Licks Feb 05 '15 at 19:42
  • 1
    Think of it like this... Nature is lazy... sinewave's for motion are quite "efficient". Additional harmonics to produce a periodic waveform is energy –  Feb 05 '15 at 20:30
  • @RolandMieslinger while the backEMF can be shaped (via tooth and foot size) to be more trapizoidal... it isn't as energy-dense as a BLAC –  Feb 05 '15 at 20:31
  • 1
    @Plutoniumsmuggler You mean "all *periodic* functions". – David Richerby Feb 05 '15 at 20:59
  • @DavidRicherby . You do have fourier relations for periodic functions. See http://en.m.wikipedia.org/wiki/Fourier_series – Plutonium smuggler Feb 06 '15 at 00:16
  • 3
    @Plutoniumsmuggler That's exactly what I said! You claimed that every function can be represented as a Fourier series; I corrected this to every periodic function. (And, actually, you probably need to restrict even further, including some suitable notion of continuity and differentiability.) – David Richerby Feb 06 '15 at 08:49
  • 1
    @DavidRicherby You mean "all periodic *square-integrable* functions". No requirements are placed on smoothness (continuity, differentiability, higher derivatives), but in general, the smoother the function, the faster the Fourier coefficients decay (i.e. the more accurate a partial series approximation will tend to be). – J.T. Feb 07 '15 at 06:59
  • Also search for "Simple Harmonic Motion" SHM. Note fundamental relationship between "deflection", acceleration. In sine where velocity (delta change of variable per time) is max "acceleration" (rate of change of velocity" is zero and vice versa. – Russell McMahon Feb 10 '15 at 21:19
  • Earlier Wikipedia link for Fourier series was for the mobile page; here is the link for the regular page [www.wikipedia.org/wiki/Fourier_series](https://en.wikipedia.org/wiki/Fourier_series) (www instead of en.m) – tcrosley Feb 04 '16 at 07:11

11 Answers11

56

Circular motion produces a sine wave naturally: -

enter image description here

It's just a very natural and fundamental thing to do and trying to produce waveforms that are different is either more complicated or leads to unwanted side effects.

enter image description here

Up and down motion (in nature) produces a sine wave against time: -

enter image description here

Andy aka
  • 434,556
  • 28
  • 351
  • 777
  • 2
    Nice piccys Andy, SHM rules. (+1) – JIm Dearden Feb 05 '15 at 12:49
  • 1
    harmonic oscillation FTW –  Feb 05 '15 at 19:57
  • 5
    IIRC the spring motion only is approximately by a sine wave, and the approximation is good only for small deflections. But the rotational case is exactly the reason alternating current is sinusoidal. +1` – Ben Voigt Feb 06 '15 at 00:35
  • 2
    If I may, I'd like to add that since sinusoid are fundamental, you could build other waveforms out of those; Fourier series and transform, anybody ? – Sergiy Kolodyazhnyy Feb 07 '15 at 16:19
  • 3
    Sinusoids are also special in that they differentiate & integrate into other sinusoids. – Roman Starkov Feb 11 '15 at 19:08
  • @BenVoigt Why do you say spring motion is only approximately a sine wave? It should be exactly a sine wave (to the extent that Hooke's law is satisfied). Are you sure you're not thinking of pendulum motion, which approximately simple harmonic only for small deflections? (Because sin x ≈ x for small angles.) – Ken Shirriff Jan 10 '17 at 21:48
  • 2
    @KenShirriff: Hooke's law is usually only good for small deflections. – Ben Voigt Jan 10 '17 at 22:36
  • https://i.stack.imgur.com/ny3Qc.gif is another good animation (if you are interested in). Taken from https://tex.stackexchange.com/a/158741/87876 – Second Person Shooter Apr 27 '18 at 17:17
21

Cosine and sine waves (actually their constituents in the form of complex exponentials) are the Eigenfunctions of linear, time-invariant systems, having a time-dependent system response of $$\begin{align}f\bigl(a(t)+b(t),t_0\bigr)&= f\bigl(a(t),t_0\bigr)+f\bigl(b(t),t_0\bigr)&&\text{linearity}\\ f\bigl(a(t+h),t_0\bigr)&=f\bigl(a(t),t_0+h\bigr)&&\text{time invariance}\end{align}$$ If you build any network from linear passive components (resistors, inductors, capacitors on this StackExchange) and feed it with a continuous sinoidal signal, then any point in the network will deliver a continuous sinoidal signal of possibly different phase and magnitude.

No other waveform shape will generally be preserved since the response will be different for different input frequencies, so if you decompose some input into its sinoidal components of unique frequency, check the individual responses of the network to those, and reassemble the resulting sinoidal signals, the result will generally not have the same relations between its sinoidal components as originally.

So Fourier analysis is pretty important: passive networks respond straightforwardly to sinoidal signals, so decomposing everything into sinoids and back is an important tool for analyzing circuitry.

user66031
  • 211
  • 1
  • 2
  • 1
    Isn't this a circular argument? If you decomposed the input into some other kind of component (triangle waves for example) you'd get different results. – Random832 Feb 05 '15 at 16:22
  • 10
    @Random832 No, sine wave input to a passive R-C-L network always gives sine wave output (attenuated & phase shifted by a different amount depending on frequency.) To see why, see the mechanical resonance shown in Andy Aka's answer, of which electrical resonance is a direct analogue. Triangle input doesnt give triangle output. Fourier analysis tells us a triangle wave is composed of the following amplitudes, frequencies: a,f a/3,3f, a/5,5f etc. If we decompose the triangle into these sine waves and analyse them separately, we can add them together and see what waveform the circuit will produce. – Level River St Feb 05 '15 at 16:55
  • 1
    @Random832 If you try to analyse the input and output of a R-C-L system with triangle waves for example, you would find non-linear response. With sine/cosine waves, you get linear response, that is important. – Aron Feb 06 '15 at 10:51
  • @Aron: Related to that is the fact that adding together two sine waves with the same frequency but a phase that differs by an amount smaller than 180 degrees will yield one sine wave of the same frequency and an intermediate phase. Adding together two matching-frequency-different-phase signals of most other kinds of wave, however, will yield a wave shape that is not similar to the original. – supercat May 24 '18 at 19:25
14

Things oscillate according to sine and cosine. Mechanical, electrical, acoustical, you name it. Hang a mass on a spring and it will bounce up and down at its resonant frequency according to the sine function. An LC circuit will behave the same way, just with currents and voltages instead of velocity and force.

A sinewave consists of a single frequency component, and other waveforms can be built up from adding up multiple different sinewaves. You can see the frequency components in a signal by looking at it on a spectrum analyzer. Since a spectrum analyzer sweeps a narrow filter over the frequency range you're looking at, you will see a peak at each frequency that the signal contains. For a sinewave, you will see 1 peak. For a square wave, you will see peaks a f, 3f, 5f, 7f, etc.

Sine and cosine are also the projection of things that rotate. Take an AC generator, for example. An AC generator spins a magnet around next to a coil of wire. As the magnet rotates, the field that impinges upon the coil due to the magnet will vary according to the sine of the shaft angle, generating a voltage across the coil that is also proportional to the sine function.

alex.forencich
  • 40,694
  • 1
  • 68
  • 109
  • Thank you @alex.forencich so sine and cosine is in the fundamental actions around us right. – Rookie91 Feb 05 '15 at 09:57
  • 1
    Perhaps you could include in your answer that higher frequency waves are generally **undesirable**, since this leads to more capacitive and inductive losses, as well as more noise (since more higher frequencies are present) that needs to be filtered out by power supplies (for example in your hi-fi setup). – Sanchises Feb 05 '15 at 13:44
  • 1
    As a note: sine and cosine are so fundamental because they appear naturally in differential equations, and many facets of the universe are well modeled by differential equations (including E&M, springs, and more) – Cort Ammon Feb 05 '15 at 15:20
  • on the second point - the concept of frequency components (vs periodicity) really only makes sense when you start with an orthogonal set of waveforms to use as a reference - i think a sine wave can be viewed with various frequency components of triangle waves - the sine wave is special there because of linearity properties, so that we can decompose a signal into sines and apply that to a pasive network (a linear system) – user3125280 Feb 06 '15 at 08:26
  • 1
    Just because you can decompose a waveform into a set of a different waveform does not mean that this other waveform is somehow more 'fundamental'. It is certainly possible to decompose sinewaves in to something else. However, electronic circuits do behave in terms of oscillations and sinewaves. If you build a 100 Hz low pass filter and put a 50 Hz square wave into it, you will get a 50 Hz sinewave on the other side. Not a square wave or a triangle wave. This is why sine waves are fundamental. – alex.forencich Feb 06 '15 at 08:52
  • @alex.forencich my point was that it is circular to say sinewaves consist of a singular frequency component - they wouldn't if the spectrum analyser decomposed them into triangle waves. a square wave decomposed into square waves has no harmonics. obviously sine waves are more important in 'circuits' (systems of linear diff. eq. with constant coefficients) – user3125280 Feb 06 '15 at 11:23
9

On a more mathematical and physical sense why sine and cosine happen to be the fundamentals of waves can have its roots on the Pythagorean theorem and calculus.

Pythagorean theorem gave us this gem, with sines and cosines:

$$ \mathrm{sin}^2(t) + \mathrm{cos}^2(t) = 1, t \in \mathbb{R} $$

This made sines and cosines cancel each other out in the inverse-square laws that scatter around in the entire physics world.

And with calculus we have this:

$$ \frac{\mathrm{d}}{\mathrm{d}x}\mathrm{sin}x = \mathrm{cos}x $$

$$ \frac{\mathrm{d}}{\mathrm{d}x}\mathrm{cos}x = -\mathrm{sin}x $$

This means that any form of calculus operation would preserve sines and cosines if there is perfectly one of them.

For example, when we solve the instantaneous position of object in Hooke's law (similar form everywhere too) we have this:

$$ -kx = F = m\frac{\mathrm{d}^2}{\mathrm{d}t^2}x $$

And the solution happens to be a linear function of \$x=\mathrm{sin}(t)\$.

Maxthon Chan
  • 2,853
  • 1
  • 16
  • 33
  • `+0.(9)` ; also, IMO it's worth noting that solving most of the commonly used differential equations (wave equations, string equations, fluid equations) requires `x=e^(lambda*t)` substitution, which later creates a solution that can be made into `x = A*sin(lambda*t) + B*cos(lambda*t)` form, essentially forcing a sine/cosine expansion in the solutions of such equations. –  Feb 05 '15 at 20:03
  • @vaxquis The \$x=A\mathrm{sin}(\lambda t)+B\mathrm{cos}(\lambda t)\$ can be folded into one \$x=f(\mathrm{sin}(g(t)))\$ where f and g are linear functions. – Maxthon Chan Feb 06 '15 at 05:49
  • yes, exactly. They can, as well, be expressed as cosine; I just pointed that out since it IMO clearly shows that all three forms (sine, cosine, sine+cosine) are equivalent and, in fact, are used interchangeably, depending on needs and context, as can be seen, e.g. on http://en.wikipedia.org/wiki/Harmonic_oscillator or http://en.wikipedia.org/wiki/Wave_equation . –  Feb 06 '15 at 13:10
9

Scientists did not chose the sine wave, that's what they got from an AC generator. In AC generator, sine wave is generated due to the rotor motion inside a magnetic field. There is no easy way to make it otherwise. See this figure in Wikipedia. http://en.wikipedia.org/wiki/Single-phase_generator#Revolving_armature

obaej
  • 91
  • 1
5

First of all, the sine and cosine functions are uniformly continuous(so there are no discontinuous points anywhere in their domain) and infinitely differentiable on the entire Real line. They are also easily computed by means of a Taylor series expansion.

These properties are especially useful in defining the Fourier series expansion of periodic functions on the real line. So non-sinusoidal waveforms such as the square, sawtooth, and triangle waves can be represented as an infinite sum of sine functions. Ergo, the sine wave forms the basis of Harmonic Analysis and is the most mathematically simple waveform to describe.

LapToppin
  • 61
  • 1
  • 4
4

We always like to work with linear mathematical models of physical realities because of their simplicity in terms of analysis. Sinusoidal functions are 'eigenfunctions' of linear systems.

This means that if the input is \$ \sin(t) \$
the output is of the form \$ A\cdot\sin(t + \phi) \$

The function family stays the same and is only scaled in amplitude and shifted in time. This gives us a good idea what happens to the signal if it propagates through the system.

3

Sine waves contain only one frequency. A square or triangle wave is a sum of infinite amount of sine waves that are harmonics of the fundamental frequency.

The derivative of a perfect square wave (has zero rise/fall time) is infinite when it changes from low to high or vice versa. The derivative of a perfect triangle wave is infinite at the top and bottom.

One practical consequence of this is that it is harder to transfer a square/triangle signal, say over a cable compared to a signal that is only a sine wave.

Another consequence is that a square wave tends to generate much more radiated noise compared to a sine wave. Because it contains a lot of harmonics, those harmonics may radiate. A typical example is the clock to an SDRAM on a PCB. If not routed with care it will generate a lot of radiated emission. This may cause failures in EMC testing.

A sine wave may also radiate, but then only the sine wave frequency would radiate out.

  • You could argue that square waves contain only one frequency. A sine wave is a sum of infinite amount of square waves. – jinawee Feb 07 '15 at 13:19
  • @jinawee You could, but there are other things that make sinewaves the "fundamental" wave type. For example, it's the only one that differentiates into itself (disregarding the phase shift). Although the physical explanation about oscillating springed systems is the one I like best. – Roman Starkov Feb 11 '15 at 19:05
  • @jinawee, would you prove that, please? – Eric Best Mar 28 '15 at 13:19
  • @EricBest I don't know the proof, but I was referring to Walsh functions http://en.wikipedia.org/wiki/Walsh_function which are a Hilbert basis on the interval [0,1]. Of course some subtetlies may arise such as equality up to a set of measure zero or stuff like that. – jinawee Mar 28 '15 at 16:50
  • @jinawee: Putting one sine wave through a linear system will yield either one sine wave of the same frequency, or DC (which may be viewed as one sine wave of the same frequency but zero amplitude). Putting a sum of sine waves through such a system will yield the same result as putting each wave through individually and adding the outputs. The combination of these two properties is unique to sine waves. – supercat May 25 '18 at 19:24
0

Sine/Cosine are solutions of second order linear differential equations.

sin'=cos, cos'=-sin

Basic electronic elements as inductors and capacitors produces either an integration of a differentiation of current to tension.

By decomposing arbitrary signals into sine waves, the differential equations can be analysed easily.

TEMLIB
  • 3,347
  • 1
  • 14
  • 21
0

One way to look at it, in a nutshell, is that a harmonic series of sine and cosine functions forms an orthogonal basis of a linear vector space of real-valued functions on a finite time interval. Thus a function on a time interval can be represented as a linear combination of harmonically related sine and cosine functions.

Of course you could use some other set of functions (e.g. particular wavelets) as long as they'd form a valid basis set, and decompose the function of interest that way. Sometimes such decompositions may be useful, but so far we only know of specialized applications for them.

Taking a geometrical analogy: you could use a non-ortogonoal basis to describe the components of a vector. For example, a vector in an orthonormal basis may have components of [1,8,-4]. In some other, non-orthonormal basis, it may have components of [21,-43,12]. Whether this set of components is easier or harder to interpret than the usual orthonormal basis depends on what you're trying to do.

-3
  1. less losses
  2. less number of harmonics
  3. no interference with communication line
  4. very less distrosional effect
  5. the machine run their efficiency
  6. very very little transient behavior in case L and C
Nick Alexeev
  • 37,739
  • 17
  • 97
  • 230
  • You are talking about usage of sinewave. The OP asked about why they chose to go with sine wave to represent alternating current in general. – Blup1980 Jul 05 '21 at 07:53