Example 3 Plot

In[]:=
g1=Plot
x
1-x
,{x,1,10},PlotRange{{-10,10},{-5,5}},PlotStyle{Red,Thick};
In[]:=
g2=Plot
x
1-x
,{x,-10,0},PlotRange{{-10,10},{-5,5}},PlotStyle{Blue,Dashed};
In[]:=
g3=Plot
x
1-x
,{x,0,1},PlotRange{{-10,10},{-5,5}},PlotStyle{Green,Dashed};
Show[{g1,g2,g3}]
Out[]=
-10
-5
5
10
-4
-2
2
4