점근선 설계의 개념

점근선 설계의 개념

방금 읽었어이것점근선을 만드는 방법에 대해 설명합니다. 그러나 점근선을 사용하여 그림을 그리고 싶다면 누군가 나에게 같은 방법을 가르쳐 줄 수 있습니까 \dfrac{x^2+0.5x+1.5}{x+3}? 그리고 이것의 개념도 가르쳐 주세요.

답변1

  1. 점근선의 기능을 얻으세요: 열기https://www.wolframalpha.com/을 입력하고 asymptotes (x^2 + 0.5 * x + 1.5)/(x + 3)Enter를 누르세요. 계산 결과는 두 개의 점근선이 y = x - 2.5과 임을 알려줄 것입니다 y = -3.
  2. 의 이미지 (x^2 + 0.5 * x + 1.5)/(x + 3)와 두 개의 점근선을 그립니다:
% based on the example given in https://tex.stackexchange.com/a/291629
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}

\begin{document}
\begin{tikzpicture}
  \begin{axis}[
    axis lines = center,
    xlabel = $x$,
    ylabel = $y$,
    xmax = 5,
    xmin = -15,
    ymax = 5,
    ymin = -15,
    domain=-15:5
  ]
    % Image of function y = (x^2 + 0.5 * x + 1.5)/(x + 3)
    \addplot[
      restrict y to domain = -15:10,
      samples = 100,
    ] {(x^2 + 0.5 * x + 1.5)/(x + 3)};
    
    % Oblique asymptote at y = x - 2.5
    \addplot[dashed] {x - 2.5};
    % Vertical asymptote at x = -3
    \addplot[dashed] (-3, x);
  \end{axis}
\end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

일반적으로,

  • 에서 경사 점근선을 그리려면 y = f(x), \addplot[dashed] {f(x)}또는 (x, f(x)), 및
  • x = c( c는 상수) 에서 수직 점근선을 그리려면 를 사용하세요 \addplot[dashed] (c, x).

답변2

여기에 이미지 설명을 입력하세요

\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\begin{document}
\begin{tikzpicture}[font=\footnotesize]
\begin{axis}[
axis lines = center,
xlabel=$x$,
ylabel=$y$,
axis line style = {-latex},
xlabel style={anchor=north},
ylabel style={anchor=east},
%xmin=-10,      xmax=7,
ymin=-25,     ymax=25,
ytick={-25,-20,...,25},
restrict y to domain = -30:30,
domain=-10:10, 
enlarge x limits={abs=1.5},
enlarge y limits={abs=3.5},
%clip=false, 
]
\addplot[samples=111,  black,]{(x^2 + 0.5*x + 1.5)/(x + 3)} 
       node[above, xshift=-12mm]{$f(x)=\dfrac{x^2+0.5x+1.5}{x+3}$};
\addplot[dashed] {0.5*x-1}
      node[below=1mm, pos=0.1]{$a(x)=x-2.5$};
\addplot[dashdotted, domain=-25:29] ({-3},{x})
      node[left, pos=0.9]{$x_p=-3$};;
\end{axis}
\end{tikzpicture}
\end{document}

관련 정보