It largely depends on where the $dx$ is. As a differential, it is often pronunciated [di: iks] or [de iks]. When it's used in the derivative $\frac d{dx} $ it's almost always [de iks], since the whole thing is pronunciated [de in de iks].
$x$ is never [ikse] unless one wants to mock some regional dialect.