Please show the code in MATLAB and all the work, please.
1. Apply Newton's method for n > 1 dimensions to find an approximate solution of the ("simultaneous") pair of equations:
x/3 + x - x1 * exp(-x/2) = 0,
x2 + x1/4 = x3 + 3x2.
Start from (x1, x2) = (2, 2). You may choose to stop based on the number of iterations or on a more complex condition, but your solution approximation should be reasonably close to a true solution.