I need to find Laplace transform of this $f(t)$ $$f(t)=\frac{e^{at}-\cos bt}{t}$$
My approach: $$F(s)=\mathscr{L}\left(\frac{e^{at}}{t}\right)-\mathscr{L}\left(\text{Re}\left(\frac{e^{ibt}}{t}\right)\right)$$
But I don't know how to solve such cases. Please help.
That approach can't work, because $e^{at}/t$ does not have a Laplace transform, because $\int_0^1e^{at}/t\,dt=\infty$.
More or less as already suggested, if $F(s)=L[f]$ then $L[tf(t)]=-F'(s)$. This allows you to find $F'(s)$, which gives you $F(s)$ up to a "$+c"$. Then you can find the value of $c$ by considering what happens as $s\to+\infty$.