General::stop: Further output of Infinity::indet will be suppressed during this calculation.
Infinity::indet: Indeterminate expression 0 (-\[Infinity]) encountered.
How can I do that on Mathematica to show this tangent with the discontinuity in zero ?
Clement, you should post code using the code formatting box (upper left icon) so it is more useful and readable when you post. Your function is indeterminate at x=0, however if you take the Limit[ ] as x->0 it goes to 0 as x->0. Using this fact you can construct a peicewise function and manipulate it:
This gives you the plot of the function and its tangent. The trick with the Normal@Series[g[x],{x,a,1}]… generates the Taylor series out to the first derivative and chops it at the first derivative. (I saw this on a post here once but I do not remember who posted it – apologies to the clever author!). This is a cool way to get the tangent because you always get a function for a line – its independent of the function whereas derivative will be a general function and you then must construct a line.
The rules explain how to format your code properly. If you do not format code, it may become corrupted and useless to other members. Please EDIT your posts and make sure code blocks start on a new paragraph and look framed and colored like this.
int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]