# Rule/Replace/Patterns [closed]

I need help with doing this question.

given: Sin[x+y] Cos[x+y+z]

Define using Patterns a rule (specifically a list of 2 rules ) , the two adding rules for trigonometric functions sin (a + b ) = sin ( a) cos ( b ) + cos ( a) sin ( b ) and cos (a + b) = cos (a) cos ( b) - sin (A) sin(b) applies .

thanks for the fast answer. I've send the wrong exercise. they are two different excersices.

1) Sin(p+q)

2) Cos(x+y+z)

not both together sorry.

## closed as off-topic by Daniel Lichtblau, Leonid Shifrin, dr.blochwave, user9660, Kuba♦May 9 '16 at 18:22

• The question does not concern the technical computing software Mathematica by Wolfram Research. Please see the help center to find out about the topics that can be asked here.
If this question can be reworded to fit the rules in the help center, please edit the question.

• I'm voting to close this question as off-topic because it is a request to answer a homework assignment. – Daniel Lichtblau May 9 '16 at 17:12