Substituting a Polynomial into a Maclaurin Series
A familiar Maclaurin series expresses a function in powers of its input. When that input is itself a polynomial, substitution produces a series whose terms involve powers of the polynomial. For simple arguments such as \(x^2\) or \(x^3\), this immediately gives a useful expansion in powers of \(x\).
The essential point is that substitution preserves the identity wherever the original series converges. The exponential, sine, and cosine Maclaurin series converge for every real input, so replacing their input by a real-valued polynomial gives expansions valid for every real \(x\).
The Three Series to Substitute Into
The standard Maclaurin series for the exponential, sine, and cosine are valid for every real number \(u\):
Here \(n\) ranges over the nonnegative integers, and \(0!=1\). The exponential series uses every nonnegative power of its input. The sine series uses odd powers, while the cosine series uses even powers. Those patterns remain visible after substitution, although the resulting powers of \(x\) depend on the polynomial being substituted.
Worked Example: Expanding \(e^{x^2}\)
Begin with the exponential series and replace \(u\) by \(x^2\):
For \(n=0,1,2,3,4\), the terms are \(1\), \(x^2\), \(x^4/2!\), \(x^6/3!\), and \(x^8/4!\). Thus:
To check the substitution, set \(u=x^2\) in \(e^u=\sum_{n=0}^{\infty}u^n/n!\). Since \(u^n=(x^2)^n=x^{2n}\), this gives exactly the displayed expansion. The original exponential series converges for every real \(u\), including every value \(u=x^2\); therefore the expansion is valid for all real \(x\).
Why the Substitution Works
For each fixed real \(x\), a polynomial \(p(x)\) is just a real number. The known series identity can therefore be evaluated at that number. Convergence can also be checked directly from the terms after substitution; the following ratios tend to zero for every fixed real \(x\).
Here is a direct convergence justification. If \(p(x)\ne 0\), the ratio of successive absolute terms in the exponential series is \(\lvert p(x)\rvert/(n+1)\), which tends to zero. In the sine series, that ratio is \(\lvert p(x)\rvert^2/((2n+3)(2n+2))\). In the cosine series, it is \(\lvert p(x)\rvert^2/((2n+2)(2n+1))\). Both also tend to zero. The ratio test therefore gives absolute convergence in each case. If \(p(x)=0\), the substituted series reduce directly to their values at zero and converge as well.
To justify the identities, not just convergence, use the known Maclaurin series at the real input \(u=p(x)\). Those series equal \(e^u\), \(\sin u\), and \(\cos u\) for every real \(u\). Substituting \(u=p(x)\) gives the stated functions and sums. The convergence check confirms that the resulting expressions are legitimate series at every real \(x\).
Choose the exponential, sine, or cosine series in its input \(u\).
In every power, factorial, and sign pattern, substitute \(u=p(x)\).
Evaluate the first few indices to expose the powers and coefficients.
For these three functions and a real polynomial input, the expansion converges absolutely for every real \(x\).
Trigonometric Composites
For sine and cosine, the alternating signs and factorials belong to the powers of the original input. Substitution changes the powers themselves but does not change which factorial or sign accompanies a given index.
Worked Example: Expanding \(\sin(x^3)\)
Use \(\sin u=\sum_{n=0}^{\infty}(-1)^n u^{2n+1}/(2n+1)!\), then replace \(u\) by \(x^3\):
The first four terms come from \(n=0,1,2,3\):
For a check, substituting \(u=x^3\) into the original sine series gives the displayed powers because \((x^3)^{2n+1}=x^{6n+3}\); its denominator remains \((2n+1)!\). For fixed \(x\), the ratio of successive absolute terms tends to zero, so the series converges. Since the sine series is valid for every real \(u\), this expansion equals \(\sin(x^3)\) for every real \(x\).
Worked Example: Expanding \(\cos(2x^2)\)
Substitute \(u=2x^2\) into the cosine series:
The first four terms are obtained as follows:
Therefore:
To check, the general term comes from the cosine term \((-1)^n u^{2n}/(2n)!\) with \(u=2x^2\); hence the power is \(x^{4n}\), the factor from the input is \(2^{2n}\), and the factorial is \((2n)!\). This series converges absolutely for every real \(x\), and substituting \(u=2x^2\) into the cosine identity verifies that its sum is \(\cos(2x^2)\).
A Common Substitution Error
A frequent mistake is to change the power of \(x\) while leaving the substituted exponent incomplete. For example, substituting \(u=x^2\) into the sine term \(u^{2n+1}\) does not give \(x^{2n+1}\). The entire expression \(x^2\) must be raised to the power \(2n+1\).
A reliable check is to compute the first term from the original function: \(\sin(x^2)\) begins with \(x^2\), since \(\sin u\) begins with \(u\). An expansion beginning with \(x\) cannot be correct. Also retain the original factorial: in the sine series it is \((2n+1)!\), regardless of the polynomial substituted for \(u\).
Validity and Interpretation
For the exponential, sine, and cosine series, polynomial substitution creates no finite restriction on real \(x\). A polynomial \(p(x)\) is finite for every real \(x\), and the original series converge for every real input. Consequently, each composite expansion above has the entire real line as its interval of convergence and its interval of validity.
The powers that appear can still be sparse. For example, \(e^{x^2}\) contains only even powers, \(\sin(x^3)\) contains powers \(x^{6n+3}\), and \(\cos(2x^2)\) contains powers \(x^{4n}\). This comes directly from the exponent pattern in the original series combined with the power in the argument. Recognizing that pattern helps both with writing terms and with checking them.
These expansions are useful for identifying the leading behavior of a function near zero and for constructing approximations by keeping a finite number of terms. A finite truncation is an approximation, whereas the infinite series equals the composite function throughout its interval of validity. The convergence statement applies to the full infinite series; it does not mean that a short truncation is equally accurate for every \(x\).
Check Your Understanding
Use the original exponential, sine, and cosine series to answer these questions.
- Write the general-term expansion for \(e^{x^3}\), and state its interval of validity on the real line.
- Find the first four nonzero terms of \(\sin(2x^2)\).
- Write the general-term expansion for \(\cos(x^3)\). Which powers of \(x\) occur?
- For a fixed real \(x\), what happens to the ratio of successive absolute terms in the series for \(e^{p(x)}\) as the index increases?
- Explain why substituting a real polynomial argument does not impose a finite real convergence interval for these three functions.