Please solve, fill in the blank for each (a) through (d)

We are given the following function:
[tex]f(x)=\frac{x}{x-8},g(x)=-\frac{1}{x}[/tex]Part A. We are asked to determine the following:
[tex]f\circ g[/tex]This means the composition of the function "f" and "g". To do that we will use the following equivalence:
[tex](f\circ g)(x)=f(g(x))[/tex]This means that we will substitute the value of "x" from function "f" by the function "g", like this:
[tex]f(g(x))=\frac{-\frac{1}{x}}{-\frac{1}{x}-8}[/tex]Now, we simplify the fraction:
[tex]f(g(x))=\frac{1}{1+8x}[/tex]To determine the domain we must set the denominator to zero to determine the values of "x" for which the composition of the functions is undetermined:
[tex]1+8x=0[/tex]Now, we solve for "x". First, we subtract 1 from both sides:
[tex]8x=-1[/tex]Now, we divide both sides by 8:
[tex]x=-\frac{1}{8}[/tex]Therefore, the composition is undetermined at the point "x = -1/8". Therefore, the domain is:
[tex]D={}\lbrace x\parallel x<-\frac{1}{8},x>-\frac{1}{8}\rbrace[/tex]Part B. we are asked to determine the following:
[tex]g\circ f[/tex]This is equivalent to:
[tex](g\circ f)(x)=g(f(x))[/tex]This means that we will substitute the value of "x" from function "g" for the value of function "f", like this:
[tex]g(f(x))=-\frac{1}{\frac{x}{x-8}}[/tex]Now, we simplify the expression:
[tex]g(f(x))=-\frac{x-8}{x}[/tex]To determine the domain we set the denominator to zero:
[tex]x=0[/tex]Therefore, the function is undetermined at "x = 0". This means that the domain is the values of "x" that do not include the value of "x = 0":
[tex]D=\lbrace x\parallel x>0,x<0\rbrace[/tex]Part C. We are asked to determine:
[tex]f\circ f[/tex]This is equivalent to:
[tex](f\circ f)(x)=f(f(x))[/tex]Now, we substitute the value of "x":
[tex]f(f(x))=\frac{\frac{x}{x-8}}{\frac{x}{x-8}-8}[/tex]Now, we multiply the numerator and denominator by "x - 8":
[tex]f(f(x))=\frac{x}{x-8(x-8)}[/tex]Applying the distributive property and adding like terms we get:
[tex]f(f(x))=\frac{x}{x-8x+64}=\frac{x}{-7x+64}[/tex]Now, we set the denominator to zero to determine the domain:
[tex]-7x+64=0[/tex]Now, we subtract 64 from both sides:
[tex]-7x=-64[/tex]Now, we divide both sides by -7:
[tex]x=\frac{64}{7}[/tex]Therefore, the domain does not include the value of "x = 64/7". Therefore, the domain is:
[tex]D=\lbrace x\parallel x<\frac{64}{7},x>\frac{64}{7}\text{ \textbraceright}[/tex]Part D. We are asked to determine:
[tex](g\circ g)(x)=g(g(x))[/tex]Substituting the value of "g(x)" in "g(x)" we get:
[tex]g(g(x))=-\frac{1}{-\frac{1}{x}}[/tex]Simplifying we get:
[tex]g(g(x))=x[/tex]To determine the domain we need to have into account that the function is a polynomial and therefore, is not undetermined at any point. This means that the domain is all the real numbers.