기본 콘텐츠로 건너뛰기

pandas_ta를 적용한 통계적 인덱스 지표

[Math Classic]Calculus Made Easy CH.3

CHAPTER III.

ON RELATIVE GROWING.

All through the calculus we are dealing with quantities that are growing, and with rates of growth. We classify all quantities into two classes: constants and variables. Those which we regard as of fixed value, and call constants, we generally denote algebraically by letters from the be ginning of the alphabet, such as a, b, or c; while those which we consider as capable of growing, or (as mathematicians say) of “varying,” we denote by letters from the end of the alphabet, such as x, y, z, u, v, w, or sometimes t.
Moreover, we are usually dealing with more than one variable at once, and thinking of the way in which one variable depends on the other: for instance, we think of the way in which the height reached by a projectile depends on the time of attaining that height. Or we are asked to consider a rectangle of given area, and to enquire how any increase in the length of it will compel a corresponding decrease in the breadth of it. Or we think of the way in which any variation in the slope of a ladder will cause the height that it reaches, to vary.
Suppose we have got two such variables that depend one on the other. An alteration in one will bring about an alteration in the other, because of this dependence. Let us call one of the variables x, and the other that depends on it y.
Suppose we make $x$ to vary, that is to say, we either alter it or imagine it to be altered, by adding to it a bit which we call $dx$. We are thus causing $x$ to become $x + dx$. Then, because $x$ has been altered, $y$ will have altered also, and will have become $y + dy$. Here the bit $dy$ may be in some cases positive, in others negative; and it won’t (except by a miracle) be the same size as $dx$.

Take two examples.

(1) Let $x$ and $y$ be respectively the base and the height of a right-angled triangle (Fig. 4), of which the slope of the other side is fixed at 30°.
FIG. 4.
If we suppose this triangle to expand and yet keep its angles the same as at first, then, when the base grows so as to become $x + dx$, the height becomes $y + dy$. Here, increasing $x$ results in an increase of $y$. The little triangle, the height of which is $dy$, and the base of which is $dx$, is similar to the original triangle; and it is obvious that the value of the ratio $\frac{dy}{dx}$ is the same as that of the ratio $\frac{y}{x}$. As the angle is 30° it will be seen that here
$$\frac{dy}{dx}=\frac{1}{1.73}$$
(2) Let x represent, in Fig. 5, the horizontal distance, from a wall, of the bottom end of a ladder, AB, of fixed length; and let $y$ be the height it reaches up the wall.
FIG. 5.
Now $y$ clearly depends on $x$. It is easy to see that, if we pull the bottom end A a bit further from the wall, the top end B will come down a little lower. Let us state this in scientific language. If we increase $x$ to $x + dx$, then y will become $y − dy$; that is, when $x$ receives a positive increment, the increment which results to $y$ is negative.
Yes, but how much? Suppose the ladder was so long that when the bottom end A was 19 inches from the wall the top end B reached just 15 feet from the ground. Now, if you were to pull the bottom end out 1 inch more, how much would the top end come down? Put it all into inches: $x = 19 $ inches, $y = 180$  inches. Now the increment of $x$ which we call $dx$, is 1 inch: or $x + dx = 20$ inches.
How much will y be diminished? The new height will be y − dy. If we work out the height by Euclid I. 47, then we shall be able to find how much dy will be. The length of the ladder is $\sqrt{(180)^2+(19)^2}=181 \text{inches}$.
Clearly then, the new height, which is $y − dy$, will be such that
$$(y-dy)^2=(181)^2-(20)^2=32761-400=32361,$$ $$y-dx=\sqrt{32361}=178.89\; \text{inches}.$$
Now $y$ is 180, so that $dy$ is 180 − 179.89 = 0.11 inch.
So we see that making $dx$ an increase of 1 inch has resulted in making dy a decrease of 0.11 inch. And the ratio of $dy$ to $dx$ may be stated thus:
$$\frac{dy}{dx}=-\frac{0.11}{1}.$$
It is also easy to see that (except in one particular position) dy will be of a different size from $dx$.
Now right through the differential calculus we are hunting, hunting, hunting for a curious thing, a mere ratio, namely, the proportion which $dy$ bears to $dx$ when both of them are indefinitely small.
It should be noted here that we can only find this ratio $\frac{dy}{dx}$ when $y$ and $x$ are related to each other in some way, so that whenever $y$ does vary also. For instance, in the first example just taken, if the base $x$ of the triangle be made longer, if the distance $x$ of the foot of the ladder from the wall be made to increase, the height $y$ reached by the ladder decreases in a corresponding manner, slowly at first, but more and more rapidly as $x$ reached becomes greater. In these cases the relation between $x$ and $y$ is perfectly definite, it can be expressed mathematically, being $\frac{y}{x}=tan 30°$ and $x^2+y^2=l^2$ (where $l$ is the length of the ladder) respectively, and $\frac{dy}{dx}$ has the meaning we found in each case.
If, while $x$ is, as before, the distance of the foot of the ladder from the wall, $y$ is, instead of the height reached, the horizontal length of the wall, or the number of bricks in it, or the number of years since it was built, any change in x would naturally cause no change whatever in $y$; in this case $\frac{dy}{dx}$ has no meaning whatever, and it is not possible to find an expression for it. Whenever we use differentials $dx, dy, dz$, etc., the existence of some kind of relation between $x, y, z$, etc., is implied, and this relation is called a “function” in $x, y, z$, etc.; the two expressions given above, for instance, namel $\frac{y}{x} = tan 30°$ and $x^2 + y^2 = l^2$, are functions of $x$ and $y$. Such expressions contain implicitly (that is, contain without distinctly showing it) the means of expressing either $x$ in terms of $y$ or $y$ in terms of $x$, and for this reason they are called implicit functions in $x$ and $y$; they can be respectively put into the forms
$$y=tan 30^{\circ} \; \text{or} \; x=\frac{y}{tan 30^{\circ}}$$ $$y=\sqrt{l^2-x^2} \; \text{or} \; x=\sqrt{l^2-y^2}$$
These last expressions state explicitly (that is, distinctly) the value of $x$ in terms of $y$, or of $y$ in terms of $x$, and they are for this reason called explicit functions of $x$ or $y$. For example $x^2 + 3 = 2y − 7$ is an implicit function in $x$ and $y$; it may be written $y=\frac{x^2+10}{2}$ (explicit function of x) or $x=\sqrt{2y-10}$ (explicit function of y).
We see that an explicit function in $x, y, z$, etc., is simply something the value of which changes when $x, y, z$, etc., are changing, either one at the time or several together. Because of this, the value of the explicit function is called the dependent variable, as it depends on the value of the other variable quantities in the function; these other variables are called the independent variables because their value is not determined from the value assumed by the function. For example, if $u = x^2 sinθ$, $x$ and $θ$ are the independent variables, and $u$ is the dependent variable.
Sometimes the exact relation between several quantities $x, y, z$ either is not known or it is not convenient to state it; it is only known, or convenient to state, that there is some sort of relation between these variables, so that one cannot alter either $x$ or $y$ or $z$ singly without affecting the other quantities; the existence of a function in $x, y, z$ is then indicated by the notation $F (x, y, z)$ (implicit function) or by $x = F (y, z), y = F (x, z)$ or $z = F (x, y)$ (explicit function). Sometimes the letter $f$ or $φ$ is used instead of $F$ , so that $y = F (x), y = f (x)$ and $y = φ(x)$ all mean the same thing, namely, that the value of $y$ depends on the value of $x$ in some way which is not stated.
We call the ratio $\frac{dy}{dx}$ “the differential coefficient of $y$ with respect to $x$". It is a solemn scientific name for this very simple thing. But we are not going to be frightened by solemn names, when the things themselves are so easy. Instead of being frightened we will simply pronounce a brief curse on the stupidity of giving long crack-jaw names; and, having relieved our minds, will go on to the simple thing itself, namely the ratio $\frac{dy}{dx}$.
In ordinary algebra which you learned at school, you were always hunting after some unknown quantity which you called $x$ or $y$; or sometimes there were two unknown quantities to be hunted for simultaneously. You have now to learn to go hunting in a new way; the fox being now neither $x$ nor $y$. Instead of this you have to hunt for this curious cub called $\frac{dy}{dx}$. The process of finding the value of $\frac{dy}{dx}$ is called "differentiating". But, remember, what is wanted is the value of this ratio when both $dy$ and $dx$ are themselves indefinitely small. The true value of the differential coefficient is that to which it approximates in the limiting case when each of them is considered as infinitesimally minute.Let us now learn how to go in quest of $\frac{dy}{dx}$.

NOTE TO CHAPTER III.


How to read Differentials.

It will never do to fall into the schoolboy error of thinking that $dx$ means $d \times x$, for $d$ is not a factor—it means “an element of” or “a bit of” whatever follows. One reads $dx$ thus: “dee-eks.”
$\frac{y}{dx} is read “dee-wy by dee-eks,” or “dee-wy over dee-eks.”
So also $\frac{dt}{du} is read “dee-you by dee-tee.”
Second differential coefficients will be met with later on. They are like this:
$\frac{d^2y}{dx^2}; which is read “dee-two-wy over dee-eks-squared,”
and it means that the operation of differentiating y with respect to x has been (or has to be) performed twice over.
Another way of indicating that a function has been differentiated is by putting an accent to the symbol of the function. Thus if $y = F (x)$, which means that $y$ is some unspecified function of $x$ (see p. 13), we may write $F′(x)$ instead of $\frac{d(F(x))}{dx}$. Similarly, $F″(x)$ will mean that the original function $F(x)$ has been differentiated twice over with respect to $x$.

댓글

이 블로그의 인기 게시물

[Linear Algebra] 유사변환(Similarity transformation)

유사변환(Similarity transformation) n×n 차원의 정방 행렬 A, B 그리고 가역 행렬 P 사이에 식 1의 관계가 성립하면 행렬 A와 B는 유사행렬(similarity matrix)이 되며 행렬 A를 가역행렬 P와 B로 분해하는 것을 유사 변환(similarity transformation) 이라고 합니다. $$\tag{1} A = PBP^{-1} \Leftrightarrow P^{-1}AP = B $$ 식 2는 식 1의 양변에 B의 고유값을 고려한 것입니다. \begin{align}\tag{식 2} B - \lambda I &= P^{-1}AP – \lambda P^{-1}P\\ &= P^{-1}(AP – \lambda P)\\ &= P^{-1}(A - \lambda I)P \end{align} 식 2의 행렬식은 식 3과 같이 정리됩니다. \begin{align} &\begin{aligned}\textsf{det}(B - \lambda I ) & = \textsf{det}(P^{-1}(AP – \lambda P))\\ &= \textsf{det}(P^{-1}) \textsf{det}((A – \lambda I)) \textsf{det}(P)\\ &= \textsf{det}(P^{-1}) \textsf{det}(P) \textsf{det}((A – \lambda I))\\ &= \textsf{det}(A – \lambda I)\end{aligned}\\ &\begin{aligned}\because \; \textsf{det}(P^{-1}) \textsf{det}(P) &= \textsf{det}(P^{-1}P)\\ &= \textsf{det}(I)\end{aligned}\end{align} 유사행렬의 특성 유사행렬인 두 정방행렬 A와 B는 'A ~ B' 와 같...

유리함수 그래프와 점근선 그리기

내용 유리함수(Rational Function) 점근선(asymptote) 유리함수 그래프와 점근선 그리기 유리함수(Rational Function) 유리함수는 분수형태의 함수를 의미합니다. 예를들어 다음 함수는 분수형태의 유리함수입니다. $$f(x)=\frac{x^{2} - 1}{x^{2} + x - 6}$$ 분수의 경우 분모가 0인 경우 정의할 수 없습니다. 이와 마찬가지로 유리함수 f(x)의 정의역은 분모가 0이 아닌 부분이어야 합니다. 그러므로 위함수의 정의역은 분모가 0인 부분을 제외한 부분들로 구성됩니다. sympt=solve(denom(f), a); asympt [-3, 2] $$-\infty \lt x \lt -3, \quad -3 \lt x \lt 2, \quad 2 \lt x \lt \infty$$ 이 정의역을 고려해 그래프를 작성을 위한 사용자 정의함수는 다음과 같습니다. def validX(x, f, symbol): ① a=[] b=[] for i in x: try: b.append(float(f.subs(symbol, i))) a.append(i) except: pass return(a, b) #x는 임의로 지정한 정의역으로 불연속선점을 기준으로 구분된 몇개의 구간으로 전달할 수 있습니다. #그러므로 인수 x는 2차원이어야 합니다. def RationalPlot(x, f, sym, dp=100): fig, ax=plt.subplots(dpi=dp) # ② for k in x: #③ x4, y4=validX(k, f, sym) ax.plot(x4, y4) ax.spines['left'].set_position(('data', 0)) ax.spines['right...

turtle로 정오각형 그리기

정오각형 그리기  오각형을 그리는 것 역시 정사각형 , 정삼각형 을 그리는 것과 유사한 과정을 거칩니다. 단지 각 꼭지점의 각도만이 다르지요. 그러면 정오각형의 각 모서리의 각도는 어떻게 될까요? 이를 생각하기에 앞서 각 도형의 내각을 먼저 생각해보죠. 우리는 삼각형의 내각의 합을 알고 있습니다. 이를 이용하면 각 도형에서 삼각형이 몇개가 존재하는지를 알아보고 "삼각형의 갯수×180"로 그 도형의 내각의 합을 구할 수 있을 것입니다. 다음 그림을 볼까요? 위 그림의 사각형은 1개의 대각선으로 2개의 삼각형으로 구성됩니다. 오각형의 경우 2개의 대각선으로 3개의 삼각형으로 구성됩니다. 즉, 다음의 관계를 보이지요. 사각형의 내각 : 삼각형 2개 2×180=360 한각의 값  360/4=90 오각형의 내각 : 삼각형 3개 3×180=540 한각의 값  540/5=108 육각형의 내각 : 삼각형 4개 4×180=720 한각의 값  720/6=120 ... 위 그림에서 내각과 외각의 관계를 보면 위 그림의 검은색은 각 모서리의 내각이고 빨간색은 외각을 나타냅니다. 외각은 내각을 이루는 하나의 선을 연장했을 경우 상대되는 각도이라고 했습니다. 그러므로 오각형의 경우 내각 108도에 대한 외각은 72도입니다. 특이할 사항은 사각형이나 오각형이나 외각의 합은 360입니다. 즉, 모든 도형의 외각의 합은 360도입니다. (삼각형의 외각의 합을 구해보세요.) 그러므로 모든 정다각형에서 하나의 외각은 다음과 같이 계산될 수 있겠지요. 360/변수의 수=다각형에서 하나의 외각 위에서 회전을 할 경우 내각이 아닌 외각을 사용해야 함을 알았습니다. 그러므로 오각형을 그리는 계획은 다음과 같이 작성할 수 있겠죠. 1) 지정한 길이만큼 앞으로 이동합니다. 2) 오른쪽 또는 왼쪽으로 72도를 회전합니다. 3) 앞으로 동일한 길이만큼 이동합니다. 4) 오른쪽 또는 왼쪽으로 72도 만큼 이동합니다. 5)1번부터 4번 ...