I would like make a fancy chapter like the figure.
However, i made this code
\documentclass[12pt,a4paper]{book}
\usepackage{lmodern}
\usepackage{titlesec}
\usepackage{microtype}
\usepackage{tikz}
\titleformat{\chapter}[display]
{\normalfont\bfseries\color{black}}
{%\filleft%
\begin{tikzpicture}
\node[
outer sep=-10pt,
text width=2.5cm,
minimum height=3cm,
fill=black,
font=\color{white}\fontsize{80}{90}\selectfont,
align=center
] (num) {\thechapter};
\node[
rotate=0,
anchor=south,
font=\color{black}\Large\normalfont
] at ([yshift=43pt,xshift=30]num.west) {\textls[180]{\textsc{\chaptertitlename}}};
\end{tikzpicture}%
}
{-90pt}
{\titlerule[2.5pt]\vskip3pt\titlerule\vskip4pt\LARGE\sffamily \raggedright }
\begin{document}
\chapter{The Singular Sturm-Liouville Problems in Spectral Parameter}
\end{document}
that produces this one
How can I produce the chapter like the First Figure?