# I have to write the first function as shown in the second picture, i have tried many times now but I cant find the answer, can anyone help me with this? I would be thankful!

Images:
Image (1 of 1)

The expression `H(x) = cos((2*pi*x)/3) + cos((2*pi*(x-1))/3)+ cos((2*pi*(x-2))/3` has to be written in the form `a*cos(x*(x-x_0))`

Use the formula `cos a + cos b = 2*cos((a+b)/2)*cos((a-b)/2)`

`H(x) = cos((2*pi*x)/3) + cos((2*pi*(x-1))/3)+ cos((2*pi*(x-2))/3`

=

`2*cos(((2*pi*x)/3+(2*pi*(x-1))/3)/2)*cos(((2*pi*x)/3-(2*pi*(x-1))/3)/2)+ cos((2*pi*(x-2))/3 `

= `2*cos((2*pi*x)/3 - pi/3)*cos(pi/3)+ cos((2*pi*(x-2))/3)`

= `2*cos((2*pi*x)/3 - pi/3)*(1/2)+ cos((2*pi*(x-2))/3)`

= `cos((2*pi*x)/3 - pi/3)+ cos((2*pi*(x-2))/3)`

= `2*cos(((2*pi*x)/3 - pi/3 + (2*pi*(x-2))/3)/2)*cos(((2*pi*x)/3 - pi/3 - (2*pi*(x-2))/3)/2)`

= `2*cos ((2*pi*x)/3 - 5pi/6)*cos(-pi/6+4*pi/6)`

= `2*cos ((2*pi*x)/3 - 5pi/6)*cos(3*pi/6)`

= `2*cos ((2*pi*x)/3 - 5pi/6)*cos(pi/2)`

= `2*cos ((2*pi*x)/3 - 5pi/6)*0`

The expression `H(x) = cos((2*pi*x)/3) + cos((2*pi*(x-1))/3)+ cos((2*pi*(x-2))/3` is 0 for all values of x.