1 Introduction

Nonlocal boundary value problems for linear and nonlinear ordinary differential equations are arising in the theory of mathematical physics and some engineering applications [13]. They have attracted much attention and lots of interesting observations have been given [47]. The existence and approximation of solutions are very important in order to understand various phenomena in physics, engineering, and so on [8]. Here we generally consider the following nonlinear second-order ordinary differential equation:

$$ \varphi''(x)+\psi\bigl(x,\varphi(x)\bigr)=g(x),\quad x \in [a,b ], $$
(1)

where \(\psi(x,\varphi(x))\) and \(g(x)\) are known, and \(\varphi(x)\) is the unknown to be computed. The nonlinear ordinary differential equation (1) can be understood as the case that a linear problem is imposed upon a nonlinear loading \(\psi(x,\varphi(x))\). Moreover, the three-point boundary value condition is equipped and it is assumed to be one of the following four cases:

$$\begin{aligned} \mathrm{I}\mbox{:}&\quad \varphi(a)=\alpha,\qquad \varphi(b)+k\varphi(\xi )=\beta, \quad \xi\in (a,b ), \end{aligned}$$
(2)
$$\begin{aligned} \mathrm{II}\mbox{:}&\quad \varphi(a)+k\varphi(\xi)=\alpha,\qquad \varphi (b)=\beta, \quad \xi\in (a,b ), \end{aligned}$$
(3)
$$\begin{aligned} \mathrm{III}\mbox{:}&\quad \varphi(a)=\alpha,\qquad \varphi(b)+k\varphi '(\xi)=\beta,\quad \xi\in (a,b ), \end{aligned}$$
(4)
$$\begin{aligned} \mathrm{IV}\mbox{:}&\quad \varphi(a)+k\varphi'(\xi)=\alpha,\qquad \varphi (b)=\beta,\quad \xi\in (a,b ), \end{aligned}$$
(5)

where α, β, ξ, and k are the known constants. It is found that II and IV can be reformulated by using the variable transformation \(u(x)=a+b-x\) from I and III, respectively. That is, under the assumption of \(\bar{\varphi}(u)=\varphi(a+b-u)=\varphi(x)\), one has

$$ \mathrm{II}'\mbox{:}\quad \bar{\varphi}(a)+k\bar{\varphi}(\eta)= \beta ,\qquad \bar{\varphi}(b)=\alpha,\quad \eta=a+b-\xi\in (a,b ), $$
(6)

by using case I, and

$$ \mathrm{IV}'\mbox{:}\quad \bar{\varphi}(a)-k\bar{ \varphi}'(\eta)=\beta ,\qquad \bar{\varphi}(b)=\alpha, \quad \eta=a+b-\xi\in (a,b ), $$
(7)

from case III. Since the constants α, β, ξ, and k are arbitrary, the cases of I and III will be considered mainly in the following sections. When \(k=0\), the three-point boundary value problems degenerate to two-point boundary value problems.

It is noted that when \(g(x)=0\), the existence of solutions for equation (1) with various boundary value conditions has been studied widely. For example, the method of lower and upper solutions is developed by Ma [9] and the multiplicity solutions for a three-point boundary value problem at resonance were given. Xu [10, 11] considered the singular three-point and m-point boundary value problems, respectively. The multiplicity results and existence of positive solutions were analyzed by using a fixed point index theory. Yao [12] investigated the existence of positive solutions for a second-order three-point boundary value problem and a successive iteration method was given for computing the solutions. Nieto [13] studied the existence of solution for a second-order nonlinear ordinary differential equation with three-point boundary value conditions at resonance. In addition, the problems of nonlinear second-order ordinary differential equations with m-point and integral boundary value conditions were further investigated in [1419] and so on. On the other hand, when \(\psi(x,\varphi(x))=a(x)F(x,\varphi(x))\) and \(\psi (x,\varphi(x))\) degenerates to \(a(x)\psi(\varphi(x))\), the multipoint boundary value problems of nonlinear second-order ordinary differential equations were dealt with in [2027]. Recently, the special linear case of \(\psi(x,\varphi(x))=q(x)\varphi(x)\) has been studied in [28] and an approximate solution has been given. The case of \(g(x)=0\) in equation (1) with impulse three-point boundary value conditions have been studied in [29], where the existence conditions for obtaining a nontrivial solution have been given.

As shown in the above-mentioned work, the existence of the solutions for second-order multipoint boundary value problems is always focused on. Moreover, the approximate solutions of boundary value problems are very important in engineering applications. A monotone iterative technique was developed for the approximate solution of a second-order three-point boundary value problem in [30]. This paper generally focuses on the nonlinear second-order ordinary differential equation with four cases of three-point boundary value conditions in (1)-(5). A general method is proposed to transform the nonlinear three-point boundary value problems into nonlinear Hammerstein integral equations. The existence and uniqueness of solutions for the obtained Hammerstein integral equations are considered by using the Schauder fixed point theorem and the contraction mapping theorem, respectively. A new numerical method is further proposed to construct the approximate solutions of Hammerstein integral equations. Some numerical examples are computed to show the effectiveness of the proposed methods.

2 Hammerstein integral equations

In this section, we will transform the nonlinear second-order ordinary differential equation (1) with three-point boundary value conditions in (2)-(5) into Hammerstein integral equations. Then the existence and uniqueness of solutions for the obtained Hammerstein integral equations will be investigated.

2.1 Transformations

In the following, we apply the integration method to get the following four theorems.

Theorem 1

When \((b-a)+k(\xi-a)\neq0\), the three-point boundary value problem

$$ \left \{ \textstyle\begin{array}{l} \varphi''(x)+\psi(x,\varphi(x))=g(x), \quad x\in [a,b ], \\ \varphi(a)=\alpha,\qquad \varphi(b)+k\varphi(\xi)=\beta,\quad \xi\in (a,b ), \end{array}\displaystyle \right . $$
(8)

can be transformed into the Hammerstein integral equation as follows:

$$ \varphi(x)+ \int_{a}^{b}K_{1}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt=f_{1}(x), $$
(9)

where

$$\begin{aligned}& K_{1}(x,t)=\left \{ \textstyle\begin{array}{l@{\quad}l} \frac{(a-t) [(b-x)+k(\xi-x) ]}{(b-a)+k(\xi -a)}, & a\leq t\leq\min\{x,\xi\}\leq b, \\ \frac{(a-x)(b-t)}{(b-a)+k(\xi-a)},& a\leq\max\{ x,\xi\}\leq t\leq b, \\ \frac{(a-t)(b-x)+k(\xi-a)(x-t)}{(b-a)+k(\xi-a)},&a\leq\xi\leq t\leq x\leq b, \\ \frac{(a-x) [(b-t)+k(\xi-t) ]}{(b-a)+k(\xi -a)},& a\leq x\leq t\leq\xi\leq b, \end{array}\displaystyle \right . \\ & f_{1}(x)= \int_{a}^{b}K_{1}(x,t)g(t)\,dt+ \frac{(b-x)+k(\xi-x)}{(b-a)+k(\xi -a)}\alpha+\frac{(x-a)}{(b-a)+k(\xi-a)}\beta. \end{aligned}$$

Proof

By integrating twice, from a to x, both sides of the differential equation in (8) with respect to x, one gets

$$ \varphi(x)+ \int_{a}^{x}(x-t)\psi\bigl(t,\varphi(t)\bigr)\,dt= \int _{a}^{x}(x-t)g(t)\,dt+\varphi'(a) (x-a)+\varphi(a). $$
(10)

Then the unknowns \(\varphi'(a)\) and \(\varphi(a)\) in (10) will be determined by using the boundary value conditions in (8), respectively. By setting \(x=b\) in (10) one obtains

$$ \varphi'(a)=\frac{1}{b-a} \biggl[\varphi(b)-\varphi(a)+ \int _{a}^{b}(b-t)\psi\bigl(t,\varphi(t)\bigr)\,dt- \int_{a}^{b}(b-t)g(t)\,dt \biggr]. $$
(11)

Applying (11) to (10), it follows that

$$\begin{aligned} \begin{aligned}[b] &\varphi(x)+ \int_{a}^{x}(x-t)\psi\bigl(t,\varphi(t)\bigr)\,dt- \int_{a}^{b}\frac {(x-a)(b-t)}{(b-a)}\psi\bigl(t,\varphi(t) \bigr)\,dt \\ &\quad = \int_{a}^{x}(x-t)g(t)\,dt- \int_{a}^{b}\frac{(x-a)(b-t)}{(b-a)}g(t)\,dt+ \frac {b-x}{b-a}\varphi(a)+\frac{x-a}{b-a}\varphi(b). \end{aligned} \end{aligned}$$
(12)

Now we let \(x=\xi\) in (10) and obtain

$$\begin{aligned}& \varphi(x)+ \int_{a}^{x}(x-t)\psi\bigl(t,\varphi(t)\bigr)\,dt- \int_{a}^{\xi}\frac {(x-a)(\xi-t)}{(\xi-a)}\psi\bigl(t,\varphi(t) \bigr)\,dt \\& \quad = \int_{a}^{x}(x-t)g(t)\,dt- \int_{a}^{\xi}\frac{(x-a)(\xi-t)}{(\xi -a)}g(t)\,dt+ \frac{\xi-x}{\xi-a}\varphi(a)+\frac{x-a}{\xi-a}\varphi(\xi). \end{aligned}$$
(13)

In virtue of (8), (12), and (13), it gives

$$\begin{aligned}& \varphi(x)+ \int_{a}^{x}(x-t)\psi\bigl(t,\varphi(t)\bigr)\,dt- \int_{a}^{b}\frac {(x-a)(b-t)}{(b-a)+ k(\xi-a)}\psi\bigl(t,\varphi(t) \bigr)\,dt \\& \qquad {}- \int_{a}^{\xi}\frac{k(x-a)(\xi-t)}{(b-a)+k(\xi-a)}\psi\bigl(t,\varphi (t) \bigr)\,dt \\& \quad = \frac{(b-x)+k(\xi-x)}{(b-a)+k(\xi-a)}\alpha+\frac{(x-a)}{(b-a)+k(\xi -a)}\beta+ \int_{a}^{x}(x-t)g(t)\,dt \\& \qquad {} - \int_{a}^{b}\frac{(x-a)(b-t)}{(b-a)+k(\xi-a)}g(t)\,dt- \int_{a}^{\xi}\frac{k(x-a)(\xi-t)}{(b-a)+k(\xi-a)}g(t)\,dt. \end{aligned}$$
(14)

Since the right side of equation (14) is a function with respect to x, we let

$$\begin{aligned} f_{1}(x) =&\frac{(b-x)+k(\xi-x)}{(b-a)+k(\xi-a)}\alpha+\frac {(x-a)}{(b-a)+k(\xi-a)}\beta+ \int_{a}^{x}(x-t)g(t)\,dt \\ &{}- \int_{a}^{b}\frac{(x-a)(b-t)}{(b-a)+k(\xi-a)}g(t)\,dt- \int_{a}^{\xi}\frac{k(x-a)(\xi-t)}{(b-a)+k(\xi-a)}g(t)\,dt. \end{aligned}$$
(15)

After some computations, one verifies that (14) and (15) can be rewritten as indicated in (9). □

Furthermore, one can obtain the following theorem and the proof has been omitted for saving space.

Theorem 2

Under the condition of \((b-a)+k(\xi-a)\neq0\), the three-point boundary value problem

$$ \left \{ \textstyle\begin{array}{l} \varphi''(x)+\psi(x,\varphi(x))=g(x), \quad x\in [a,b ], \\ \varphi(a)+k\varphi(\xi)=\alpha,\qquad \varphi(b)=\beta,\quad \xi\in (a,b ), \end{array}\displaystyle \right . $$
(16)

is equivalent to the following Hammerstein integral equation:

$$ \varphi(x)+ \int_{a}^{b}K_{2}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt=f_{2}(x), $$
(17)

where

$$\begin{aligned}& K_{2}(x,t)=\left \{ \textstyle\begin{array}{l@{\quad}l} \frac{(x-b)(t-a)}{(b-a)+k(b-\xi)},& a\leq t\leq\min\{x,\xi\}\leq b, \\ \frac{(t-b) [(x-a)+k(x-\xi) ]}{(b-a)+k(b-\xi )}, &a\leq\max\{x,\xi\}\leq t\leq b, \\ \frac{(x-b) [(t-a)+k(t-\xi) ]}{(b-a)+k(b-\xi )}, &a\leq\xi\leq t\leq x\leq b, \\ \frac{(x-a)(t-b)+k(b-\xi)(t-x)}{(b-a)+k(b-\xi)},&a\leq x\leq t\leq\xi\leq b, \end{array}\displaystyle \right . \\& f_{2}(x)= \int_{a}^{b}K_{2}(x,t)g(t)\,dt+ \frac{(b-x)}{(b-a)+k(b-\xi)}\alpha +\frac{(x-a)+k(x-\xi)}{(b-a)+k(b-\xi)}\beta. \end{aligned}$$

In the following, by considering the boundary value conditions in the cases of III and IV, we give Theorems 3 and 4, respectively.

Theorem 3

In virtue of \(k+(b-a)\neq0\), the ordinary differential equation with three-point boundary value conditions

$$ \left \{ \textstyle\begin{array}{l} \varphi''(x)+\psi(x,\varphi(x))=g(x),\quad x\in [a,b ], \\ \varphi(a)=\alpha,\qquad \varphi(b)+k\varphi'(\xi)=\beta,\quad \xi\in (a,b ), \end{array}\displaystyle \right . $$
(18)

can be changed to the Hammerstein integral equation. That is, one has

$$ \varphi(x)+ \int_{a}^{b}K_{3}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt=f_{3}(x), $$
(19)

where

$$\begin{aligned}& K_{3}(x,t)=\left \{ \textstyle\begin{array}{l@{\quad}l} \frac{(a-t) [k+(b-x) ]}{k+(b-a)},& a\leq t\leq\min\{x,\xi\}\leq b, \\ \frac{(a-x)(b-t)}{k+(b-a)},& a\leq\max\{x,\xi\} \leq t\leq b, \\ \frac{(a-t)(b-x)+k(x-t)}{k+(b-a)}, &a\leq\xi \leq t\leq x\leq b, \\ \frac{(a-x) [k+(b-t) ]}{k+(b-a)},& a\leq x\leq t\leq\xi\leq b, \end{array}\displaystyle \right . \\& f_{3}(x)= \int_{a}^{b}K_{3}(x,t)g(t)\,dt+ \frac{(k+b-x)}{k+(b-a)}\alpha+\frac {(x-a)}{k+(b-a)}\beta. \end{aligned}$$

Proof

Performing the integration procedures similar to those in Theorems 1 and 2, we obtain

$$ \varphi(x)+ \int_{\xi}^{x}(x-t)\psi\bigl(t,\varphi(t)\bigr)\,dt= \int_{\xi }^{x}(x-t)g(t)\,dt+\varphi'(\xi) (x-\xi)+\varphi(\xi). $$
(20)

It is assumed that \(x=a\) in (20) and one arrives at

$$ \varphi(\xi)=\varphi(a)+ \int_{\xi}^{a}(a-t)\psi\bigl(t,\varphi(t)\bigr)\,dt- \int _{\xi}^{a}(a-t)g(t)\,dt-\varphi'(\xi) (a-\xi). $$
(21)

Insertion of (21) into (20) yields

$$\begin{aligned}& \varphi(x)+ \int_{\xi}^{x}(x-t)\psi\bigl(t,\varphi(t)\bigr)\,dt+ \int_{a}^{\xi }(a-t)\psi\bigl(t,\varphi(t)\bigr)\,dt \\& \quad = \int_{\xi}^{x}(x-t)g(t)\,dt+ \int_{a}^{\xi}(a-t)g(t)\,dt+\varphi'(\xi ) (x-a)+\varphi(a). \end{aligned}$$
(22)

With the knowledge of \(\varphi(b)\) in (12), and using the boundary value conditions in (18), one further has

$$\begin{aligned}& \varphi(x) + \int_{a}^{x}\frac{(b-a)(x-t)}{k+(b-a)}\psi\bigl(t,\varphi (t) \bigr)\,dt- \int_{a}^{b}\frac{(x-a)(b-t)}{k+(b-a)}\psi\bigl(t,\varphi (t) \bigr)\,dt \\& \qquad {}+ \int_{\xi}^{x}\frac{k(x-t)}{k+(b-a)}\psi\bigl(t,\varphi(t) \bigr)\,dt+ \int _{a}^{\xi}\frac{k(a-t)}{k+(b-a)}\psi\bigl(t,\varphi(t) \bigr)\,dt \\& \quad = \int_{a}^{x}\frac{(b-a)(x-t)}{k+(b-a)}g(t)\,dt- \int_{a}^{b}\frac {(x-a)(b-t)}{k+(b-a)}g(t)\,dt \\& \qquad {} + \int_{\xi}^{x}\frac{k(x-t)}{k+(b-a)}g(t)\,dt+ \int_{a}^{\xi}\frac {k(a-t)}{k+(b-a)}g(t)\,dt \\& \qquad {} +\frac{(k+b-x)}{k+(b-a)}\alpha+\frac{(x-a)}{k+(b-a)}\beta. \end{aligned}$$
(23)

The proof is completed by rewriting (23) as (19). □

Theorem 4

If \((b-a)-k\neq0\), the following boundary value problem:

$$ \left \{ \textstyle\begin{array}{l} \varphi''(x)+\psi(x,\varphi(x))=g(x),\quad x\in [a,b ], \\ \varphi(a)+k\varphi'(\xi)=\alpha,\qquad \varphi(b)=\beta, \quad \xi\in (a,b ), \end{array}\displaystyle \right . $$
(24)

is equivalent to the Hammerstein integral equation as follows:

$$ \varphi(x)+ \int_{a}^{b}K_{4}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt=f_{4}(x), $$
(25)

where

$$\begin{aligned}& K_{4}(x,t)=\left \{ \textstyle\begin{array}{l@{\quad}l} \frac{(x-b)(t-a)}{(b-a)-k},& a\leq t\leq\min \{x,\xi\}\leq b, \\ \frac{(t-b) [(x-a)-k ]}{(b-a)-k}, &a\leq \max\{x,\xi\}\leq t\leq b, \\ \frac{(x-b) [(t-a)-k ]}{(b-a)-k},& a\leq \xi\leq t\leq x\leq b, \\ \frac{(x-a)(t-b)+k(x-t)}{(b-a)-k}, &a\leq x\leq t\leq\xi\leq b, \end{array}\displaystyle \right . \\& f_{4}(x)= \int_{a}^{b}K_{4}(x,t)g(t)\,dt+ \frac{(b-x)}{(b-a)-k}\alpha+\frac {(x-a-k)}{(b-a)-k}\beta. \end{aligned}$$

The proof can be completed similar to that of Theorem 3.

It is seen from Theorems 1-4 that the nonlinear second-order three-point boundary value problems have been transformed into Hammerstein integral equations. We remark that the integration method is uniform and enough to transform any nonlocal boundary value problem of ordinary differential equations into an integral equation [19, 31]. In the end, as a check, we consider the special case of \(g(x)=\alpha=\beta=0\) and obtain the boundary value problems as those in [32]. Based on Theorems 1-4, the solutions and Green’s functions of the nonlinear three-point boundary value problems in [32] can be determined easily.

2.2 Existence and uniqueness of solution

For a nonlinear equation, the fixed point theorems are always used to address the existence and uniqueness of solutions [3335]. Here since the considered three-point boundary value problems have been transformed into the Hammerstein integral equations, it is natural to study the existence and uniqueness of solutions for the obtained Hammerstein integral equations. Moreover, it is seen that the existence and uniqueness of solutions for Hammerstein integral equations have been investigated widely such as those in the book [36] and the recent results on \(\mathbf{L}_{1}\) spaces [37]. In the present paper, for the obtained Hammerstein integral equations, we will use the Schauder fixed point theorem to address the existence of the solutions, and apply the Banach fixed point theorem to investigate the uniqueness of the solutions. The obtained results are related to the considered nonlinear boundary value problems of ordinary differential equations.

Now it is convenient to rewrite equations (9), (17), (19), and (25) in the following general form, namely:

$$ \varphi(x)+ \int_{a}^{b}K_{i}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt= \int _{a}^{b}K_{i}(x,t)g(t)\,dt+ \rho_{i}(x), $$
(26)

where \(\rho_{i}(x)\) (\(i=1,2,3,4\)) are the linear functions with respect to x. It is easy to see that \(K_{i}(x,t)\) and \(\rho_{i}(x)\) are continuous on \([a,b;a,b]\) and \([a,b]\), respectively. Furthermore, we assume that

$$A_{i}=\max_{a\le x,t\le b}\bigl\vert K_{i}(x,t) \bigr\vert , \qquad D_{i}=\max_{a\le x\le b}\bigl\vert \rho_{i}(x)\bigr\vert . $$

Based on the Schauder fixed point theorem, we first give the following theorem to address the existence of the solutions in (26).

Theorem 5

It is assumed that \(S=\{\varphi|\varphi\in\mathbf{L}_{2}[a,b],\|\varphi \|\le M\}\). \(\forall\varphi\in S\), one has

$$\int_{a}^{b}\bigl\vert \psi\bigl(t,\varphi(t) \bigr)-g(t)\bigr\vert ^{2} \,dt\le B^{2}. $$

\(\forall\varepsilon>0\), \(\varphi_{1},\varphi_{2}\in S\), \(\exists\delta (\varepsilon)>0\), when \(\|\varphi_{1}-\varphi_{2}\|<\delta(\varepsilon)\), it gives

$$\int_{a}^{b}\bigl\vert \psi\bigl(t, \varphi_{1}(t)\bigr)-\psi\bigl(t,\varphi_{2}(t)\bigr)\bigr\vert ^{2}\,dt< \varepsilon^{2}. $$

If \(A_{i}B(b-a)+D_{i}\sqrt{b-a}< M\), the nonlinear integral equation (26) at least has a solution in S.

Proof

Obviously S is a closed convex set. For convenience, we define the integral operator T from \(\mathbf{L}_{2}[a,b]\) to \(\mathbf {L}_{2}[a,b]\) such that

$$\varphi= \int_{a}^{b}K_{i}(x,t)\bigl[g(t)-\psi \bigl(t,\varphi(t)\bigr)\bigr]\,dt+\rho_{i}=\mathbf {T}\varphi. $$

First, one can see that T is a mapping from S to S. In fact, for \(\|\varphi\|\le M\), we have

$$\begin{aligned} \begin{aligned} \bigl\vert \mathbf{T}\varphi(x)\bigr\vert &=\biggl\vert \int_{a}^{b}K_{i}(x,t)\bigl[g(t)-\psi \bigl(t,\varphi (t)\bigr)\bigr]\,dt+\rho_{i}(x)\biggr\vert \\ &\le \int_{a}^{b}\bigl\vert K_{i}(x,t)\bigr\vert \cdot\bigl\vert g(t)-\psi\bigl(t,\varphi(t)\bigr) \bigr\vert \,dt+ \bigl\vert \rho_{i}(x)\bigr\vert \\ &\le A_{i} \int_{a}^{b}\bigl\vert g(t)-\psi\bigl(t,\varphi(t) \bigr)\bigr\vert \,dt+D_{i} \\ &\le A_{i}\biggl[ \int_{a}^{b}\bigl\vert g(t)-\psi\bigl(t,\varphi(t) \bigr)\bigr\vert ^{2}\,dt\cdot \int_{a}^{b}1^{2}\,dt\biggr]^{\frac{1}{2}}+D_{i} \\ &\le A_{i}B\sqrt{b-a}+D_{i}< \frac{M}{\sqrt{b-a}}, \end{aligned} \end{aligned}$$

then

$$\|\mathbf{T}\varphi\|= \biggl( \int_{a}^{b}\bigl\vert \mathbf{T}\varphi (x)\bigr\vert ^{2}\,dx \biggr)^{1/2}< M. $$

Second, we prove that T is continuous. \(\forall\varepsilon >0\), \(\varphi_{1},\varphi_{2}\in S\), \(\exists\delta(\varepsilon)>0\), such that when \(\|\varphi_{1}-\varphi_{2}\|<\delta(\varepsilon)\), it follows that

$$\begin{aligned} |\mathbf{T}\varphi_{1}-\mathbf{T}\varphi_{2}| =&\biggl\vert \int _{a}^{b}K_{i}(x,t)\bigl[\psi\bigl(t, \varphi_{1}(t)\bigr)-\psi\bigl(t,\varphi_{2}(t)\bigr)\bigr] \,dt\biggr\vert \\ \le&A_{i} \biggl[ \int_{a}^{b}\bigl\vert \psi\bigl(t, \varphi_{1}(t)\bigr)-\psi\bigl(t,\varphi _{2}(t)\bigr)\bigr\vert ^{2}\,dt\cdot \int_{a}^{b}1^{2}\,dt \biggr]^{\frac{1}{2}} \\ \le&(A_{i}\sqrt{b-a})\varepsilon \end{aligned}$$

and

$$\|\mathbf{T}\varphi_{1}-\mathbf{T}\varphi_{2}\|= \biggl( \int_{a}^{b}\bigl\vert \mathbf {T} \varphi_{1}(x)-\mathbf{T}\varphi_{2}(x)\bigr\vert ^{2}\,dx \biggr)^{1/2}\le A_{i}(b-a)\varepsilon. $$

In the end, let us prove that \(\mathbf{T}(S)\) is relatively compact. Since \(K_{i}(x,t)\) and \(\rho_{i}(x)\) are continuous on \([a,b;a,b]\) and \([a,b]\), respectively, they are uniformly continuous. Consequently, \(\forall\varepsilon>0\), \(\varphi\in S\), \(\exists\eta(\varepsilon)>0\), for \(|x_{1}-x_{2}|<\eta(\varepsilon)\), one has

$$\begin{aligned}& \bigl\vert \mathbf{T}\varphi(x_{1})-\mathbf{T}\varphi(x_{2}) \bigr\vert \\& \quad = \biggl\vert \int_{a}^{b}\bigl[K_{i}(x_{1},t)-K_{i}(x_{2},t) \bigr]\cdot\bigl[g(t)-\psi\bigl(t,\varphi (t)\bigr)\bigr]\,dt+\bigl[ \rho_{i}(x_{1})-\rho_{i}(x_{2})\bigr] \biggr\vert \\& \quad \le \biggl[ \int_{a}^{b}\bigl\vert K_{i}(x_{1},t)-K_{i}(x_{2},t) \bigr\vert ^{2}\,dt\cdot \int_{a}^{b} \bigl\vert g(t)-\psi\bigl(t,\varphi(t) \bigr)\bigr\vert ^{2}\,dt\biggr]^{\frac{1}{2}}+\bigl\vert \rho_{i}(x_{1})-\rho _{i}(x_{2})\bigr\vert \\& \quad < (B\sqrt{b-a}+1)\varepsilon. \end{aligned}$$

It is seen that \(\mathbf{T}(S)\) is uniformly bounded and equicontinuous. According to Ascoli-Arzela theorem [38], \(\{ \mathbf{T}\varphi(x)\}\) has a subsequence with uniform convergence, so \(\mathbf{T}(S)\) is relatively compact.

By using the Schauder fixed point theorem, there exists at least a point \(\varphi\in S\) such that \(\mathbf{T}\varphi=\varphi\). □

In addition, we can change some conditions in Theorem 5 to obtain the following corollary.

Corollary 1

Let \(S=\{\varphi|\varphi\in\mathbf{L}_{2}[a,b],\|\varphi\|\le M\}\), and

$$E=\max_{a\le x\le b}\max_{u\in S}\bigl\vert \psi(x,u) \bigr\vert ,\qquad F=\max_{a\le x\le b}\bigl\vert g(x)\bigr\vert . $$

\(\forall\varepsilon>0\), \(\varphi_{1},\varphi_{2}\in S\), \(\exists\delta (\varepsilon)>0\), when \(\|\varphi_{1}-\varphi_{2}\|<\delta(\varepsilon)\), one has

$$\int_{a}^{b}\bigl\vert \psi\bigl(t, \varphi_{1}(t)\bigr)-\psi\bigl(t,\varphi_{2}(t)\bigr)\bigr\vert \,dt< \varepsilon. $$

If \(A_{i}(E+F)(b-a)+D_{i}<\frac{M}{\sqrt{b-a}}\), the nonlinear integral equation (26) at least has a solution in S.

Furthermore, strengthening the conditions of the nonlinear term \(\psi (x,\varphi(x))\), we have the uniqueness theorem of solution in Banach spaces.

Theorem 6

Suppose that \(g(x)\in\mathbf{L}_{2}[a,b]\), and \(\psi(x,\varphi(x))\) satisfies the following Lipschitz condition:

$$\bigl\Vert \psi\bigl(x,\varphi_{1}(x)\bigr)-\psi\bigl(x, \varphi_{2}(x)\bigr)\bigr\Vert \le L\bigl\Vert \varphi _{1}(x)-\varphi_{2}(x)\bigr\Vert , $$

with the Lipschitz constant \(L>0\). Moreover, one has the constraint conditions as

$$\begin{aligned}& \biggl\Vert \int_{a}^{b}K_{i}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt \biggr\Vert \le N\|\varphi\|, \\& \int_{a}^{b} \int_{a}^{b}K_{i}^{2}(x,t)\,dx \,dt=C_{i}^{2}< +\infty, \end{aligned}$$

where N and \(C_{i}\) are positive constants. When \(LC_{i}<1\), the nonlinear integral equation (26) has a unique solution in \(\mathbf{L}_{2}[a,b]\).

Proof

Since \(g(x)\in\mathbf{L}_{2}[a,b]\), we can easily get \(f_{i}(x)\in\mathbf {L}_{2}[a,b]\). The kernel \(K_{i}(x,t)\) is a polynomial function with respect to x and t, so \(K_{i}(x,t)\in\mathbf{L}_{2}[a,b;a,b]\). Assume that T is an operator form \(\mathbf{L}_{2}[a,b]\) to \(\mathbf{L}_{2}[a,b]\), and \(\mathbf{T}\varphi=f_{i}-\boldsymbol{\kappa}_{i}\varphi \), where

$${\boldsymbol{\kappa}_{i}}\varphi(x)= \int_{a}^{b}K_{i}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt. $$

By using

$$\biggl\Vert \int_{a}^{b}K_{i}(x,t)\psi\bigl(t, \varphi(t)\bigr)\,dt \biggr\Vert \le N\| \varphi\|, $$

it is seen that \({\boldsymbol{\kappa}_{i}}\) is a bounded operator form \(\mathbf{L}_{2}[a,b]\) to \(\mathbf{L}_{2}[a,b]\). \(\forall\varphi_{1},\varphi_{2}\in\mathbf{L}_{2}[a,b]\), we further have

$$\begin{aligned} \vert {\boldsymbol{\kappa}_{i}}\varphi_{1}-{\boldsymbol{ \kappa}_{i}}\varphi _{2}\vert =&\biggl\vert \int_{a}^{b}K_{i}(x,t)\psi\bigl(t, \varphi_{1}(t)\bigr)\,dt- \int _{a}^{b}K_{i}(x,t)\psi\bigl(t, \varphi_{2}(t)\bigr)\,dt\biggr\vert \\ \le& \int_{a}^{b}\bigl\vert K_{i}(x,t)\bigr\vert \cdot\bigl\vert \psi\bigl(t,\varphi_{1}(t)\bigr)-\psi\bigl(t, \varphi _{2}(t)\bigr)\bigr\vert \,dt \\ \le&\biggl( \int_{a}^{b}\bigl\vert K_{i}(x,t)\bigr\vert ^{2}\,dt\biggr)^{\frac{1}{2}}\bigl\Vert \psi \bigl(t, \varphi_{1}(t)\bigr)-\psi\bigl(t,\varphi_{2}(t)\bigr)\bigr\Vert \\ \le&L\biggl( \int_{a}^{b}\bigl\vert K_{i}(x,t)\bigr\vert ^{2}\,dt\biggr)^{\frac{1}{2}}\bigl\Vert \varphi_{1}(t)- \varphi_{2}(t)\bigr\Vert . \end{aligned}$$

Then it gives

$$\|{\boldsymbol{\kappa}_{i}}\varphi_{1}-{\boldsymbol{ \kappa}_{i}}\varphi _{2}\|\le L \biggl( \int_{a}^{b} \int_{a}^{b}\bigl\vert K_{i}(x,t)\bigr\vert ^{2}\,dt\,dx \biggr)^{\frac{1}{2}}\| \varphi_{1}- \varphi_{2}\|= LC_{i}\|\varphi_{1}- \varphi_{2}\| $$

and

$$\|\mathbf{T}\varphi_{1}-\mathbf{T}\varphi_{2}\|=\|{ \boldsymbol{\kappa}_{i}}\varphi_{1}-{\boldsymbol{ \kappa}_{i}}\varphi_{2}\|\le LC_{i}\|\varphi _{1}-\varphi_{2}\|. $$

When \(LC_{i}<1\), T is a contraction operator. According to the fixed point theorem in Banach spaces, one can see that \(\mathbf{T}\varphi=\varphi\) has a unique solution in \(\mathbf{L}_{2}[a,b]\). □

3 Approximation of the solution

In practical applications, of much interest is how to obtain the solutions except for the existence of the solutions. However, the closed-form solutions of the Hammerstein integral equations in (9), (17), (19), and (25) cannot be determined easily due to the complexity of the kernels. Thus it is interesting to obtain numerical solutions of Hammerstein integral equations and many methods have been proposed [8, 3946]. Moreover, it is noted that a simple Taylor-series expansion method has been proposed in [47] and modified in [48, 49] for numerically solving linear Fredholm integral equations of the second kind. Recently, by using the idea of piecewise approximation, the simple Taylor-series expansion method has been further modified in [28]. Here the proposed method in [28] is further extended and applied to solve the nonlinear integral equation of Hammerstein type. The convergence and error estimate of the approximate solution will be made. Moreover, it is seen from Theorems 5 and 6 that a solution in \(\mathbf{L}^{2}[a,b]\) is only determined by using the given conditions. Based on the proposed numerical method, the solution \(\varphi(x)\) should have more smoothing property and here it is assumed \(\varphi(x)\in\mathbf{C}^{n+1}[a,b]\) (\(n\geq0\)). Indeed, the case of \(\varphi(x)\in\mathbf{C}^{n+1}[a,b]\) (\(n\geq0\)) is important in practical applications. Two examples will be given in Section 4 to verify the extended numerical method by comparing a difference format.

3.1 Constructing the approximate solution

Generally, we write the Hammerstein integral equation as

$$ \varphi(x)+ \int_{a}^{b}K(x,t)\psi\bigl(t,\varphi(t)\bigr) \,dt=f(x),\quad x\in [a, b ], $$
(27)

where \(K(x,t)\) and \(f(x)\) are known functions. It is convenient to define the integral operator κ as

$$ (\boldsymbol{\kappa}\varphi) (x)= \int_{a}^{b}K(x,t)\psi\bigl(t,\varphi (t)\bigr)\,dt, \quad x\in [a, b ], $$
(28)

and it is compact from \(C^{(n+1)}[a,b]\) into \(C^{(n+1)}[a,b]\) for \(K(x,t)\in C^{(n+1)}[a,b; a,b]\).

Similar to those in [28], we choose a series of quadrature points as \(a=x_{0}< x_{1}<\cdots< x_{m}=b\) for \(m\geq1\). The integral operator κ can be further expressed as the following sum:

$$ (\boldsymbol{\kappa}\varphi) (x)=\sum_{q=0}^{m-1} \int _{x_{q}}^{x_{q+1}}K(x,t)\psi\bigl(t,\varphi(t)\bigr) \,dt. $$
(29)

For the simplified case, the equidistant quadrature points are always chosen as

$$ x_{q}=a+qh, \quad q=0,1,\ldots,m, h=\frac{b-a}{m}. $$
(30)

By letting \(t=x_{q}+hs\), equation (29) is reexpressed as

$$ (\boldsymbol{\kappa}\varphi) (x)=h\sum_{q=0}^{m-1} \int_{0}^{1}K(x,x_{q}+hs)\psi \bigl(x_{q}+hs,\varphi(x_{q}+hs)\bigr)\,ds. $$
(31)

Now it is assumed that \(\psi(x_{q}+hs,\varphi(x_{q}+hs))\) can be expanded as the following Taylor series:

$$\begin{aligned} \psi\bigl(x_{q}+hs,\varphi(x_{q}+hs)\bigr) =&\psi \bigl(x_{q},\varphi(x_{q})\bigr)+(hs)\cdot\frac {d\psi(y,\varphi(y))}{dy} \bigg|_{y=x_{q}}+\cdots \\ &{}+\frac{(hs)^{n}}{n!}\cdot\frac{d^{n}\psi(y,\varphi(y))}{dy^{n}} \bigg|_{y=x_{q}}+R_{n}( \theta_{q},h,s), \end{aligned}$$
(32)

where \(R_{n}(\theta_{q},h,s)\) denotes the Lagrange remainder,

$$ R_{n}(\theta_{q},h,s)=\frac{(hs)^{n+1}}{(n+1)!}\cdot \frac{d^{n+1}\psi (y,\varphi(y))}{dy^{n+1}}\bigg|_{y=\theta_{q}},\quad x_{q}\leq \theta_{q}\le x_{q}+hs. $$
(33)

By eliminating the Lagrange remainder, the operator \((\boldsymbol{\kappa}\varphi)(x)\) can be approximated by using

$$ (\boldsymbol{\kappa}_{n}\varphi) (x)=h\sum _{q=0}^{m-1}\sum_{j=0}^{n} \frac {h^{j}}{j!}\cdot\frac{d^{j}\psi(y,\varphi(y))}{dy^{j}} \bigg|_{y=x_{q}} \int_{0}^{1}K(x,x_{q}+hs) \cdot{s}^{j}\,ds. $$
(34)

Moreover, we suppose that

$$ (\boldsymbol{\kappa}\varphi)^{(i)}(x)=h\sum _{q=0}^{m-1} \int _{0}^{1}K_{x}^{(i)}(x,x_{q}+hs) \psi\bigl(x_{q}+hs,\varphi(x_{q}+hs)\bigr) \,ds, $$
(35)

where the superscript \((i)\) denotes the ith-order differentiation with respect to x and \((\boldsymbol{\kappa}\varphi)^{(0)}(x)=(\boldsymbol{\kappa}\varphi)(x)\). Making use of (32), \((\boldsymbol{\kappa}\varphi)^{(i)}(x)\) can be approximated by

$$ (\boldsymbol{\kappa}_{n}\varphi)^{(i)}(x)=h\sum _{q=0}^{m-1}\sum_{j=0}^{n} \frac {h^{j}}{j!}\cdot\frac{d^{j}\psi(y,\varphi(y))}{dy^{j}}\bigg|_{y=x_{q}} \int_{0}^{1}K_{x}^{(i)}(x,x_{q}+hs) \cdot{s}^{j}\,ds. $$
(36)

Now we further have the following theorem.

Theorem 7

Assume that one has the following conditions:

$$\begin{aligned}& \bigl\Vert K_{x}^{(i)}(x,t)\bigr\Vert _{\infty}= \max_{a\leq x,t\leq b} \bigl\vert K_{x}^{(i)}(x,t)\bigr\vert =M_{i}< +\infty, \\& \biggl\Vert \frac{d^{n+1}\psi(y,\varphi(y))}{dy^{n+1}}\biggr\Vert _{\infty} =\max _{a\leq y\leq b}\biggl\vert \frac{d^{n+1}\psi(y,\varphi (y))}{dy^{n+1}}\biggr\vert =N_{0}< +\infty, \end{aligned}$$

where \(i=0,1,2,\ldots,n\). The sequence \((\boldsymbol{\kappa}_{n}\varphi )^{(i)}(x)\) is convergent, namely

$$ (\boldsymbol{\kappa}_{n}\varphi)^{(i)}(x)\to(\boldsymbol{ \kappa}\varphi )^{(i)}(x)= \int_{a}^{b}K^{(i)}_{x}(x,t)\psi \bigl(t,\varphi(t)\bigr)\,dt,\quad n\to+\infty. $$
(37)

Proof

Applying equations (35) and (36), we get

$$\begin{aligned}& \bigl\Vert (\boldsymbol{\kappa}_{n}\varphi)^{(i)}(x)-( \boldsymbol{\kappa}\varphi )^{(i)}(x)\bigr\Vert _{\infty} \\& \quad = \Biggl\Vert h\sum_{q=0}^{m-1} \int_{0}^{1}K_{x}^{(i)}(x,x_{q}+hs) \cdot \frac{(hs)^{n+1}}{(n+1)!}\cdot\frac{d^{n+1}\psi(y,\varphi (y))}{dy^{n+1}}\bigg|_{y=\theta_{q}}\,ds\Biggr\Vert _{\infty} \\& \quad \le hmM_{i}N_{0} \int_{0}^{1}\frac{(hs)^{n+1}}{(n+1)!}\,ds= \frac {M_{i}N_{0}(b-a)}{(n+2)!}h^{n+1}. \end{aligned}$$
(38)

From (38) it follows that \(\|(\boldsymbol{\kappa}_{n}\varphi)^{(i)}(x)-(\boldsymbol{\kappa}\varphi )^{(i)}(x)\|_{\infty}\to0\) with \(n\rightarrow+\infty\) and the proof is completed. □

In the end, let us give the approximate solution of Hammerstein integral equations. From equations (34) and (36), the discretization format of the derivatives of the Hammerstein integral equation (27) can be expressed as

$$ \varphi_{l}^{(i)}+h\sum_{q=0}^{m-1} \sum_{j=0}^{n}\frac{h^{j}}{j!}\cdot \frac{d^{j}\psi}{dy^{j}}\bigg|_{(x_{q},\varphi_{q}^{(j)})} \int_{0}^{1}K_{x}^{(i)}(x_{l},x_{q}+hs) \cdot{s}^{j}\,ds=f^{(i)}(x_{l}), $$
(39)

with \(i=0,1,\ldots,n\) and \(l=0,1,\ldots,(m-1)\). Hereafter \(\frac{d^{j} \psi}{d y^{j}}|_{(x_{q},\varphi^{(j)}_{q})}\) means that the variable y equals \(x_{q}\) and the exact value \(\varphi ^{(j)}(x_{q})\) is replaced by the approximate one \(\varphi^{(j)}_{q}\). Once the solution of the nonlinear system (39) is given, the approximate solution of \(\varphi(x)\) can be further constructed as

$$ \varphi_{m,n}(x)=f(x)-h\sum_{q=0}^{m-1} \sum_{j=0}^{n}\frac {h^{j}}{j!}\cdot \frac{d^{j}\psi}{dy^{j}}\bigg|_{(x_{q},\varphi_{q}^{(j)})} \int_{0}^{1}K(x,x_{q}+hs) \cdot{s}^{j}\,ds, $$
(40)

where \(a\le x \le b\).

As shown in [28], one can see from equation (40) that the approximate solution has two parameters. The proposed method is based on the discretization points \(x_{q}\) (\(q=0,1,\ldots, m-1\)), which is different from the simple Taylor-series expansion method in [4749]. The effectiveness and advantage of the new method will be shown in the given numerical examples of Section 4. Furthermore, in order to give the approximate solution in (40), the convergence of the nonlinear system (39) is requisite. Under some conditions, the nonlinear system (39) is convergent and it will be proved in the next subsection about the error estimate of the approximate solution.

On the other hand, it should be pointed out that when the proposed method is applied to solve the Hammerstein integral equations in (9), (17), (19), and (25), the derivatives \(K_{x}^{(i)}(x,t)\) (\(i=1,2,\ldots,n\)) for \(x=t\) in (39) must be dealt with again. The reason is based on the fact that the derivatives \(\partial ^{i}K_{j}(x,t)/ \partial x^{i}\) (\(i=1,2,\ldots,n\); \(j=1,2,3,4\)) for \(x=t\) are not existing. As shown in [50], for the practical computations, it is reasonable to adopt the following method:

$$\begin{aligned} \int_{a}^{b}K_{x}^{(i)}(x,t)\psi \bigl(t,\varphi(t)\bigr)\,dt =& \int _{a}^{x}K_{x}^{(i)}(x,t) \big|_{x>t}\psi\bigl(t,\varphi(t)\bigr)\,dt \\ &{}+ \int_{x}^{b}K_{x}^{(i)}(x,t) \big|_{x< t}\psi\bigl(t,\varphi(t)\bigr)\,dt. \end{aligned}$$
(41)

In addition, we can rewrite equation (26) as

$$ \varphi(x)+ \int_{a}^{b}K_{i}(x,t) \bigl[\psi\bigl(t, \varphi(t)\bigr)-g(t) \bigr]\,dt=\rho_{i}(x), $$
(42)

where \(\rho_{i}(x)\) (\(i=1,2,3,4\)) are the linear functions with respect to x. For generic nonlinear functions \(\psi(t,\varphi(t))\) and \(g(t)\), the proposed numerical methods can be used similarly for equation (42).

3.2 Convergence and error estimate

From the viewpoint of mathematical theory and practical applications, the convergence and error estimate of the approximate solution are all important. For the approximation method, we have the following theorem.

Theorem 8

It is assumed that \(d^{j}\psi(y,\varphi(y))/dy^{j}\) satisfies the Lipschitz conditions as follows:

$$\biggl\Vert \frac{d^{j}\psi(y,\varphi_{1}(y))}{dy^{j}}-\frac{d^{j}\psi (y,\varphi_{2}(y))}{dy^{j}}\biggr\Vert _{\infty} \le\sum_{\nu=0}^{j}L_{\nu}\bigl\Vert \varphi_{1}^{(\nu)}(y)-\varphi_{2}^{(\nu )}(y) \bigr\Vert _{\infty} $$

with the Lipschitz constants \(L_{\nu}>0\) and \(j=0,1,\ldots,n\). One further has the following conditions:

$$\begin{aligned}& \bigl\Vert K_{x}^{(i)}(x,t)\bigr\Vert _{\infty}= \max_{a\leq x,t\leq b} \bigl\vert K_{x}^{(i)}(x,t)\bigr\vert =M_{i}< \frac{1}{\bar{L}(b-a)e^{h}}< +\infty, \\& \biggl\Vert \frac{d^{n+1}\psi(y,\varphi(y))}{dy^{n+1}}\biggr\Vert _{\infty} =\max _{a\leq y\leq b}\biggl\vert \frac{d^{n+1}\psi(y,\varphi (y))}{dy^{n+1}}\biggr\vert =N_{0}< +\infty, \end{aligned}$$

where \(\bar{L}=\max_{\nu=0,1,\ldots,j}L_{v}\) and \(i=0,1,2,\ldots,n\). The approximate solution \(\varphi_{m,n}(x)\) in (40) is convergent to the exact solution \(\varphi(x)\). That is, we get

$$\lim_{n\to+\infty}\bigl\Vert \varphi_{m,n}(x)-\varphi(x) \bigr\Vert _{\infty}=0 $$

and

$$\lim_{h\to0}\bigl\Vert \varphi_{m,n}(x)-\varphi(x) \bigr\Vert _{\infty}=0. $$

Moreover, the following error estimate can be obtained:

$$\bigl\Vert \varphi_{m,n}(x)-\varphi(x)\bigr\Vert _{\infty}\le \frac {M_{0}N_{0}(b-a)h^{n+1}}{[1-\bar{M}\bar{L}(b-a)e^{h}](n+2)!}, $$

where \(\bar{M}=\max_{i=0,1,\ldots,n}M_{i}\).

Proof

Equation (39) can be further rewritten as

$$ \tilde{\varPhi }+W(\tilde{\varPhi })=F, $$
(43)

where

$$\begin{aligned}& \tilde{\varPhi }=\bigl[\varphi^{(j)}_{l}\bigr]_{m(n+1)\times1}= \bigl[\varphi ^{(0)}_{0},\varphi^{(0)}_{1}, \ldots,\varphi^{(n)}_{m-1}\bigr]^{T}, \\& W(\tilde{\varPhi })=\bigl[\tilde{w}_{l}^{(i)}(\tilde{\varPhi }) \bigr]_{m(n+1)\times 1}, \\& F=\bigl[f^{(i)}(x_{l})\bigr]_{m(n+1)\times 1}= \bigl[f^{(0)}(x_{0}),f^{(0)}(x_{1}), \ldots,f^{(n)}(x_{m-1})\bigr]^{T}, \end{aligned}$$

with

$$\tilde{w}_{l}^{(i)}(\tilde{\varPhi })= h\sum _{q=0}^{m-1}\sum_{j=0}^{n} \frac{h^{j}}{j!}\cdot\frac{d^{j}\psi }{dy^{j}}\bigg|_{(x_{q},\varphi_{q}^{(j)})} \int_{0}^{1}K_{x}^{(i)}(x_{l},x_{q}+hs) \cdot{s}^{j}\,ds $$

for \(i=0,1,\ldots,n\) and \(l=0,1,\ldots,(m-1)\).

On the other hand, application of equations (27) and (32) leads to

$$ \varPhi +\bigl[W(\varPhi )+R\bigr]=F, $$
(44)

where

$$\begin{aligned}& \varPhi =\bigl[\varphi^{(j)}(x_{q})\bigr]_{m(n+1)\times1}=\bigl[ \varphi^{(0)}(x_{0}),\varphi ^{(0)}(x_{1}), \ldots,\varphi^{(n)}(x_{m-1})\bigr]^{T}, \\& W(\varPhi )=\bigl[w_{l}^{(i)}(\varPhi )\bigr]_{m(n+1)\times1}, \\& R=[r_{s}]_{m(n+1)\times1}, \end{aligned}$$

with

$$\begin{aligned}& w_{l}^{(i)}(\varPhi )= h\sum_{q=0}^{m-1} \sum_{j=0}^{n}\frac{h^{j}}{j!}\cdot \frac{d^{j}\psi (y,\varphi(y))}{dy^{j}}\bigg|_{y=x_{q}} \int_{0}^{1}K_{x}^{(i)}(x_{l},x_{q}+hs) \cdot{s}^{j}\,ds, \\ & \vert r_{0}\vert \le h\sum_{q=0}^{m-1} \int_{0}^{1}\bigl\vert K(x_{0},x_{q}+hs)R_{n}( \theta _{q},h,s)\bigr\vert \,ds, \\ & \vert r_{1}\vert \le h\sum_{q=0}^{m-1} \int_{0}^{1}\bigl\vert K(x_{1},x_{q}+hs)R_{n}( \theta _{q},h,s)\bigr\vert \,ds, \\ & \ldots, \\ & \vert r_{m(n+1)-1}\vert \le h\sum_{q=0}^{m-1} \int _{0}^{1}\bigl\vert K^{(n)}_{x}(x_{m-1},x_{q}+hs)R_{n}( \theta_{q},h,s)\bigr\vert \,ds. \end{aligned}$$

Then it is further found that

$$\begin{aligned}& \bigl\Vert W(\varPhi )-W(\tilde{\varPhi })\bigr\Vert _{\infty} \\& \quad \le hM_{i}\sum_{q=0}^{m-1} \sum_{j=0}^{n}\frac{h^{j}}{j!}\cdot \int _{0}^{1}{s}^{j}\,ds\cdot \biggl\Vert \frac{d^{j}\psi(y,\varphi(y))}{dy^{j}}\bigg|_{y=x_{q}}-\frac {d^{j}\psi}{dy^{j}} \bigg|_{(x_{q},\varphi_{q}^{(j)})}\biggr\Vert _{\infty } \\& \quad \le h\bar{M}\sum_{q=0}^{m-1}\sum _{j=0}^{n}\frac{h^{j}}{(j+1)!}\cdot \sum _{\nu=0}^{j}L_{\nu}\bigl\Vert \varphi^{(\nu)}(x_{q})-\varphi_{q}^{(\nu )} \bigr\Vert _{\infty} \\& \quad \le h\bar{M}\bar{L}\sum_{q=0}^{m-1} \sum_{j=0}^{+\infty}\frac {h^{j}}{j!}\cdot \Vert \varPhi -\tilde{\varPhi }\Vert _{\infty} \le\bar{M}\bar{L}(b-a)e^{h} \cdot \Vert \varPhi -\tilde{\varPhi }\Vert _{\infty}, \end{aligned}$$
(45)

where \(\bar{M}=\max_{i=0,1,\ldots,n}M_{i}\) and \(\bar{L}=\max_{\nu =0,1,\ldots,j}L_{v}\).

Now let us assume that

$$ 0< \bar{M}< \frac{1}{\bar{L}(b-a)e^{h}}. $$
(46)

Based on (43) and (44), it follows that

$$\begin{aligned} \Vert \varPhi -\tilde{\varPhi }\Vert _{\infty} \le&\bigl\Vert W(\varPhi )-W( \tilde{\varPhi })\bigr\Vert _{\infty }+\Vert R\Vert _{\infty} \\ \le&\bar{M}\bar{L}(b-a)e^{h}\cdot \Vert \varPhi -\tilde{\varPhi }\Vert _{\infty}+\Vert R\Vert _{\infty}. \end{aligned}$$
(47)

Furthermore, one has

$$\begin{aligned} \Vert \varPhi -\tilde{\varPhi }\Vert _{\infty} \le&\frac{1}{1-\bar{M}\bar{L}(b-a)e^{h}}\Vert R \Vert _{\infty} \\ =&\frac{1}{1-\bar{M}\bar{L}(b-a)e^{h}}\cdot\max_{0\le s\le m(n+1)}|r_{s}| \\ \le&\frac{1}{1-\bar{M}\bar{L}(b-a)e^{h}}\cdot{h}\bar{M}N_{0}\sum _{q=0}^{m-1} \int_{0}^{1}\frac{(hs)^{(n+1)}}{(n+1)!}\,ds \\ \le&\frac{\bar{M}N_{0}(b-a)h^{n+1}}{[1-\bar{M}\bar {L}(b-a)e^{h}](n+2)!}. \end{aligned}$$
(48)

One can see from (48) that the nonlinear system (39) is convergent with \(n\rightarrow+\infty\) and \(h\rightarrow0\), respectively.

In the following, we define a sequence of numerical integration operators \(\bar{\boldsymbol{\kappa}}_{n}\) such as

$$ (\bar{\boldsymbol{\kappa}}_{n}\varphi) (x)=h\sum _{q=0}^{m-1}\sum_{j=0}^{n} \frac{h^{j}}{j!}\cdot\frac{d^{j}\psi}{dy^{j}}\bigg|_{(x_{q},\varphi_{q}^{(j)})} \int_{0}^{1}K(x,x_{q}+hs) \cdot{s}^{j}\,ds. $$
(49)

From Theorem 7, it is seen that

$$\begin{aligned}& \bigl\Vert \varphi(x)-\varphi_{m,n}(x)\bigr\Vert _{\infty} \\& \quad = \bigl\Vert (\boldsymbol{\kappa}\varphi) (x)-(\bar{\boldsymbol{ \kappa}}_{n}\varphi ) (x)\bigr\Vert _{\infty} \\& \quad = \bigl\Vert (\boldsymbol{\kappa}\varphi) (x)-(\boldsymbol{ \kappa}_{n}\varphi ) (x)+(\boldsymbol{\kappa}_{n}\varphi) (x)-(\bar{\boldsymbol{\kappa}}_{n}\varphi ) (x)\bigr\Vert _{\infty} \\& \quad \leq \bigl\Vert (\boldsymbol{\kappa}\varphi) (x)-(\boldsymbol{ \kappa}_{n}\varphi ) (x)\bigr\Vert _{\infty}+ \bigl\Vert ( \boldsymbol{\kappa}_{n}\varphi) (x)-(\bar{\boldsymbol{ \kappa}}_{n}\varphi) (x)\bigr\Vert _{\infty} \\& \quad \leq \frac{M_{0}N_{0}(b-a)}{(n+2)!}h^{n+1}+hM_{0}\sum _{q=0}^{m-1}\sum_{j=0}^{n} \frac{h^{j}}{(j+1)!} \biggl\Vert \frac{d^{j}\psi}{dy^{j}}\bigg|_{y=x_{q}}- \frac{d^{j}\psi }{dy^{j}}\bigg|_{(x_{q},\varphi_{q}^{(j)})}\biggr\Vert _{\infty} \\& \quad \le \frac{M_{0}N_{0}(b-a)}{(n+2)!}h^{n+1}+hM_{0}\sum _{q=0}^{m-1}\sum_{j=0}^{n} \frac{h^{j}}{(j+1)!}\cdot \sum_{\nu=0}^{j}L_{\nu} \bigl\Vert \varphi^{(\nu)}(x_{q})-\varphi_{q}^{(\nu )} \bigr\Vert _{\infty} \\& \quad \le \frac{M_{0}N_{0}(b-a)}{(n+2)!}h^{n+1}+M_{0}\bar{L}(b-a)e^{h} \cdot \Vert \varPhi -\tilde{\varPhi }\Vert _{\infty} \\& \quad \le \frac{M_{0}N_{0}(b-a)h^{n+1}}{[1-\bar{M}\bar{L}(b-a)e^{h}](n+2)!}. \end{aligned}$$
(50)

It is found from (50) that when \(n\rightarrow+\infty\) or \(m\rightarrow+\infty\) (i.e. \(h\rightarrow0\)), one always has \(\|\varphi(x)-\varphi_{m,n}(x)\|_{\infty}\rightarrow0\). This completes the proof. □

As shown in Theorem 8, one can choose a pair of feasible values for m (i.e. h) and n to obtain a good approximation of the exact solution. The above observations will be further verified by using the numerical examples in the next section.

4 Numerical results

In order to show the effectiveness of the proposed methods, we give two numerical examples corresponding to cases I and IV, respectively. The existence and uniqueness of the solution will be considered, and the approximate solution will be calculated numerically. All the computations are made by using the programming language of MATLAB (R2014).

Example 1

Assume that a second-order three-point boundary value problem is given as

$$ \left \{ \textstyle\begin{array}{l} \varphi''(x)+e^{-x}\varphi^{2}(x)=(x^{2}+x+2)e^{x},\quad x\in[0, 1], \\ \varphi(0)=0, \qquad \varphi(1)+2\varphi(1/2)=e+e^{1/2}, \end{array}\displaystyle \right . $$
(51)

where \(x\in[0,1]\), \(\varphi(x)\in\mathbf{C}^{\infty}[0,1]\) and \(|\varphi (x)|<3\). The exact solution is \(\varphi(x)=xe^{x}\).

According to Theorem 1, the nonlinear ordinary differential equation with three-point boundary value conditions in (51) can be transformed into the following Hammerstein integral equation:

$$ \varphi(x)+ \int_{0}^{1}K_{1}(x,t)e^{-t} \varphi^{2}(t)\,dt=f_{1}(x), $$
(52)

where

$$\begin{aligned}& K_{1}(x,t)=\left \{ \textstyle\begin{array}{l@{\quad}l} \frac{t(3x-2)}{2}, &0\le t\le\min\{\frac {1}{2},x\}\le1, \\ \frac{x(t-1)}{2},& 0\le\max\{\frac{1}{2},x\} < t\le1, \\ \frac{x+tx-2t}{2},& \frac{1}{2}\le t\le x\le 1, \\ \frac{x(3t-2)}{2}, &0\le x< t< \frac{1}{2}, \end{array}\displaystyle \right . \\& f_{1}(x)=\bigl(x^{2}-3x+6\bigr)e^{x}+ \frac{1}{4}\bigl(36-6e-17e^{\frac{1}{2}}\bigr)x-6. \end{aligned}$$

We first prove the uniqueness of the solution and choose the Lipschitz constant as

$$L=\biggl\Vert \frac{\partial\psi(x,\varphi(x))}{\partial\varphi(x)}\biggr\Vert =\bigl\Vert 2e^{-x} \varphi(x)\bigr\Vert < 6. $$

Then one obtains

$$\begin{aligned} \begin{aligned} \int_{0}^{1} \int_{0}^{1}\bigl\vert K_{1}(x,t)\bigr\vert ^{2}\,dx\,dt={}& \biggl( \int_{0}^{\frac {1}{2}} \int_{t}^{1}+ \int_{\frac{1}{2}}^{1} \int_{t}^{1}+ \int_{\frac{1}{2}}^{1} \int_{0}^{t}+ \int_{0}^{\frac{1}{2}} \int _{0}^{t} \biggr)\bigl\vert K_{1}(x,t)\bigr\vert ^{2}\,dx\,dt \\ ={}& \int_{0}^{\frac{1}{2}} \int_{t}^{1}\frac{t^{2}(3x-2)^{2}}{4}\,dx\,dt+ \int _{\frac{1}{2}}^{1} \int_{0}^{t}\frac{x^{2}(t-1)^{2}}{4}\,dx\,dt \\ &{}+ \int_{\frac{1}{2}}^{1} \int_{t}^{1}\frac{(x+tx-2t)^{2}}{4}\,dx\,dt+ \int _{0}^{\frac{1}{2}} \int_{0}^{t}\frac{x^{2}(3t-2)^{2}}{4}\,dx\,dt \\ ={}&0.0050347=C_{1}^{2}. \end{aligned} \end{aligned}$$

Since \(LC_{1}<6\sqrt{0.0050347}=0.42573<1\), the nonlinear three-point boundary value problem has a unique solution according to Theorem 6.

Now the proposed numerical method is applied to solve the obtained Hammerstein integral equation (52). It is seen that because \(f_{1}(x)\) in (52) is explicit, the reformulation of the problem in (42) is unnecessary and the proposed numerical method is carried out directly. Similar to those in [28], it is convenient to write the parameters m and n in vector style \((m,n)\). Figure 1 shows the exact solution and the approximate one with \((m,n)=(1,0)\). It is seen that the approximate solution is approached to the exact one. Moreover, the cases of \((m,n)=(2,2)\), \((m,n)=(2,4)\), \((m,n)=(4,2)\), and \((m,n)=(4,4)\) are chosen to compute, respectively. The absolute errors between the approximate and exact solutions are listed in Table 1. One can see from Table 1 that we have given a good approximation of the exact solution and the proposed numerical method is effective. On the other hand, the central difference format is used to compute the nonlinear boundary value problem and the obtained results are given in Table 1 for comparisons. A system of nonlinear algebraic equations is constructed and it is solved by using the Broyden iterative method [51]. The initial vectors are \({ \mathbf{x}_{0}}=[1,1,\ldots ,1]_{10\times1}^{T}\) and \({\mathbf{x}_{0}}=[1,1,\ldots,1]_{20\times 1}^{T}\) for the step \(h=0.1\) and \(h=0.05\), respectively. The results are obtained by iterating five times. The comparisons reveal that the proposed method is effective.

Figure 1
figure 1

The exact solution \(\pmb{\varphi(x)}\) and the approximate one \(\pmb{\varphi_{m,n}(x)}\) with \(\pmb{(m,n)=(1,0)}\) .

Table 1 The absolute errors of the approximate and exact solutions for Example 1

Example 2

Consider a second-order three-point boundary value problem as follows:

$$ \left \{ \textstyle\begin{array}{l} \varphi''(x)+\sin{x}\cdot e^{\varphi(x)}=e^{x^{2}}\sin{x}+2,\quad x\in[0,1], \\ \varphi(0)-\varphi'(1/2)=-1,\qquad \varphi(1)=1. \end{array}\displaystyle \right . $$
(53)

where \(x\in[0,1]\), \(\varphi(x)\in\mathbf{C}^{\infty}[0,1]\) and \(|\varphi (x)|\le1\). The exact solution is \(\varphi(x)=x^{2}\).

Making use of Theorem 4, the boundary value problem (53) can be transformed into the following Hammerstein integral equation:

$$ \varphi(x)+ \int_{0}^{1}K_{4}(x,t)\sin{t}\cdot e^{\varphi (t)}\,dt=f_{4}(x), $$
(54)

where

$$\begin{aligned}& K_{4}(x,t)=\left \{ \textstyle\begin{array}{l@{\quad}l} \frac{t(x-1)}{2},& 0\le t\le\min\{\frac {1}{2},x\}\le1, \\ \frac{(x+1)(t-1)}{2},& 0\le\max\{\frac {1}{2},x\}< t\le1, \\ \frac{(x-1)(t+1)}{2}, &\frac{1}{2}\le t\le x\le1, \\ \frac{(xt-2x+t)}{2},& 0\le x< t< \frac{1}{2}, \end{array}\displaystyle \right . \\& f_{4}(x)= \int_{0}^{1}K_{4}(x,t) \bigl(e^{t^{2}}\sin{t}+2\bigr)\,dt+x. \end{aligned}$$

If we choose the Lipschitz constant as

$$L=\biggl\Vert \frac{\partial\psi(x,\varphi(x))}{\partial\varphi(x)}\biggr\Vert =\bigl\Vert \sin{x}\cdot e^{\varphi(x)}\bigr\Vert \le e, $$

it follows that

$$\begin{aligned} \int_{0}^{1} \int_{0}^{1}\bigl\vert K_{4}(x,t)\bigr\vert ^{2}\,dx\,dt =& \biggl( \int_{0}^{\frac {1}{2}} \int_{t}^{1}+ \int_{\frac{1}{2}}^{1} \int_{t}^{1}+ \int_{\frac{1}{2}}^{1} \int_{0}^{t}+ \int_{0}^{\frac{1}{2}} \int _{0}^{t} \biggr)\bigl\vert K_{4}(x,t)\bigr\vert ^{2}\,dx\,dt \\ =& \int_{0}^{\frac{1}{2}} \int_{t}^{1}\frac{t^{2}(x-1)^{2}}{4}\,dx\,dt+ \int _{\frac{1}{2}}^{1} \int_{0}^{t}\frac{(x+1)^{2}(t-1)^{2}}{4}\,dx\,dt \\ &{}+ \int_{\frac{1}{2}}^{1} \int_{t}^{1}\frac{(x-1)^{2}(t+1)^{2}}{4}\,dx\,dt+ \int _{0}^{\frac{1}{2}} \int_{0}^{t}\frac{(xt-2x+t)^{2}}{4}\,dx\,dt \\ =&0.016840=C_{4}^{2}. \end{aligned}$$

Under the consideration of \(LC_{4}\le e\sqrt{0.016840}=0.35275<1\), one can see that the three-point boundary value problem has a unique solution by using Theorem 6.

For numerical computations, as shown in (42), equation (54) should be rewritten as

$$ \varphi(x)+ \int_{0}^{1}K_{4}(x,t) \bigl[\sin{t} \cdot e^{\varphi (t)}-e^{t^{2}}\sin{t}-2 \bigr]\,dt=x. $$
(55)

In addition, the exact solution and the approximate one for \((m,n)=(1,0)\) are depicted in Figure 2. The absolute errors of the exact and approximate solutions by using \((m,n)=(2,1)\), \((m,n)=(2,2)\), \((m,n)=(4,1)\), and \((m,n)=(4,2)\), and the central difference format are shown in Table 2. It is found from Figure 2 and Table 2 that a good approximation solution is determined. When m or n is increasing, the absolute error \(|\varphi(x)-\varphi_{m,n}(x)|\) is decreasing. The observation is in accordance with the theoretical analysis in Theorem 8 and that in [28].

Figure 2
figure 2

The exact solution \(\pmb{\varphi(x)}\) and the approximate one \(\pmb{\varphi_{m,n}(x)}\) with \(\pmb{(m,n)=(1,0)}\) .

Table 2 The absolute errors of the approximate and exact solutions for Example 2

5 Conclusions

Four cases of nonlinear second-order three-point boundary value problems have been investigated and they are transformed into the Hammerstein integral equations by using the integration method. Based on the Schauder fixed point theorem, the sufficient conditions for the existence of the solutions have been given. The uniqueness of the solutions has been considered by using the Banach fixed point theorem. Furthermore, we have constructed the approximate solution of Hammerstein integral equations by applying a novel numerical method, which depends on the values of two parameters. The convergence and error estimate of the approximate solution have been made, and they show that one can get a good approximation of the exact solution by choosing a pair of the parameters. Two examples have been carried out numerically and the obtained results have revealed that the proposed methods are effective. In the future, the proposed method will be extended to solve nonlinear second-order differential equations with various nonlocal boundary value conditions.