at the beginnig means at the start point of every task.a sentence or a phrase always follows this expression.
At the begining of the next week, i'll visit Mr. Anderson.
but if you say in the beginning, you can not add a preposition after it. you can say:
in the begining , Mary went to the cinema.
Hope that helps
Matilda