Step 1: Understanding the Question:
We first expand the \(2\times 2\) determinant into an ordinary expression in \(x\), then differentiate it.
Step 2: Key Formula or Approach:
For a \(2\times 2\) determinant, \(\begin{vmatrix} p & q \\ r & s \end{vmatrix} = ps - qr\). Also \(\frac{d}{dx}x^{n} = nx^{n-1}\).
Step 3: Detailed Explanation:
Here \(p = x,\ q = x,\ r = 2,\ s = x\).
\[ \begin{vmatrix} x & x \\ 2 & x \end{vmatrix} = x\cdot x - x\cdot 2 = x^{2} - 2x \]
Now differentiate term by term:
\[ \frac{d}{dx}\left(x^{2} - 2x\right) = 2x - 2 \]
Step 4: Why the other options are wrong:
Option (1) \(x^{2}-2x\) is the determinant itself and was never differentiated.
Option (3) \(2x+2\) comes from a sign slip on the term \(2x\).
Option (4) \(x-2\) comes from differentiating \(x^{2}\) as \(x\) instead of \(2x\).
Final Answer:
The derivative is \(2x - 2\), option (2).
\[ \boxed{2x-2} \]