Question is: how do I find the tangential and perpendicular component of a along the path r at a given point?

For tangential component, I'd just take the projection of a on r with dot product (I guess this's correct). But what about perpendicular one?