I'm new to Mathematica and I am trying to calculate the expression of the tangent to the curve
f[X_] =
Piecewise[{{-X^2 + 4 X - 3, X < 3}, {3 - X (Abs[X - 4]), X >= 3}}]
at x = 2.
I have to draw the function and the tangent line. I would really appreciate some help.
