What is a good way to think about the d symbol in derivation and integration? Every time I think I understand what it means, I see it in a new context that is incompatible with my previous ideas.
Example: integrate: x dx + 5. I used to think that the integration symbol is like an opening parenthesis and the d symbol is like the closing parenthesis, telling us that we don't want to integrate the + 5. I used to think that the x in dx determines the variable that we integrate by. Now take a look at the left hand side of this equation from Khan Academy:
Instead of integrating u(x)v'(x) by x, we integrate u by v. How are these things equal? How can we even integrate by v when it isn't a variable, it's a function! u doesn't necessarily even contain v, so how can we integrate u by v? What kind of black magic happened here?

As a first step, note that if $y = \sin(x)$, then $dy = \cos(x)\cdot dx$.
You can turn this back into a derivative by dividing both sides by dx. This is arguably not allowed, but for the sake of explanation, just realize that the statements: $$dy = \cos(x)\cdot dx$$ and $$\frac{dy}{dx}=\cos(x)$$ are saying the same thing.
Except, in the second statement, I specifically took the derivative of $x$ by applying $\frac{d}{dx}$ to both sides. In the first statement, I instead took the general derivative in terms of no variable by applying $d$ to both sides. When I do this, the chain rule takes differentials of each variable outside of each term.
So, what happens to $dv$ with the advance knowledge that $v$ is a function of $x$? Let's pretend that $v$ is $\sin(x)$ as above. I take the derivative of $v$, and take a $dx$ out from by chain rule. I hope that's enough to show that $dv=v'(x)dx$.