This document describes Marco Antonio Escobar Acevedo's Master's thesis which compares calculations of nonlinear optical response in semiconductors using two different gauges: the length gauge and transversal gauge. The thesis derives the expressions for calculating second-order optical susceptibilities in both gauges from quantum mechanics perturbation theory. It then presents ab initio calculations of second-order optical susceptibilities for GaAs using the local density approximation with scissors corrections. The results from both gauges are compared and the issue of gauge invariance in the calculations is discussed.