## cost of laying pipelines from shore to sea

Let the cost of laying pipelines be $a/metre on land while$b/metre on sea.

total cost of laying pipelines = $b(DA)cosec\theta + a(OA-DAcot\theta).$

use t-formula to rewrite the trigonometric expressions in quadratic form and minimise the quadratic equation.