Question: How do I plot two functions, in different ranges of x on one graph

Hi, 

Apologies if this is a very simple question and I am being a bit stupid, but how do I plot two functions of r on one graph, if they operate over different values of r? 

Say I have the functions:

FOO = r→APOT*exp(-r/rho)-CPOT/r^6+4*E2/r 

g = r→(c1*exp(d1*r)+c2*exp(d2*r)+c3*exp(d3*r)+c4*exp(d4*r))/r 

where FOO takes values of r between 0.5 and 2, and g takes values of r between o.2 and 0.5. 

 

Any help would be appreicated!

Please Wait...