0% found this document useful (0 votes)
23 views7 pages

"Series de Taylor y Maclaurin" "Luis Gerardo Rodriguez": Fecha: 21 de Febrero de 2022

This document discusses Taylor and Maclaurin series expansions for several functions. It provides the Taylor and Maclaurin series approximations of varying orders (n=4,5) for functions such as e^3x cos(2x), sin(3x)cos(2x), and x^5cos(3x) evaluated at different values of x. It also includes the Python code used to calculate the Taylor and Maclaurin series coefficients and approximations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views7 pages

"Series de Taylor y Maclaurin" "Luis Gerardo Rodriguez": Fecha: 21 de Febrero de 2022

This document discusses Taylor and Maclaurin series expansions for several functions. It provides the Taylor and Maclaurin series approximations of varying orders (n=4,5) for functions such as e^3x cos(2x), sin(3x)cos(2x), and x^5cos(3x) evaluated at different values of x. It also includes the Python code used to calculate the Taylor and Maclaurin series coefficients and approximations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

“Series de Taylor y Maclaurin”

“Luis Gerardo Rodriguez”

Fecha: 21 de febrero de 2022


𝑓ሺ𝑥ሻ = 𝑒 3𝑥 cosሺ2𝑥ሻ 𝑒𝑛 𝑥 = 0.5 𝑦 𝑛 = 4

Serie de Taylor.

𝑓4 ሺ𝑥ሻ = 2.56048 − 16.5736 ∗ ሺ𝑥 − 0.5ሻ^2 − 32.5448 ∗ ሺ𝑥 − 0.5ሻ^3 − 30.8625 ∗ ሺ𝑥 − 0.5ሻ^4 − 0.278022 ∗ 𝑥

function Tay(funcion,c)

f0=inline(funcion);
f1=inline(diff(funcion));
f2=inline(diff(funcion,2));
f3=inline(diff(funcion,3));
f4=inline(diff(funcion,4));

a0=f0(c);
a1=f1(c)/factorial(1);
a2=f2(c)/factorial(2);
a3=f3(c)/factorial(3);
a4=f4(c)/factorial(4);

syms x;
f=a0+a1*(x-c)+a2*(x-c)^2+a3*(x-c)^3+a4*(x-c)^4

𝑓ሺ𝑥ሻ = sinሺ3𝑥ሻ cosሺ2𝑥ሻ 𝑒𝑛 𝑥 = 1 𝑐𝑜𝑛 𝑛 = 5

2
𝑓 ሺ𝑥 ሻ = sinሺ3𝑥 ሻ cosሺ2𝑥 ሻ 𝑒𝑛 𝑥 = 1 𝑐𝑜𝑛 𝑛 = 5

Serie de Taylor.

𝑓5 ሺ𝑥ሻ = 0.979307 ∗ 𝑥 + 5.78291 ∗ ሺ𝑥 − 1.0ሻ^2 − 2.99984 ∗ ሺ𝑥 − 1.0ሻ^3 − 12.4685 ∗ ሺ𝑥 − 1.0ሻ^4 + 3.69577


∗ ሺ𝑥 − 1.0ሻ^5 − 1.03803

function Tay(funcion,c)

f0=inline(funcion);
f1=inline(diff(funcion));
f2=inline(diff(funcion,2));
f3=inline(diff(funcion,3));
f4=inline(diff(funcion,4));
f5=inline(diff(funcion,5));

a0=f0(c);
a1=f1(c)/factorial(1);
a2=f2(c)/factorial(2);
a3=f3(c)/factorial(3);
a4=f4(c)/factorial(4);
a5=f5(c)/factorial(5);

syms x;
f=a0+a1*(x-c)+a2*(x-c)^2+a3*(x-c)^3+a4*(x-c)^4+a5*(x-c)^5

3
𝑓ሺ𝑥ሻ = 𝑥 5 cosሺ3𝑥ሻ 𝑒𝑛 𝑥 = 1.5 𝑐𝑜𝑛 𝑛 = 5

Serie de Taylor.

𝑓5 ሺ𝑥ሻ = 16.9336 ∗ 𝑥 + 74.3201 ∗ ሺ𝑥 − 1.5ሻ^2 + 84.8389 ∗ ሺ𝑥 − 1.5ሻ^3 − 20.3323 ∗ ሺ𝑥 − 1.5ሻ^4 − 108.312


∗ ሺ𝑥 − 1.5ሻ^5 − 27.0011

function Tay(funcion,c)

f0=inline(funcion);
f1=inline(diff(funcion));
f2=inline(diff(funcion,2));
f3=inline(diff(funcion,3));
f4=inline(diff(funcion,4));
f5=inline(diff(funcion,5));

a0=f0(c);
a1=f1(c)/factorial(1);
a2=f2(c)/factorial(2);
a3=f3(c)/factorial(3);
a4=f4(c)/factorial(4);
a5=f5(c)/factorial(5);

syms x;
f=a0+a1*(x-c)+a2*(x-c)^2+a3*(x-c)^3+a4*(x-c)^4+a5*(x-c)^5

vpa(f,6)

4
𝑓ሺ𝑥ሻ = 𝑥 5 cosሺ3𝑥ሻ 𝑒𝑛 𝑥 = 1.5 𝑐𝑜𝑛 𝑛 = 5
Serie de Maclaurin

𝑓5 ሺ𝑥ሻ = 𝑥^5

function McLaur(funcion)

f0=inline(funcion);
f1=inline(diff(funcion));
f2=inline(diff(funcion,2));
f3=inline(diff(funcion,3));
f4=inline(diff(funcion,4));
f5=inline(diff(funcion,5));

a0=f0(0);
a1=f1(0)/factorial(1);
a2=f2(0)/factorial(2);
a3=f3(0)/factorial(3);
a4=f4(0)/factorial(4);
a5=f5(0)/factorial(5);

syms x;
f=a0+a1*x+a2*x^2+a3*x^3+a4*x^4+a5*x^5

vpa(f,6)

5
𝑓ሺ𝑥ሻ = 𝑒 3𝑥 cosሺ2𝑥ሻ 𝑒𝑛 𝑥 = 0.5 𝑦 𝑛 = 4

Serie de Maclaurin

𝑓4 ሺ𝑥ሻ = − 4.95833 ∗ 𝑥^4 − 1.5 ∗ 𝑥^3 + 2.5 ∗ 𝑥^2 + 3.0 ∗ 𝑥 + 1.0

function McLaur(funcion)

f0=inline(funcion);
f1=inline(diff(funcion));
f2=inline(diff(funcion,2));
f3=inline(diff(funcion,3));
f4=inline(diff(funcion,4));

a0=f0(0);
a1=f1(0)/factorial(1);
a2=f2(0)/factorial(2);
a3=f3(0)/factorial(3);
a4=f4(0)/factorial(4);

syms x;
f1=a0+a1*x;
f2=a0+a1*x+a2*x^2;
f3=f2+a3*x^3;
f4=f3+a4*x^4;

f1=vpa(f1,6)
f2=vpa(f2,6)
f3=vpa(f3,6)
f4=vpa(f4,6)

6
𝑓 ሺ𝑥 ሻ = sinሺ3𝑥 ሻ cosሺ2𝑥 ሻ 𝑒𝑛 𝑥 = 1 𝑐𝑜𝑛 𝑛 = 5

Serie de Maclaurin

𝑓5 ሺ𝑥ሻ = 13.025 ∗ 𝑥^5 − 10.5 ∗ 𝑥^3 + 3.0 ∗ 𝑥

function McLaur(funcion)

f0=inline(funcion);
f1=inline(diff(funcion));
f2=inline(diff(funcion,2));
f3=inline(diff(funcion,3));
f4=inline(diff(funcion,4));
f5=inline(diff(funcion,5));

a0=f0(0);
a1=f1(0)/factorial(1);
a2=f2(0)/factorial(2);
a3=f3(0)/factorial(3);
a4=f4(0)/factorial(4);
a5=f5(0)/factorial(5);

syms x;
f=a0+a1*x+a2*x^2+a3*x^3+a4*x^4+a5*x^5

vpa(f,6)

You might also like