Mathematica not plotting for me

Click For Summary
The user is experiencing issues with Mathematica not plotting the function Plot[x^2/4 - ln[x]/2, {x, 0, 5}], resulting in a blank graph. The problem arises from the use of "ln[x]", which Mathematica does not recognize. Instead, the correct function to use is "Log[x]". By changing the expression to Plot[x^2/4 - Log[x]/2, {x, 0, 5}], the plot should display correctly. This highlights the importance of using the correct syntax in Mathematica for successful plotting.
flyingpig
Messages
2,574
Reaction score
1

Homework Statement



I've been trying to plot

Plot[x^2/4 - ln[x]/2, {x, 0, 5}]

And it keeps showing me a blank graph. I did it on Wolframalpha and it worked.
 
Physics news on Phys.org
A blank graph means it didn't understand something in your expression. In this case it is ln[x], which needs to be Log[x]. Try:

Plot[x^2/4 - Log[x]/2, {x, 0, 5}]
 
thanks
 

Similar threads

Replies
7
Views
2K
  • · Replies 0 ·
Replies
0
Views
626
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K