No, you do not have to type out the formula.
However, your workings should be clear to the marker for them to follow the process without having to check every formula. This includes labelling lines and explaining complex calculations where relevant.
Should you get the answer wrong, markers may still be able to award marks if they can see your workings were partially correct.