Consider this:
Find the tangent to the function $f$ at point $(2,f(2))$ where $f(2)=0$ and the function $f:(1,\infty)\to\mathbb{R}$ using the implicit equation:
$$xe^{xf(x)} = (x-2)^3 + e^{f(x)}+1.$$
Now I've found tried to find the $g'(x)$ and $h'(x)$.
$$g(x) = xe^{xf(x)} \implies g'(x) = e^{xf(x)} + xe^{xf(x)'} * f(x)';$$ $$f(x) = (x-2)^3 + e^{f(x)} +1 \implies h'(x) = 3(x-2)^2 + e^{f(x)'}. $$
Now I am not sure if I derived correctly, and if not please let me know. But the other important thing is I'm not sure what to do next? Am I supposed to input $2$ into $f(x)$ to "simplify". A tip would be great.
Thanks!