Math question help

<p>A taxi company charges $2 for the first mile (or part of a mile) and 20 cents for each succeeding tenth of a mile (or part). What is the equation if x is the distance traveled in miles for 0<x<2 ?</p>

<p>well if it is more than a mile then it is</p>

<p>money= .2(X-1)+2
if less than a mille or a mile then it is 2 dollars</p>

<p>yes, but is there one equation that expresses that?</p>

<p>actually the function is money=2(X-1)+2</p>

<p>it might involve step functions or absolute value(not likely)</p>

<p>what are the answer choices if any</p>

<p>I don't have the answers...I'm thinking that it is a piece wise function, maybe...</p>

<p>try this ([20(X-1)]+20)/10</p>

<p>the brackets[] stand for piecewise symbols</p>

<p>symplified, it would be ([20(X-1)]/10)+2=fare</p>

<p>no that only for more than a mile</p>

<p>This should work: max( 2, 2x)<br>
( or, writing slightly differently, 2 * max( 1,x) )</p>