-1
$\begingroup$

It's a really simple question. I want to plot x^2 and the log of x^2 in the same graph. I'm really new to Mathematica so I'm sorry if it's a dumb question

$\endgroup$

closed as off-topic by corey979, halirutan, m_goldberg, Coolwater, LCarvalho Feb 1 '18 at 20:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – corey979, halirutan, m_goldberg, Coolwater, LCarvalho
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Try this: Plot[{x^2, Log[x^2]}, {x, 0, 2}]. $\endgroup$ – Alexei Boulbitch Feb 1 '18 at 12:11
  • 1
    $\begingroup$ I propose to close this question as off-topic, since it is based on the lack of trivial knowledge of Mathematica. $\endgroup$ – Alexei Boulbitch Feb 1 '18 at 12:12
1
$\begingroup$
f[x_] := x^2;
g[x_] := Log[x^2];
Plot[{f[x], g[x]}, {x, -5, 5}]

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.