I know that every weight zero modular function can be written as a rational polynomial in the J-invariant, but I'm not sure how to explicitly calculate the rational polynomial for a given weight zero modular function.
Specifically, how can I write, $$2/5 q^4 - 3/10q^5 - 3150143/10q^6 - 34094690q^7 + 768512401908/5q^8 + 168243374209287/5q^9 - 289421248307239262/5q^{10} - 98695108126255661076/5q^{11} + O(q^{12})$$ as a Polynomial in J?
Thank you in advance!
A general method is to let $\; j=1/q+744+196884q+\cdots,\;$ and define the inverse function $\;f(z):= z+744z^2+7540420z^3+\cdots,\;$ such that $ q=f(1/j).\;$ For any Laurent series in $q,$ $ s(q):=\frac25 q^4 -\frac3{10}q^5 -\frac{3150143}{10}q^6 +\cdots,\;$ let $ g(z):=s(f(z)) $$ = \frac25z^4+\frac{11901}{10}z^5 +\frac{22130281}{10}z^6+\cdots.$ Now $\;g(1/j) = s(q).\;$ All that is left is to determine whether $\;g(1/j)\;$ is a polynomial in $\;j.\;$ In your case it doesn't look like that is true. As a test, let us try the method on a known example.
Let $\;s(q):=q^{-2} +42987520q + 40491909396q^2 + O(q)^3,\;$ $g(z)=z^{-2}-1488z^{-1}+159768.$ This implies that $\;s(q) = j^2 - 1488j +159768\;$ which is correct.