$$\cos\dfrac{(x-2)\pi}{4x^2 -4x + 2}=\sin\dfrac{(x+1)\pi}{4x^2 -4x + 2} =\cos\left( \frac \pi 2-\frac{(x+1)\pi}{4x^2 -4x + 2}\right)$$
So, $$\frac{(x-2)\pi}{4x^2 -4x + 2}=2n\pi\pm \left( \frac \pi 2-\frac{(x+1)\pi}{4x^2 -4x + 2}\right)$$ where $n$ is any integer as $\cos A=\cos B\implies A=2n\pi\pm B$
Multiplying either side by $\frac2\pi,$
$$\frac{x-2}{2x^2-2x+1}=4n\pm \frac{2x^2-3x}{2x^2-2x+1}$$
Taking the '+' sign, $(8n+2)x^2-(8n+4)x+4n+2=0$
for real $x,$ the discriminant $(8n+4)^2-4(8n+2)(4n+2)\ge 0\implies n(2n+1)\le 0$
Now we know if $(x-a)(x-b)\le 0$ where $a\le b\implies a\le x\le b$
Here $a,b$ are $-\frac 12,0$ so, $-\frac 12\le n\le 0\implies n=0 $
So, the quadratic equation of $x$ becomes $x^2-2x+1=0,x=1$
Taking the '-' sign, we can proceed similarly to find
$(4n-1)x^2-(4n-1)x+(2n+1)=0$
and using discriminant property, $(4n-1)^2-4(4n-1)(2n+1)\ge 0\implies (4n-1)(4n+5)\le 0$
$\implies -\frac 54\le n\le \frac 1 4\implies n=0,-1$.
If $n=0,$ the equation reduces to $x^2-x-1=0$
If $n=-1,$ the equation reduces to $5x^2+5x+1=0$
There shall be no other solution of x $\in R$