Skip to main content
added 10 characters in body
Source Link
user64494
  • 29.1k
  • 4
  • 29
  • 56

The command

Plot[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]], {x, -Pi, Pi}]

performs

enter image description here

However, this result contradicts both calculus over the reals, where $\log_3(-\cos x)$ is not defined for $x\ge-\frac \pi 2, x\le 0,$$x\ge-\frac \pi 2, x\le \frac \pi 2,$ and the result of

Solve[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]] == 0 &&
  x >= -Pi && x < Pi, x, Reals]

{{x -> -2 ArcTan[3 + 2 Sqrt[2]]}}

The question arises: how to fix this discordance?

The command

Plot[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]], {x, -Pi, Pi}]

performs

enter image description here

However, this result contradicts both calculus over the reals, where $\log_3(-\cos x)$ is not defined for $x\ge-\frac \pi 2, x\le 0,$ and the result of

Solve[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]] == 0 &&
  x >= -Pi && x < Pi, x, Reals]

{{x -> -2 ArcTan[3 + 2 Sqrt[2]]}}

The question arises: how to fix this discordance?

The command

Plot[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]], {x, -Pi, Pi}]

performs

enter image description here

However, this result contradicts both calculus over the reals, where $\log_3(-\cos x)$ is not defined for $x\ge-\frac \pi 2, x\le \frac \pi 2,$ and the result of

Solve[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]] == 0 &&
  x >= -Pi && x < Pi, x, Reals]

{{x -> -2 ArcTan[3 + 2 Sqrt[2]]}}

The question arises: how to fix this discordance?

Source Link
user64494
  • 29.1k
  • 4
  • 29
  • 56

Problem with Plot

The command

Plot[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]], {x, -Pi, Pi}]

performs

enter image description here

However, this result contradicts both calculus over the reals, where $\log_3(-\cos x)$ is not defined for $x\ge-\frac \pi 2, x\le 0,$ and the result of

Solve[Log[27, Sin[2*x] - 1/3*Cos[x]] - 1/3*Log[3, -Cos[x]] == 0 &&
  x >= -Pi && x < Pi, x, Reals]

{{x -> -2 ArcTan[3 + 2 Sqrt[2]]}}

The question arises: how to fix this discordance?