In order to calculate the limit of the function for a specific value of x, you just need to apply this value of x in the equation.
If the limit says "x -> 1-", it means we are approaching the value of 1 by the left (that is, from 0 to 1 for example).
If the limit says "x -> 1+", it means we are approaching the value of 1 by the right (that is, from 2 to 1 for example).
a)
To calculate this limit, we use the first part of the piecewise function, as we are approaching by the left (values lesser than 1):
![\begin{gathered} g(x)=2-x \\ \lim _(x\to1^-)g(x)=2-1=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/aqe61ge0qkvqqb17g6l7bf5bas01g9y3qk.png)
b) To calculate this limit, we use the second part of the piecewise function, as we are approaching by the right (values greater than 1):
![\begin{gathered} g(x)=(x)/(2)+1 \\ \lim _(x\to1^+)g(x)=(1)/(2)+1=(3)/(2) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/a2wb632dmota119narx9nxvezugji8o560.png)
c) As the limit at 1 from the left is diferent from the limit at 1 from the right, the limit at 1 does not exist (it's undefined).
d) For x = 1, we need to use the first part of the piecewise function (because x = 1 is inside the inverval x <= 1), so we have:
![\begin{gathered} g(x)=2-x \\ g(1)=2-1=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/tmd2xv4lctjgmhuqh9cwmmwk4pxhg6j6fx.png)