Let $M$ be a smooth manifold over $\mathbb{R}$ and $\omega$ a symplectic form on $M$, i.e. a regular, non-degenerate, closed 2-form. Given a vector field on $M$, $X \in \mathcal{V}(M)$, we define the contraction of $\omega$ with respect to $X$ as $$i_X\omega:=\omega(X,-).$$ The problem I am addressing is the following one
For any $f \in \mathcal{O}(M)$ there exists a vector field $X$ such that $i_X\omega = df$
I have two ideas to address this problem. First, fixed $f$ I write explicitly the $1$-forms $df$ and $i_X\omega$ locally and then I set the equality. This gives me sufficient local conditions to determine $X$.
The second idea (which, if correct, is equivalent to the first one) is the following. Let me write the symplectic form as a skew-symmetric non-degenerate bilinear map $$\omega : \mathcal{V}(M) \times \mathcal{V}(M) \rightarrow \mathcal{O}(M).$$ Then, if we restrict ourselves in a local chart, we have a basis for $\mathcal{V}(M)$ and there exists a matrix $M \in M_{ n \times n}(\mathcal{O}(M))$ such that it expresses $\omega$ with respect to the fixed basis of $\mathcal{V}(M)$. For the property of $\omega$ I would say that $M$ has an inverse matrix in $M_n(\mathcal{O}(M))$. This is sufficient to conclude. In fact, in coordinates, by the identity $i_X\omega = df$, we would have that $$\begin{bmatrix} X_1, & \dots & X_n \end{bmatrix}=\begin{bmatrix} \partial_{x_1}f, & \dots & ,\partial_{x_n}f \end{bmatrix} \cdot M^{-1}$$ which define $X$ locally. Now remain to prove that these "local definitions" can be put together to define a global vector fields. I would prove this last step using just the definition (if is there any shortcut I will be happy to know that).
A third way to prove it could be the following one.
Since $\omega$ is a symplectic form, it defines a smooth bundle isomorphism $$TM \rightarrow T^*M, \ T_pM \ni (p,\nu) \mapsto \omega_p(\nu,-) \in T_p^*M$$ (This can be seen as a consequence of the Bundle homomorphism characterization Lemma) So, the thesis is straightforward.
I would like to know if this is a correct way to proceed.
Thank you