Question about deriving Maclaurin Series

Click For Summary

Homework Help Overview

The discussion revolves around deriving the Maclaurin series for the function ##\sin{(\ln{(1+x)})}##. Participants express concerns about the complexity of calculations involved in finding such series by hand, particularly when using known series expansions for ##\sin{x}## and ##\ln{(1+x)}##.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Some participants question whether it is typical to encounter lengthy expressions when deriving Maclaurin series. Others discuss the potential over-reliance on software for calculations, suggesting that manual computation is beneficial for skill development.

Discussion Status

There is an ongoing exploration of different methods to approach the problem, with some participants suggesting that breaking down the series term by term may simplify the process. Guidance has been offered regarding the importance of understanding the underlying series expansions rather than relying solely on computational tools.

Contextual Notes

Participants note that the exercise aims to develop computational skills and understanding of series expansions, with an emphasis on memorizing basic series for common functions. There is also mention of the expectation to derive series in a test or exam setting, which may impose additional constraints on the approach taken.

Potatochip911
Messages
317
Reaction score
3

Homework Statement


As I've been going through examples in my textbook they are becoming increasingly lengthy to compute and thus I have resorted to using software to complete the task. For example when computing the series for ##\sin{(\ln{(1+x)})}## $$\ln{(1+x)}=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+... \\ \sin{x}=x-\frac{x^3}{3!}+\frac{x^5}{5!}+... \\
\sin{(\ln{(1+x)})}=\sin{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})}\\
=(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})-\frac{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})^3}{3!}+\frac{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})^5}{5!}
$$

Homework Equations


3. The Attempt at a Solution [/B]
This would take a ridiculously long time to calculate by hand (for me at least) and I was just curious as to whether or not it's normal to encounter difficult expressions to evaluate by hand when finding Maclaurin series.
 
Physics news on Phys.org
Potatochip911 said:
This would take a ridiculously long time to calculate by hand (for me at least) and I was just curious as to whether or not it's normal to encounter difficult expressions to evaluate by hand when finding Maclaurin series.

The reason for setting problems like this is to familiarise you with the math and to help you to develop skill in computation. To use software at this stage of the game is counterproductive.

In your problem, you should have recognised that you need to find the series for sin x and the series for ln(1+x), and that you can get the final series by substituting one into the other, as was done above. No software is necessary for this. You have however missed a step: the final series should have the form a_0 + a_1 x + a_2 x^2 + \cdots.

In a test or exam, you would be required (unless stated otherwise) to derive the series for sin x and for ln(1+x).

The object of these exercises is 1. to develop skills, thinking and calculational; 2. to impress the theory into your mind by means of concrete examples; 3. to add to your repertoire of basic information that any professional must have if he is to practice his profession. In this case, you should make a point of memorising the power series for sin x and ln(1+x), and for other elementary functions. These basic series will allow you to calculate the series for more complicated examples.

Do not use software for solving your homework problems. It defeats the object of the exercise and is counter productive.
 
MarcusAgrippa said:
The reason for setting problems like this is to familiarise you with the math and to help you to develop skill in computation. To use software at this stage of the game is counterproductive.

In your problem, you should have recognised that you need to find the series for sin x and the series for ln(1+x), and that you can get the final series by substituting one into the other, as was done above. No software is necessary for this. You have however missed a step: the final series should have the form a_0 + a_1 x + a_2 x^2 + \cdots.

In a test or exam, you would be required (unless stated otherwise) to derive the series for sin x and for ln(1+x).

The object of these exercises is 1. to develop skills, thinking and calculational; 2. to impress the theory into your mind by means of concrete examples; 3. to add to your repertoire of basic information that any professional must have if he is to practice his profession. In this case, you should make a point of memorising the power series for sin x and ln(1+x), and for other elementary functions. These basic series will allow you to calculate the series for more complicated examples.

Do not use software for solving your homework problems. It defeats the object of the exercise and is counter productive.
I probably should have worded my question differently, I am doing everything in the problem up until the last part I left up there, at that stage I am then plugging it into the software to expand the function.
 
Potatochip911 said:
I probably should have worded my question differently, I am doing everything in the problem up until the last part I left up there, at that stage I am then plugging it into the software to expand the function.

It shouldn't take very long to expand the series by hand up to terms in ##x^4## or ##x^5##.
 
Potatochip911 said:

Homework Statement


As I've been going through examples in my textbook they are becoming increasingly lengthy to compute and thus I have resorted to using software to complete the task. For example when computing the series for ##\sin{(\ln{(1+x)})}## $$\ln{(1+x)}=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+... \\ \sin{x}=x-\frac{x^3}{3!}+\frac{x^5}{5!}+... \\
\sin{(\ln{(1+x)})}=\sin{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})}\\
=(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})-\frac{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})^3}{3!}+\frac{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})^5}{5!}
$$

Homework Equations


3. The Attempt at a Solution [/B]
This would take a ridiculously long time to calculate by hand (for me at least) and I was just curious as to whether or not it's normal to encounter difficult expressions to evaluate by hand when finding Maclaurin series.

In this case, the direct approach is easier than you may imagine. Let ##f(x) = \sin(\ln(x+1))## and ##g(x) = \cos(\ln(x+1))##. Then we have
f&#039;(x) = \frac{g(x)}{x+1}\\<br /> f&#039;&#039;(x) = \frac{-f(x)-g(x)}{(x+1)^2} \\<br /> f&#039;&#039;&#039;(x) = \frac{g(x) + 3 f(x)}{(x+1)^3}\\<br /> f^{(4)}(x) = \frac{-10 f(x)}{(x+1)^4} \\<br /> \vdots<br />
and so forth. So, getting a general formula for the ##n##th derivative ##f^{(n)}(x)## should not be too hard. From that you can quite easily get the Maclaurin series
f(0) + f&#039;(0) x + \frac{1}{2!} f&#039;&#039;(0) x^2 + \frac{1}{3!} f&#039;&#039;&#039;(0) x^3 + \cdots \\<br />
 
  • Like
Likes   Reactions: Potatochip911, PeroK and MarcusAgrippa
Potatochip911 said:

Homework Statement


As I've been going through examples in my textbook they are becoming increasingly lengthy to compute and thus I have resorted to using software to complete the task. For example when computing the series for ##\sin{(\ln{(1+x)})}## $$\ln{(1+x)}=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+... \\ \sin{x}=x-\frac{x^3}{3!}+\frac{x^5}{5!}+... \\
\sin{(\ln{(1+x)})}=\sin{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})}\\
=(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})-\frac{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})^3}{3!}+\frac{(x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4})^5}{5!}
$$

Homework Equations


3. The Attempt at a Solution [/B]
This would take a ridiculously long time to calculate by hand (for me at least) and I was just curious as to whether or not it's normal to encounter difficult expressions to evaluate by hand when finding Maclaurin series.
You're probably thinking of truncating the series for log after a few terms, multiplying everything out, and then adding them together, right? If you did that, it would be quite tedious and long. Instead, calculate each term one by one, identifying where all the different contributions come from. For example, consider the ##x^4## term. The third term in the expansion of sin (log series) is
$$ \frac{1}{5!} \left(x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \cdots \right)^5 = \frac{x^5}{5!} \left(1 - \frac{x}{2} + \frac{x^2}{3} -\frac{x^3}{4} + \cdots\right)^5.$$ From this, you can see that this term will contribute only terms of ##x^5## and higher, so for the ##x^4## term, we can ignore it.

The second term is
$$-\frac{x^3}{3!} \left(1 - \frac{x}{2} + \frac{x^2}{3} -\frac{x^3}{4} + \cdots\right)^3,$$ so it will contribute terms of order ##x^3## and higher. For the ##x^4## term specifically, it comes from the product of ##x^3## and the linear term in the expansion of ##(1-x/2+x^2/3-\cdots)^3##, which you can determine using the binomial expansion. The contribution to the ##x^4## term is therefore ##-\frac{1}{3!} x^3 \times (-\frac 32 x) = \frac 14 x^4##. When you combine this result with the ##x^4## term from the first term in the sin expansion, you see the ##x^4## term vanishes.

It gets more complicated as you go to higher-order terms, but to figure out the first few terms of the expansion, it's not too bad.
 
  • Like
Likes   Reactions: Potatochip911 and SammyS
vela said:
You're probably thinking of truncating the series for log after a few terms, multiplying everything out, and then adding them together, right? If you did that, it would be quite tedious and long. Instead, calculate each term one by one, identifying where all the different contributions come from. For example, consider the ##x^4## term. The third term in the expansion of sin (log series) is
$$ \frac{1}{5!} \left(x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \cdots \right)^5 = \frac{x^5}{5!} \left(1 - \frac{x}{2} + \frac{x^2}{3} -\frac{x^3}{4} + \cdots\right)^5.$$ From this, you can see that this term will contribute only terms of ##x^5## and higher, so for the ##x^4## term, we can ignore it.

The second term is
$$-\frac{x^3}{3!} \left(1 - \frac{x}{2} + \frac{x^2}{3} -\frac{x^3}{4} + \cdots\right)^3,$$ so it will contribute terms of order ##x^3## and higher. For the ##x^4## term specifically, it comes from the product of ##x^3## and the linear term in the expansion of ##(1-x/2+x^2/3-\cdots)^3##, which you can determine using the binomial expansion. The contribution to the ##x^4## term is therefore ##-\frac{1}{3!} x^3 \times (-\frac 32 x) = \frac 14 x^4##. When you combine this result with the ##x^4## term from the first term in the sin expansion, you see the ##x^4## term vanishes.

It gets more complicated as you go to higher-order terms, but to figure out the first few terms of the expansion, it's not too bad.
If we are only getting terms with a degree less than or equal to 5 isn't it easier to quickly derive $$(ax+bx^2+cx^3+dx^4)^3=(3(a^2c+ab^2))x^5+(3a^2b)x^4+a^3x^3$$ which gives all the terms with a degree of 5 or less.
 
Try it and find out. As Marcus says above, one of the reasons for this type of problem is to develop your skills in doing these types of calculations.
 
Potatochip911 said:
If we are only getting terms with a degree less than or equal to 5 isn't it easier to quickly derive $$(ax+bx^2+cx^3+dx^4)^3=(3(a^2c+ab^2))x^5+(3a^2b)x^4+a^3x^3$$ which gives all the terms with a degree of 5 or less.

It would be quicker to use the method in Post #5. With ##f(x) = \sin(\ln(x+1))## and ##g(x) = \cos(\ln(x+1))## we have the ##n##th derivative of ##f## as
f^{(n)}(x) = \frac{A_n f(x) + B_n g(x)}{(x+1)^n},
where ##A_n, B_n## are constants and ##A_1 = 0, B_1 = 1##. It follows easily that the ##A, B## obey a simple recursion scheme:
A_{n+1} = -n A_n - B_n, \; \; B_{n+1} = A_n - n B_n
Using this, we can easily and quickly get ##f^{(n)}(0) = B_n## for ##n## up to 10 or more with little effort (although the magnitudes of ##A,B## grow large quickly as ##n## increases, so a calculator becomes a necessity). You can keep the numerical growth under control by looking instead at ##\alpha_n = A_n / n!## and ##\beta_n = B_n / n!##. These satisfy
\alpha_{n+1} = -\frac{n}{n+1} \alpha_n - \frac{1}{n+1} \beta_n, \;\;<br /> \beta_{n+1} = \frac{1}{n+1} \alpha_n - \frac{n}{n+1} \beta_n,
with ##\alpha_1 = 0, \beta_1 = 1##. The quantity ##\beta_n## is the coefficient of ##x^n## in the Maclaurin expansion of ##f##. Thus, getting directly the first 10 or so terms of the Maclaurin expansion is relatively straightforward.
 
  • Like
Likes   Reactions: Potatochip911

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K
Replies
5
Views
2K