\(sin\left(x-\dfrac{\pi}{2}\right)+cos\left(x-\pi\right)+tan\left(\dfrac{5\pi}{2}-x\right)+tan\left(x-\dfrac{\pi}{2}\right)\)
\(=-sin\left(\dfrac{\pi}{2}-x\right)+cos\left(\pi-x\right)+tan\left(2\pi+\dfrac{\pi}{2}-x\right)-tan\left(\dfrac{\pi}{2}-x\right)\)
\(=-cosx-cosx+tan\left(\dfrac{\pi}{2}-x\right)-cotx\)
\(=-2cosx+cotx-cotx=-2cosx\)