In short

Transformation formulas convert between two forms of the same expression: a sum of trigonometric functions and a product of trigonometric functions. Sum-to-product formulas rewrite \sin C + \sin D as a product. Product-to-sum formulas rewrite \sin A \cos B as a sum. Both directions come directly from the compound angle formulas — by adding or subtracting them.

Here is a curious fact. Take two frequencies and add them:

\sin 50° + \sin 10°

You could compute this with a calculator: \sin 50° + \sin 10° \approx 0.766 + 0.174 = 0.940. That number is suspiciously close to \sqrt{3}/2 + 1/2... but not quite. It is, however, exactly equal to something clean:

\sin 50° + \sin 10° = 2\sin 30° \cos 20° = 2 \cdot \frac{1}{2} \cdot \cos 20° = \cos 20°

A sum of two sines collapsed into a single cosine. That is not a lucky accident — it is a sum-to-product formula at work. The same trick works for any sum of sines, any sum of cosines, and it works in reverse too: any product of trigonometric functions can be expanded back into a sum.

These two-way conversions are called transformation formulas. They come in two matched sets:

The sum-to-product direction is useful when you need to factorise or solve equations. The product-to-sum direction is useful when you need to integrate or simplify products. Together, they are the reason trigonometric algebra is not nearly as hard as it first looks.

Both sets come directly from the compound angle formulas — you derive them by adding or subtracting the expansion of \sin(A+B) and \sin(A-B) (or the cosine versions). The derivation is so clean that once you see it, you may find it easier to re-derive the formulas on the spot rather than memorise them.

Sum-to-product: where the formulas come from

The compound angle formulas for sine give you two equations:

\sin(A + B) = \sin A \cos B + \cos A \sin B \quad \cdots (1)
\sin(A - B) = \sin A \cos B - \cos A \sin B \quad \cdots (2)

Add equations (1) and (2):

\sin(A + B) + \sin(A - B) = 2\sin A \cos B

Why: the \cos A \sin B terms cancel — one is positive, the other negative. The \sin A \cos B terms survive and double.

Now make a substitution to write this in a more useful form. Let C = A + B and D = A - B. Then:

A = \frac{C + D}{2}, \qquad B = \frac{C - D}{2}

Substitute:

\sin C + \sin D = 2\sin\frac{C + D}{2}\cos\frac{C - D}{2}

That is the first sum-to-product formula. The sum of two sines becomes a product of a sine and a cosine, with the arguments being the average and the half-difference of the original angles.

The other three formulas

Subtract equations (1) and (2) instead of adding:

\sin(A + B) - \sin(A - B) = 2\cos A \sin B

With the same substitution C = A + B, D = A - B:

\sin C - \sin D = 2\cos\frac{C + D}{2}\sin\frac{C - D}{2}

For cosine, start with the compound angle formulas:

\cos(A + B) = \cos A \cos B - \sin A \sin B \quad \cdots (3)
\cos(A - B) = \cos A \cos B + \sin A \sin B \quad \cdots (4)

Add (3) and (4):

\cos(A + B) + \cos(A - B) = 2\cos A \cos B

Why: the \sin A \sin B terms cancel (opposite signs), and the \cos A \cos B terms double.

Substitute C = A + B, D = A - B:

\cos C + \cos D = 2\cos\frac{C + D}{2}\cos\frac{C - D}{2}

Subtract (3) from (4) (note the order — subtract the addition formula from the subtraction formula to get a positive right side):

\cos(A - B) - \cos(A + B) = 2\sin A \sin B

Which gives, after rearranging:

\cos C - \cos D = -2\sin\frac{C + D}{2}\sin\frac{C - D}{2}

The minus sign on the right is not optional — it is built into the algebra. The difference of two cosines produces a negative product of sines.

Why the minus sign? Think about what happens at specific values. Take \cos 0° - \cos 60° = 1 - 1/2 = 1/2 — a positive number. The formula gives -2\sin 30° \sin(-30°) = -2 \cdot (1/2) \cdot (-1/2) = 1/2. The double negative makes it positive. If you dropped the minus sign from the formula, you would get -1/2 instead of 1/2, which is wrong. The sign is doing real work.

All four sum-to-product formulas, collected

Sum-to-product formulas

\sin C + \sin D = 2\sin\frac{C + D}{2}\cos\frac{C - D}{2}
\sin C - \sin D = 2\cos\frac{C + D}{2}\sin\frac{C - D}{2}
\cos C + \cos D = 2\cos\frac{C + D}{2}\cos\frac{C - D}{2}
\cos C - \cos D = -2\sin\frac{C + D}{2}\sin\frac{C - D}{2}

A mnemonic for remembering which trig function appears where: when you add sines, the result has \sin \cdot \cos (one of each). When you add cosines, the result has \cos \cdot \cos (both the same). When you subtract cosines, the result has \sin \cdot \sin — with a minus sign in front.

Visualising sin C + sin D as a product

The sum $\sin 5x + \sin 3x$ (solid black) and the product $2\sin 4x \cos x$ (dashed red). They are the same function: the sum-to-product formula says $\sin 5x + \sin 3x = 2\sin\frac{5x+3x}{2}\cos\frac{5x-3x}{2} = 2\sin 4x \cos x$. The product form reveals the two underlying frequencies: a fast oscillation at $4x$ modulated by a slow envelope at $x$.

Product-to-sum: running the machine backwards

The product-to-sum formulas are the same four identities, read from right to left. But it is more convenient to write them in terms of A and B directly (rather than having to compute (C+D)/2 and (C-D)/2).

Go back to the four equations before the substitution:

From adding (1) and (2):

2\sin A \cos B = \sin(A + B) + \sin(A - B)

Divide by 2:

\sin A \cos B = \frac{1}{2}[\sin(A + B) + \sin(A - B)]

From subtracting (2) from (1):

2\cos A \sin B = \sin(A + B) - \sin(A - B)
\cos A \sin B = \frac{1}{2}[\sin(A + B) - \sin(A - B)]

From adding (3) and (4):

2\cos A \cos B = \cos(A + B) + \cos(A - B)
\cos A \cos B = \frac{1}{2}[\cos(A + B) + \cos(A - B)]

From subtracting (3) from (4):

2\sin A \sin B = \cos(A - B) - \cos(A + B)
\sin A \sin B = \frac{1}{2}[\cos(A - B) - \cos(A + B)]

Product-to-sum formulas

\sin A \cos B = \frac{1}{2}[\sin(A + B) + \sin(A - B)]
\cos A \sin B = \frac{1}{2}[\sin(A + B) - \sin(A - B)]
\cos A \cos B = \frac{1}{2}[\cos(A + B) + \cos(A - B)]
\sin A \sin B = \frac{1}{2}[\cos(A - B) - \cos(A + B)]

Notice the last formula: the product of two sines equals \cos(A - B) - \cos(A + B), not \cos(A + B) - \cos(A - B). The order matters — swapping it flips the sign.

The product $\sin 3x \cos x$ (solid red) and the sum $\frac{1}{2}[\sin 4x + \sin 2x]$ (dashed black). The product-to-sum formula $\sin A \cos B = \frac{1}{2}[\sin(A+B) + \sin(A-B)]$ converts the single product into a sum of two sines with different frequencies. Both graphs are identical.

A numerical verification

Before moving on, verify one formula with a specific pair of angles. Take \cos C + \cos D with C = 60° and D = 30°.

Left side:

\cos 60° + \cos 30° = \frac{1}{2} + \frac{\sqrt{3}}{2} = \frac{1 + \sqrt{3}}{2} \approx 1.366

Right side:

2\cos\frac{60° + 30°}{2}\cos\frac{60° - 30°}{2} = 2\cos 45° \cos 15°

You know \cos 45° = 1/\sqrt{2}. And from the compound angle formulas, \cos 15° = \cos(45° - 30°) = \cos 45°\cos 30° + \sin 45°\sin 30° = \frac{\sqrt{3}}{2\sqrt{2}} + \frac{1}{2\sqrt{2}} = \frac{\sqrt{3} + 1}{2\sqrt{2}}.

So the right side is 2 \cdot \frac{1}{\sqrt{2}} \cdot \frac{\sqrt{3} + 1}{2\sqrt{2}} = \frac{\sqrt{3} + 1}{2}. That matches the left side exactly.

When to use which direction

The two sets of formulas are inverses of each other, but they solve different problems.

Sum-to-product is useful when you need to:

Product-to-sum is useful when you need to:

The key insight is that sums are easy to add and subtract, while products are easy to factor and set to zero. Sum-to-product turns addition problems into factoring problems. Product-to-sum turns multiplication problems into addition problems. Each direction converts a hard operation into an easy one.

Sum-to-product and product-to-sum are inverse operationsA diagram showing two boxes labelled Sum and Product with arrows going both directions between them. The top arrow is labelled sum-to-product and the bottom arrow is labelled product-to-sum. Sum sin C + sin D Product 2 sin · cos sum → product product → sum
The two directions of transformation. Sum-to-product converts additions into multiplications — useful for factoring and solving equations. Product-to-sum converts multiplications back into additions — useful for integration and simplification. Both come from the same compound angle identities, just read in opposite directions.

Worked examples

Example 1: Simplify sin 75° + sin 15°

Apply the sum-to-product formula for the sum of two sines.

Step 1. Identify C and D.

C = 75°, \quad D = 15°

Why: the formula needs two angles being added, which is exactly what you have.

Step 2. Compute the average and half-difference.

\frac{C + D}{2} = \frac{75° + 15°}{2} = 45°, \qquad \frac{C - D}{2} = \frac{75° - 15°}{2} = 30°

Why: these are the arguments of the sine and cosine in the product form. Getting clean standard angles here (45° and 30°) means the answer will come out exact.

Step 3. Apply the formula \sin C + \sin D = 2\sin\frac{C+D}{2}\cos\frac{C-D}{2}.

\sin 75° + \sin 15° = 2\sin 45° \cos 30°

Step 4. Substitute and simplify.

= 2 \cdot \frac{1}{\sqrt{2}} \cdot \frac{\sqrt{3}}{2} = \frac{2\sqrt{3}}{2\sqrt{2}} = \frac{\sqrt{3}}{\sqrt{2}} = \frac{\sqrt{6}}{2}

Why: rationalise by writing \sqrt{3}/\sqrt{2} = \sqrt{3} \cdot \sqrt{2}/2 = \sqrt{6}/2.

Result: \sin 75° + \sin 15° = \dfrac{\sqrt{6}}{2} \approx 1.2247.

The sine curve with $\sin 15°$ and $\sin 75°$ marked. Their sum is $\sqrt{6}/2 \approx 1.225$ — larger than either individual sine, but their combined value reduces to a single clean expression via the sum-to-product formula. The two angles $15°$ and $75°$ are symmetric about $45°$, which is why $45°$ appears as the average in the formula.

Example 2: Express 2 cos 5x cos 3x as a sum

This uses the product-to-sum direction. You have a product of two cosines and need to convert it to a sum.

Step 1. Identify the formula to use.

\cos A \cos B = \frac{1}{2}[\cos(A + B) + \cos(A - B)]

With A = 5x and B = 3x.

Why: you have two cosines multiplied together, so the cos-cos product-to-sum formula is the right tool.

Step 2. Apply the formula.

\cos 5x \cos 3x = \frac{1}{2}[\cos(5x + 3x) + \cos(5x - 3x)] = \frac{1}{2}[\cos 8x + \cos 2x]

Why: A + B = 8x and A - B = 2x. The product of two cosines becomes a sum of two cosines at the sum and difference angles.

Step 3. Multiply through by the factor of 2.

2\cos 5x \cos 3x = 2 \cdot \frac{1}{2}[\cos 8x + \cos 2x] = \cos 8x + \cos 2x

Result: 2\cos 5x \cos 3x = \cos 8x + \cos 2x.

The solid red curve is $2\cos 5x \cos 3x$ and the dashed black curve is $\cos 8x + \cos 2x$. They are identical — the two expressions trace out exactly the same graph. The product form shows the *envelope* structure (a fast oscillation modulated by a slow one). The sum form shows it as two independent cosine waves added together. Both perspectives are correct and useful.

This is the formula that explains beats in music and physics. When two sound waves of nearby frequencies are played together, the product form shows why you hear a fast oscillation (the average frequency) inside a slowly pulsing envelope (the difference frequency). The sum form shows it as two separate waves. The transformation formula is the bridge between the two descriptions.

You can also verify this numerically at a specific value. At x = 30°:

Left side: 2\cos 150° \cos 90° = 2 \cdot (-\sqrt{3}/2) \cdot 0 = 0.

Right side: \cos 240° + \cos 60° = (-1/2) + (1/2) = 0. Correct.

Common confusions

Going deeper

If you came here for the formulas and their applications, you have everything — you can stop here. The material below covers the connection to solving equations, a telescoping product identity, and the Fourier perspective.

Using sum-to-product to solve equations

The equation \sin 5x + \sin 3x = 0 looks hard — two different sine functions added together. But apply sum-to-product:

\sin 5x + \sin 3x = 2\sin\frac{5x + 3x}{2}\cos\frac{5x - 3x}{2} = 2\sin 4x \cos x = 0

A product is zero when at least one factor is zero:

\sin 4x = 0 \quad \text{or} \quad \cos x = 0
4x = n\pi \quad \text{or} \quad x = \frac{\pi}{2} + n\pi
x = \frac{n\pi}{4} \quad \text{or} \quad x = \frac{(2n+1)\pi}{2}

The second set of solutions is actually contained in the first (when n is even in n\pi/4, you get the \cos x = 0 solutions). So the complete solution is x = n\pi/4, where n is any integer.

Without the sum-to-product conversion, this equation would be much harder to solve. The conversion turned a sum into a product, and products can be factored.

A telescoping product

There is a beautiful identity:

\cos A \cos 2A \cos 4A \cos 8A \cdots \cos 2^{n-1}A = \frac{\sin 2^n A}{2^n \sin A}

This can be proved by repeatedly applying the double angle formula \sin 2\theta = 2\sin\theta\cos\theta in the form \cos\theta = \frac{\sin 2\theta}{2\sin\theta}:

\cos A = \frac{\sin 2A}{2\sin A}
\cos A \cos 2A = \frac{\sin 2A}{2\sin A} \cdot \frac{\sin 4A}{2\sin 2A} = \frac{\sin 4A}{4\sin A}

Each step, the \sin 2^k A in the numerator cancels with the same term in the next denominator — a telescoping product. After n steps, all intermediate sines cancel and you are left with \sin 2^n A / (2^n \sin A).

This identity is a favourite in competitive mathematics. It combines the product-to-sum idea with telescoping, and it can be used to compute products like \cos 20° \cos 40° \cos 80°.

For that specific case: A = 20°, n = 3, so 2^3 A = 160°.

\cos 20° \cos 40° \cos 80° = \frac{\sin 160°}{8\sin 20°} = \frac{\sin 20°}{8\sin 20°} = \frac{1}{8}

Why \sin 160° = \sin 20°? Because \sin(180° - \theta) = \sin\theta.

Proving an identity with sum-to-product

Here is a classic identity from competitive exams:

\frac{\sin C + \sin D}{\cos C + \cos D} = \tan\frac{C + D}{2}

Apply sum-to-product to both numerator and denominator:

\frac{2\sin\frac{C+D}{2}\cos\frac{C-D}{2}}{2\cos\frac{C+D}{2}\cos\frac{C-D}{2}}

The 2 cancels, the \cos\frac{C-D}{2} cancels:

= \frac{\sin\frac{C+D}{2}}{\cos\frac{C+D}{2}} = \tan\frac{C+D}{2}

Three lines, done. Without the transformation formulas, this identity would be much harder to prove. The formulas turned both the numerator and denominator into products with a common factor, which then cancelled.

This identity has a geometric interpretation too. On the unit circle, the point (\cos C, \sin C) and the point (\cos D, \sin D) are connected by a chord. The slope of the line from the origin to the midpoint of that chord is (\sin C + \sin D)/(\cos C + \cos D). That midpoint lies at angle (C+D)/2, so the slope is \tan\frac{C+D}{2}.

The Fourier perspective

In higher mathematics, the product-to-sum formulas are the simplest case of a much deeper idea. Any periodic function can be decomposed into a sum of sines and cosines — this is Fourier analysis, one of the most important ideas in all of applied mathematics, from signal processing to quantum mechanics to image compression.

The product-to-sum formulas tell you what happens when two pure frequencies are multiplied: you get two new frequencies (their sum and their difference). In physics, this is the mathematical basis of frequency mixing in electronics, amplitude modulation in radio, and the formation of beats in acoustics. The \sin A \cos B = \frac{1}{2}[\sin(A+B) + \sin(A-B)] formula is the equation behind every AM radio signal.

The sum $\sin 10x + \sin 11x$ (black) exhibits beats — a fast oscillation modulated by a slow envelope. The red dashed curves show the envelope $\pm 2\cos(x/2)$. Sum-to-product reveals this structure: $\sin 10x + \sin 11x = 2\sin(10.5x)\cos(0.5x)$. The fast oscillation has frequency $10.5$ (average), and the slow envelope has frequency $0.5$ (half-difference).

Bhaskara II and the Indian tradition

Indian mathematicians of the 12th century, particularly Bhaskara II in the Lilavati and Siddhanta Shiromani, worked extensively with trigonometric identities equivalent to the transformation formulas. The jya (sine) tables computed by astronomers of the Kerala school required these identities to interpolate values between known entries. When Madhava and later Nilakantha developed their remarkable infinite series for trigonometric functions, the sum-to-product and product-to-sum identities were essential intermediate tools — used to express the sine of an angle as a limit of progressively refined products.

The practical motivation was astronomical. Indian astronomers needed to combine angular measurements from different celestial observations. The transformation formulas let them convert a sum of two measured sine values into a product involving average and difference angles — a form that was easier to look up in their meticulously computed sine tables.

A systematic summary

It helps to see all eight formulas at once, grouped by direction, so you can spot the pattern.

Direction Input Output
Sum → Product \sin C + \sin D 2\sin\frac{C+D}{2}\cos\frac{C-D}{2}
Sum → Product \sin C - \sin D 2\cos\frac{C+D}{2}\sin\frac{C-D}{2}
Sum → Product \cos C + \cos D 2\cos\frac{C+D}{2}\cos\frac{C-D}{2}
Sum → Product \cos C - \cos D -2\sin\frac{C+D}{2}\sin\frac{C-D}{2}
Product → Sum \sin A \cos B \frac{1}{2}[\sin(A+B) + \sin(A-B)]
Product → Sum \cos A \sin B \frac{1}{2}[\sin(A+B) - \sin(A-B)]
Product → Sum \cos A \cos B \frac{1}{2}[\cos(A+B) + \cos(A-B)]
Product → Sum \sin A \sin B \frac{1}{2}[\cos(A-B) - \cos(A+B)]

The pattern in the sum-to-product column: \sin + \sin gives \sin \cdot \cos; \cos + \cos gives \cos \cdot \cos; \sin - \sin gives \cos \cdot \sin; \cos - \cos gives -\sin \cdot \sin. The product-to-sum column is the same story, read backwards.

Where this leads next

The transformation formulas complete the second layer of trigonometric identities — the first being the Pythagorean and reciprocal identities, and compound angles forming the bridge between the two layers.