Answer
$(-\infty,-1)\cup(3,\infty)$.
Work Step by Step
Step 1. For $\frac{x-3}{x+1}\gt0$, identify boundary points as $x=-1,3$.
Step 2. Form intervals $(-\infty,-1),(-1,3),(3,\infty)$.
Step 3. Choose test values for each interval $x=-2,0,4$.
Step 4. Test the inequality to get results: $True,\ False,\ True$
Step 5. We have the solution $(-\infty,-1)\cup(3,\infty)$.