# Mathematica not simplifying trig expression [closed]

I type in

hld01[θ_] = (Cos[θ] Subscript[r, Ty])/(Square[Sin[θ]] Square[
Sqrt[Square[Csc[θ]] Square[Subscript[r, Ty]]]])


and wanted Mathematica to simplify, but it doesn't. I tried Simplify[] and get the same result. "Clearly" is should be able to simplify Sqrt[Square[]], right? How to get Mathematics to simplify this expression?

## closed as off-topic by Sektor, Henrik Schumacher, LCarvalho, Coolwater, José Antonio Díaz NavasMar 10 '18 at 19:48

This question appears to be off-topic. The users who voted to close gave these specific reasons:

• "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – Sektor, Coolwater, José Antonio Díaz Navas
• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Henrik Schumacher, LCarvalho
If this question can be reworded to fit the rules in the help center, please edit the question.

• Clearly? Maybe so, if you tell Mathematica that the – Oliver Jennrich Mar 10 '18 at 16:14

## 1 Answer

It is not clear what your expression is supposed to mean. Square[] is not a standard Mathematica function and as long as you haven't defined it, it is difficult for Mathematica to know what its square root is supposed to mean.

Assuming you rather meant:

hld01[θ_] = (Cos[θ] Subscript[r, Ty])/(Sin[θ]^2 Sqrt[Csc[θ]^2 Subscript[r, Ty]^2]^2)


it effortlessly simplifies automatically to

Cos[θ]/Subscript[r, Ty]

• Thanks! I was using Square instead of ^2. The pains of learning something new.:) – user55800 Mar 10 '18 at 18:36