# Weird factoring out of a derivative

Is it possible to just factor out the derivative like this:

$$x \left[ \frac{d^2 \Psi}{d x^2} \cdot \Psi^* - \frac{d^2 \Psi^*}{d x^2} \cdot \Psi \right] = x \, \frac{d}{dx} \left( \frac{d \Psi}{d x} \cdot \Psi^* - \frac{d \Psi^*}{d x} \cdot \Psi \right)$$

$\Psi$ is just some function of $x$ while $\Psi^*$ is its complex conjugate. I am in doubts as we have products inside square brackets...

-

$$\frac{d}{dx} \left( \frac{d \Psi}{d x} \cdot \Psi^* - \frac{d \Psi^*}{d x} \cdot \Psi \right)$$ using the product rule and see what happens.