How to calculate tangent of function, which has to cross certain value on x axis

35 Views Asked by At

For example, let's take a simple function $f(x) = x^2-2$.

enter image description here

How to get a tangent, which has to cross given value at x axis, for example $x = 2$, like that:

enter image description here

Thank you very much for any help.

1

There are 1 best solutions below

0
On BEST ANSWER

We come up with a general function $T_{a}$ which is the tangent line to $f$ at the point $x=a$. Indeed, $$ T_{a}(x)=f(a)+f'(a)(x-a)=(a^{2}-2)+2a(x-a)\tag{1} $$ We want $T(2)=0$. Solve for $a$ using $(1)$ and the resulting $T_a$ will be your required tangent line.