Take a stab at (something or doing something)

To try to do something.

I took a stab at the math problem but I could not solve it.