I am stuck at this. Any help will be much appreciated.
Given $f(x)=\frac{2}{x}$,
- Draw the graph of $f$.
- Find the equation of the tangent to the graph of $f$ at the given point $M(2,f(2))$ and draw its graph.
I am stuck at this. Any help will be much appreciated.
Given $f(x)=\frac{2}{x}$,
- Draw the graph of $f$.
- Find the equation of the tangent to the graph of $f$ at the given point $M(2,f(2))$ and draw its graph.
Well, I'll leave it to you to draw the graph. Notice the derivative:
$$f'(2)=\lim_{h\to0}\frac{f(2+h)-f(2)}h=\lim_{h\to0}\frac{\frac2{2+h}-1}h=\lim_{h\to0}\frac{-h}{h(2+h)}=\lim_{h\to0}\frac{-1}{2+h}=-\frac12$$
And equation of a line tangent to a point $(2,f(2))$ is given by
$$y-f(2)=f'(2)(x-2)$$
differentiate to get $$f'(x)=2lnx$$ then use the general equation of a line: $$\frac{y-y(1)}{x-x(1)}=(slope.of .tangent)$$
First, we evaluate the derivative $f'(2)$. $$f(x)=\frac{2}{x}$$ Hence, $$f'(x)=-\frac{2}{x^2}$$ Therefore: $$f'(2)=-\frac{2}{4}=-\frac{1}{2}$$
Hence, the gradient of the tangent at $x=2$ is $m=-\frac{1}{2}$.
The equation of a straight line (the tangent in this case) is given by $y=mx+c$.
Substitute the values of $m$, then substitute $y$ and $x$ of your point $(2, f(2))$ to evaluate the value of $c$ to align your tangent to the curve.
Hence,
$$f(2)=-\frac{1}{2} \times 2+c \tag{1}$$
Evaluating $f(2)$:
$$f(2)=\frac{2}{2}=1$$
Hence, we evaluate $c$ by rearranging equation $(1)$.
$$1=-1+c$$ $$c=2$$
Hence, the equation of your tangent is:
$$y=-\frac{1}{2} x+2$$
In an alternative form:
$$x+2y=4$$
I assume you know how to plot graphs.
If you have any doubts or questions, please do not hesitate to ask.

Goal
Given the function $$ f(x) = \frac{2}{x} $$ and the value $x_{*} = 2$, find $$ y = mx + b, $$ the equation of the line tangent to $f(x)$ at $x_{*} = 2$.
Strategy
Slope $m$
Compute the derivative function $$ f'(x) = -\frac{2}{x^2}. $$ Compute the slope at this location $$ f'(x_{*}) = -\frac{2}{x_{*}^2} = -\frac{1}{2} $$
Intercept $b$
Use the slope intercept form $y=mx+b$ to find $b$. We can use any point $(x,f(x))$, but we already have the point $(x,f(x))$. $$ f(x_{*}) = m x_{*} + b \qquad \Rightarrow \qquad b = 2 $$
Solution $$ y = mx + b = -\frac{1}{2} x + 3 $$