I tried // Rationalize but it just gave the same answer error

Please help

  • $\begingroup$ Use Maximize to get exact answer. Also, Rationalize[_,0] to force rationalization for any number. $\endgroup$
    – Acus
    Jun 2 at 9:28
  • $\begingroup$ @user18792 I tried rationalize[_,0] but it gave me {605021091/95662234, {t -> 80143857/51021164}} I the answer I was looking for was {2 Sqrt[10], {t -> [Pi]/2}}. Any suggestions what went wrong? $\endgroup$
    – blacke23
    Jun 2 at 9:57
  • 1
    $\begingroup$ Since Sqrt[10], which is exact answer is in not a rational number your cannot expect to obtain it with Rationalize. I only wrote last suggestion since your complained that rationalize returned the same answer. And the second argument of Rationalize forces rationalization even if good approximation (with existing precision) is difficult to find. $\endgroup$
    – Acus
    Jun 2 at 10:26
  • 1
    $\begingroup$ Please post your code instead of picture. $\endgroup$
    – cvgmt
    Jun 2 at 10:51

Maximize is preferred when it works; however, when a numeric technique is required, RootApproximant can find a close approximation that is not necessarily rational.

{max, arg} = FindMaximum[Sqrt[4*Sin[t]^2 + 36 Cos[2 t]^2], t]

(* {6.32456, {t -> 1.5708}} *)

max /. r_Real :> RootApproximant[r]

(* 2 Sqrt[10] *)

And when you expect/suspect a rational factor of a known irrational value

arg /. r_Real :> Pi*RootApproximant[r/Pi]

(* {t -> π/2} *)

Making use of Maximize and the periodicity, we succeed with it.

Maximize[{Sqrt[4*Sin[t]^2 + 36 Cos[2 t]^2], t > -Pi && t <= Pi}, t]

{2 Sqrt[10], {t -> \[Pi]/2}}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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