Difference between revisions of "Sine-squared function"
(→Key data) |
(→Using the double angle cosine formula) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 69: | Line 69: | ||
==Differentiation== | ==Differentiation== | ||
− | === | + | ===First derivative=== |
+ | |||
+ | {{quotation|'''WHAT WE USE''': [[chain rule for differentiation]], [[differentiation rule for power functions]], [[sine function#First derivative]], [[double angle cosine formula]]}} | ||
+ | |||
+ | We have: | ||
+ | |||
+ | <math>\! \frac{d}{dx}(\sin^2x) = \sin(2x)</math> | ||
+ | |||
+ | We can do this two ways. | ||
Using the [[chain rule for differentiation]], we have: | Using the [[chain rule for differentiation]], we have: | ||
Line 77: | Line 85: | ||
By the [[double angle sine formula]], this is the same as <math>\sin(2x)</math>. | By the [[double angle sine formula]], this is the same as <math>\sin(2x)</math>. | ||
− | + | Alternatively, using the [[double angle cosine formula]], we rewrite: | |
− | |||
− | |||
<math>\sin^2x = \frac{1 - \cos(2x)}{2}</math> | <math>\sin^2x = \frac{1 - \cos(2x)}{2}</math> | ||
Line 91: | Line 97: | ||
Differentiating the derivative again, we get: | Differentiating the derivative again, we get: | ||
− | <math>\frac{d^2}{dx^2}(\sin^2x) = 2\cos(2x)</math> | + | <math>\frac{d^2}{dx^2}(\sin^2x) = \frac{d}{dx}[\sin(2x)] = \frac{d}{d(2x)}[\sin(2x)]\frac{d(2x)}{dx} = 2\cos(2x)</math> |
===Graph of function with derivative=== | ===Graph of function with derivative=== | ||
Line 137: | Line 143: | ||
==Integration== | ==Integration== | ||
− | ===First antiderivative: | + | ===First antiderivative=== |
+ | |||
+ | {{quotation|'''WHAT WE USE''': [[double angle cosine formula]], [[recursive version of integration by parts]], [[integration of linear transform of function]]}} | ||
− | + | ====Using the double angle cosine formula==== | |
<math>\! \sin^2x = \frac{1 - \cos(2x)}{2}</math> | <math>\! \sin^2x = \frac{1 - \cos(2x)}{2}</math> | ||
Line 151: | Line 159: | ||
<math>\frac{x}{2} - \frac{1}{2}\left(\frac{\sin(2x)}{2}\right) + C = \frac{x}{2} - \frac{\sin(2x)}{4} + C</math> | <math>\frac{x}{2} - \frac{1}{2}\left(\frac{\sin(2x)}{2}\right) + C = \frac{x}{2} - \frac{\sin(2x)}{4} + C</math> | ||
− | === | + | ====Using integration by parts==== |
We rewrite <math>\sin^2x = (\sin x)(\sin x)</math> and use [[integration by parts]] in its [[recursive version of integration by parts|recursive version]]: | We rewrite <math>\sin^2x = (\sin x)(\sin x)</math> and use [[integration by parts]] in its [[recursive version of integration by parts|recursive version]]: | ||
Line 211: | Line 219: | ||
===Transformed versions=== | ===Transformed versions=== | ||
− | Based on the integration of <math>\sin^2</math>, we can also integrate the square of any [[sinusoidal function]]: | + | Based on the integration of <math>\sin^2</math>, we can also integrate the square of any [[sinusoidal function]] using the [[integration of linear transform of function]]: |
<math>\int \sin^2(mx + \varphi) \, dx= \frac{x}{2} - \frac{\sin(2(mx + \varphi))}{4m} + C</math> | <math>\int \sin^2(mx + \varphi) \, dx= \frac{x}{2} - \frac{\sin(2(mx + \varphi))}{4m} + C</math> | ||
Line 279: | Line 287: | ||
| Simple manipulation, using <math>\lim_{x \to 0} (\sin x)/x = 1</math> || <math>\! \lim_{x \to 0} \frac{\sin^2x}{x^2} = \lim_{x \to 0} \left(\frac{\sin x}{x}\right)^2 = \left(\lim_{x \to 0} \frac{\sin x}{x}\right)^2 = 1^2 = 1</math> | | Simple manipulation, using <math>\lim_{x \to 0} (\sin x)/x = 1</math> || <math>\! \lim_{x \to 0} \frac{\sin^2x}{x^2} = \lim_{x \to 0} \left(\frac{\sin x}{x}\right)^2 = \left(\lim_{x \to 0} \frac{\sin x}{x}\right)^2 = 1^2 = 1</math> | ||
|- | |- | ||
− | | Using the [[L'Hopital rule]] || <math>\lim_{x \to 0} \frac{\sin^2x}{x^2} \stackrel{*}{=} \lim_{x \to 0} \frac{\sin(2x)}{2x} \stackrel{*}{=} \frac{2\cos(2x)}{2} = 1</math> | + | | Using the [[L'Hopital rule]] || <math>\lim_{x \to 0} \frac{\sin^2x}{x^2} \stackrel{*}{=} \lim_{x \to 0} \frac{\sin(2x)}{2x} \stackrel{*}{=} \lim_{x \to 0} \frac{2\cos(2x)}{2} = 1</math> |
|- | |- | ||
| Using the power series || We have <math>\sin^2x = x^2 - \frac{x^4}{3} + \dots</math>, so we get<br><math>\frac{\sin^2x}{x^2} = 1 - \frac{x^2}{3} + \dots</math>. Taking the limit as <math>x \to 0</math> gives 1. | | Using the power series || We have <math>\sin^2x = x^2 - \frac{x^4}{3} + \dots</math>, so we get<br><math>\frac{\sin^2x}{x^2} = 1 - \frac{x^2}{3} + \dots</math>. Taking the limit as <math>x \to 0</math> gives 1. | ||
Line 297: | Line 305: | ||
| Using <math>\lim_{x \to 0} \frac{x - \sin x}{x^3} = 1/6</math> and <math>\lim_{x \to 0} \frac{\sin x}{x} = 1</math> || We have <math>\lim_{x \to 0} \frac{x^2 - \sin^2x}{x^4} = \lim_{x \to 0} \frac{x - \sin x}{x^3} \cdot \frac{x + \sin x}{x} = \lim_{x \to 0} \frac{x - \sin x}{x^3} \cdot \lim_{x \to 0} \frac{x + \sin x}{x}</math>.<br>The first limit is <math>1/6</math> and the second limit is 2 from the given data. We thus get <math>(1/6) \cdot 2 = 1/3</math>. | | Using <math>\lim_{x \to 0} \frac{x - \sin x}{x^3} = 1/6</math> and <math>\lim_{x \to 0} \frac{\sin x}{x} = 1</math> || We have <math>\lim_{x \to 0} \frac{x^2 - \sin^2x}{x^4} = \lim_{x \to 0} \frac{x - \sin x}{x^3} \cdot \frac{x + \sin x}{x} = \lim_{x \to 0} \frac{x - \sin x}{x^3} \cdot \lim_{x \to 0} \frac{x + \sin x}{x}</math>.<br>The first limit is <math>1/6</math> and the second limit is 2 from the given data. We thus get <math>(1/6) \cdot 2 = 1/3</math>. | ||
|- | |- | ||
− | | Using the [[L'Hopital rule]] || <math>\lim_{x \to 0} \frac{x^2 - \sin^2x}{x^ | + | | Using the [[L'Hopital rule]] || <math>\lim_{x \to 0} \frac{x^2 - \sin^2x}{x^4} \stackrel{*}{=} \lim_{x \to 0} \frac{2x - \sin(2x)}{4x^3} \stackrel{*}{=} \lim_{x \to 0} \frac{2 - 2\cos(2x)}{12x^2} \stackrel{*}{=} \lim_{x \to 0} \frac{4\sin(2x)}{24x} \stackrel{*}{=} \lim_{x \to 0} \frac{8\cos(2x)}{24} = 1/3</math>. |
|- | |- | ||
| Using the power series || We have <math>\sin^2x = x^2 - \frac{x^4}{3} + O(x^6)</math>, so <math>\frac{x^2 - \sin^2x}{x^4} = \frac{1}{3} - O(x^2)</math>, so the limit as <math>x \to 0</math> is 1/3. | | Using the power series || We have <math>\sin^2x = x^2 - \frac{x^4}{3} + O(x^6)</math>, so <math>\frac{x^2 - \sin^2x}{x^4} = \frac{1}{3} - O(x^2)</math>, so the limit as <math>x \to 0</math> is 1/3. | ||
|} | |} |
Latest revision as of 22:05, 12 February 2012
This article is about a particular function from a subset of the real numbers to the real numbers. Information about the function, including its domain, range, and key data relating to graphing, differentiation, and integration, is presented in the article.
View a complete list of particular functions on this wiki
Contents
Definition
This function, denoted , is defined as the composite of the square function and the sine function. Explicitly, it is the map:
For brevity, we write as
.
Key data
Item | Value |
---|---|
Default domain | all real numbers, i.e., all of ![]() |
range | ![]() ![]() absolute maximum value: 1, absolute minimum value: 0 |
period | ![]() ![]() |
local maximum value and points of attainment | All local maximum values are equal to 1, and are attained at odd integer multiples of ![]() |
local minimum value and points of attainment | All local minimum values are equal to 0, and are attained at integer multiples of ![]() |
points of inflection (both coordinates) | odd multiples of ![]() |
derivative | ![]() |
second derivative | ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() |
antiderivative | ![]() |
mean value over a period | 1/2 |
expression as a sinusoidal function plus a constant function | ![]() |
important symmetries | even function (follows from composite of even function with odd function is even, the square function being even, and the sine function being odd) more generally, miror symmetry about any vertical line of the form ![]() ![]() Also, half turn symmetry about all points of the form ![]() |
interval description based on increase/decrease and concave up/down | For each integer ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
power series and Taylor series | The power series about 0 (which is hence also the Taylor series) is ![]() It is a globally convergent power series. |
Identities
We have the following important identities involving :
-
, relating it to the cosine-squared function.
-
, or equivalently,
.
Graph
Here is the graph on the interval , drawn to scale:
Here is a close-up view of the graph between and
. The dashed horizontal line indicates the mean value of
:
The red dotted points indicate the points of inflection and the black dotted points indicate local extreme values.
Here is a picture showing the function (blue) and the cosine-squared function (purple) with the dashed line being . The picture illustrates that
:
Differentiation
First derivative
WHAT WE USE: chain rule for differentiation, differentiation rule for power functions, sine function#First derivative, double angle cosine formula
We have:
We can do this two ways.
Using the chain rule for differentiation, we have:
By the double angle sine formula, this is the same as .
Alternatively, using the double angle cosine formula, we rewrite:
Differentating, we get:
Second derivative
Differentiating the derivative again, we get:
Graph of function with derivative
Fill this in later
Points and intervals of interest
Critical points
Consider . As computed earlier, we have:
This equals zero precisely at the points where
, so
. In other words, the critical points occur at the integer multiples of
.
Intervals of increase and decrease
The function is positive for
, with
and negative for
, with
. Dividing by 2, we get:
-
is increasing on intervals of the form
,
.
-
is decreasing on intervals of the form
,
.
Local extreme values
From the information on the intervals of increase and decrease, we conclude that:
-
attains its local maximum values at points of the form
,
, and all the values are equal to 1.
-
attains its local minimum values at points of the form
,
, and all the values are equal to 0.
Intervals of concave up and concave down
The second derivative is the function
. This is positive for
and negative for
, where
. We thus get:
-
is concave up on intervals of the form
, with
.
-
is concave down on intervals of the form
, with
.
Points of inflection
From the determination of intervals where is concave up and concave down, we discover that the points of inflection are the points with
-coordinate an odd multiple of
. The function value at all these points is
.
- At points with
, the function is transitioning from concave up (on the left) to concave down (on the right).
- At points with
, the function is transitioning from concave down (on the left) to concave up (on the right).
Integration
First antiderivative
WHAT WE USE: double angle cosine formula, recursive version of integration by parts, integration of linear transform of function
Using the double angle cosine formula
We can now do the integration:
To integrate , we use the method of integration of linear transform of function to get
. Plugging that in, we get:
Using integration by parts
We rewrite and use integration by parts in its recursive version:
We now rewrite and obtain:
Setting to be a choice of antiderivative so that the above holds without any freely floating constants, we get:
Rearranging, we get:
This gives:
So the general antiderivative is:
Using the double angle sine formula , we can verify that this matches with the preceding answer.
For a given continuous function on a connected set, antiderivatives obtained by different methods must differ by a constant. In some cases, the antiderivatives may be exactly equal, but this is not necessary in general.
See zero derivative implies locally constant
Graph of function with antiderivative
In the picture below, we depict (blue) and the function
(purple). This is the unique antiderivative that takes the value 0 at 0. The other antiderivatives can be obtained by vertically shifting the purple graph:
The black dots correspond to local extreme values for , and the red dots correspond to points of inflection for the antiderivative. Each black dot is in the same vertical line as a red dot, as we should expect, because points of inflection for the antiderivative correspond to local extreme values for the original function. Further:
- The antiderivative is increasing everywhere because
is everywhere nonnegative, and is zero only at isolated points.
- The antiderivative is concave up on those intervals where
is increasing, i.e., intervals of the form
as
varies over the integers.
- The antiderivative is concave down on those intervals where
is decreasing, i.e., intervals of the form
as
varies over the integers.
Definite integrals
The part in the antiderivative signifies that the linear part of the antiderivative of
has slope
, and this is related to the fact that
has a mean value of
on any interval of length equal to the period. It is in fact clear that the function is a sinusoidal function about
.
Thus, we have:
where is an integer.
The mean value of over an interval of length equal to a multiple of the period is
. Thus, for very large intervals, the mean value of
is very close to 1/2, even though it need not be exactly 1/2. Specifically:
Transformed versions
Based on the integration of , we can also integrate the square of any sinusoidal function using the integration of linear transform of function:
We thus see that the mean value of this function is also over any interval of length a multiple of the period
. Also, over a sufficiently long interval, the mean value is close to 1/2:
Higher antiderivatives
It is possible to antidifferentiate more than once. The
antiderivative is the sum of a polynomial of degree
and a trigonometric function with a period of
.
Power series and Taylor series
Computation of power series
We can use the identity:
along with the power series for the cosine function, to find the power series for .
The power series for the cosine function converges to the function everywhere, and is:
The power series for is:
The power series for is:
Dividing by 2, we get the power series for :
Here's another formulation with the first few terms written more explicitly:
Taylor polynomials as approximations
Note that since is an even function, all its Taylor polynomials are also even polynomials. In the figure below, we consider the graphs of
and its second, fourth, and sixth Taylor approximations.
- Second Taylor polynomial
, which equals the third Taylor polynomial,
, is
.
- Fourth Taylor polynomial
, which equals the fifth Taylor polynomial,
, is
.
- Sixth Taylor polynomial,
, which equals the seventh Taylor polynomial
, is
.
Limit computations
Order of zero
We get the following limit from the power series:
Thus, the order of the zero of at zero is 2 and the residue is 1.
This limit can be computed in many ways:
Name of method for computing the limit | Details |
---|---|
Simple manipulation, using ![]() |
![]() |
Using the L'Hopital rule | ![]() |
Using the power series | We have ![]() ![]() ![]() |
Higher order limits
We have the limit:
This limit can be computed in many ways:
Name of method for computing the limit | Details |
---|---|
Using ![]() ![]() |
We have ![]() The first limit is ![]() ![]() |
Using the L'Hopital rule | ![]() |
Using the power series | We have ![]() ![]() ![]() |