Prove f(x) ∈ O(x^3) Using Big-O Definition: Homework

  • Thread starter Thread starter sta|ker
  • Start date Start date
  • Tags Tags
    Definition
Click For Summary

Homework Help Overview

The discussion revolves around proving that the function f(x) = 2x³ + 3x log(x) belongs to the set O(x³) using the Big-O definition. Participants are exploring the requirements of the proof and the implications of the Big-O notation in the context of asymptotic analysis.

Discussion Character

  • Conceptual clarification, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • One participant attempts to demonstrate the proof by setting constants C and k, but questions arise about the necessity of proving the inequality for all x greater than a certain value, not just a specific instance.
  • Another participant suggests that an argument is needed to justify the inequality 3x log(x) ≤ 2x³ for x ≥ 4, indicating a need for deeper reasoning behind the assumptions made in the proof.
  • Some participants express uncertainty about the technique used and mention alternative methods, such as limits, while acknowledging the requirement to use the Big-O theorem.

Discussion Status

The discussion is ongoing, with participants actively questioning the validity of the initial proof attempt and exploring the necessary conditions for the Big-O definition. There is no explicit consensus yet, but guidance is being offered regarding the need for comprehensive justification of the inequalities involved.

Contextual Notes

Participants note that the logarithm is assumed to be base 2, which may affect the interpretation of the growth rates being discussed. There is also an emphasis on the requirement to prove the statement for all x larger than a specified value, highlighting the rigor expected in the proof process.

sta|ker
Messages
12
Reaction score
0

Homework Statement


Let f(x) = 2x^{3} + 3x\log{x}, prove f \in O(x^{3}) using the Big-O Definition.

Homework Equations


Big-O definition:
f(x) \in O(g(x)) if |f(x)| \leq C|g(x)| and x \geq k where C and k are both positive integers.

The Attempt at a Solution


I basically set C=4 and k=4, then wrote it out:
|2x^{3}+3x\log{x}| \leq 4|x^{3}| where x \geq 4

then using 4 for x:
256 \geq 152

According to the definition this proves it. It just seems to simple for an assignment (not the only problem on it, but still). Did I prove this correctly? Or do I completely not understand? I can prove it using limits, but she wants us to use the Big-O therom.
 
Physics news on Phys.org
You have to prove it for EVERY x larger than 4, not just when x = 4. Also is your log base 2?
 
sta|ker said:

Homework Statement


Let f(x) = 2x^{3} + 3x\log{x}, prove f \in O(x^{3}) using the Big-O Definition.

Homework Equations


Big-O definition:
f(x) \in O(g(x)) if |f(x)| \leq C|g(x)| and x \geq k where C and k are both positive integers.

The Attempt at a Solution


I basically set C=4 and k=4, then wrote it out:
|2x^{3}+3x\log{x}| \leq 4|x^{3}| where x \geq 4

then using 4 for x:
256 \geq 152

According to the definition this proves it. It just seems to simple for an assignment (not the only problem on it, but still). Did I prove this correctly? Or do I completely not understand? I can prove it using limits, but she wants us to use the Big-O therom.

So saying ##|2x^{3}+3x\log{x}| \leq 4|x^{3}|## when ##x>4## you are observing that ##3x\log x \le 2x^3## when ##x\ge 4##. I would think you would need to give an argument for that or at least explain why you already know that after checking ##x=4##.
 
Office_Shredder said:
You have to prove it for EVERY x larger than 4, not just when x = 4. Also is your log base 2?
Yes, the log base is assumed to be 2. Sorry, I forgot about that.

LCKurtz said:
So saying ##|2x^{3}+3x\log{x}| \leq 4|x^{3}|## when ##x>4## you are observing that ##3x\log x \le 2x^3## when ##x\ge 4##. I would think you would need to give an argument for that or at least explain why you already know that after checking ##x=4##.
Hmm, I guess I don't understand that technique then. I can do it using limits, but I guess I'll just have to review it until I get it.
 
LCKurtz said:
So saying ##|2x^{3}+3x\log{x}| \leq 4|x^{3}|## when ##x>4## you are observing that ##3x\log x \le 2x^3## when ##x\ge 4##. I would think you would need to give an argument for that or at least explain why you already know that after checking ##x=4##.

sta|ker said:
Hmm, I guess I don't understand that technique then. I can do it using limits, but I guess I'll just have to review it until I get it.

It's just an ordinary calculus question now. How could you argue that ##3x\log_2 x \le 2x^3## if ##x>4##?
 

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 26 ·
Replies
26
Views
3K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
1K
Replies
4
Views
2K