Mathematical analysis and optimal control interventions for sex structured syphilis model with three stages of infection and loss of immunity

In this study, we develop a nonlinear ordinary differential equation to study the dynamics of syphilis transmission incorporating controls, namely prevention and treatment of the infected males and females. We obtain syphilis-free equilibrium (SFE) and syphilis-present equilibrium (SPE). We obtain the basic reproduction number, which can be used to control the transmission of the disease, and thus establish the conditions for local and global stability of the syphilis-free equilibrium. The stability results show that the model is locally asymptotically stable if the Routh–Hurwitz criteria are satisfied and globally asymptotically stable. The bifurcation analysis result reveals that the model exhibits backward bifurcation. We adopted Pontryagin’s maximum principle to determine the optimality system for the syphilis model, which was solved numerically to show that syphilis transmission can be optimally best control using a combination of condoms usage and treatment in the primary stage of infection in both infected male and female populations.


Introduction
Syphilis is one of the infectious diseases, most commonly caused by sexual contact. Spirochete Treponema pallidum is a spiral-shaped bacteria that causes syphilis [23]. When a person contracts syphilis, he or she develops sores, blisters, or ulcers on his genitals anus (bottom), or mouth [2]. The disease is largely transmitted from one person to another when a susceptible person has sex without condoms or shares sex toys with an infected person [33]. Even though the disease is spread from sores, most of those sores disappeared without being recognized [33]. There are three different stages in syphilis disease: primary stage, secondary stage, and latent stage. At the primary stage the sign may appear as a solitary, painless chancre at the site of inoculation. However, the primary chancre may disappear without being noticed by infected persons. If the disease is left untreated at the primary stage, then it would advance to the secondary stage. The symptoms at this stage are more visible. It includes mucocutaneous lesions affecting both skins, mucous membranes, and lymph nodes [44]. Mostly, at the secondary stage, there are usually rashes on the palms and sole of an infected person, and it can imitate other infectious and noninfectious conditions. It is important to state that the rashes on the palm and foot of an infected person at secondary syphilis stage may also disappear even without treatment. If the disease is left untreated, then the infected person progresses to the latent stage [44]. The latent syphilis is asymptotic, described by positive syphilis serology without any clinical manifestations [44]. At this stage, syphilis is often categorized in to two parts, early latent syphilis and late latent syphilis. The early latent syphilis is characterized by an infection, which is less than two years, whereas the late latent syphilis, on the other hand, is an infection of the disease for two years or beyond [44]. Transmission of syphilis occurs during primary, secondary, or early latent syphilis; moreover, mother-to-child transmission has been observed after several years of infection with syphilis, especially in an untreated cases [44]. According to World Health Organization (WHO), an estimates of 36.4 million syphilis infection cases were recorded worldwide [43]. About 90% of new syphilis cases are found in resource-limited countries out of an estimated population of over 12 million new syphilis infections recorded every year in the world [13,14]. WHO reported that there are 3.4 million annual new cases of syphilis in the African region among people aged 15-49 years [43]. The global incidence rate of syphilis was 1.5 cases per 1000 females and 1.5 per 1000 males in 2012. It is estimated that the global prevalence of syphilis is at 0.5% among females and 0.5% among males aged 15-49 years, with the highest prevalence in the WHO African Region [44]. In Nigeria the prevalence of syphilis is estimated to be between 1.3 million and 2.8 million (0.7-1.5%) [17,39]. There were 6498 deaths as a result of syphilis infection, 4149 males and 2349 females in the United States of America from 1968 to 2015. Adults now rarely die due to syphilis [31]. About 492,000 infants die each year due to syphilis infection from congenital syphilis in sub-Saharan Africa [30]. In Nigeria, neonatal death rate per 1000 is estimated at 34.1 [21]. Despite the introduction of penicillin for almost over a decade, syphilis continues to be a disease of concern, and therefore the optimal management of syphilis continues to be a controversial topic [12,40]. Presently, clinical guidelines suggest similar treatment regimens for various stages of syphilis. Penicillin continues to be the drug of choice to treat all stages of syphilis in all populations with tetracycline and cephalosporin acceptable alternate agents for some stages in nonpregnant person [12,40]. Penicillin G remains the most suitable drug for treating infected persons with syphilis in all the stages. The stage and clinical manifestations of syphilis dictate the preparation used (i.e., benzathine, aqueous procaine, or aqueous crystalline), dosage, and length of treatment [11]. Persons with latent syphilis of unknown duration require longer treatment duration to ensure that those who did not acquire syphilis within the preceding period are adequately treated [11]. Novel and effective prevention strategies are keenly required to combat syphilis infection because currently there is no vaccine to prevent infection with syphilis [40]. Syphilis is a preventable and potentially eradicable disease [18]. Transmission is prevented, and subsequent new infections are also blocked when syphilis is treated, and hence it reduces the prevalence of syphilis in a population to a minimal level. Mathematical models play a very vital role in the study of the dynamic of infectious diseases; for example, [15] developed and analyzed a mathematical model that includes the basic stages of the disease and assumed that infected individuals acquire temporary immunity only after recovery from the latent and tertiary infections. [23] considered a SIR mathematical model to study the effect of presence of partial immunity and vaccine against syphilis infection in a population. The results reveal that health education leading to enhanced biological and behavioral protection against infection and the development of effective vaccine is the most effective way to control syphilis transmission in a highrisk population. [17] presented a new multistage deterministic model for the transmission dynamics of syphilis to qualitatively assess the role of loss of transitory immunity in the transmission process. They show that loss of transitory (natural) immunity can induce the phenomenon of backward bifurcation. [37] proposed a model for the transmission of syphilis in an MSM population that includes infection stages and treatment. [29] used a nonlinear mathematical model to study the dynamics of the spread of syphilis in heterogeneous settings with complications, and two stages of (primary and secondary stages) infection only were considered. [2] formulated a compartmental model to investigate the dynamics of the spread of syphilis in a sexually active population with some measure of disease control. The model undergoes the phenomenon of backward bifurcation and proposed that effective treatment strategies of syphilis in its primary and secondary infected individuals will help reduce the cases. In [26] an investigation was carried out to determine the synergistic interaction between HIV and syphilis using a mathematical model. The paper assessed the impact of syphilis treatment on the dynamics of syphilis and HIV coinfection in a human population where HIV treatment is not readily available or accessible to HIV infected individuals, and they proposed that if a concerted effort is exerted in the treatment of primary and secondary syphilis (in both singly and dually infected individuals), especially with high treatment rates for primary syphilis, then it will result in a reduction in the incidence of HIV (and its coinfection with syphilis) in the population.
However, until now, very few studies were conducted to investigate the optimal control strategies with the view to come up with best way of curtailing the spread of syphilis within a population. [38] incorporated in an epidemiological model for the transmission dynamics of syphilis a control variable to assess the effects of resistance strategies against the disease. He emphasizes the need to reevaluate the current control programs; the development of an effective vaccine associated with health education could be the best way to control syphilis in high-risk populations. [1] formulated and analyzed the dynamics of a syphilis model with the introduction of two controls, and the two time-independent controls represent strategies for improvement of the treatment and cure of the syphilis disease.
[34] used an epidemiological SEIR (Susceptible, Exposed, Infectious, Removed) type model for rubella epidemic via classical and fractional-order Caputo differential operators assuming the periodic transmission rate β(t). [35] investigated the dynamics of measles infection with the help of mathematical operators called conformable derivatives of order α (the local derivative index) in the sense of Liouville-Caputo operator of order β (the iterated or fractionalizing index). An epidemiological model related with diarrhea transmission dynamics that occurred in Ghana during 2008-2018 was investigated by [36]. The epidemiological model was designed for the very first time with newly devised fractional Caputo-type operator having the fractional order α and the fractal dimension τ . [25] proposed a fractional-order epidemic model with two different operators called the classical Caputo operator and the Atangana-Baleanu-Caputo operator for the transmission of Covid-19 epidemic. The reproduction number R 0 was obtained for the prediction and persistence of the disease in a population. [5] presented face masks simple but powerful weapons to protect individuals against Covid-19 spread. The focus of their research was to depict the transport of Covid-19 spread through wind with high speed. The stability of nonmonotone critical waves by antiweighted method for a kind of nonmonotone timedelayed reaction-diffusion equations, including Nicholson's blowflies equation, which describes the population dynamics of a single species with age structure, was studied in [45]. In [6], homotopy transform methods, namely, homotopy analysis transform method and homotopy perturbation Sumudu transform method, were implemented to examine the fractional model for HIV infection of CD4 + T lymphocyte cells. A mathematical model for the spread of Covid-19 was analyzed in [3] using theory of stability and optimal control. The proposed model was extended to the concept of nonlocal operators, in which the positiveness of the system solutions were established. [4] presented a detailed analysis of an important class of differential equations called stochastic equations with the new classes of differential operators with global derivatives of integer and noninteger orders.
In an attempt to show the applicability of the operators, three epidemiological problems, namely, Zombie virus spread model, the Zika virus spread model, and Ebola model, were studied, and their results showed that more complex real-world problems could be depicted using the classes of differential equations studied.
In this research, we complement and extend the work of [29] by taking into cognizance the standard incidence rate and three stages of infection, namely, primary, secondary, and latent stages of infection of the disease transmission against two stages (primary and secondary) considered by [29], and according to recent revelations of various studies conducted by different authors, the early latent stage can also transmit the disease. However, we have also incorporated an optimal control by using three control strategies consisting of prevention and treatment to investigate the best control strategy that would assist in curtailing the spread of syphilis in a population based on the following assumptions: The latent stage of infection can also transmit the disease, individuals recovered from syphilis infection can also contact the disease after the loss of immunity, the population of both male and female are assumed to be sexually active in all stages of infection, individuals with syphilis in the primary stage can also transmit the disease, and individuals in the susceptible population can be infected with syphilis after having contact with either those in the primary, secondary, or individual at the latent stages of infection.
The paper is presented sectionwise as follows: The syphilis model is formulated in Sect. 2. Mathematical analysis of the syphilis model is presented in Sect. 3. The optimal control problem and analysis of the control problem are presented in Sect. 4. Numerical results and discussion are provided in Sect. 5. Finally, we conclude in Sect. 6.

Formulation of syphilis model
The total population at time t represented as N(t) is subdivided into smaller classes: susceptible males S m (t), susceptible females S f (t), males with primary stage syphilis infection I mp (t), females with primary stage syphilis infection I fp (t), males with secondary stage syphilis infection I ms (t), females with secondary stage syphilis infection I fs (t), males with latent stage syphilis infection L m (t), females with latent stage syphilis infection L f (t), recovered males R m (t), and recovered females R f (t). So Recruitment into the susceptible males at time t, S m (t) is done by the increase in the number of sexually active individuals, who do not previously contact syphilis at rate π m . The population is also increased by rate ϕ m of males who recovered from syphilis infection after the loss of immunity. The population of susceptible males reduces due to the development of newly infected males with syphilis who progress to the males with primary stage syphilis by a function α f ψ( where α f represents the transmission probability of syphilis females, and ψ is the average number of sexual partners per unit time. The susceptible males reduce as a result of natural driven death at rate μ. So the equation becomes Recruitment into the susceptible females at time t, S f (t), is due to an increase in the number of sexually active females who did not previously contact syphilis at rate π f . Recovery from syphilis infection and later loss of immunity also contribute to increasing in susceptible females at rate ϕ m . This population is reduced by acquiring syphilis infection at the quantity α m ψ( )S f and the migration of such a population to the females with syphilis at the primary stage of infection, where α m is the transmission probability of syphilis infected male. The population is also reduced by death due to the natural factor at rate μ. Thus The population of males with primary stage syphilis at time t, I mp (t), increases due to progression of newly infected syphilis individuals from the susceptible male at the quantity α f ψ( I fp +I fs +L f N )S m and is reduced due to movement to males with secondary stage syphilis I ms at rate γ m . This population is further decreased due to natural death at rate μ and presence of treatment using antibiotics at rate σ m 1 , so that The population of females with primary stage syphilis at time t, I fp (t), increases as a result of progression of newly infected females with syphilis infection from susceptible female at the quantity α m ψ( )S f and is reduced due to progression to infected females with secondary stage syphilis (I fs ) at rate γ f . There is a decrease in the population due to natural death at rate μ and treatment using antibiotics at rate ρ f 1 . Thus The infected males with secondary stage syphilis infection at time t, I ms (t), increase due to progression of males with primary stage syphilis (I mp ) to males with secondary stage syphilis (I ms ) at rate γ m . The population is reduced by the progression of males with secondary stage syphilis (I ms ) at rate β m to males with latent stage syphilis (L m ). The population is further reduced by death from natural factor at rate μ and due to the presence of treatment (antibiotics) at rate σ m 2 , so that the equation is given by Females with secondary stage syphilis population of at time t, I fs (t), increase due to progression of females with primary stage syphilis (I fp ) to females with secondary stage syphilis (I fs ) at rate γ f . The population is reduced by the progression of females with secondary stage syphilis (I fs ) at rate β f to the latent stage syphilis (L f ) and is further reduced by a natural death at rate μ and due to treatment (antibiotics) at rate ρ f 2 , so that the equation is given by The population of males with latent syphilis at time t, L m (t), is increased by the progression of infected males with secondary stage syphilis (I ms ) at rate β m to the population of males with latent stage syphilis (L m ) and is reduced by a natural death at rate μ. This population is further reduced due to the presence of treatment (antibiotics) at rate σ m 3 , so that the equation is given by The population of females with latent stage syphilis at time t, L f (t), is increased by the progression of infected females with secondary stage syphilis (I fs ) at rate β f to the population of females with latent stage syphilis (L f ) and is reduced by natural death at rate μ. This population is further reduced due to the presence of treatment (antibiotics) at rate ρ f 3 , so that The population of recovered males at time t, R m (t), is increased due to progression of treated males from primary, secondary, and latent stages of syphilis (I mp , I ms , L m ), respectively, at rates σ m 1 , σ m 2 , and σ m 3 , which are the treatment rates of syphilis infection in male population. This population is reduced due to natural death at rate μ and is further decreased due to loss of immunity acquired as a result of treatment and transfer of such individuals to susceptible male population at rate ϕ m , so that The population of recovered females at time t, R f (t), is increased due to progression of treated females from primary, secondary, and latent stages of syphilis infections (I fp , I fs , L f ), respectively, at rates ρ f 1 , ρ f 2 , and ρ f 3 . This population is reduced due to natural death at rate μ and is further decreased due to loss of immunity acquired as a result of treatment and transfer of such an individual to the susceptible male population at rate ϕ f : The model diagram is presented in Figure 1.

Figure 1 Model with three stages of infection and three control interventions
Therefore we present the syphilis model with three stages of infection: with the initial conditions The associated subclasses are added to get the dynamics of the total population of system (2), which yields  Recruitment rate into susceptible male population 0.3 [29] π f Recruitment rate into susceptible female population 0.45 [29] α f Transmission probability of female with syphilis infection 0.2 [15] α m Transmission probability of male with syphilis infection 0.5 [15] γ m Progression rate from male with primary syphilis to male with secondary syphilis infection 0.01 [15] γ f Progression rate from female with primary syphilis 0.627 [15] ψ Average number of sexual partner per unit time to female with secondary syphilis infection 2 [ 19] β m Progression rate from male with secondary syphilis to male with latent syphilis infection 0.618 [15] β f Progression rate from female with secondary syphilis to female individual with latent syphilis infection 0.618 [15] ϕ m Rate of recovery from syphilis in infectious male 0.1 [29] ϕ f Rate of recovery from syphilis in infectious female 0.1 [29] σ m 1 Treatment rate of male with primary stage syphilis 0.05 [29] σ m 2 Treatment rate of male with secondary stage syphilis 0.1 [29] σ m 3 Treatment rate of male with latent stage syphilis 0.2 [29] ρ f 1 Treatment rate of female with primary stage syphilis 0.05 [29] ρ f 2 Treatment rate of female with secondary stage syphilis 0.1 [29] ρ f 3 Treatment rate of female with latent stage syphilis 0.2 [29]

Basic properties
is positively invariant and attracting with respect to system (2).
Proof From the first equation of system (2) we have This means that We applied a similar method to establish that I mp (t), (4) is used to prove the second part of the theorem, which says that model system (2) is positively invariant, so that This establishes that is the manifold on which the population has nonzero size.
This proves the boundedness of the solutions inside . Hence the solutions to system (2) are positively invariant and attracting in a region . Note that system (2) is feasible biologically and mathematically well posed in from Theorem 1.

Analysis of the syphilis model
This section establishes the syphilis-free equilibrium state, syphilis-present equilibrium state, derived the basic reproduction number, and carryout stability analysis.

Equilibrium points
The equilibrium points of system (2) are established by setting it to zero: When there is no syphilis infection, system (2) has a steady state, which is termed a syphilis-free equilibrium. To obtain the nature of stability of the syphilis-free equilibrium, we computed and evaluated the Jacobian of system (2) at syphilis-free equilibrium. The local stability of the syphilis-free equilibrium is determined using the signs of the eigenvalues of the Jacobian. The syphilis-free equilibrium for system (2) is This simply means that in the absence of syphilis infection the susceptible males and females proportionally change with their recruitment rate to their death rate. For the second equilibrium point, let E * * = (S * * m , I * * mp , I * * ms , L * * m , R * * m , S * * f , I * * fp , I * * fs , L * * f , R * * f ) be the syphilis-present equilibrium of model (2). At equilibrium state, let λ * * m = be the forces of infection, and let N * * = S * * m + I * * mp + I * * ms + L * * m + R * * m + S * * f + I * * fp + I * * fs + L * * f + R * * f . Then solving system (2) at steady state yields , where

Basic reproduction number
The average number of secondary infections caused by one infectious person when the entire population is susceptible is termed the basic reproduction number R 0 . The epidemiological threshold of syphilis is denoted by R 0 = ρ(FV -1 ), where ρ is the dominant eigenvalue. To find the basic reproduction number of system (2), we adopted the techniques in [41] to get The matrices F and V contain new infection terms and transition terms, respectively, in system (2). Evaluating the Jacobian matrices of F and V at syphilis-free equilibrium yields Therefore system (2) has the basic reproduction number where q 1 = (γ m + μ + σ m 1 ), q 2 = (β m + μ + σ m 2 ) q 3 = (μ + σ m 3 ), q 4 = (γ f + μ + ρ f 1 ), q 5 = (β f + μ + ρ f 2 ), and q 6 = (μ + ρ f 3 ).

Local stability of the syphilis-free equilibrium
Theorem 2 The syphilis-free equilibrium of system (2) is locally asymptotically stable if R 0 < 1 and unstable otherwise.
By applying the Routh-Hurwitz criterion (which states that all roots of the polynomial equation (12) have a negative real part if and only if the coefficients are positive and the determinant of the matrices H i > 1 for i = 1, . . . , 6) it is clear that D 1 > 0. Therefore, if D j > 0 for j = 2, . . . , 6 and the necessary condition for the Routh-Hurwitz criterion for the sixthorder characteristic polynomial in (12) is satisfied, then we conclude that the syphilis-free equilibrium is locally asymptotically stable (LAS).

Syphilis global asymptotic stability
The approach in [8] is adopted to investigate the global asymptotic stability (GAS) of the syphilis-free equilibrium for the model (2).

Lemma 1 Let system (2) be of the form
where Q = (S m , R m , S f , R f ) and Z = (I mp , I ms , L m , I fp , I fs , L m ), and the components of Q ∈ R 4 represent the population that is not infected, and the components of Z ∈ R 6 represent the infected population [8]. Consider the syphilis-free equilibrium E 0 = (Q 0 , 0), where The conditions that must be met to guarantee the global asymptotic stability are:

Theorem 3
The syphilis-free equilibrium of system (2) is (GAS) if R 0 < 1 and unstable otherwise.
Computing the bifurcation coefficients a and b after rigorous simplification yields a = π m +π f > 0. Thus system (2) exhibits backward bifurcation.

Sensitivity analysis of the syphilis model
In this section, we test the effect of system (2) parameters on the basic reproduction number R 0 to ascertain the impact of these parameters on syphilis transmission. To get the sensitivity index, we partially differentiated R 0 with respect to model (2) parameters. The formula used for the sensitivity analysis in this work, for example, in the case of π m is ∂R 0 ∂π m × ∂π m ∂R 0 , is the same as used for all parameters of model (2). The result is presented in the Table 3.
We observe that the parameters π m , π f , α m , α f , ψ, γ m , and γ f have positive sensitivity indices, which means that R 0 increases with the parameter. The remaining parameters, β m , β f , σ m 1 , σ m 2 , ρ m 1 , and ρ m 2 have negative values, which implies that R 0 decreases for higher values of the parameters. For instance, the implication of the sensitivity index implies an increase (or decrease) of π m by a certain percentage, say, y% will result in an increase (or decrease) effect on the reproduction number by y%.

Optimal control of the syphilis model
In this section, we present optimal control interventions for effective management of the syphilis infection. In an attempt to arrest the transmission of syphilis, we incorporated control interventions into system (2) to get Basically, we present the objective functional J to investigate the optimal level of effort required to control the syphilis infection. We follow the techniques of [22] to formulate the objective functional, which is given by where I p = (I mp + I fp ), I s = (I ms + I fs ), and L = (L m + L f ). The factor u 1 is a control function representing prevention from syphilis infection through the use of condom and safe sex activity in both the male and female populations, u 2 is a control function representing treatment using antibiotic in male population, and u 3 is a control function representing treatment using antibiotic in female population. The use of condom and safe sex is aimed at reducing the transmission of syphilis from infected to susceptible individuals. t f is the final time, and the coefficients A 1 , B 1 , B 2 , B 3 are positive weights to balance the factors. The aim is minimizing the number of males and females with primary stage syphilis I p , the number of males and females with secondary stage syphilis I s , and the number of males and females with latent stage syphilis L while we keep the cost of controls u 1 (t), u 2 (t), u 3 (t) at minimal level. Thus we seek optimal controls u * 1 , u * 2 , u * 3 such that J(u * 1 , u * 2 , u * 3 ) = min u 1 ,u 2 ,u 3 {J(u 1 , u 2 , u 3 ) u 1 , u 2 , u 3 ∈ U}, where U is the set of measurable functions from [0, t f ] onto [0, 1]. The necessary conditions that an optimal control must satisfy were derived from Pontryagin's maximum principle [32], and the existence of optimal control was derived from the adjoint variable of the state variables satisfying the following set of differential equations. This principle converts system (18) into a problem of minimizing pointwise a Hamiltonian H with respect to (u 1 , u 2 , u 3 ). The 2416 Assumed R f (0) 0 [28] In accordance with [22], based on typical control arguments involving the bound on the controls, we conclude that as a result of a priori boundedness of the state system and the adjoint system, we obtained the uniqueness of the optimality system (23)- (24). There is a restriction on the length of time interval [0, t f ] so that we can guarantee the uniqueness of the optimality system [27].

Numerical simulations
In this section, we investigate the impact of interventions on the transmission of syphilis in a population. The optimal control problem (18)- (19) is solved numerically following the techniques in [20], which uses the forward and backward Range-Kutta scheme. We use the variables and parameter values in Tables 2 and 4

Strategy A: use of condom + treatment of male with syphilis infection
In strategy A, we present the simulation of optimal control system (18) with condom use (u 1 ) as personal protection against infection and treatment of males with syphilis infection (u 2 ) are implemented, whereas treatment of female with syphilis infection (u 3 ) is set to zero. Figures 2(b-d) show the results of the implementation of strategy A. There is a significant difference in the population of males with primary syphilis infection I mp , males with secondary syphilis infection I ms , and males with latent syphilis infection L m when optimal use of condom (u 1 = 0) and treatment of males with syphilis infection (u 2 = 0) were compared to the population without optimal control strategy. Figures 2(g-i) show the results for females with primary syphilis infection I mp , females with secondary syphilis infection I ms , and females with latent syphilis infection L m when strategy A is applied. The population of females with primary syphilis infection I fp , females with secondary syphilis infection I fs , and females with latent syphilis infection L f drop when optimal use of condom (u 1 = 0) and treatment of males with syphilis infection (u 2 = 0) against the population without optimal control strategy. Figure 2(k) depicts the control profile for strategy A. We observed that the control curve for the use of condoms remains at the upper bound for almost the entire duration of the study period, that is, 24 months, whereas the curve for the treatment of males with syphilis infection remains at a lower bound for the duration of the study.

Strategy B: use of condom + treatment of female with syphilis infection
This strategy shows the simulation of optimal control system (18) for condom use (u 1 ) as personal protection against infection and treatment of females with syphilis infection (u 3 ) while treatment of male with syphilis infection (u 2 ) is fixed at zero. Figures 3(b-d) show that there is a clear change in the population of males with primary syphilis infection I mp , males with secondary syphilis infection I ms , and males with latent syphilis infection L m when strategy B is effected compared to the population without optimal control strategy B. Figures 3(g-i) show the results for females with primary syphilis infection I fp , females with secondary syphilis infection I fs , and females with latent syphilis infection L f when strategy B is applied. We observed that the population of females with primary syphilis infection I fp , females with secondary syphilis infection I fs and females with latent syphilis infection L f reduce when optimal use of condom (u 1 = 0) and treatment of males with syphilis infection (u 3 = 0) are implemented when compared to the case without control strategy. Figure 3(k) shows the control profile for strategy B. From the control curve we observed that the use of condoms remains at the upper bound for almost the entire duration of the study period, that is, 24 months, whereas the curve for the treatment of females with syphilis infection is unstable for the entire period of implementation of the strategy.

Strategy C: treatment of male and female with syphilis infection
In strategy C, we use treatment of males with syphilis infection (u 2 ) and treatment of female with syphilis infection (u 3 ) to optimize the objective functional (19) while the use of condom (u 1 ) is set at zero. Figures 4(b-d) show that there is a drastic change in the population of males with primary syphilis infection I mp , males with secondary syphilis infection I ms , and males with latent syphilis infection L m when strategy C is effected compared to the population without optimal control strategy C. Figures 4(g-i) depict the results for females with primary syphilis infection I fp , females with secondary syphilis infection I fs , and females with latent syphilis infection L f when strategy B is applied. We observed that the population of females with primary syphilis infection I fp , females with secondary syphilis infection I fs , and females with latent syphilis infection L f diminishes when optimal treatment of males with syphilis infection (u 2 = 0) and treatment of females with syphilis infection (u 3 = 0) are implemented when compared to the case without control. Figure 4(k) shows the control profile for strategy C. We observed that the treatment of males with syphilis stays at a lower bound throughout the duration of the study period, whereas the

Strategy D: use of condom + treatment of male with syphilis infection + treatment of female with syphilis infection
Strategy D presents use of condom (u 1 ), treatment of males with syphilis infection (u 2 ), and treatment of female with syphilis infection (u 3 ) to optimize the objective functional (19). Figures 5(b-d) depict a more significant decrease in the population of males with primary syphilis infection I mp , males with secondary syphilis infection I ms , and males with latent syphilis infection L m when strategy C is effected compared to the population without optimal control strategy C. We also compared strategy D to other strategies and found out that the strategy shows a significant decline in the number of the infected population compared to other strategies. Figures 5(g-i) depict the results for females with primary syphilis infection I fp , females with secondary syphilis infection I fs , and females with latent syphilis infection L f when strategy C is implemented. We observed that the population of females with primary syphilis infection I fp , females with secondary syphilis infection I fs , and females with latent syphilis infection L f diminishes when optimal use of condom (u 1 = 0), treatment of males with syphilis infection (u 2 = 0), and treatment of females with syphilis infection (u 3 = 0) are implemented when compared to the case without control. Figure 5(k) depicts the control profile for strategy D. We observed that the curve for use of condom is at the upper bound for almost the entire period of the study (24 months), treatment of males with syphilis stays at lower bound throughout the duration of the study period, whereas the curve for the treatment of females with syphilis infection oscillates throughout the period of implementation of the strategy. However, we realized that each of the four strategies explored in this study has positively demonstrated that the spread of syphilis can be halted once the desired group is targeted with given proper treatment. We equally noted that treating males can have an effect on females with syphilis infection and vice versa. Of the four strategies, strategy D, condom plus treatment in both the male and the female population, yielded the best result when compared to the use of treatment only strategy or condom plus treatment in male alone or condom plus treatment in female only strategies. This is supported by [21,30,37], respectively; treating the syphilis disease in its primary level and directing resources to the use of condoms plus treatment in a population would widely and immensely contribute in controlling the spread of syphilis.

Conclusion
In this research, we proposed and studied a mathematical sex-structured syphilis model with three stages of infection and three control strategies, and loss of immunity. We assumed a constant control for the control parameters in the analytical solution. The positivity of the solution was proved, and the system of nonlinear differential equations is found to be biologically and mathematically well-posed. We obtained the basic reproduction number using the next-generation method. The syphilis-free and syphilis-present equilibria were established. The syphilis-free equilibrium is locally asymptotically stable when R 0 < 1 and unstable when R 0 > 1. The global stability of syphilis-free equilibrium is proved to be globally asymptotically stable when the associated reproduction number R 0 < 1. This implies that the disease will completely die out in a stable equilibrium, whereas it will persist and become endemic in an unstable equilibrium. We used Pontryagin's maximum principle to investigate the optimal level required to curtail the spread of syphilis in a population. Numerical results show that the best strategy for control of syphilis transmission is strategy D, the combination of condom usage for the prevention and treatment of infected male and female population.