Skip to content
site-logo
  • Home
  • Blog
  • JavaScript
  • Machine Learning
  • Numerical Techniques C++
  • Data Structures C++
  • Typing Guide
site-logo
Home / Numerical Techniques C++ / Taylor series Formula with Solved Examples | What is Taylor Series

Taylor series Formula with Solved Examples | What is Taylor Series

ByLonz Updated onJuly 25, 2021
Numerical Techniques C++
taylor series formula
Ad
Table of contents
  1. What is Taylor Series
  2. Taylor series formula
    1. f( x+h )=f( x ) + f'(x)h + f”{(x) h2}/2! + f”'{(x) h3}/3! + ⋯
  3. 1 Example Solved
  4. 2 Example Solved
    1. Given The Ordinary differential dy/dx = 3×2 – x2y, y(2)=5. Find 2nd Order Polynomial for y as a function of x & x=2.

What is Taylor Series

In mathematics, sometimes it is really difficult to evaluate some functions. In such cases, we use the approximation formulas where the function is expressed as a series. There are two such approximation formulas:

  1. Taylor series formula
  2. Maclaurin series formula

Taylor series formula helps us in writing a function as a series (or sum) of terms involving the derivatives of the function.

Ad

This formula helps us in finding the approximate value of the function.

Taylor series formula

f( x+h )=f( x ) + f'(x)h + f”{(x) h2}/2! + f”'{(x) h3}/3! + ⋯

or

taylor series formula
Taylor Series Formula

1 Example Solved

Given f(4)=125, f’(4)=74, f’’(4)=30, f’’’(4)=6. Find f(6)=?

Sol: Here h = 2, and all other derivates are zero.

F(6) = 125 + 74(2) + 30(2)2 / 2 + 6(2)3 / 3 + 0 + 0 + 0

F(6) = 125 + 148 + 60 + 8

F(6) = 341 Ans.

2 Example Solved

Given The Ordinary differential dy/dx = 3×2 – x2y, y(2)=5. Find 2nd Order Polynomial for y as a function of x & x=2.

Sol.

Ad

Let the 2nd order polynomial be a0+a1x + a2x2

Using taylor series, f( x+h )=f( x ) + f'(x)h + f”{(x) h2}/2! + f”'{(x) h3}/3! + ⋯

Given, y(2) = 5 and x =2.

Therefore,

y’(2) = 3x2 – x2y

3(2)2 – (2)2y

12 – 4y

Y = 12/4

Y=3, put this value of y

Y’(2)=3(2)2 – (2)-8

Y’(2) = -8

Now, y’’(2) = (d/dx)(3x2 – x2y)

6x – (d/dx)(x2y)

Use product Rule of differentiation, xy

product rule differentiation

6x – ( 2xy – x2 d/dx(y))

6(2) – 2(2)(5) – 22(-8) = 24

Therefore, y(2+h)= 5 + (-8)h + 24h2

Y(2+h) = 5 – 8h + 12h2

Y(x) = 5-8(x-2)+12(x-2)2

Y(x)=12x2-56x+69   (Answer.)

Suggested Methods:

  • Maclarin Series
  • Polynomial Regression
  • Linear Regression
  • Bisection Method
  • Regula falsi method

Post navigation

Previous Previous
Fit a Second Order Polynomial to the given data. Curve fitting Polynomial Regression
NextContinue
Maclaurin Series formula | how to find the Maclaurin Series Formula
Search

Ad

Categories

  • C++ Programing
  • C++ Programs
  • Computer Graphics
  • Data Structures C++
  • JavaScript
  • Machine Learning
  • Numerical Techniques C++
  • Processor
  • Tech Updates
  • Typing Guide
  • Un Categorised

Recent Posts

  • NetSuite Cloud ERP Features
  • Is i7 Better Than i5
  • setTimeout vs setInterval JavaScript Methods
  • String Formatting In JavaScript

Ad


  • Home
  • Blog
  • Privacy Policy
  • Disclaimer
  • Sitemap

Copyright © 2023 Tech In Detail

  • Home
  • Blog
  • JavaScript
  • Machine Learning
  • Numerical Techniques C++
  • Data Structures C++
  • Typing Guide
Search