# Plot 1/sqrt(1-x^2) and arcsin together in the same graph using tikz or pgf

I can just plot them separately. Does someone have any idea, how to plot 1/sqrt(1-x^2) und arcsin together in the same graph using tizk or pgf?

• Welcome to TeX.SE! Is this the usual thingy that the arguments of trigonometric functions are in degrees, and that's why the asin dominates? – user121799 Sep 18 '18 at 16:21

I can't confirm your statement but guess that your issue is that the ordinary trigonometric functions work with degrees rather than radians.

\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}

\begin{tikzpicture}[declare function={f(\x)=1/(sqrt(1-\x*\x));}]
\begin{axis}[samples=101,
xlabel=$x$,ylabel=$y$,
ymax=10, ymin=-1, xmin=0, xmax=1,
domain=0:1,
]
\addlegendentry{$1/\sqrt{1-x^2}$}
\addlegendentry{$\arcsin(x)$}