Is there a rule that states that I should not divide in this scenario?

In summary: You have to use ##\log_2 x^2 =2\cdot \log |x|## since the logarithm doesn't allow negative arguments. Therefore you end up with ##2^{1/2}=\sqrt{2}=|x|## which includes both signs!
  • #1
Callmelucky
144
30
Homework Statement
Write the coordinates of points where ##f(x)=\log _{2} x^2 -1## intersects x and y axis
Relevant Equations
##\log _{a} x^n = n\times \log _{a} x##
So basically this is how I solved this problem:
1. ##f(x)=\log _{2} x^2 - 1##
2. ##0=\log _{2} x^2 -1 ##
3. ##1= 2\times \log _{2} x##
4. ##\frac{1}{2}= \log _{2} x##
5. ##2^{\frac{1}{2}}=x=\sqrt{2}##

So I wrote coordinates to be (##\sqrt{2}##, 0)

But apparently, that is not the only solution. There should be another answer with a negative sign so (##\pm\sqrt{2}##, 0) would be a complete solution for points at which graphs cross the x line. There are no points where the graph crosses the y-line.
This is how it's solved in the textbook(pic in attachments). And I understand that it's correct because the graph really does cross the x-line in those points.
So, my question is, is there a rule I am not aware of that states that I can't divide an equation with n(exponent of an argument moved down to the front)?

Thank you.
 

Attachments

  • 19.04.jpg
    19.04.jpg
    30.3 KB · Views: 85
  • 19999.png
    19999.png
    14.6 KB · Views: 86
Last edited:
Physics news on Phys.org
  • #2
What is the domain of your function? The problem is basically in the 3rd step.
 
  • Like
Likes Callmelucky
  • #3
weirdoguy said:
What is the domain of your function? The problem is basically in the 3rd step.
I didn't learn about domain, in Croatia we learn that in 4th grade of high school, I am in 2nd right now. Are you saying that I can't move 2 down if it's original place is up?
 
  • #4
You can, but it will be ##2\log_2|x|## instead of what you wrote. That's because your ##x##'s can be negative, eg: for ##x=-2## we have ##\log_2(-2)^2=\log_24=2##
 
  • Like
Likes Callmelucky
  • #5
weirdoguy said:
You can, but it will be ##2\log_2|x|##, because your ##x##'s can be negative.
Ohh, that make sense, should I always do that when moving 2 down? Because I haven't done that once so far
 
  • #6
In the cases of functions like this one in your example yes. The rule: ##\log a^n=n\log a## works only for positive ##a##, and in the function you gave your "##a##" (which is ##x##) could be negative.
 
  • Like
Likes Callmelucky
  • #7
weirdoguy said:
In the cases of functions like this one in your example yes. The rule: ##\log a^n=n\log a## works only for positive ##a##, and in the function you gave your "##a##" (which is ##x##) could be negative.
Okay, thank you very much. :D
 
  • #8
Callmelucky said:
Homework Statement: Write the coordinates of points where ##f(x)=\log _{2} x^2 -1## intersects x and y axis
Relevant Equations: ##\log _{a} x^n = n\times \log _{a} x##

So basically this is how I solved this problem:
1. ##f(x)=\log _{2} x^2 - 1##
2. ##0=\log _{2} x^2 -1 ##
3. ##1= 2\times \log _{2} x##
4. ##\frac{1}{2}= \log _{2} x##
5. ##2^{\frac{1}{2}}=x=\sqrt{2}##

So I wrote coordinates to be (##\sqrt{2}##, 0)
From line 2, you have ##\log_2(x^2) = 1 \Rightarrow x^2 = 2 \Rightarrow x= \pm \sqrt 2##
Callmelucky said:
But apparently, that is not the only solution. There should be another answer with a negative sign so (##\pm\sqrt{2}##, 0) would be a complete solution for points at which graphs cross the x line. There are no points where the graph crosses the y-line.
 
  • Like
Likes Callmelucky
  • #9
Mark44 said:
From line 2, you have ##\log_2(x^2) = 1 \Rightarrow x^2 = 2 \Rightarrow x= \pm \sqrt 2##
yeah, but I was confused why the method I was using so far isn't working anymore. Thank you.
 
  • #10
Callmelucky said:
yeah, but I was confused why the method I was using so far isn't working anymore. Thank you.
It's because your relevant equation -- ##\log_a (x^n) = n\log_a(x)## -- is valid only for x > 0. Although ##x = \sqrt 2## is a solution of equations 2 and 4, ##x = -\sqrt 2## is also a solution of the original equation.
 
  • #11
Callmelucky said:
yeah, but I was confused why the method I was using so far isn't working anymore. Thank you.
You have to use ##\log_2 x^2 =2\cdot \log |x|## since the logarithm doesn't allow negative arguments. Therefore you end up with ##2^{1/2}=\sqrt{2}=|x|## which includes both signs!
 

FAQ: Is there a rule that states that I should not divide in this scenario?

What scenarios typically require avoiding division?

Scenarios that typically require avoiding division include cases where the divisor might be zero, leading to undefined results, or where the division could result in a loss of precision, such as when dealing with floating-point arithmetic. Additionally, division should be avoided in scenarios where integer division might truncate important fractional parts.

Why is division by zero problematic?

Division by zero is problematic because it is mathematically undefined. In computational systems, attempting to divide by zero can cause runtime errors, crashes, or the generation of infinity or NaN (Not a Number) values, which can propagate through calculations and lead to incorrect results.

How can I handle scenarios where division by zero might occur?

To handle scenarios where division by zero might occur, you can implement checks to ensure the divisor is not zero before performing the division. Alternatively, you can use exception handling mechanisms to catch and manage any division by zero errors that arise during runtime.

Are there alternatives to division in certain calculations?

Yes, there are alternatives to division in certain calculations. For example, you can use multiplication by the reciprocal of the divisor if it is non-zero. Additionally, in some algorithms, iterative or approximation methods can be used to avoid direct division while still achieving the desired results.

How does division impact computational performance?

Division, especially with floating-point numbers, can be computationally expensive compared to other arithmetic operations like addition, subtraction, and multiplication. It often requires more processing time and resources, which can impact the performance of algorithms and applications, particularly in performance-critical systems.

Similar threads

Replies
4
Views
1K
Replies
3
Views
1K
Replies
19
Views
2K
Replies
3
Views
992
Replies
14
Views
1K
Replies
9
Views
1K
Replies
2
Views
1K
Replies
7
Views
1K
Back
Top