# Simplifying a Trigonometric Expression

I need to provide a simplified version of this expression for a homework:

$$\frac{\cos^{3}x - 2\cdot\cos x + \sec x}{\cos x \cdot \sin^{2}x}$$

Basically, there aren't restrictions. The simpler the final formula, the better. I've been trying to reduce this expression with the main idea of replacing trigonometric function with $\cos$ equivalents (as it appears more frequently, thus could be simplified), but this led me to nowhere.

$$\frac{\cos^{3}x - 2\cdot\cos x + \frac{1}{\cos x}}{\cos x (1 - \cos^{2}x)}$$

I've also tried other substitutions with no success.

Any tip on direction to take from here are really appreciated. I see there is a lot of work to be done, and I know I haven't walked so much in direction to finishing it. The problem is that I don't have any idea to continue this.

-

We can multiply the numerator and denominator by $\cos(x)$ and get, $$\frac{\cos^4(x) - 2 \cdot \cos^2(x) + 1}{\cos^2(x) \cdot \sin^2(x)}$$ $$= \frac{\left(\cos^2(x) - 1 \right)^2}{\cos^2(x) \cdot \sin^2(x)}$$ $$= \frac{\left(-\sin^2(x) \right)^2}{\cos^2(x) \cdot \sin^2(x)}$$ $$= \frac{\sin^4(x)}{\cos^2(x) \cdot \sin^2(x)}$$ $$= \frac{\sin^2(x)}{\cos^2(x)}$$ $$= \tan^2(x)$$
Try multiplying the numerator (and denominator) by $\cos(x)$. Then the numerator will be a fourth degree expression of the form $t^4-2t^2+1$. (where I have used $t$ in place of $\cos(x)$). This expression is a perfect square and can be factored. You should then be able to cancel some terms from the numerator and denominator.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9772530198097229, "perplexity": 173.41337392770816}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-07/segments/1454701159031.19/warc/CC-MAIN-20160205193919-00062-ip-10-236-182-209.ec2.internal.warc.gz"}