y=cos(x+y)
On differentiating y w.r.t. x, we have
dydx=−sin(x+y)1+sin(x+y)
∴ slope of tangent at (x,y) =−sin(x+y)1+sin(x+y)
Since the tangents to the curve are parallel to the line x+2y=0 , whose slope is −12, we have
−sin(x+y)1+sin(x+y)=−12
sin(x+y)=1⇒x+y=nπ+(−1)nπ2,n∈Z
⇒y=cos(x+y)=cos(nπ+(−1)nπ2),n∈Z⇒y=0 ∀ n∈Z
Also, since x∈[−2π,2π], we get x=−3π2 and x=π2.
Thus, tangents to the given curve are parallel to the line x+2y=0 only at points (−3π2,0) and (π2,0).
Therefore, the required equation of tangents are
y−0=−12(x+3π2)⇒2x+4y+3π=0
and
y−0=−12(x−π2)⇒2x+4y−π=0