[Tex/LaTex] Longer Cap of \sqrt

math-modesymbols

I am using ShareLaTeX for assignment.

I want to input an equation like:

$EOQ=Q^*=\sqrt(\frac{2K\lambda}{h})$


and got output like this:

But I really want the square root with longer cap (or roof? I am not sure how to call it, and therefore I am not able to search the solution) like this:

Wondering how I can fix that.

Best Answer

The \sqrt command takes as a mandatory argument what's to be extracted the square root of.

So the correct syntax is

\sqrt{a+b}


not \sqrt(a+b). Your problem is solved by using

Q^*=\sqrt{\frac{2K\lambda}{h}}


If you need the cube root (or other roots), there's the optional argument:

\sqrt[3]{a}


In a previous version of your question you had \sqrtsign: this macro actually exists for historical reasons, but is not documented and should not be used in documents.