Sum of Two Sinusoids by Richard (Rick) Lyons

Σχετικά έγγραφα
3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

CRASH COURSE IN PRECALCULUS

Section 8.3 Trigonometric Equations

Section 7.6 Double and Half Angle Formulas

derivation of the Laplacian from rectangular to spherical coordinates

PARTIAL NOTES for 6.1 Trigonometric Identities

Section 9.2 Polar Equations and Graphs

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

Section 7.7 Product-to-Sum and Sum-to-Product Formulas

If we restrict the domain of y = sin x to [ π, π ], the restrict function. y = sin x, π 2 x π 2

Problem Set 9 Solutions. θ + 1. θ 2 + cotθ ( ) sinθ e iφ is an eigenfunction of the ˆ L 2 operator. / θ 2. φ 2. sin 2 θ φ 2. ( ) = e iφ. = e iφ cosθ.

If we restrict the domain of y = sin x to [ π 2, π 2

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Second Order RLC Filters

Areas and Lengths in Polar Coordinates

forms This gives Remark 1. How to remember the above formulas: Substituting these into the equation we obtain with

Homework 3 Solutions

Trigonometric Formula Sheet

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

2 Composition. Invertible Mappings

Example Sheet 3 Solutions

Matrices and Determinants

Math221: HW# 1 solutions

Trigonometry 1.TRIGONOMETRIC RATIOS

MathCity.org Merging man and maths

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

is like multiplying by the conversion factor of. Dividing by 2π gives you the

Math 6 SL Probability Distributions Practice Test Mark Scheme

2 2 2 The correct formula for the cosine of the sum of two angles is given by the following theorem.

Srednicki Chapter 55

Areas and Lengths in Polar Coordinates

2 2 2 The correct formula for the cosine of the sum of two angles is given by the following theorem.

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

The Simply Typed Lambda Calculus

Review Test 3. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Derivations of Useful Trigonometric Identities

10/3/ revolution = 360 = 2 π radians = = x. 2π = x = 360 = : Measures of Angles and Rotations

Solutions to Exercise Sheet 5

Second Order Partial Differential Equations

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

Notes on the Open Economy

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

4.6 Autoregressive Moving Average Model ARMA(1,1)

ECE Spring Prof. David R. Jackson ECE Dept. Notes 2

Forced Pendulum Numerical approach

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

D Alembert s Solution to the Wave Equation

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

Concrete Mathematics Exercises from 30 September 2016

Differential equations

CHAPTER 101 FOURIER SERIES FOR PERIODIC FUNCTIONS OF PERIOD

1 String with massive end-points

Inverse trigonometric functions & General Solution of Trigonometric Equations

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

DERIVATION OF MILES EQUATION FOR AN APPLIED FORCE Revision C

Sampling Basics (1B) Young Won Lim 9/21/13

Instruction Execution Times

Appendix to On the stability of a compressible axisymmetric rotating flow in a pipe. By Z. Rusak & J. H. Lee

F-TF Sum and Difference angle

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

9.09. # 1. Area inside the oval limaçon r = cos θ. To graph, start with θ = 0 so r = 6. Compute dr

Solutions to the Schrodinger equation atomic orbitals. Ψ 1 s Ψ 2 s Ψ 2 px Ψ 2 py Ψ 2 pz

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.

How to register an account with the Hellenic Community of Sheffield.

Answer sheet: Third Midterm for Math 2339

6.003: Signals and Systems. Modulation

TRIGONOMETRIC FUNCTIONS

( ) 2 and compare to M.

Calculating the propagation delay of coaxial cable

EE512: Error Control Coding

C.S. 430 Assignment 6, Sample Solutions

Spectrum Representation (5A) Young Won Lim 11/3/16

(a,b) Let s review the general definitions of trig functions first. (See back cover of your book) sin θ = b/r cos θ = a/r tan θ = b/a, a 0

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

AREAS AND LENGTHS IN POLAR COORDINATES. 25. Find the area inside the larger loop and outside the smaller loop

Homework 8 Model Solution Section

Approximation of distance between locations on earth given by latitude and longitude

TMA4115 Matematikk 3

Note: Please use the actual date you accessed this material in your citation.

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS

Equations. BSU Math 275 sec 002,003 Fall 2018 (Ultman) Final Exam Notes 1. du dv. FTLI : f (B) f (A) = f dr. F dr = Green s Theorem : y da

SPECIAL FUNCTIONS and POLYNOMIALS

Quadratic Expressions

CORDIC Background (2A)

Other Test Constructions: Likelihood Ratio & Bayes Tests

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

CT Correlation (2B) Young Won Lim 8/15/14

Uniform Convergence of Fourier Series Michael Taylor

Correction Table for an Alcoholometer Calibrated at 20 o C

Section 8.2 Graphs of Polar Equations


Strain gauge and rosettes

b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds!

Statistical Inference I Locally most powerful tests

Finite Field Problems: Solutions

Transcript:

Sum of Two Sinusoids by Richard (Rick) Lyons Several months ago I reviewed the manuscript of a book being considered by the IEEE Press for possible publication. In that manuscript the author presented the following equation: cos( ω ) + sin( ω ) = + i cos[ ω + π/4]. A t B t A B t (1) Being unfamiliar with Eq. (1), and being my paranoid self, I wondered if that equation is correct. Not finding a stock trigonometric identity in my math reference book to verify Eq. (1), I modeled both sides of the equation using software. Sure enough, Eq. (1) is not correct. So then I wondered, "Humm... OK, well then just what are the correct equations for a single sinusoid equivalent of the sum of equalfrequency sine and cosine functions? This can't be too difficult." As so often happens to me, the answers to that simple question are much more involved than I first thought. Why Care About The Sum of Two Sinusoidal Functions We frequently encounter the notion of the sum of two equal-frequency (real-valued) sinusoidal functions in the literature and applications of DSP. For example, some authors discuss this topic as a prelude to introducing the concept of negative frequency [1], or in their discussions of eigenfunctions [2,3]. Also, the sum of two equalfrequency sinusoids can be used to generate information-carrying signals in many digital communications systems, as well as explain the effects of what is called multipath fading of radio signals [4]. The Sum of Two Real Sinusoidal Functions As it turns out, as you might expect, the sum of two equal-frequency real sinusoids is itself a single real sinusoid. However, the exact equations for all the various forms of that single equivalent sinusoid are difficult to find in the signal processing literature. Here we provide those equations: Table 1 gives the sum of two arbitrary cosine functions. Table 2 gives the sum of two arbitrary sine functions. Table 3 gives the sum of an arbitrary cosine and an arbitrary sine function. In those tables, variables A and B are scalar constants, frequency ω is in radians/second, and variables α and β are phase angles measured in radians. The various forms of the sum of two real sinusoids are in the leftmost table columns. The single-sinusoid equivalents are in the rightmost columns. (Their derivations are provided at the end of this material.) As an example, the sixth row of Table 3 tells us that the correct form for the above incorrect Eq. (1) is: A ωt + B ωt A + B i cos[ωt tan 1 ( B/ A) cos( ) sin( ) = ]. (2)

Table 1: Sum of two real cosine waves Sum of two cosine waves Single sinusoid equivalent 1 Acos(ωt + α) + Bcos(ωt + β) = [ Acos(α) ] + [ Asin(α) + B sin(β) ] 1 Asin(α) + Bsin(β) Acos(α) Acos(ωt + α) + Bcos(ωt + α) = A + B +2AB i cos(ωt + α) Acos(ωt + α) + Bcos(ωt) = A + B +2ABcos(α) { 1 Asin(α) icos ωt A cos(α) + B Acos(ωt) + Bcos(ωt) = (A + B) cos(ωt) Acos(ωt + α) + Acos(ωt + β) 2 [ 1+ cos(α)cos(β) + sin(α)sin(β) ] 1 sin(α) + sin(β) cos(α) + cos(β) Acos(ωt + α) + Acos(ωt + α) cos(ωt + α) Acos(ωt + α) + Acos(ωt) cos(α/2) cos(ωt + α/2) Acos(ωt) + Acos(ωt) cos(ωt) 1. The " " symbol, needed for text wraparound reasons, means multiply.

Table 2: Sum of two real sinewaves Sum of two sinewaves Asin(ωt + α) + Bsin(ωt + β) Single sinusoid equivalent = [ Acos(α) ] + [ Asin(α) + B sin(β) ] 1 Asin(α) + Bsin(β) i sin{ ωt Acos(α) Asin(ωt + α) + Bsin(ωt + α) = A + B +2AB isin(ωt + α) Asin(ωt + α) + Bsin(ωt) = A + B +2AB cos(α) { 1 Asin(α) i sin ωt A cos(α) + B Asin(ωt) + Bsin(ωt) = (A + B) sin(ωt) Asin(ωt + α) + Asin(ωt + β) 2 [ 1+ cos(α)cos(β) + sin(α)sin(β) ] 1 sin(α) + sin(β) i sin{ ωt cos(α) + cos(β) Asin(ωt + α) + Asin(ωt + α) sin(ωt + α) Asin(ωt + α) + Asin(ωt) cos(α/2) sin(ωt + α/2) Asin(ωt) + Asin(ωt) sin(ωt)

Table 3: Sum of a real cosine wave and a real sinewave Sum of a cosine wave and a sinewave Acos(ωt + α) + Bsin(ωt + β) Single sinusoid equivalent = [ Acos(α) + Bsin(β) ] + [ Asin(α) B cos(β) ] 1 Asin(α) Bcos(β) Acos(α) + Bsin(β) Acos(ωt + α) + Bsin(ωt + α) 1 Asin(α) Bcos(α) = A + B Acos(α) + Bsin(α) Acos(ωt + α) + Bsin(ωt) = A + B 2AB sin(α) 1 Asin(α) B A cos(α) Acos(ωt) + Bsin(ωt + β) = A + B + 2AB sin(β) 1 B cos(β) A+ Bsin(β) Acos(ωt) + Bsin(ωt) = A + B i cos[ ωt tan 1 ( B/ A )] Acos(ωt + α) + Asin(ωt + β) 2 [ 1+ cos(α)sin(β) sin(α)cos(β) ] 1 sin(α) cos(β) icos{ ωt cos(α) + sin(β) Acos(ωt + α) + Asin(ωt + α) 2 1 sin(α) cos(α) cos(α) + sin(α) Acos(ωt + α) + Asin(ωt) 2 [ 1 sin(α) ] { [ sin(α) 1] 1 i cos ωt A A cos(α) Acos(ωt) + Asin(ωt + β) cos(β/2 π/4) cos(ωt + β/2 π/4) Acos(ωt) + Asin(ωt) = 2 A cos(ωt π/4) NOTE: Several months after I created the equations in the above tables I ran across somewhat similar material on the Internet written by the prolific Julius O. Smith III. In that material Prof. Smith presents equations for the general case of summing N 2 arbitrary cosine functions of the same frequency. That material can be found at the following web page: http://ccrma.stanford.edu/~jos/filters/sum_sinusoids_same_frequency.htm l Derivation Methods Deriving the closed-form expressions for the sum of two equal-frequency sinusoidal functions is most easily accomplished by first finding the expression for the sum of two arbitrary equal-frequency complex exponentials. So that's where I started.

The Sum of Two Complex Exponentials First we identify a general complex exponential as: j (ωt+ α) j α j ωt Ae = Ae e (3) where the exponential's magnitude is the constant scalar A. Frequency ω is in radians/second, and α is a constant phase shift measured in radians. To add two general complex exponentials of the same frequency, we convert them to rectangular form and perform the addition as: j (ω t+ α) j (ω t+ β) j ω t j β + = ( α j + e ) Ae Be e Ae B = [ Acos(α) + jasin(α) Bcos(β) + jbsin(β) ] jωt e + jωt [ A B j( A B )] = e cos(α) + cos(β) + sin(α) + sin(β). (4) Then we convert the sum back to polar form as: Ae j( ωt+ α) j(ωt+ β) + Be jωt = e [ Acos(α) ] + [ Asin(α) + Bsin( β) ] i e 1 sin(α) sin(β) tan A + B j Acos(α) = [ Acos(α) ] + [ Asin(α) + B sin(β) ] i { 1 sin(α) sin(β) ω tan A + B j t+ Acos(α) e. (5) (The " " symbol in Eq. (5), needed for text wraparound reasons, simply means multiply.) So, Eq. (5) tells us: the sum of two equal-frequency complex exponentials is merely a scalar magnitude factor multiplied by a unity-amplitude complex exponential term. Next we use Eq. (5) to obtain the expressions for the sum of two real-valued sinusoids. The Sum of Two Cosine Functions The following shows the derivation of the cosine expressions in Table 1. Equating the real parts of both sides of Eq. (5) yields the desired (but messy) equation for the sum of two arbitrary equal-frequency cosine functions as: Acos(ωt + α) + Bcos(ωt + β) = [ Acos(α) ] + [ Asin(α) + B sin(β) ] 1 Asin(α) + Bsin(β) i cos{ ω. Acos(α) t (6)

Eq. (6) is the general equation listed in the second row of Table 1. Substituting the different values for α, β, B from the left column of Table 1 into Eq. (6), plus recalling the following identities: cos 2 (θ) + sin 2 (θ) = 1 sqrt{[1 + cos(θ)]/2 = cos(θ/2) tan(θ/2) = sin(θ)/[1 + cos(θ)], allow us to obtain the expressions in the right column of the remaining rows in Table 1. The Sum of Two Sine Functions Equating the imaginary parts of both sides of Eq. (5) leads us to the desired equations for the sum of two general equal-frequency sine functions. As such, the expressions for the sum of two sine functions can be found by replacing all "cos(ωt..." terms in Table 1 with "sin(ωt..." to create Table 2. The Sum of a Cosine Function and a Sine Function We find the equation for the sum of a general cosine function and a general sine function, having the same frequencies, by recalling that sin(θ) = cos(θ π/2) and using Eq. (6) as: Acos(ωt + α) + Bsin(ωt + β) = Acos(ωt + α) + Bcos(ωt + β π/2) = [ Acos(α) + Bcos(β π/2) ] + [ Asin(α) + Bsin(β π/2) ] 1 Asin(α) + Bsin(β π/2) icos{ ωt. Acos(α) + Bcos(β π/2) (7) Knowing that cos(θ π/2) = sin(θ) and sin(θ π/2) = cos(θ), we modify Eq. (7) as: Acos(ωt + α) + Bsin(ωt + β) = [ Acos(α) + Bsin(β) ] + [ Asin(α) B cos(β) ] 1 Asin(α) Bcos(β) icos{ ωt. Acos(α) + Bsin(β) (8) Eq. (8) is the general equation listed in the second row of Table 3. Substituting the different values for α, β, B from the left column of Table 3 into Eq. (8), plus recalling the trig identities listed below Eq. (6), allow us to obtain the expressions in the right column of the remaining rows in Table 3. References [1] McClellan, J., Schafer, R., Yoder, M., DSP First: A Multimedia Approach, Prentice Hall; Upper Saddle River, New Jersey, 1998, pp. 48-50. [2] Smith, J., "A Sum of Sinusoids at the Same Frequency is Another Sinusoid at that Frequency", http://ccrma.stanford.edu/~jos/filters/sum_sinusoids_same_frequenc y.html.

[3] Smith, J., "Why Sinusoids are Important", http://wwwccrma.stanford.edu/~jos/mdft/why_sinusoids_important.html. [4] Anderson, J., Digital Transmission Engineering, 2/E, IEEE Press; Piscataway, New Jersey, 2005, pp. 288-289.