# Message Boards

Posted 9 years ago
4552 Views
|
2 Replies
|
2 Total Likes
|
 Hi, the problem is given below, Clear[x, a, b, c]; Integrate[(x - a)^2 (x - c)^2, {x, b, c}] /. {a -> Subscript[x, i], b -> Subscript[x, i - 1], c -> Subscript[x, i + 1]} // TraditionalForm the answer for this problem is: .............................................................................................................................................................the problem is: I need this answer in the form of 'h' whereCould you please help me out?
2 Replies
Sort By:
Posted 9 years ago
 {a -> Subscript[x, i], b -> Subscript[x, i - 1], c -> Subscript[x, i+ 1]} The above means a is x and b is x-h and c is x+h. Then why not just write Clear[x, a, b, c]; r = Integrate[(x - a)^2 (x - c)^2, {x, b, c}]; r /. {a -> x, b -> x - h, c -> x + h} // Simplify which gives (16 h^5)/15 
Posted 9 years ago
 Thanks a lot Mr Nasserits nice to see this approach but unfortunately, i'm not able to solve my problem with this.Regards