Answer:
[tex]f(x)=\left\{\begin{matrix}2x-1,\ & x\leq -1\\ x+4,\ & x\geq 1\end{matrix}\right.[/tex]
Step-by-step explanation:
From the graph, we see that,
The function is divided with domain being [tex]x\leq -1[/tex] and [tex]x\geq 1[/tex].
The general form of a straight line is [tex]y=mx+b[/tex], where m= slope and b= y-intercept.
So, we have,
1. In the region when [tex]x\leq -1[/tex], the function passes through the points (-1,-3) and (-2,-5).
The slope is given by [tex]m=\dfrac{-5+3}{-2+1}=\dfrac{-2}{-1}=2[/tex]
Substituting m= 2 and point (-1,-3) in the general form gives us,
[tex]-3=2\times -1+b\\\\-3+2=b\\\\b=-1[/tex]
Thus, the equation of the line is [tex]y=2x-1[/tex].
2. In the region when [tex]x\geq 1[/tex], the function passes through the points (1,5) and (2,6).
The slope is given by [tex]m=\dfrac{6-5}{2-1}=1[/tex]
Substituting m= 1 and point (1,5) in the general form gives us,
[tex]5=1\times 1+b\\\\5-1=b\\\\b=4[/tex]
Thus, the equation of the line is [tex]y=x+4[/tex].
Hence, the piece wise function is given by [tex]f(x)=\left\{\begin{matrix}2x-1,\ & x\leq -1\\ x+4,\ & x\geq 1\end{matrix}\right.[/tex]