# Estimate $f(b)$ using Taylor Expansion for $f'(x) = cos(x^2)$

Mathematics Asked by brucemcmc on January 7, 2022

I am using Taylor Expansion for the following problem, but for some reason I am getting wrong solutions from a program I am running it on. Can someone please help me find $$f(b)$$ for $$b=2,3$$?? Thank you so much for your time and help!

Suppose $$f'(x) = cos(x^2)$$ and $$f(0) = 1$$. I wish to estimate $$f(b)$$ for the following:

$$b=0 : f(b) approx 1$$

$$b=1 : f(b) approx 1.90452$$

$$b=2 : f(b) approx 1.975$$ (which is incorrect, and I do not understand why)

$$b=3 : f(b) approx ??$$

You're just not using enough terms to get a good approximation so far away from the point that you are Taylor expanding around. Taylor expansions around $$0$$ are most accurate near $$0$$.

In the following Desmos graph the function $$f(x) = 1 + int_0^x cos(s^2), text ds$$ is plotted in $$color{red}{text{red}}$$. A $$pm0.1$$ tolerance region is plotted around $$f$$ in $$color{darkgreen}{text{green}}$$. The first 5 terms, i.e. the 4th order Taylor approximation, plotted in $$color{blue}{text{blue}}$$ leaves the green region at about $$x=1.9$$, which explains the bad quality of your approximation at $$x=2$$. If you want to approximate $$f$$ at $$x=3$$ to $$0.1$$ error, you will need to use at least 12 terms; this is the $$color{purple}{text{purple}}$$ graph. ,

Answered by Calvin Khor on January 7, 2022

## Related Questions

### (proposed) elegant solution to IMO 2003 P1

0  Asked on January 18, 2021 by mnishaurya

### Reverse order of polynomial coefficients of type $left(r-xright)^n$

1  Asked on January 18, 2021 by thinkingeye

### Should one include already cemented proofs of related principles in one’s paper?

0  Asked on January 18, 2021 by a-kvle

### The Cauchy-Crofton formula on a plane

1  Asked on January 18, 2021 by jalede-jale-uff-ne-jale

### Solving a limit for capacity of a transmission system

3  Asked on January 18, 2021 by jeongbyulji

### Galois group Abstract algebra

1  Asked on January 18, 2021 by user462999

### Does there always exists coefficients $c,dinmathbb{R}$ s.t. $ax^3+bx^2+cx+d$ has three different real roots?

2  Asked on January 17, 2021 by w2s

### If there is a “worldly ordinal,” then must there be a worldly cardinal?

2  Asked on January 17, 2021 by jesse-elliott

### Cover number and matching number in hypergraphs.

1  Asked on January 17, 2021 by josh-ng

### $displaystyleint_C (e^x+cos(x)+2y),dx+(2x-frac{y^2}{3}),dy$ in an ellipse

1  Asked on January 17, 2021 by fabrizio-gambeln

### Show that $h_n(x)=x^{1+frac{1}{2n-1}}$ converges uniformly on $[-1, 1]$.

1  Asked on January 17, 2021 by wiza

### What does the functional monotone class theorem say and how does it relate to the other monotone class theorem?

0  Asked on January 17, 2021 by alan-simonin

### Symmetric matrix and Hermitian matrix, unitarily diagonalizable

2  Asked on January 17, 2021

### direct conversion from az/el to ecliptic coordinates

0  Asked on January 16, 2021 by klapaucius-klapaucius

### A proof problem in mathematical statistics

2  Asked on January 16, 2021

### How to find the z component of the parameterization of an ellipse that is the intersection of a vertical cylinder and a plane

1  Asked on January 16, 2021 by nono4271

### using Lagrange multipliers to determine shortest distance between a point and straight line

2  Asked on January 16, 2021 by am_11235

### Proof of Lemma 5.1.5.3 in Jacob Lurie’s HTT.

1  Asked on January 16, 2021 by robin-carlier