{"id":8535,"date":"2013-10-26T06:35:39","date_gmt":"2013-10-25T22:35:39","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=8535"},"modified":"2019-07-10T11:34:21","modified_gmt":"2019-07-10T03:34:21","slug":"when-does-logx-3-log-x-log-3","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/mathematics\/when-does-logx-3-log-x-log-3-8535","title":{"rendered":"When does log(<i>x<\/i>-3) = log <i>x<\/i> - log 3?"},"content":{"rendered":"<p>I recently had a Twitter exchange with Pat Ballew who tweets using the handle @OnThisDayinMath.<\/p>\n<p>I've never liked aspects of logarithm notation, and my tweet that day pointed out that despite having this convention in math:<\/p>\n<p><span class=\"intmath\">7(<em>x<\/em> &minus; 3) = 7<em>x &minus; <\/em>21<\/span>,  <\/p>\n<p> it happens that<\/p>\n<p class=\"intmath\"> log(<em>x<\/em> &minus; 3) <\/p>\n<p>is mostly NOT equal to <\/p>\n<p><span class=\"intmath\">log(<em>x<\/em>) &minus; log(3)<\/span>.<\/p>\n<p>Such inconsistencies in math notation cause unnecessary confusion for new learners. (See more on this issue at <a href=\"https:\/\/www.intmath.com\/blog\/learn-math\/towards-more-meaningful-math-notation-661\">Towards more meaningful math notation<\/a>.)<\/p>\n<p>Here's the Twitter exchange: <\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/log-twitter2a.png\" alt=\"logs discussion Twitter\" width=\"450\" height=\"437\" \/><\/p>\n<h2>My reply<\/h2>\n<p>My reply contained a link to a Desmos graph showing where the graphs of <span class=\"intmath\"> <em> y<\/em> =  log(<em>x<\/em> &minus; 3)<\/span> and<span class=\"intmath\"> <em>y<\/em> = log(<em>x<\/em>) &minus; log(3)<\/span> intersect. <\/p>\n<p>You only really understand many math problems if you can do them graphically, algebraically, and numerically. But I get most understanding from a graph. <\/p>\n<p>First let's see a graphical solution for this problem. <\/p>\n<h2>Graphical solution<\/h2>\n<p>One way of solving equations is to graph the left and right sides, and look for where the graphs intersect, since that gives us the solution.<\/p>\n<p>The graph I pointed to  in the link was something like the following, where the green curve is <span class=\"intmath\"><em>y<\/em> =  log(<em>x<\/em> &minus; 3)<\/span> and the blue curve is <span class=\"intmath\"> <em>y<\/em> = log(<em>x<\/em>) &minus; log(3)<\/span>:<\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/logs-1e.png\" alt=\"intersecting logs\" width=\"353\" height=\"292\" \/><\/p>\n<p>Zooming in on the intersection point, we can see the 2 curves cross when <span class=\"intmath\"><em>x<\/em> = 4.5<\/span>, and the <em>y<\/em>-value is about 0.4 (actually, it's <span class=\"intmath\">log<sub><em>e<\/em><\/sub>(1.5) = 0.405465...<\/span>).<\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/logs-zoom3d.png\" alt=\"intersecting logs\" width=\"352\" height=\"283\" \/><\/p>\n<p>I answered Pat's question with a link to a graph as I felt that trying to explain the solution algebraically within the limitations of a 140-character tweet would be somewhat problematic. <\/p>\n<h2>Graphs a mystery? <\/h2>\n<p>I've been thinking about Pat's comment that graphs &quot;still leave a mystery here&quot;. <\/p>\n<p>I spent most of my student days and early teaching life solving equations algebraically. That's what most textbooks did, and that's what the curriculum required, so we just went ahead and did it that way. We didn't have access to computer graphing tools (or calculators early on), so there wasn't much option - algebraic solutions were quicker than drawing graphs by hand or finding numerical solutions. <\/p>\n<p>Most of the time I didn't have much of a &quot;feel&quot; for what was going on when the equations became more complicated.<\/p>\n<p>I certainly had a feel for the solution when solving linear, quadratic and other polynomial equations. If the number of terms in the polynomial was small, and it was a &quot;nice&quot; polynomial equation where the number of roots was equal to the degree of the polynomial, all was fine.<\/p>\n<p>But then as things became more complicated, you needed a better understanding of what was happening so you wouldn't miss some of the possible <em>x<\/em>-values. For me, that understanding came from graphs.<\/p>\n<p>For example, once we started doing trigonometry I didn't understand why there would be an infinite number of solutions for this equation:<\/p>\n<p class=\"intmath\">sin 3<em>x<\/em> = 0.47<\/p>\n<p>However, once I saw the graph of <span class=\"intmath\"><em>y<\/em> = sin 3<em>x<\/em><\/span>, and noted where it intersected with the graph of <span class=\"intmath\"><em>y<\/em> = 0.47<\/span>, it was immediately obvious there were many solutions.    <\/p>\n<h2>Algebraically<\/h2>\n<p>Back to the log question. Let's now see how to solve our equation algebraically. <\/p>\n<p class=\"intmath\">log(<i>x<\/i> &minus; 3) = log <i>x<\/i> &minus; log 3<\/p>\n<p>Using the <a href=\"https:\/\/www.intmath.com\/exponential-logarithmic-functions\/3-logarithm-laws.php\">2nd log law on this page<\/a>, we know we can write the difference between 2 logs as:<\/p>\n<p class=\"intmath\"> log <em>a<\/em> &minus; log <em>b<\/em> = log <em>a<\/em>\/<em>b<\/em><\/p>\n<p>So the right hand side of our equation can be written: <\/p>\n<p class=\"intmath\">log <i>x<\/i> &minus; log 3 = log (<i>x<\/i>\/3)<\/p>\n<p>Our equation has become:<\/p>\n<p class=\"intmath\">log(<i>x<\/i> &minus; 3) = log (<i>x<\/i>\/3)<\/p>\n<p>Since there are 2 log expressions with the same base that are equal to each other, we know the expressions in brackets must be equal, so we have: <\/p>\n<p class=\"intmath\"><i>x<\/i> &minus; 3 = <i>x<\/i>\/3<\/p>\n<p>Solving gives: <\/p>\n<p class=\"intmath\">3<i>x<\/i> &minus; 9 = <i>x<\/i><\/p>\n<p class=\"intmath\">2<i>x<\/i> = 9<\/p>\n<p class=\"intmath\"><i>x<\/i> = 4.5 <\/p>\n<p>So assuming base <em>e<\/em>, the following is true:<\/p>\n<p class=\"intmath\">log(4.5 &minus; 3) = log 4.5 &minus; log 3 = log 1.5 = 0.405465... <\/p>\n<h2>Numerically<\/h2>\n<p>We set up a table of values as follows. <\/p>\n<p>If we try any  negative value of <em>x<\/em>, we get an error. Similarly, for <span class=\"intmath\">log(<em>x<\/em> - 3)<\/span>, positive values of <em>x<\/em> give us trouble unless <em>x <\/em>is bigger than 3. <\/p>\n<table class=\"postTable\">\n<tr>\n<th><em>x<\/em><\/th>\n<th>log (<em>x<\/em> &minus; 3)<\/th>\n<th>log <em>x<\/em> &minus; log 3<\/th>\n<\/tr>\n<tr>\n<td>2.5<\/td>\n<td align=\"right\">??<\/td>\n<td align=\"right\">&minus;0.18232<\/td>\n<\/tr>\n<tr>\n<td>3.0<\/td>\n<td align=\"right\">??<\/td>\n<td align=\"right\">0<\/td>\n<\/tr>\n<tr>\n<td>3.5<\/td>\n<td align=\"right\">&minus;0.69315<\/td>\n<td align=\"right\">0.154151<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td align=\"right\">0<\/td>\n<td align=\"right\">0.287682<\/td>\n<\/tr>\n<tr>\n<td style=\"background:#FFFF99\">4.5<\/td>\n<td align=\"right\" style=\"background:#FFFF99\">0.405465<\/td>\n<td align=\"right\" style=\"background:#FFFF99\">0.405465<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td align=\"right\">0.693147<\/td>\n<td align=\"right\">0.510826<\/td>\n<\/tr>\n<tr>\n<td>5.5<\/td>\n<td align=\"right\">0.916291<\/td>\n<td align=\"right\">0.606136<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td align=\"right\">1.098612<\/td>\n<td align=\"right\">0.693147<\/td>\n<\/tr>\n<tr>\n<td>6.5<\/td>\n<td align=\"right\">1.252763<\/td>\n<td align=\"right\">0.77319<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td align=\"right\">1.386294<\/td>\n<td align=\"right\">0.847298<\/td>\n<\/tr>\n<tr>\n<td>7.5<\/td>\n<td align=\"right\">1.504077<\/td>\n<td align=\"right\">0.916291<\/td>\n<\/tr>\n<\/table>\n<p>It looks like we have found the only solution, <span class=\"intmath\"><em>x <\/em>= 4.5<\/span>. <\/p>\n<p>The problem with numerical methods, like a lot of algebraic methods, is we are left wondering if there are any more solutions. You often get caught by not considering other values. <\/p>\n<h2>Conclusion<\/h2>\n<p>We've now solved the equation graphically, algebraically and numerically.<\/p>\n<p>I find I get the best insights into the problem when I can see it, and so most of the time these days I choose to solve equations by drawing a graph (using  computer graphing mostly.)<\/p>\n<p>It's quick, and it gives me the best feel for the meaning of what I've found.  <\/p>\n<h2>Final comments<\/h2>\n<p><strong>(1) Different log bases <\/strong><\/p>\n<p> Does it matter which logarithm base we are using? Do we get the same <em>x-<\/em>value? <\/p>\n<p>Above I was  using base <em>e<\/em> (the natural logarithms). Here is the graph if we are using base 10. <\/p>\n<p><strong>Base 10 <\/strong><\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/log-base10a.png\" alt=\"log graph\" width=\"357\" height=\"279\" \/><\/p>\n<p>We can see the intersection point is when <span class=\"intmath\"><em>x<\/em> = 4.5<\/span>, but the resulting <em>y<\/em>-value is lower. <\/p>\n<p><strong>Base <em>e<\/em> and Base 10 solution comparison <\/strong><\/p>\n<p>In the following graph, we can also see where the base <em>e<\/em> graphs intersect (in lighter colors) and the log (base <em>e<\/em>) value is shown with a red dot. <\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/log-base10-2aa.png\" alt=\"log graph\" width=\"357\" height=\"279\" \/><\/p>\n<p><strong>(2) Alternative graphical approach <\/strong><\/p>\n<p>We could have also approached this problem by getting everything on the left side of the equation, as follows: <\/p>\n<p><span class=\"intmath\">log(<i>x<\/i> &minus; 3) = log <i>x<\/i> &minus; log 3<\/span>, when<\/p>\n<p class=\"intmath\">log(<i>x<\/i> &minus; 3) &minus; (log <i>x<\/i> &minus; log 3) = 0<\/p>\n<p>That is: <\/p>\n<p class=\"intmath\">log(<i>x<\/i> &minus; 3) &minus; log <i>x<\/i> + log 3 = 0 <\/p>\n<p>Here's the graph of <span class=\"intmath\">y = log(<i>x<\/i> &minus; 3) &minus; log <i>x<\/i> + log 3<\/span><\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/logs-3b.png\" alt=\"log graph\" width=\"361\" height=\"280\" \/><\/p>\n<p>We can see it cuts the <i>x<\/i>-axis at <span class=\"intmath\"><em>x<\/em> = 4.5<\/span>, and this is our solution. <\/p>\n<p>But this doesn't give us as much &quot;feel&quot; about what's going on as the graphs given at the beginning of this article, where we graphed both sides of the equaiton separately and then looked for the intersection. <\/p>\n<p><b>(3) <span class=\"intmath\">ln <i>x<\/i><\/span> or <span class=\"intmath\">log<sub><em>e<\/em><\/sub> <i>x<\/i><\/span>?<\/b><\/p>\n<p>I think \"<span class=\"intmath\">ln <i>x<\/i><\/span>\" is terrible notation for natural logs. I have used <span class=\"intmath\">log<sub><em>e<\/em><\/sub> <i>x<\/i><\/span> throughout this article as it is much easier to identify that it is a logarithm expression, and so easier to understand. I ranted about this issue in <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/logarithms-a-visual-introduction-4526\">Logarithms - a visual introduction<\/a>.<\/p>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/when-does-logx-3-log-x-log-3-8535#comments\" id=\"comms\">12 Comments<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>  <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/when-does-logx-3-log-x-log-3-8535\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2013\/10\/log_th4.png\" alt=\"intersecting log curves\" width=\"128\" height=\"100\" class=\"imgRt\" \/><\/a><br \/>\nA recent comment from a Twitter colleague got me thinking about the value of graphical solutions of equations.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[4],"tags":[127],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/8535"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=8535"}],"version-history":[{"count":1,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/8535\/revisions"}],"predecessor-version":[{"id":12073,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/8535\/revisions\/12073"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=8535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=8535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=8535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}