I am suppose to graph the following function, did I do it right or wrong?

f(x)=4x+2 if x,-2
x if -2 <or= x <or= 3
3x-1 if x>3

x |-2.1|-3| -4 |-5
y=4x+2|-6.4|-10|-14|-18

x |3.1|4| 5 |6
y=3x-1 |8.3|11|14|17

x|-2|-1|0|1|2|3
y|0 | 0|0|0|0|0

Based on the information you provided, it appears that you have graphed the function correctly.

To graph the function f(x) = 4x + 2, you first need to find some points on the graph. You have correctly calculated the values of y for different values of x.

Next, plot these points on a graph. Make sure to mark the points (-2.1, -6.4), (-3, -10), (-4, -14), (-5, -18) for the equation y = 4x + 2, and the points (3.1, 8.3), (4, 11), (5, 14), (6, 17) for the equation y = 3x - 1.

For the values of x less than or equal to -2, the function is y = 4x + 2. For the values between -2 and 3, the function is y = x. For the values greater than 3, the function is y = 3x - 1.

Connect these points with a straight line, while keeping the function y = 4x + 2 for x <= -2, y = x for -2 < x <= 3, and y = 3x - 1 for x > 3.

By following these steps, you should have a correct graph of the function f(x) = 4x + 2 if x <= -2, x if -2 < x <= 3, and 3x - 1 if x > 3.